-
-
Save mzp/c02f89d52b861402f74e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* compile with Coq 8.4pl2 *) | |
Fixpoint evenb (n:nat) : bool := | |
match n with | |
| O => true | |
| S O => false | |
| S (S n') => evenb n' | |
end. | |
Definition negb (b:bool) : bool := | |
match b with | |
| true => false | |
| false => true | |
end. | |
Definition oddb (n:nat) : bool := negb (evenb n). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment