annotate paper/src/NatAddSym.agda.replaced @ 14:a63df15c9afc default tip

DONE
author soto <soto@cr.ie.u-ryukyu.ac.jp>
date Mon, 15 Feb 2021 23:36:39 +0900
parents 959f4b34d6f4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
1 open import Relation.Binary.PropositionalEquality
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
2 open import nat
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
3 open import nat_add
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
4 open @$\equiv$@-Reasoning
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
5
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
6 module nat_add_sym where
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
7
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
8 addSym : (n m : Nat) @$\rightarrow$@ n + m @$\equiv$@ m + n
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
9 addSym O O = refl
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
10 addSym O (S m) = cong S (addSym O m)
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
11 addSym (S n) O = cong S (addSym n O)
959f4b34d6f4 add final thesis
soto
parents:
diff changeset
12 addSym (S n) (S m) = {!!} -- 後述