annotate paper/src/AgdaElem.agda.replaced @ 4:b5fffa8ae875

fix chapter hoare
author ryokka
date Wed, 29 Jan 2020 22:36:17 +0900
parents c7acb9211784
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
b5fffa8ae875 fix chapter hoare
ryokka
parents: 2
diff changeset
1 elem : {A : Set} {{eqA : Eq A}} @$\rightarrow$@ A @$\rightarrow$@ List A @$\rightarrow$@ Bool
2
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
2 elem {{eqA}} x (y @$\text{::}$@ xs) = (Eq._==_ eqA x y) || (elem {{eqA}} x xs)
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
3 elem x [] = false