Created
May 4, 2014 14:01
-
-
Save autotaker/701f8d22c2981642b9e9 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
(* Q13 *) | |
Inductive pos : Set := | |
| S0 : pos | |
| S : pos -> pos. | |
Fixpoint plus(n m:pos) : pos := | |
match n with | |
| S0 => S m | |
| S n => S (plus n m) | |
end. | |
Infix "+" := plus. | |
Theorem plus_assoc : forall n m p : pos, n + (m + p) = (n + m) + p. | |
Proof. | |
intros. | |
induction n. | |
simpl. | |
reflexivity. | |
simpl. | |
f_equal. | |
apply IHn. | |
Qed. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment