The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V11. Fields and Galois theory

Mathlib.RingTheory.RootsOfUnity.EnoughRootsOfUnity

14 declarations and 1 deprecated aliases. Mathlib docs · Source

Commutative monoids with enough roots of unity

We define a typeclass HasEnoughRootsOfUnity M n for a commutative monoid M and a natural number n that asserts that M contains a primitive nth root of unity and that the group of nth roots of unity in M is cyclic. Such monoids are suitable targets for homomorphisms from groups of exponent (dividing) n; for example, the homomorphisms can then be used to separate elements of the source group.

class HasEnoughRootsOfUnity E1 #

(M : Type u_1) → [CommMonoid M] → ℕ → Prop

This is a type class recording that a commutative monoid M contains primitive nth roots of unity and such that the group of nth roots of unity is cyclic.

Such monoids are suitable targets in the context of duality statements for groups of exponent n.

ctor HasEnoughRootsOfUnity.mk E0 #

∀ {M : Type u_1} [inst : CommMonoid M] {n : ℕ},
  (∃ m, IsPrimitiveRoot m n) → IsCyclic ↥(rootsOfUnity n M) → HasEnoughRootsOfUnity M n

theorem HasEnoughRootsOfUnity.prim E1 #

∀ {M : Type u_1} {inst : CommMonoid M} {n : ℕ} [self : HasEnoughRootsOfUnity M n], ∃ m, IsPrimitiveRoot m n

theorem HasEnoughRootsOfUnity.cyc E1 #

∀ {M : Type u_1} {inst : CommMonoid M} {n : ℕ} [self : HasEnoughRootsOfUnity M n], IsCyclic ↥(rootsOfUnity n M)

theorem HasEnoughRootsOfUnity.exists_isPrimitiveRoot E1 #

∀ (M : Type u_1) [inst : CommMonoid M] (n : ℕ) [HasEnoughRootsOfUnity M n], ∃ ζ, IsPrimitiveRoot ζ n

instance HasEnoughRootsOfUnity.rootsOfUnity_isCyclic E0 #

∀ (M : Type u_1) [inst : CommMonoid M] (n : ℕ) [HasEnoughRootsOfUnity M n], IsCyclic ↥(rootsOfUnity n M)

theorem HasEnoughRootsOfUnity.of_dvd E1 #

∀ (M : Type u_1) [inst : CommMonoid M] {m n : ℕ} [NeZero n],
  m ∣ n → ∀ [HasEnoughRootsOfUnity M n], HasEnoughRootsOfUnity M m

If HasEnoughRootsOfUnity M n and m ∣ n, then also HasEnoughRootsOfUnity M m.

instance HasEnoughRootsOfUnity.finite_rootsOfUnity E0 #

∀ (M : Type u_1) [inst : CommMonoid M] (n : ℕ) [NeZero n] [HasEnoughRootsOfUnity M n], Finite ↥(rootsOfUnity n M)

If M satisfies HasEnoughRootsOfUnity, then the group of nth roots of unity in M is finite.

theorem HasEnoughRootsOfUnity.natCard_rootsOfUnity E1 #

∀ (M : Type u_1) [inst : CommMonoid M] (n : ℕ) [NeZero n] [HasEnoughRootsOfUnity M n], Nat.card ↥(rootsOfUnity n M) = n

If M satisfies HasEnoughRootsOfUnity, then the group of nth roots of unity in M (is cyclic and) has order n.

theorem HasEnoughRootsOfUnity.of_card_le E1 #

∀ {R : Type u_1} [inst : CommRing R] [IsDomain R] {n : ℕ} [NeZero n],
  n ≤ Nat.card ↥(rootsOfUnity n R) → HasEnoughRootsOfUnity R n

theorem MulEquiv.hasEnoughRootsOfUnity E1 #

∀ {n : ℕ} [NeZero n] {M : Type u_1} {N : Type u_2} [inst : CommMonoid M] [inst_1 : CommMonoid N]
  [hm : HasEnoughRootsOfUnity M n] (e : ↥(rootsOfUnity n M) ≃* ↥(rootsOfUnity n N)), HasEnoughRootsOfUnity N n

theorem IsCyclic.monoidHom_equiv_self E1 #

∀ (G : Type u_1) (M : Type u_2) [inst : CommGroup G] [Finite G] [IsCyclic G] [inst_3 : CommMonoid M]
  [HasEnoughRootsOfUnity M (Nat.card G)], Nonempty ((G →* Mˣ) ≃* G)

The group of group homomorphisms from a finite cyclic group G of order n into the group of units of a ring M with all roots of unity is isomorphic to G

instance instHasEnoughRootsOfUnityOfNatNat E0 #

∀ {M : Type u_1} [inst : CommMonoid M], HasEnoughRootsOfUnity M 1

instance instFiniteMonoidHomUnitsOfHasEnoughRootsOfUnityExponent E0 #

∀ {G : Type u_1} {M : Type u_2} [inst : Group G] [Finite G] [inst_2 : CommMonoid M]
  [HasEnoughRootsOfUnity M (Monoid.exponent G)], Finite (G →* Mˣ)

Deprecated aliases

NameNew nameSince
HasEnoughRootsOfUnity.exists_primitiveRootHasEnoughRootsOfUnity.exists_isPrimitiveRoot2026-09-28