view final_pre/src/AgdaInstance.agda @ 7:28f900230c26

add final_pre
author ryokka
date Mon, 19 Feb 2018 23:32:24 +0900
parents
children
line wrap: on
line source

_==Nat_ : Nat -> Nat -> Bool
zero    ==Nat zero    = true
(suc n) ==Nat zero    = false
zero    ==Nat (suc m) = false
(suc n) ==Nat (suc m) = n ==Nat m

instance
  natHas== : Eq Nat
  natHas== = record { _==_ = _==Nat_}