lemma
proved
tactic proof
trivial_intersection_pow
show as:
view Lean formalization →
formal statement (Lean)
11lemma trivial_intersection_pow {G : Type*} [Group G] {g : G}
12 (h8 : g ^ 8 = 1) (h45 : g ^ 45 = 1) : g = 1 := by
proof body
Tactic-mode proof.
13 have h8d : orderOf g ∣ 8 := orderOf_dvd_of_pow_eq_one h8
14 have h45d : orderOf g ∣ 45 := orderOf_dvd_of_pow_eq_one h45
15 have hgcd : orderOf g ∣ Nat.gcd 8 45 := Nat.dvd_gcd h8d h45d
16 have hone : orderOf g ∣ 1 := by simpa using hgcd
17 have h1 : orderOf g = 1 := Nat.dvd_one.mp hone
18 exact (orderOf_eq_one_iff.mp h1)
19
20end GroupView
21end Gap45
22end IndisputableMonolith