comparison paper/src/zero.agda.replaced @ 4:b5fffa8ae875

fix chapter hoare
author ryokka
date Wed, 29 Jan 2020 22:36:17 +0900
parents c7acb9211784
children e8655e0264b8
comparison
equal deleted inserted replaced
3:a6f371a5d33d 4:b5fffa8ae875
1 +zero : { y : @$\mathbb{N}$@ } → y + zero @$\equiv$@ y 1 +zero : { y : @$\mathbb{N}$@ } @$\rightarrow$@ y + zero @$\equiv$@ y
2 +zero {zero} = refl 2 +zero {zero} = refl
3 +zero {suc y} = cong ( @$\lambda$@ x → suc x ) ( +zero {y} ) 3 +zero {suc y} = cong ( @$\lambda$@ x @$\rightarrow$@ suc x ) ( +zero {y} )