Created
April 13, 2014 16:38
-
-
Save KeenS/10591540 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 Arith. | |
Goal forall n m p q : nat, (n + m) + (p + q) = (n + p) + (m + q). | |
Proof. | |
intros. | |
rewrite (plus_assoc (n + m) p q). | |
rewrite (plus_assoc (n + p) m q). | |
rewrite <- (plus_assoc n m p). | |
rewrite <- (plus_assoc n p m). | |
rewrite (plus_comm m p). | |
reflexivity. | |
Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment