Created
April 11, 2017 11:42
-
-
Save MikeMKH/b44fa4dce13cd2790c2873ae480c6945 to your computer and use it in GitHub Desktop.
Simple proofs using Simplification in Coq, taken from Proof by Simplification section of https://www.seas.upenn.edu/~cis500/current/sf/Basics.html
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
| (* taken from https://www.seas.upenn.edu/~cis500/current/sf/Basics.html *) | |
| Theorem plus_0_l : forall n : nat, 0 + n = n. | |
| Proof. | |
| intros. | |
| simpl. | |
| reflexivity. | |
| Qed. | |
| Theorem plus_1_l : forall n : nat, 1 + n = S n. | |
| Proof. | |
| intros. | |
| simpl. | |
| reflexivity. | |
| Qed. | |
| Theorem mult_0_l : forall n : nat, 0 * n = 0. | |
| Proof. | |
| intros. | |
| simpl. | |
| reflexivity. | |
| Qed. |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note reflexivity in Coq is powerful enough that simplification is not needed.