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

12 declarations and 1 deprecated aliases. Mathlib docs · Source

Cyclotomic units.

We gather miscellaneous results about units given by sums of powers of roots of unit, the so-called cyclotomic units.

Main results

  • IsPrimitiveRoot.associated_sub_one_pow_sub_one_of_coprime : given an n-th primitive root of unity ζ, we have that ζ - 1 and ζ ^ j - 1 are associated for all j coprime with n.
  • IsPrimitiveRoot.associated_pow_sub_one_pow_of_coprime : given an n-th primitive root of unity ζ, we have that ζ ^ i - 1 and ζ ^ j - 1 are associated for all i and j coprime with n.
  • IsPrimitiveRoot.associated_pow_add_sub_sub_one : given an n-th primitive root of unity ζ, where 2 ≤ n, we have that ζ - 1 and ζ ^ (i + j) - ζ ^ i are associated for all and j coprime with n and all i.

Implementation notes

We sometimes state series of results of the form a = u * b, IsUnit u and Associated a b. Often, Associated a b is everything one needs, and it is more convenient to use, we include the other version for completeness.

theorem sub_one_dvd_natCast_of_pow_eq_one E1 #

∀ {n : ℕ} {A : Type u_1} {ζ : A} [inst : CommRing A] [IsDomain A], ζ ^ n = 1 → ζ ≠ 1 → ζ - 1 ∣ ↑n

If ζ ^ n = 1 and ζ ≠ 1, then ζ - 1 divides n. This does not require ζ to be a primitive root of unity, only a root of unity different from 1.

theorem IsPrimitiveRoot.associated_sub_one_pow_sub_one_of_coprime E3 #

∀ {n j : ℕ} {A : Type u_1} {ζ : A} [inst : CommRing A] [IsDomain A],
  IsPrimitiveRoot ζ n → j.Coprime n → Associated (ζ - 1) (ζ ^ j - 1)

Given an n-th primitive root of unity ζ, we have that ζ - 1 and ζ ^ j - 1 are associated for all j coprime with n. pow_sub_one_mul_geom_sum_eq_pow_sub_one_mul_geom_sum gives an explicit formula for the unit.

theorem IsPrimitiveRoot.associated_pow_sub_one_pow_of_coprime E3 #

∀ {n i j : ℕ} {A : Type u_1} {ζ : A} [inst : CommRing A] [IsDomain A],
  IsPrimitiveRoot ζ n → i.Coprime n → j.Coprime n → Associated (ζ ^ j - 1) (ζ ^ i - 1)

Given an n-th primitive root of unity ζ, we have that ζ ^ j - 1 and ζ ^ i - 1 are associated for all i and j coprime with n.

theorem IsPrimitiveRoot.associated_sub_one_map_sub_one E1 #

∀ {A : Type u_1} {ζ : A} [inst : CommRing A] [IsDomain A] {R : Type u_2} [inst_2 : CommRing R] [inst_3 : Algebra R A]
  {n : ℕ} [NeZero n], IsPrimitiveRoot ζ n → ∀ (σ : A ≃ₐ[R] A), Associated (ζ - 1) (σ (ζ - 1))

Given an n-th primitive root of unity ζ, we have that ζ - 1 is associated to any of its conjugate.

theorem IsPrimitiveRoot.associated_map_sub_one_map_sub_one E1 #

∀ {A : Type u_1} {ζ : A} [inst : CommRing A] [IsDomain A] {R : Type u_2} [inst_2 : CommRing R] [inst_3 : Algebra R A]
  {n : ℕ} [NeZero n], IsPrimitiveRoot ζ n → ∀ (σ τ : A ≃ₐ[R] A), Associated (σ (ζ - 1)) (τ (ζ - 1))

Given an n-th primitive root of unity ζ, we have that two conjugates of ζ - 1 are associated.

theorem IsPrimitiveRoot.geom_sum_isUnit E1 #

∀ {n j : ℕ} {A : Type u_1} {ζ : A} [inst : CommRing A] [IsDomain A],
  IsPrimitiveRoot ζ n → 2 ≤ n → j.Coprime n → IsUnit (∑ i ∈ Finset.range j, ζ ^ i)

Given an n-th primitive root of unity ζ, where 2 ≤ n, we have that ∑ i ∈ range j, ζ ^ i is a unit for all j coprime with n. This is the unit given by associated_pow_sub_one_pow_of_coprime (see pow_sub_one_mul_geom_sum_eq_pow_sub_one_mul_geom_sum).

theorem IsPrimitiveRoot.geom_sum_isUnit' E1 #

∀ {n j : ℕ} {A : Type u_1} {ζ : A} [inst : CommRing A] [IsDomain A],
  IsPrimitiveRoot ζ n → j.Coprime n → IsUnit ↑j → IsUnit (∑ i ∈ Finset.range j, ζ ^ i)

Similar to geom_sum_isUnit, but instead of assuming 2 ≤ n we assume that j is a unit in A.

theorem IsPrimitiveRoot.pow_sub_one_eq_geom_sum_mul_geom_sum_inv_mul_pow_sub_one E1 #

∀ {n i j : ℕ} {A : Type u_1} {ζ : A} [inst : CommRing A] [inst_1 : IsDomain A] (hζ : IsPrimitiveRoot ζ n) (hn : 2 ≤ n)
  (hi : i.Coprime n) (hj : j.Coprime n), ζ ^ j - 1 = ↑⋯.unit * ↑⋯.unit⁻¹ * (ζ ^ i - 1)

theorem IsPrimitiveRoot.associated_pow_add_sub_sub_one E3 #

∀ {n j : ℕ} {A : Type u_1} {ζ : A} [inst : CommRing A] [IsDomain A],
  IsPrimitiveRoot ζ n → 2 ≤ n → ∀ (i : ℕ), j.Coprime n → Associated (ζ - 1) (ζ ^ (i + j) - ζ ^ i)

Given an n-th primitive root of unity ζ, where 2 ≤ n, we have that ζ - 1 and ζ ^ (i + j) - ζ ^ i are associated for all and j coprime with n and all i. See pow_sub_one_eq_geom_sum_mul_geom_sum_inv_mul_pow_sub_one for the explicit formula of the unit.

theorem IsPrimitiveRoot.nthRootsFinset_pairwise_associated_sub_one_sub_of_prime E1 #

∀ {p : ℕ} {A : Type u_1} {ζ : A} [inst : CommRing A] [inst_1 : IsDomain A],
  IsPrimitiveRoot ζ p →
    Nat.Prime p → (↑(Polynomial.nthRootsFinset p 1)).Pairwise fun η₁ η₂ ↦ Associated (ζ - 1) (η₁ - η₂)

If p is prime and ζ is a p-th primitive root of unity, then ζ - 1 and η₁ - η₂ are associated for all distinct p-th roots of unity η₁ and η₂.

theorem IsPrimitiveRoot.sub_one_dvd_sub E1 #

∀ {p : ℕ} {A : Type u_1} {ζ : A} [inst : CommRing A] [inst_1 : IsDomain A],
  IsPrimitiveRoot ζ p →
    Nat.Prime p →
      ∀ {η₁ : A}, η₁ ∈ Polynomial.nthRootsFinset p 1 → ∀ {η₂ : A}, η₂ ∈ Polynomial.nthRootsFinset p 1 → ζ - 1 ∣ η₁ - η₂

If p is prime and ζ is a p-th primitive root of unity, then ζ - 1 divides η₁ - η₂ for all p-th roots of unity η₁ and η₂.

theorem IsPrimitiveRoot.sub_one_dvd_natCast E1 #

∀ {n : ℕ} {A : Type u_1} {ζ : A} [inst : CommRing A] [IsDomain A], IsPrimitiveRoot ζ n → 1 < n → ζ - 1 ∣ ↑n

Given an n-th primitive root of unity ζ, where 1 < n, we have that ζ - 1 divides n. In particular, if ζ is a p-th primitive root of unity with p prime, then ζ - 1 divides p.

Deprecated aliases

NameNew nameSince
IsPrimitiveRoot.ntRootsFinset_pairwise_associated_sub_one_sub_of_primeIsPrimitiveRoot.nthRootsFinset_pairwise_associated_sub_one_sub_of_prime2026-06-23