The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.Polynomial.Cyclotomic.Roots
18 declarations. Mathlib docs · Source
Roots of cyclotomic polynomials.
We gather results about roots of cyclotomic polynomials. In particular we show in
Polynomial.cyclotomic_eq_minpoly that cyclotomic n R is the minimal polynomial of a primitive
root of unity.
Main results
IsPrimitiveRoot.isRoot_cyclotomic: Anyn-th primitive root of unity is a root ofcyclotomic n R.isRoot_cyclotomic_iff: ifNeZero (n : R), thenμis a root ofcyclotomic n Rif and only ifμis a primitive root of unity.Polynomial.cyclotomic_eq_minpoly:cyclotomic n ℤis the minimal polynomial of a primitiven-th root of unityμ.Polynomial.cyclotomic.irreducible:cyclotomic n ℤis irreducible.
Implementation notes
To prove Polynomial.cyclotomic.irreducible, the irreducibility of cyclotomic n ℤ, we show in
Polynomial.cyclotomic_eq_minpoly that cyclotomic n ℤ is the minimal polynomial of any n-th
primitive root of unity μ : K, where K is a field of characteristic 0.
theorem Polynomial.isRoot_of_unity_of_root_cyclotomic E1 #
∀ {R : Type u_1} [inst : CommRing R] {n : ℕ} {ζ : R} {i : ℕ},
i ∈ n.divisors → (Polynomial.cyclotomic i R).IsRoot ζ → ζ ^ n = 1
theorem isRoot_of_unity_iff E0 #
∀ {n : ℕ},
0 < n →
∀ (R : Type u_2) [inst : CommRing R] [IsDomain R] {ζ : R},
ζ ^ n = 1 ↔ ∃ i ∈ n.divisors, (Polynomial.cyclotomic i R).IsRoot ζ
theorem IsPrimitiveRoot.isRoot_cyclotomic E3 #
∀ {R : Type u_1} [inst : CommRing R] {n : ℕ} [IsDomain R],
0 < n → ∀ {μ : R}, IsPrimitiveRoot μ n → (Polynomial.cyclotomic n R).IsRoot μ
Any n-th primitive root of unity is a root of cyclotomic n R.
theorem Polynomial.isRoot_cyclotomic_iff E3 #
∀ {R : Type u_1} [inst : CommRing R] {n : ℕ} [IsDomain R] [NeZero ↑n] {μ : R},
(Polynomial.cyclotomic n R).IsRoot μ ↔ IsPrimitiveRoot μ n
theorem Polynomial.roots_cyclotomic_nodup E1 #
∀ {R : Type u_1} [inst : CommRing R] {n : ℕ} [inst_1 : IsDomain R] [NeZero ↑n], (Polynomial.cyclotomic n R).roots.Nodup
theorem Polynomial.cyclotomic.roots_to_finset_eq_primitiveRoots E1 #
∀ {R : Type u_1} [inst : CommRing R] {n : ℕ} [inst_1 : IsDomain R] [inst_2 : NeZero ↑n],
{ val := (Polynomial.cyclotomic n R).roots, nodup := ⋯ } = primitiveRoots n R
theorem Polynomial.cyclotomic.roots_eq_primitiveRoots_val E0 #
∀ {R : Type u_1} [inst : CommRing R] {n : ℕ} [inst_1 : IsDomain R] [NeZero ↑n],
(Polynomial.cyclotomic n R).roots = (primitiveRoots n R).val
theorem Polynomial.isRoot_cyclotomic_iff_charZero E1 #
∀ {n : ℕ} {R : Type u_2} [inst : CommRing R] [IsDomain R] [CharZero R] {μ : R},
0 < n → ((Polynomial.cyclotomic n R).IsRoot μ ↔ IsPrimitiveRoot μ n)
If R is of characteristic zero, then ζ is a root of cyclotomic n R if and only if it is a
primitive n-th root of unity.
theorem Polynomial.cyclotomic_injective E1 #
∀ {R : Type u_1} [inst : CommRing R] [CharZero R], Function.Injective fun n ↦ Polynomial.cyclotomic n R
Over a ring R of characteristic zero, fun n => cyclotomic n R is injective.
theorem IsPrimitiveRoot.minpoly_dvd_cyclotomic E1 #
∀ {n : ℕ} {K : Type u_2} [inst : Field K] {μ : K},
IsPrimitiveRoot μ n → 0 < n → ∀ [CharZero K], minpoly ℤ μ ∣ Polynomial.cyclotomic n ℤ
The minimal polynomial of a primitive n-th root of unity μ divides cyclotomic n ℤ.
theorem IsPrimitiveRoot.minpoly_eq_cyclotomic_of_irreducible E1 #
∀ {K : Type u_2} [inst : Field K] {R : Type u_3} [inst_1 : CommRing R] [IsDomain R] {μ : R} {n : ℕ}
[inst_3 : Algebra K R],
IsPrimitiveRoot μ n → Irreducible (Polynomial.cyclotomic n K) → ∀ [NeZero ↑n], Polynomial.cyclotomic n K = minpoly K μ
theorem Polynomial.cyclotomic_eq_minpoly E3 #
∀ {n : ℕ} {K : Type u_2} [inst : Field K] {μ : K},
IsPrimitiveRoot μ n → 0 < n → ∀ [CharZero K], Polynomial.cyclotomic n ℤ = minpoly ℤ μ
cyclotomic n ℤ is the minimal polynomial of a primitive n-th root of unity μ.
theorem Polynomial.cyclotomic_eq_minpoly_rat E1 #
∀ {n : ℕ} {K : Type u_2} [inst : Field K] {μ : K},
IsPrimitiveRoot μ n → 0 < n → ∀ [inst_1 : CharZero K], Polynomial.cyclotomic n ℚ = minpoly ℚ μ
cyclotomic n ℚ is the minimal polynomial of a primitive n-th root of unity μ.
theorem Polynomial.cyclotomic.irreducible E3 #
∀ {n : ℕ}, 0 < n → Irreducible (Polynomial.cyclotomic n ℤ)
cyclotomic n ℤ is irreducible.
theorem Polynomial.cyclotomic.irreducible_rat E1 #
∀ {n : ℕ}, 0 < n → Irreducible (Polynomial.cyclotomic n ℚ)
cyclotomic n ℚ is irreducible.
theorem Polynomial.cyclotomic.isCoprime_rat E1 #
∀ {n m : ℕ}, n ≠ m → IsCoprime (Polynomial.cyclotomic n ℚ) (Polynomial.cyclotomic m ℚ)
If n ≠ m, then (cyclotomic n ℚ) and (cyclotomic m ℚ) are coprime.
theorem IsPrimitiveRoot.sum_eq_zero_iff_forall_eq E0 #
∀ {K : Type u_1} [inst : Field K] [CharZero K] {p : ℕ} {ζ : K},
Nat.Prime p → IsPrimitiveRoot ζ p → ∀ (α : Fin p → ℚ), ∑ i, ↑(α i) * ζ ^ ↑i = 0 ↔ ∀ (i j : Fin p), α i = α j
For a prime p, a ℚ-linear combination ∑_{i < p} αᵢ ζⁱ vanishes if and only if all
coefficients αᵢ are equal. This follows from the irreducibility of the p-th cyclotomic
polynomial. See de Launey–Flannery, Algebraic Design Theory, Lemma 2.8.5.
theorem IsPrimitiveRoot.sum_eq_zero_iff_forall_eq_int E1 #
∀ {K : Type u_1} [inst : Field K] [CharZero K] {p : ℕ} {ζ : K},
Nat.Prime p → IsPrimitiveRoot ζ p → ∀ (α : Fin p → ℤ), ∑ i, ↑(α i) * ζ ^ ↑i = 0 ↔ ∀ (i j : Fin p), α i = α j
Variant of sum_eq_zero_iff_forall_eq with integer coefficients.