File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import Game.Levels.Group.L05_CombinedInv
66import Game.Levels.Group.L06_CombinedInv2
77import Game.Levels.Group.L07_InvId
88import Game.Levels.Group.L08_InvInv
9+ import Game.Levels.Group.L09_InvInj
910
1011
1112World "Group"
Original file line number Diff line number Diff line change 1+ import Game.Levels.Group.L07_InvId
2+
3+ World "Group"
4+ Level 9
5+
6+ Title "Inverse is Injective"
7+
8+ namespace MyAlgebra
9+
10+ Introduction "
11+ Since the inverse of an inverse to be the original element it follows that if two elements have the same inverse, they must be equal.
12+ "
13+
14+ /--
15+ `inv_inj` is a proof that the inverse is injective.
16+ -/
17+ TheoremDoc MyAlgebra.inv_inv as "inv_inj" in "Group"
18+ @[to_additive]
19+ Statement inv_inj (a b : G) [Group G] : a⁻¹ = b⁻¹ ↔ a = b := by
20+ apply Iff.intro
21+ · intro h
22+ calc a = a := by rfl
23+ _ = a * 1 := by rw [mul_one]
24+ _ = a * (b⁻¹ * b) := by rw [inv_mul]
25+ _ = (a * b⁻¹) * b := by rw [mul_assoc]
26+ _ = (a * a⁻¹) * b := by rw [← h]
27+ _ = 1 * b := by rw [mul_inv]
28+ _ = b := by rw [one_mul]
29+ · intro h
30+ rw [h]
31+
32+ Conclusion "Congrats!"
You can’t perform that action at this time.
0 commit comments