This commit is contained in:
Michael Zhang 2021-09-18 14:44:20 -05:00
parent 3830722f67
commit bf178e1b8b
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B

View file

@ -754,7 +754,15 @@ successor of the sum of two even numbers, which is even.
Show that the sum of two odd numbers is even. Show that the sum of two odd numbers is even.
``` ```
-- Your code goes here import Data.Nat.Properties
open Data.Nat.Properties using (+-suc)
o+o≡e : ∀ {m n : }
→ odd m → odd n
→ even (m + n)
-- o+o≡e om (suc en) = suc (+-suc (o+e≡o om en))
o+o≡e om (suc en) = +-suc ?
``` ```
#### Exercise `Bin-predicates` (stretch) {name=Bin-predicates} #### Exercise `Bin-predicates` (stretch) {name=Bin-predicates}