Created
December 20, 2014 10:49
-
-
Save srbmiy/31a74ec01b8961c4f506 to your computer and use it in GitHub Desktop.
This file contains 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
Require Import ssreflect ssrbool ssrnat. | |
Definition nand_b (b0 : bool) (b1 : bool) : bool := | |
match b0 with | |
| true => (~~ b1) | |
| false => true | |
end. | |
Lemma nand_lemma : forall (b0 b1 : bool), (nand_b b0 b1) = (~~(b0 && b1)). | |
Proof. | |
move=> b0 b1. | |
case b0. | |
simpl; reflexivity. | |
simpl; reflexivity. | |
Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment