Skip to content

Commit

Permalink
feat(ring_theory/roots_of_unity): turn is_primitive_root into a mem…
Browse files Browse the repository at this point in the history
…ber of `roots_of_unity` (#11739)

from flt-regular



Co-authored-by: Eric Rodriguez <37984851+ericrbg@users.noreply.github.com>
  • Loading branch information
ericrbg and ericrbg committed Jan 31, 2022
1 parent 50cdb95 commit 8a67cf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ring_theory/roots_of_unity.lean
Expand Up @@ -229,6 +229,10 @@ structure is_primitive_root (ζ : M) (k : ℕ) : Prop :=
(pow_eq_one : ζ ^ (k : ℕ) = 1)
(dvd_of_pow_eq_one : ∀ l : ℕ, ζ ^ l = 1 → k ∣ l)

/-- Turn a primitive root μ into a member of the `roots_of_unity` subgroup. -/
@[simps] def is_primitive_root.to_roots_of_unity {μ : M} {n : ℕ+} (h : is_primitive_root μ n) :
roots_of_unity n M := roots_of_unity.mk_of_pow_eq μ h.pow_eq_one

section primitive_roots
variables {k : ℕ}

Expand Down

0 comments on commit 8a67cf5

Please sign in to comment.