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.Basic

40 declarations. Mathlib docs · Source

def rootsOfUnity E1 #

ℕ → (M : Type u_7) → [inst : CommMonoid M] → Subgroup Mˣ

rootsOfUnity k M is the subgroup of elements m : Mˣ that satisfy m ^ k = 1.

theorem mem_rootsOfUnity E0 #

∀ {M : Type u_1} [inst : CommMonoid M] (k : ℕ) (ζ : Mˣ), ζ ∈ rootsOfUnity k M ↔ ζ ^ k = 1

theorem rootsOfUnity_eq_ker E1 #

∀ {M : Type u_1} [inst : CommMonoid M] {k : ℕ}, rootsOfUnity k M = (powMonoidHom k).ker

theorem ker_zpowGroupHom_eq_rootsOfUnity E1 #

∀ {M : Type u_1} [inst : CommMonoid M] {k : ℤ}, (zpowGroupHom k).ker = rootsOfUnity k.natAbs M

theorem mem_rootsOfUnity' E0 #

∀ {M : Type u_1} [inst : CommMonoid M] (k : ℕ) (ζ : Mˣ), ζ ∈ rootsOfUnity k M ↔ ↑ζ ^ k = 1

A variant of mem_rootsOfUnity using ζ : Mˣ.

theorem rootsOfUnity_one E0 #

∀ (M : Type u_7) [inst : CommMonoid M], rootsOfUnity 1 M = ⊥

theorem rootsOfUnity_zero E0 #

∀ (M : Type u_7) [inst : CommMonoid M], rootsOfUnity 0 M = ⊤

theorem rootsOfUnity.coe_injective E0 #

∀ {M : Type u_1} [inst : CommMonoid M] {n : ℕ}, Function.Injective fun x ↦ ↑↑x

def rootsOfUnity.mkOfPowEq E1 #

{M : Type u_1} → [inst : CommMonoid M] → (ζ : M) → {n : ℕ} → [NeZero n] → ζ ^ n = 1 → ↥(rootsOfUnity n M)

Make an element of rootsOfUnity from a member of the base ring, and a proof that it has a positive power equal to one.

theorem rootsOfUnity.val_mkOfPowEq_coe E0 #

∀ {M : Type u_1} [inst : CommMonoid M] (ζ : M) {n : ℕ} [inst_1 : NeZero n] (h : ζ ^ n = 1),
  ↑↑(rootsOfUnity.mkOfPowEq ζ h) = ζ

theorem rootsOfUnity.coe_mkOfPowEq E0 #

∀ {M : Type u_1} [inst : CommMonoid M] {ζ : M} {n : ℕ} [inst_1 : NeZero n] (h : ζ ^ n = 1),
  ↑↑(rootsOfUnity.mkOfPowEq ζ h) = ζ

theorem rootsOfUnity_le_of_dvd E1 #

∀ {M : Type u_1} [inst : CommMonoid M] {k l : ℕ}, k ∣ l → rootsOfUnity k M ≤ rootsOfUnity l M

theorem map_rootsOfUnity E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : CommMonoid M] [inst_1 : CommMonoid N] (f : Mˣ →* Nˣ) (k : ℕ),
  Subgroup.map f (rootsOfUnity k M) ≤ rootsOfUnity k N

instance instSubsingletonSubtypeUnitsMemSubgroupRootsOfUnityOfNatNat E0 #

∀ {M : Type u_1} [inst : CommMonoid M], Subsingleton ↥(rootsOfUnity 1 M)

theorem rootsOfUnity_inf_rootsOfUnity E1 #

∀ {M : Type u_1} [inst : CommMonoid M] {m n : ℕ}, rootsOfUnity m M ⊓ rootsOfUnity n M = rootsOfUnity (m.gcd n) M

theorem disjoint_rootsOfUnity_of_coprime E1 #

∀ {M : Type u_1} [inst : CommMonoid M] {m n : ℕ}, m.Coprime n → Disjoint (rootsOfUnity m M) (rootsOfUnity n M)

theorem rootsOfUnity.coe_pow E0 #

∀ {R : Type u_4} {k : ℕ} [inst : CommMonoid R] (ζ : ↥(rootsOfUnity k R)) (m : ℕ), ↑↑(ζ ^ m) = ↑↑ζ ^ m

def rootsOfUnityUnitsMulEquiv E1 #

(M : Type u_7) → [inst : CommMonoid M] → (n : ℕ) → ↥(rootsOfUnity n Mˣ) ≃* ↥(rootsOfUnity n M)

The canonical isomorphism from the nth roots of unity in Mˣ to the nth roots of unity in M.

def restrictRootsOfUnity E1 #

{R : Type u_4} →
  {S : Type u_5} →
    {F : Type u_6} →
      [inst : CommMonoid R] →
        [inst_1 : CommMonoid S] →
          [inst_2 : FunLike F R S] → [MonoidHomClass F R S] → F → (n : ℕ) → ↥(rootsOfUnity n R) →* ↥(rootsOfUnity n S)

Restrict a ring homomorphism to the nth roots of unity.

theorem restrictRootsOfUnity_coe_apply E0 #

∀ {R : Type u_4} {S : Type u_5} {F : Type u_6} {k : ℕ} [inst : CommMonoid R] [inst_1 : CommMonoid S]
  [inst_2 : FunLike F R S] [inst_3 : MonoidHomClass F R S] (σ : F) (ζ : ↥(rootsOfUnity k R)),
  ↑↑((restrictRootsOfUnity σ k) ζ) = σ ↑↑ζ

def MulEquiv.restrictRootsOfUnity E1 #

{R : Type u_4} →
  {S : Type u_5} →
    [inst : CommMonoid R] → [inst_1 : CommMonoid S] → R ≃* S → (n : ℕ) → ↥(rootsOfUnity n R) ≃* ↥(rootsOfUnity n S)

Restrict a monoid isomorphism to the nth roots of unity.

theorem MulEquiv.restrictRootsOfUnity_coe_apply E0 #

∀ {R : Type u_4} {S : Type u_5} {k : ℕ} [inst : CommMonoid R] [inst_1 : CommMonoid S] (σ : R ≃* S)
  (ζ : ↥(rootsOfUnity k R)), ↑↑((σ.restrictRootsOfUnity k) ζ) = σ ↑↑ζ

theorem MulEquiv.restrictRootsOfUnity_symm E0 #

∀ {R : Type u_4} {S : Type u_5} {k : ℕ} [inst : CommMonoid R] [inst_1 : CommMonoid S] (σ : R ≃* S),
  (σ.restrictRootsOfUnity k).symm = σ.symm.restrictRootsOfUnity k

theorem Units.val_set_image_rootsOfUnity E0 #

∀ {R : Type u_4} {k : ℕ} [inst : CommMonoid R] [NeZero k], Units.val '' ↑(rootsOfUnity k R) = {z | z ^ k = 1}

theorem Units.val_set_image_rootsOfUnity_one E0 #

∀ {R : Type u_4} [inst : CommMonoid R], Units.val '' ↑(rootsOfUnity 1 R) = {1}

theorem Units.val_set_image_rootsOfUnity_two E0 #

∀ {R : Type u_4} [inst : CommRing R] [NoZeroDivisors R], Units.val '' ↑(rootsOfUnity 2 R) = {1, -1}

theorem mem_rootsOfUnity_iff_isRoot E0 #

∀ {R : Type u_4} [inst : CommRing R] (k : ℕ) (ζ : Rˣ), ζ ∈ rootsOfUnity k R ↔ (Polynomial.X ^ k - 1).IsRoot ↑ζ

theorem mem_rootsOfUnity_iff_mem_nthRoots E0 #

∀ {R : Type u_4} {k : ℕ} [NeZero k] [inst : CommRing R] [inst_1 : IsDomain R] {ζ : Rˣ},
  ζ ∈ rootsOfUnity k R ↔ ↑ζ ∈ Polynomial.nthRoots k 1

def rootsOfUnityEquivNthRoots E1 #

(R : Type u_4) →
  (k : ℕ) →
    [NeZero k] →
      [inst : CommRing R] → [inst_1 : IsDomain R] → ↥(rootsOfUnity k R) ≃ { x // x ∈ Polynomial.nthRoots k 1 }

Equivalence between the k-th roots of unity in R and the k-th roots of 1.

This is implemented as equivalence of subtypes, because rootsOfUnity is a subgroup of the group of units, whereas nthRoots is a multiset.

theorem rootsOfUnityEquivNthRoots_apply E0 #

∀ {R : Type u_4} {k : ℕ} [inst : NeZero k] [inst_1 : CommRing R] [inst_2 : IsDomain R] (x : ↥(rootsOfUnity k R)),
  ↑((rootsOfUnityEquivNthRoots R k) x) = ↑↑x

theorem rootsOfUnityEquivNthRoots_symm_apply E0 #

∀ {R : Type u_4} {k : ℕ} [inst : NeZero k] [inst_1 : CommRing R] [inst_2 : IsDomain R]
  (x : { x // x ∈ Polynomial.nthRoots k 1 }), ↑↑((rootsOfUnityEquivNthRoots R k).symm x) = ↑x

instance instFiniteSubtypeUnitsMemSubgroupRootsOfUnity E0 #

∀ (R : Type u_4) (k : ℕ) [NeZero k] [inst : CommRing R] [IsDomain R], Finite ↥(rootsOfUnity k R)

instance rootsOfUnity.isCyclic E0 #

∀ (R : Type u_4) (k : ℕ) [NeZero k] [inst : CommRing R] [IsDomain R], IsCyclic ↥(rootsOfUnity k R)

theorem card_rootsOfUnity E1 #

∀ (R : Type u_4) (k : ℕ) [NeZero k] [inst : CommRing R] [IsDomain R], Nat.card ↥(rootsOfUnity k R) ≤ k

theorem map_rootsOfUnity_eq_pow_self E0 #

∀ {R : Type u_4} {F : Type u_6} {k : ℕ} [NeZero k] [inst : CommRing R] [IsDomain R] [inst_2 : FunLike F R R]
  [MonoidHomClass F R R] (σ : F) (ζ : ↥(rootsOfUnity k R)), ∃ m, σ ↑↑ζ = ↑↑ζ ^ m

instance instFiniteMonoidHomUnits E0 #

∀ {R : Type u_4} [inst : CommRing R] [IsDomain R] {L : Type u_7} [inst_2 : LeftCancelMonoid L] [Finite L],
  Finite (L →* Rˣ)

theorem mem_rootsOfUnity_prime_pow_mul_iff E0 #

∀ (R : Type u_4) [inst : CommRing R] [IsReduced R] (p k m : ℕ) [ExpChar R p] {ζ : Rˣ},
  ζ ∈ rootsOfUnity (p ^ k * m) R ↔ ζ ∈ rootsOfUnity m R

theorem mem_rootsOfUnity_prime_pow_mul_iff' E0 #

∀ (R : Type u_4) [inst : CommRing R] [IsReduced R] (p k m : ℕ) [ExpChar R p] {ζ : Rˣ},
  ζ ^ (p ^ k * m) = 1 ↔ ζ ∈ rootsOfUnity m R

A variant of mem_rootsOfUnity_prime_pow_mul_iff in terms of ζ ^ _

def IsCyclic.monoidHomMulEquivRootsOfUnityOfGenerator E1 #

{G : Type u_7} →
  [inst : CommGroup G] →
    {g : G} →
      (∀ (x : G), x ∈ Subgroup.zpowers g) →
        (G' : Type u_8) → [inst_1 : CommGroup G'] → (G →* G') ≃* ↥(rootsOfUnity (Nat.card G) G')

The isomorphism from the group of group homomorphisms from a finite cyclic group G of order n into another group G' to the group of nth roots of unity in G' determined by a generator g of G. It sends φ : G →* G' to φ g.

theorem IsCyclic.monoidHom_mulEquiv_rootsOfUnity E1 #

∀ (G : Type u_7) [inst : CommGroup G] [IsCyclic G] (G' : Type u_8) [inst_2 : CommGroup G'],
  Nonempty ((G →* G') ≃* ↥(rootsOfUnity (Nat.card G) G'))

The group of group homomorphisms from a finite cyclic group G of order n into another group G' is (noncanonically) isomorphic to the group of nth roots of unity in G'.