Created
April 13, 2014 17:27
-
-
Save KeenS/10593676 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
Parameter G : Set. | |
Parameter mult : G -> G -> G. | |
Notation "x * y" := (mult x y). | |
Parameter one : G. | |
Notation "1" := one. | |
Parameter inv : G -> G. | |
Notation "/ x" := (inv x). | |
Axiom mult_assoc : forall x y z, x * (y * z) = (x * y) * z. | |
Axiom one_unit_l : forall x, 1 * x = x. | |
Axiom inv_l : forall x, /x * x = 1. | |
Lemma inv_r : forall x, x * / x = 1. | |
Proof. | |
intros. | |
rewrite <- (one_unit_l x). | |
rewrite <- (inv_l (/ x)). | |
rewrite <- (mult_assoc (/ / x) (/ x) x). | |
rewrite inv_l. | |
rewrite <- (mult_assoc (/ / x) 1 (/ (/ / x * 1))). | |
rewrite one_unit_l. | |
rewrite inv_l. | |
rewrite <- (inv_l x). | |
rewrite (mult_assoc (/ / x) (/ x) x). | |
rewrite inv_l. | |
rewrite one_unit_l. | |
rewrite inv_l. | |
rewrite inv_l. | |
reflexivity. | |
Qed. | |
Lemma one_unit_r : forall x, x * / x = 1. | |
Proof. | |
intros. | |
rewrite inv_r. | |
reflexivity. | |
Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment