view paper/src/AgdaInstance.agda.replaced @ 4:bf1f62556b81

add while_test_init_imple
author soto
date Thu, 11 Feb 2021 17:03:31 +0900
parents 959f4b34d6f4
children
line wrap: on
line source

_==Nat_ : Nat @$\rightarrow$@ Nat @$\rightarrow$@ 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_}