Mercurial > hg > Papers > 2021 > soto-prosym
annotate Paper/src/agda-term2.agda.replaced @ 0:c59202657321
init
author | soto <soto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 02 Nov 2021 06:55:58 +0900 |
parents | |
children | 339fb67b4375 |
rev | line source |
---|---|
0 | 1 +-comm : (x y : @$\mathbb{N}$@) @$\rightarrow$@ x + y @$\equiv$@ y + x |
2 +-comm zero y rewrite (+zero {y}) = refl | |
3 +-comm (suc x) y = let open @$\equiv$@-Reasoning in | |
4 begin | |
5 (suc x) + y @$\equiv$@@$\langle$@@$\rangle$@ | |
6 suc (x + y) @$\equiv$@@$\langle$@ cong suc (+-comm x y) @$\rangle$@ | |
7 suc (y + x) @$\equiv$@@$\langle$@ ?0 @$\rangle$@ | |
8 ?1 @$\blacksquare$@ | |
9 | |
10 -- ?0 : suc (y + x) @$\equiv$@ y + suc x | |
11 -- ?1 : y + suc x |