annotate paper/src/NatAddSym.agda @ 144:060202b21724 default tip

Bookbinding
author atton <atton@cr.ie.u-ryukyu.ac.jp>
date Mon, 27 Feb 2017 20:29:43 +0900
parents 10a550bf7e4a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
55
70bea06ebdf3 Add reasoning
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 open import Relation.Binary.PropositionalEquality
70bea06ebdf3 Add reasoning
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 open import nat
70bea06ebdf3 Add reasoning
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 open import nat_add
70bea06ebdf3 Add reasoning
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 open ≡-Reasoning
70bea06ebdf3 Add reasoning
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
70bea06ebdf3 Add reasoning
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 module nat_add_sym where
70bea06ebdf3 Add reasoning
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
70bea06ebdf3 Add reasoning
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 addSym : (n m : Nat) -> n + m ≡ m + n
70bea06ebdf3 Add reasoning
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 addSym O O = refl
70bea06ebdf3 Add reasoning
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 addSym O (S m) = cong S (addSym O m)
64
10a550bf7e4a Mini fixes with ryokka-san
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
11 addSym (S n) O = cong S (addSym n O)
10a550bf7e4a Mini fixes with ryokka-san
atton <atton@cr.ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
12 addSym (S n) (S m) = {!!} -- 後述