Created
August 9, 2020 22:28
-
-
Save lf94/e3247b3487b85b1f518f80298b108bc4 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
Theorem andb_eq_orb : | |
forall (b c : bool), | |
(andb b c = orb b c) -> | |
b = c. | |
Proof. | |
intros b c. | |
destruct b eqn:Eb. | |
- destruct c eqn:Ec. | |
+ reflexivity. | |
+ simpl. rewrite <- Eb. intros H. rewrite -> H. reflexivity. | |
- destruct c eqn:Ec. | |
+ simpl. rewrite <- Eb. intros H. rewrite -> H. reflexivity. | |
+ reflexivity. | |
Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment