Skip to content

Commit

Permalink
feat(group_theory/order_of_element): order_of_eq_prime (#2604)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHughes24 committed May 5, 2020
1 parent 7a367f3 commit 0c1b60b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/group_theory/order_of_element.lean
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ by rw [order_eq_card_gpowers, fintype.card_eq_one_iff];
@[simp] lemma order_of_eq_one_iff : order_of a = 1 ↔ a = 1 :=
⟨λ h, by conv { to_lhs, rw [← pow_one a, ← h, pow_order_of_eq_one] }, λ h, by simp [h]⟩

lemma order_of_eq_prime {p : ℕ} [hp : fact p.prime]
(hg : a^p = 1) (hg1 : a ≠ 1) : order_of a = p :=
(hp.2 _ (order_of_dvd_of_pow_eq_one hg)).resolve_left (mt order_of_eq_one_iff.1 hg1)

section classical
open_locale classical
open quotient_group
Expand Down

0 comments on commit 0c1b60b

Please sign in to comment.