annotate prepaper/src/AgdaInstance.agda.replaced @ 0:3dba680da508

init-test
author soto
date Tue, 08 Dec 2020 19:06:49 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3dba680da508 init-test
soto
parents:
diff changeset
1 _==Nat_ : Nat @$\rightarrow$@ Nat @$\rightarrow$@ Bool
3dba680da508 init-test
soto
parents:
diff changeset
2 zero ==Nat zero = true
3dba680da508 init-test
soto
parents:
diff changeset
3 (suc n) ==Nat zero = false
3dba680da508 init-test
soto
parents:
diff changeset
4 zero ==Nat (suc m) = false
3dba680da508 init-test
soto
parents:
diff changeset
5 (suc n) ==Nat (suc m) = n ==Nat m
3dba680da508 init-test
soto
parents:
diff changeset
6
3dba680da508 init-test
soto
parents:
diff changeset
7 instance
3dba680da508 init-test
soto
parents:
diff changeset
8 natHas== : Eq Nat
3dba680da508 init-test
soto
parents:
diff changeset
9 natHas== = record { _==_ = _==Nat_}