Skip to content

Instantly share code, notes, and snippets.

@Fuco1
Created January 6, 2016 20:20
Show Gist options
  • Save Fuco1/4532228923c0249faecf to your computer and use it in GitHub Desktop.
Save Fuco1/4532228923c0249faecf to your computer and use it in GitHub Desktop.
Groups
Variable G : Set.
Variable e : G.
Variable inv : G -> G.
Variable mult : G -> G -> G.
Infix "*" := mult.
Axiom left_id : forall x : G, e * x = x.
Axiom left_inv : forall x : G, inv x * x = e.
Axiom assoc : forall x y z : G, x * (y * z) = (x * y) * z.
Theorem right_id : forall x : G, x * e = x.
Proof.
intros x.
assert (inv x * (x * e) = inv x * x) as H.
rewrite assoc.
rewrite left_inv.
apply left_id.
apply left_cancel in H.
exact H.
Qed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment