The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.Algebra.Polynomial.Roots
158 declarations and 5 deprecated aliases. Mathlib docs · Source
Theory of univariate polynomials
We define the multiset of roots of a polynomial, and prove basic results about it.
Main definitions
Polynomial.roots p: The multiset containing all the roots ofp, including their multiplicities.Polynomial.rootSet p E: The set of distinct roots ofpin an algebraE.
Main statements
Polynomial.C_leadingCoeff_mul_prod_multiset_X_sub_C: If a polynomial has as many roots as its degree, it can be written as the product of its leading coefficient with∏ (X - a)wherearanges through its roots.
theorem Polynomial.rootSet.congr_simp E1 #
∀ {T : Type w} [inst : CommRing T] (p p_1 : Polynomial T),
p = p_1 →
∀ (S : Type u_1) [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S], p.rootSet S = p_1.rootSet S
theorem Polynomial.nthRootsFinset.congr_simp E1 #
∀ (n n_1 : ℕ),
n = n_1 →
∀ {R : Type u_1} (a a_1 : R),
a = a_1 →
∀ [inst : CommRing R] [inst_1 : IsDomain R], Polynomial.nthRootsFinset n a = Polynomial.nthRootsFinset n_1 a_1
theorem Polynomial.roots.congr_simp E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (p p_1 : Polynomial R), p = p_1 → p.roots = p_1.roots
theorem Polynomial.nthRoots.congr_simp E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (n n_1 : ℕ),
n = n_1 → ∀ (a a_1 : R), a = a_1 → Polynomial.nthRoots n a = Polynomial.nthRoots n_1 a_1
def Polynomial.roots E3 #
{R : Type u} → [inst : CommRing R] → [IsDomain R] → Polynomial R → Multiset R
roots p noncomputably gives a multiset containing all the roots of p,
including their multiplicities.
theorem Polynomial.roots_def E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : DecidableEq R] (p : Polynomial R)
[inst_3 : Decidable (p = 0)], p.roots = if h : p = 0 then ∅ else Classical.choose ⋯
theorem Polynomial.roots_zero E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R], Polynomial.roots 0 = 0
theorem Polynomial.card_roots E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R}, p ≠ 0 → ↑p.roots.card ≤ p.degree
theorem Polynomial.card_roots' E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (p : Polynomial R), p.roots.card ≤ p.natDegree
theorem Polynomial.card_roots_sub_C E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R} {a : R},
0 < p.degree → ↑(p - Polynomial.C a).roots.card ≤ p.degree
theorem Polynomial.card_roots_sub_C' E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R} {a : R},
0 < p.degree → (p - Polynomial.C a).roots.card ≤ p.natDegree
theorem Polynomial.count_roots E0 #
∀ {R : Type u} {a : R} [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : DecidableEq R] (p : Polynomial R),
Multiset.count a p.roots = Polynomial.rootMultiplicity a p
theorem Polynomial.mem_roots' E0 #
∀ {R : Type u} {a : R} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R}, a ∈ p.roots ↔ p ≠ 0 ∧ p.IsRoot a
theorem Polynomial.mem_roots E0 #
∀ {R : Type u} {a : R} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R}, p ≠ 0 → (a ∈ p.roots ↔ p.IsRoot a)
theorem Polynomial.ne_zero_of_mem_roots E1 #
∀ {R : Type u} {a : R} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R}, a ∈ p.roots → p ≠ 0
theorem Polynomial.isRoot_of_mem_roots E1 #
∀ {R : Type u} {a : R} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R}, a ∈ p.roots → p.IsRoot a
theorem Polynomial.roots_eq_zero_iff_not_isRoot E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R},
p ≠ 0 → (p.roots = 0 ↔ ∀ (x : R), ¬p.IsRoot x)
theorem Polynomial.roots_eq_zero_iff_eq_zero_or_not_isRoot E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R},
p.roots = 0 ↔ p = 0 ∨ ∀ (x : R), ¬p.IsRoot x
theorem Polynomial.roots_ne_zero_iff_ne_zero_and_exists_isRoot E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R}, p.roots ≠ 0 ↔ p ≠ 0 ∧ ∃ x, p.IsRoot x
theorem Polynomial.exists_isRoot_of_roots_ne_zero E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R}, p.roots ≠ 0 → ∃ x, p.IsRoot x
theorem Polynomial.roots_ne_zero_iff_exists_isRoot E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R}, p ≠ 0 → (p.roots ≠ 0 ↔ ∃ x, p.IsRoot x)
theorem Polynomial.mem_roots_map_of_injective E0 #
∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : Semiring S] {p : Polynomial S}
{f : S →+* R},
Function.Injective ⇑f → ∀ {x : R}, p ≠ 0 → (x ∈ (Polynomial.map f p).roots ↔ Polynomial.eval₂ f x p = 0)
theorem Polynomial.mem_roots_iff_aeval_eq_zero E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R} {x : R},
p ≠ 0 → (x ∈ p.roots ↔ (Polynomial.aeval x) p = 0)
theorem Polynomial.card_le_degree_of_subset_roots E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R} {Z : Finset R},
Z.val ⊆ p.roots → Z.card ≤ p.natDegree
theorem Polynomial.finite_setOfPred_isRoot E1 #
∀ {R : Type u} [inst : CommRing R] [IsDomain R] {p : Polynomial R}, p ≠ 0 → {x | p.IsRoot x}.Finite
theorem Polynomial.eventually_cofinite_not_isRoot E1 #
∀ {R : Type u} [inst : CommRing R] [IsDomain R] {p : Polynomial R}, p ≠ 0 → ∀ᶠ (x : R) in Filter.cofinite, ¬p.IsRoot x
Nonzero polynomials have no roots away from a finite set.
theorem Polynomial.eventually_eval_ne_zero_cofinite E1 #
∀ {R : Type u} [inst : CommRing R] [IsDomain R] {p : Polynomial R},
p ≠ 0 → ∀ᶠ (x : R) in Filter.cofinite, Polynomial.eval x p ≠ 0
Nonzero polynomials are nonzero away from a finite set.
theorem Polynomial.exists_max_root E1 #
∀ {R : Type u} [inst : CommRing R] [IsDomain R] [inst_2 : LinearOrder R] (p : Polynomial R),
p ≠ 0 → ∃ x₀, ∀ (x : R), p.IsRoot x → x ≤ x₀
theorem Polynomial.exists_min_root E1 #
∀ {R : Type u} [inst : CommRing R] [IsDomain R] [inst_2 : LinearOrder R] (p : Polynomial R),
p ≠ 0 → ∃ x₀, ∀ (x : R), p.IsRoot x → x₀ ≤ x
theorem Polynomial.tendstoCofinite_of_natDegree_ne_zero E1 #
∀ {R : Type} [inst : CommRing R] [IsDomain R] (p : Polynomial R),
p.natDegree ≠ 0 → Filter.TendstoCofinite fun x ↦ Polynomial.eval x p
Non-constant polynomials have finite fibres, provided the coefficients are a domain.
theorem Polynomial.roots_mul E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p q : Polynomial R},
p * q ≠ 0 → (p * q).roots = p.roots + q.roots
theorem Polynomial.roots.le_of_dvd E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p q : Polynomial R}, q ≠ 0 → p ∣ q → p.roots ≤ q.roots
theorem Polynomial.mem_roots_sub_C' E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R} {a x : R},
x ∈ (p - Polynomial.C a).roots ↔ p ≠ Polynomial.C a ∧ Polynomial.eval x p = a
theorem Polynomial.mem_roots_sub_C E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R} {a x : R},
0 < p.degree → (x ∈ (p - Polynomial.C a).roots ↔ Polynomial.eval x p = a)
theorem Polynomial.roots_X_sub_C E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (r : R), (Polynomial.X - Polynomial.C r).roots = {r}
theorem Polynomial.roots_X_add_C E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (r : R), (Polynomial.X + Polynomial.C r).roots = {-r}
theorem Polynomial.roots_X E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R], Polynomial.X.roots = {0}
theorem Polynomial.roots_C E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (x : R), (Polynomial.C x).roots = 0
theorem Polynomial.roots_one E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R], Polynomial.roots 1 = ∅
theorem Polynomial.roots_C_mul E0 #
∀ {R : Type u} {a : R} [inst : CommRing R] [inst_1 : IsDomain R] (p : Polynomial R),
a ≠ 0 → (Polynomial.C a * p).roots = p.roots
theorem Associated.roots_eq E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p q : Polynomial R}, Associated p q → p.roots = q.roots
theorem Polynomial.roots_smul_of_ne_zero E0 #
∀ {R : Type u} {a : R} [inst : CommRing R] [inst_1 : IsDomain R] (p : Polynomial R), a ≠ 0 → (a • p).roots = p.roots
theorem Polynomial.roots_neg E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (p : Polynomial R), (-p).roots = p.roots
theorem Polynomial.map_roots_comp_C_mul_X_add_C E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (p : Polynomial R) (a b : R),
IsUnit a → Multiset.map (fun x ↦ a * x + b) (p.comp (Polynomial.C a * Polynomial.X + Polynomial.C b)).roots = p.roots
theorem Polynomial.roots_comp_C_mul_X_add_C E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (p : Polynomial R) (a b : R),
IsUnit a →
(p.comp (Polynomial.C a * Polynomial.X + Polynomial.C b)).roots =
Multiset.map (fun x ↦ Ring.inverse a * (x - b)) p.roots
theorem Polynomial.roots_comp_neg_X E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (p : Polynomial R),
(p.comp (-Polynomial.X)).roots = Multiset.map (fun x ↦ -x) p.roots
theorem Polynomial.roots_C_mul_X_sub_C_of_IsUnit E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (b : R) (a : Rˣ),
(Polynomial.C ↑a * Polynomial.X - Polynomial.C b).roots = {↑a⁻¹ * b}
theorem Polynomial.roots_C_mul_X_add_C_of_IsUnit E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (b : R) (a : Rˣ),
(Polynomial.C ↑a * Polynomial.X + Polynomial.C b).roots = {-(↑a⁻¹ * b)}
theorem Polynomial.roots_list_prod E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (L : List (Polynomial R)),
0 ∉ L → L.prod.roots = (↑L).bind Polynomial.roots
theorem Polynomial.roots_multiset_prod E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (m : Multiset (Polynomial R)),
0 ∉ m → m.prod.roots = m.bind Polynomial.roots
theorem Polynomial.roots_prod E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {ι : Type u_1} (f : ι → Polynomial R) (s : Finset ι),
s.prod f ≠ 0 → (s.prod f).roots = s.val.bind fun i ↦ (f i).roots
theorem Polynomial.roots_pow E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (p : Polynomial R) (n : ℕ), (p ^ n).roots = n • p.roots
theorem Polynomial.roots_X_pow E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (n : ℕ), (Polynomial.X ^ n).roots = n • {0}
theorem Polynomial.roots_C_mul_X_pow E1 #
∀ {R : Type u} {a : R} [inst : CommRing R] [inst_1 : IsDomain R],
a ≠ 0 → ∀ (n : ℕ), (Polynomial.C a * Polynomial.X ^ n).roots = n • {0}
theorem Polynomial.roots_monomial E0 #
∀ {R : Type u} {a : R} [inst : CommRing R] [inst_1 : IsDomain R],
a ≠ 0 → ∀ (n : ℕ), ((Polynomial.monomial n) a).roots = n • {0}
theorem Polynomial.roots_prod_X_sub_C E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (s : Finset R),
(∏ a ∈ s, (Polynomial.X - Polynomial.C a)).roots = s.val
theorem Polynomial.roots_multiset_prod_X_sub_C E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (s : Multiset R),
(Multiset.map (fun a ↦ Polynomial.X - Polynomial.C a) s).prod.roots = s
theorem Polynomial.roots_ofMultiset E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (s : Multiset R), (Polynomial.ofMultiset s).roots = s
theorem Polynomial.rightInverse_ofMultiset_roots E1 #
∀ (R : Type u) [inst : CommRing R] [inst_1 : IsDomain R],
Function.RightInverse (⇑Polynomial.ofMultiset) Polynomial.roots
theorem Polynomial.ofMultiset_injective E1 #
∀ (R : Type u) [inst : CommRing R] [IsDomain R], Function.Injective ⇑Polynomial.ofMultiset
theorem Polynomial.card_roots_X_pow_sub_C E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {n : ℕ},
0 < n → ∀ (a : R), (Polynomial.X ^ n - Polynomial.C a).roots.card ≤ n
theorem Polynomial.roots_eq_of_degree_le_card_of_ne_zero E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R} {S : Finset R},
(∀ x ∈ S, Polynomial.eval x p = 0) → p.degree ≤ ↑S.card → p ≠ 0 → p.roots = S.val
theorem Polynomial.roots_eq_of_degree_eq_card E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R} {S : Finset R},
(∀ x ∈ S, Polynomial.eval x p = 0) → ↑S.card = p.degree → p.roots = S.val
theorem Polynomial.roots_eq_of_natDegree_le_card_of_ne_zero E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R} {S : Finset R},
(∀ x ∈ S, Polynomial.eval x p = 0) → p.natDegree ≤ S.card → p ≠ 0 → p.roots = S.val
def Polynomial.nthRoots E1 #
{R : Type u} → [inst : CommRing R] → [IsDomain R] → ℕ → R → Multiset R
nthRoots n a noncomputably returns the solutions to x ^ n = a.
theorem Polynomial.mem_nthRoots E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {n : ℕ},
0 < n → ∀ {a x : R}, x ∈ Polynomial.nthRoots n a ↔ x ^ n = a
theorem Polynomial.nthRoots_zero E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (r : R), Polynomial.nthRoots 0 r = 0
theorem Polynomial.nthRoots_zero_right E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : IsDomain R] (n : ℕ), Polynomial.nthRoots n 0 = Multiset.replicate n 0
theorem Polynomial.card_nthRoots E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (n : ℕ) (a : R), (Polynomial.nthRoots n a).card ≤ n
theorem Polynomial.nthRoots_two_eq_zero_iff E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {r : R}, Polynomial.nthRoots 2 r = 0 ↔ ¬IsSquare r
def Polynomial.nthRootsFinset E1 #
ℕ → {R : Type u_1} → R → [inst : CommRing R] → [IsDomain R] → Finset R
The multiset nthRoots ↑n a as a Finset. Previously nthRootsFinset n was defined to be
nthRoots n (1 : R) as a Finset. That situation can be recovered by setting a to be (1 : R)
theorem Polynomial.nthRootsFinset_def E0 #
∀ (n : ℕ) {R : Type u_1} (a : R) [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : DecidableEq R],
Polynomial.nthRootsFinset n a = (Polynomial.nthRoots n a).toFinset
theorem Polynomial.mem_nthRootsFinset E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {n : ℕ},
0 < n → ∀ (a : R) {x : R}, x ∈ Polynomial.nthRootsFinset n a ↔ x ^ n = a
theorem Polynomial.nthRootsFinset_zero E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (a : R), Polynomial.nthRootsFinset 0 a = ∅
theorem Polynomial.map_mem_nthRootsFinset E0 #
∀ {R : Type u} {n : ℕ} [inst : CommRing R] [inst_1 : IsDomain R] {S : Type u_1} {F : Type u_2} [inst_2 : CommRing S]
[inst_3 : IsDomain S] [inst_4 : FunLike F R S] [MonoidHomClass F R S] {a x : R},
x ∈ Polynomial.nthRootsFinset n a → ∀ (f : F), f x ∈ Polynomial.nthRootsFinset n (f a)
theorem Polynomial.map_mem_nthRootsFinset_one E0 #
∀ {R : Type u} {n : ℕ} [inst : CommRing R] [inst_1 : IsDomain R] {S : Type u_1} {F : Type u_2} [inst_2 : CommRing S]
[inst_3 : IsDomain S] [inst_4 : FunLike F R S] [RingHomClass F R S] {x : R},
x ∈ Polynomial.nthRootsFinset n 1 → ∀ (f : F), f x ∈ Polynomial.nthRootsFinset n 1
theorem Polynomial.mul_mem_nthRootsFinset E1 #
∀ {R : Type u} {n : ℕ} [inst : CommRing R] [inst_1 : IsDomain R] {η₁ η₂ a₁ a₂ : R},
η₁ ∈ Polynomial.nthRootsFinset n a₁ →
η₂ ∈ Polynomial.nthRootsFinset n a₂ → η₁ * η₂ ∈ Polynomial.nthRootsFinset n (a₁ * a₂)
theorem Polynomial.ne_zero_of_mem_nthRootsFinset E1 #
∀ {R : Type u} {n : ℕ} [inst : CommRing R] [inst_1 : IsDomain R] {η a : R},
a ≠ 0 → η ∈ Polynomial.nthRootsFinset n a → η ≠ 0
theorem Polynomial.one_mem_nthRootsFinset E1 #
∀ {R : Type u} {n : ℕ} [inst : CommRing R] [inst_1 : IsDomain R], 0 < n → 1 ∈ Polynomial.nthRootsFinset n 1
theorem Polynomial.nthRoots_two_one E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R], Polynomial.nthRoots 2 1 = {-1, 1}
theorem Polynomial.zero_of_eval_zero E1 #
∀ {R : Type u} [inst : CommRing R] [IsDomain R] [Infinite R] (p : Polynomial R),
(∀ (x : R), Polynomial.eval x p = 0) → p = 0
theorem Polynomial.funext E1 #
∀ {R : Type u} [inst : CommRing R] [IsDomain R] [Infinite R] {p q : Polynomial R},
(∀ (r : R), Polynomial.eval r p = Polynomial.eval r q) → p = q
abbrev Polynomial.aroots E1 #
{T : Type w} →
[inst : CommRing T] →
Polynomial T → (S : Type u_1) → [inst_1 : CommRing S] → [IsDomain S] → [Algebra T S] → Multiset S
Given a polynomial p with coefficients in a ring T and a T-algebra S, aroots p S is
the multiset of roots of p regarded as a polynomial over S.
theorem Polynomial.aroots_def E0 #
∀ {T : Type w} [inst : CommRing T] (p : Polynomial T) (S : Type u_1) [inst_1 : CommRing S] [inst_2 : IsDomain S]
[inst_3 : Algebra T S], p.aroots S = (Polynomial.map (algebraMap T S) p).roots
theorem Polynomial.mem_aroots' E0 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S]
{p : Polynomial T} {a : S}, a ∈ p.aroots S ↔ Polynomial.map (algebraMap T S) p ≠ 0 ∧ (Polynomial.aeval a) p = 0
theorem Polynomial.mem_aroots E0 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [IsDomain T] [inst_2 : CommRing S] [inst_3 : IsDomain S]
[inst_4 : Algebra T S] [Module.IsTorsionFree T S] {p : Polynomial T} {a : S},
a ∈ p.aroots S ↔ p ≠ 0 ∧ (Polynomial.aeval a) p = 0
theorem Polynomial.aroots_mul E1 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [IsDomain T] [inst_2 : CommRing S] [inst_3 : IsDomain S]
[inst_4 : Algebra T S] [Module.IsTorsionFree T S] {p q : Polynomial T},
p * q ≠ 0 → (p * q).aroots S = p.aroots S + q.aroots S
theorem Polynomial.aroots_X_sub_C E0 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S]
(r : T), (Polynomial.X - Polynomial.C r).aroots S = {(algebraMap T S) r}
theorem Polynomial.aroots_X E0 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S],
Polynomial.X.aroots S = {0}
theorem Polynomial.aroots_C E0 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S]
(a : T), (Polynomial.C a).aroots S = 0
theorem Polynomial.aroots_zero E0 #
∀ {T : Type w} [inst : CommRing T] (S : Type u_1) [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S],
Polynomial.aroots 0 S = 0
theorem Polynomial.aroots_one E0 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S],
Polynomial.aroots 1 S = 0
theorem Polynomial.aroots_neg E0 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S]
(p : Polynomial T), (-p).aroots S = p.aroots S
theorem Polynomial.aroots_C_mul E0 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [IsDomain T] [inst_2 : CommRing S] [inst_3 : IsDomain S]
[inst_4 : Algebra T S] [Module.IsTorsionFree T S] {a : T} (p : Polynomial T),
a ≠ 0 → (Polynomial.C a * p).aroots S = p.aroots S
theorem Polynomial.aroots_smul_of_ne_zero E0 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [IsDomain T] [inst_2 : CommRing S] [inst_3 : IsDomain S]
[inst_4 : Algebra T S] [Module.IsTorsionFree T S] {a : T} (p : Polynomial T), a ≠ 0 → (a • p).aroots S = p.aroots S
theorem Polynomial.aroots_pow E0 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S]
(p : Polynomial T) (n : ℕ), (p ^ n).aroots S = n • p.aroots S
theorem Polynomial.aroots_X_pow E1 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S]
(n : ℕ), (Polynomial.X ^ n).aroots S = n • {0}
theorem Polynomial.aroots_C_mul_X_pow E1 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [IsDomain T] [inst_2 : CommRing S] [inst_3 : IsDomain S]
[inst_4 : Algebra T S] [Module.IsTorsionFree T S] {a : T},
a ≠ 0 → ∀ (n : ℕ), (Polynomial.C a * Polynomial.X ^ n).aroots S = n • {0}
theorem Polynomial.aroots_monomial E0 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [IsDomain T] [inst_2 : CommRing S] [inst_3 : IsDomain S]
[inst_4 : Algebra T S] [Module.IsTorsionFree T S] {a : T},
a ≠ 0 → ∀ (n : ℕ), ((Polynomial.monomial n) a).aroots S = n • {0}
theorem Polynomial.aroots_map E0 #
∀ (R : Type u) (S : Type v) {T : Type w} [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : CommRing T]
(p : Polynomial T) [inst_3 : CommRing S] [inst_4 : Algebra T S] [inst_5 : Algebra S R] [inst_6 : Algebra T R]
[IsScalarTower T S R], (Polynomial.map (algebraMap T S) p).aroots R = p.aroots R
def Polynomial.rootSet E1 #
{T : Type w} →
[inst : CommRing T] → Polynomial T → (S : Type u_1) → [inst_1 : CommRing S] → [IsDomain S] → [Algebra T S] → Set S
The set of distinct roots of p in S.
If you have a non-separable polynomial, use Polynomial.aroots for the multiset
where multiple roots have the appropriate multiplicity.
theorem Polynomial.rootSet_def E0 #
∀ {T : Type w} [inst : CommRing T] (p : Polynomial T) (S : Type u_1) [inst_1 : CommRing S] [inst_2 : IsDomain S]
[inst_3 : Algebra T S] [inst_4 : DecidableEq S], p.rootSet S = ↑(p.aroots S).toFinset
theorem Polynomial.rootSet_C E0 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S]
(a : T), (Polynomial.C a).rootSet S = ∅
theorem Polynomial.rootSet_zero E0 #
∀ {T : Type w} [inst : CommRing T] (S : Type u_1) [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S],
Polynomial.rootSet 0 S = ∅
theorem Polynomial.rootSet_one E0 #
∀ {T : Type w} [inst : CommRing T] (S : Type u_1) [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S],
Polynomial.rootSet 1 S = ∅
theorem Polynomial.rootSet_neg E0 #
∀ {T : Type w} [inst : CommRing T] (p : Polynomial T) (S : Type u_1) [inst_1 : CommRing S] [inst_2 : IsDomain S]
[inst_3 : Algebra T S], (-p).rootSet S = p.rootSet S
instance Polynomial.rootSetFintype E0 #
{T : Type w} →
[inst : CommRing T] →
(p : Polynomial T) →
(S : Type u_1) → [inst_1 : CommRing S] → [inst_2 : IsDomain S] → [inst_3 : Algebra T S] → Fintype ↑(p.rootSet S)
theorem Polynomial.rootSet_finite E1 #
∀ {T : Type w} [inst : CommRing T] (p : Polynomial T) (S : Type u_1) [inst_1 : CommRing S] [inst_2 : IsDomain S]
[inst_3 : Algebra T S], (p.rootSet S).Finite
theorem Polynomial.rootSet_map E0 #
∀ (R : Type u) {S : Type v} (T : Type w) [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : CommRing T]
[inst_3 : CommRing S] (p : Polynomial S) [inst_4 : Algebra S T] [inst_5 : Algebra T R] [inst_6 : Algebra S R]
[IsScalarTower S T R], (Polynomial.map (algebraMap S T) p).rootSet R = p.rootSet R
theorem Polynomial.bUnion_roots_finite E1 #
∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : DecidableEq S]
(m : R →+* S) (d : ℕ) {U : Set R},
U.Finite → (⋃ f, ⋃ (_ : f.natDegree ≤ d ∧ ∀ (i : ℕ), f.coeff i ∈ U), ↑(Polynomial.map m f).roots.toFinset).Finite
The set of roots of all polynomials of bounded degree and having coefficients in a finite set is finite.
theorem Polynomial.mem_rootSet' E0 #
∀ {T : Type w} [inst : CommRing T] {p : Polynomial T} {S : Type u_1} [inst_1 : CommRing S] [inst_2 : IsDomain S]
[inst_3 : Algebra T S] {a : S}, a ∈ p.rootSet S ↔ Polynomial.map (algebraMap T S) p ≠ 0 ∧ (Polynomial.aeval a) p = 0
A version of mem_rootSet that requires the polynomial to be non-zero after mapping
instead of requiring it to be non-zero and Module.IsTorsionFree.
theorem Polynomial.mem_rootSet E0 #
∀ {T : Type w} [inst : CommRing T] {p : Polynomial T} {S : Type u_1} [IsDomain T] [inst_2 : CommRing S]
[inst_3 : IsDomain S] [inst_4 : Algebra T S] [Module.IsTorsionFree T S] {a : S},
a ∈ p.rootSet S ↔ p ≠ 0 ∧ (Polynomial.aeval a) p = 0
A version of mem_rootSet' that requires Module.IsTorsionFree and for the polynomial to be
non-zero instead of requiring it to be non-zero after mapping.
theorem Polynomial.mem_rootSet_of_ne E0 #
∀ {T : Type w} [inst : CommRing T] {p : Polynomial T} {S : Type u_1} [IsDomain T] [inst_2 : CommRing S]
[inst_3 : IsDomain S] [inst_4 : Algebra T S] [Module.IsTorsionFree T S],
p ≠ 0 → ∀ {a : S}, a ∈ p.rootSet S ↔ (Polynomial.aeval a) p = 0
theorem Polynomial.preimage_eval_singleton E1 #
∀ {R : Type u} {a : R} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R},
p ≠ Polynomial.C a → (fun x ↦ Polynomial.eval x p) ⁻¹' {a} = (p - Polynomial.C a).rootSet R
theorem Polynomial.Monic.mem_rootSet E0 #
∀ {T : Type w} [inst : CommRing T] {p : Polynomial T},
p.Monic →
∀ {S : Type u_1} [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S] {a : S},
a ∈ p.rootSet S ↔ (Polynomial.aeval a) p = 0
theorem Polynomial.rootSet_maps_to' E1 #
∀ {T : Type w} [inst : CommRing T] {p : Polynomial T} {S : Type u_1} {S' : Type u_2} [inst_1 : CommRing S]
[inst_2 : IsDomain S] [inst_3 : Algebra T S] [inst_4 : CommRing S'] [inst_5 : IsDomain S'] [inst_6 : Algebra T S'],
(Polynomial.map (algebraMap T S') p = 0 → Polynomial.map (algebraMap T S) p = 0) →
∀ (f : S →ₐ[T] S'), Set.MapsTo (⇑f) (p.rootSet S) (p.rootSet S')
theorem Polynomial.ne_zero_of_mem_rootSet E1 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] {p : Polynomial T} [inst_1 : CommRing S] [inst_2 : IsDomain S]
[inst_3 : Algebra T S] {a : S}, a ∈ p.rootSet S → p ≠ 0
theorem Polynomial.aeval_eq_zero_of_mem_rootSet E1 #
∀ {S : Type v} {T : Type w} [inst : CommRing T] {p : Polynomial T} [inst_1 : CommRing S] [inst_2 : IsDomain S]
[inst_3 : Algebra T S] {a : S}, a ∈ p.rootSet S → (Polynomial.aeval a) p = 0
theorem Polynomial.rootSet_mapsTo E1 #
∀ {T : Type w} [inst : CommRing T] {p : Polynomial T} [IsDomain T] {S : Type u_1} {S' : Type u_2} [inst_2 : CommRing S]
[inst_3 : IsDomain S] [inst_4 : Algebra T S] [inst_5 : CommRing S'] [inst_6 : IsDomain S'] [inst_7 : Algebra T S']
[Module.IsTorsionFree T S'] (f : S →ₐ[T] S'), Set.MapsTo (⇑f) (p.rootSet S) (p.rootSet S')
theorem Polynomial.mem_rootSet_of_injective E0 #
∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : CommRing S] {p : Polynomial S}
[inst_3 : Algebra S R],
Function.Injective ⇑(algebraMap S R) → ∀ {x : R}, p ≠ 0 → (x ∈ p.rootSet R ↔ (Polynomial.aeval x) p = 0)
theorem Polynomial.nthRootsFinset_toSet E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {n : ℕ},
0 < n → ∀ (a : R), ↑(Polynomial.nthRootsFinset n a) = {r | r ^ n = a}
theorem Polynomial.smul_mem_rootSet E1 #
∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : CommRing S] [inst_3 : Algebra S R]
{G : Type u_1} [inst_4 : Monoid G] [inst_5 : MulSemiringAction G R] [SMulCommClass G S R] {f : Polynomial S} (g : G)
{x : R}, x ∈ f.rootSet R → g • x ∈ f.rootSet R
theorem Polynomial.smul_mem_rootSet_iff_of_isUnit E1 #
∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : CommRing S] [inst_3 : Algebra S R]
{G : Type u_1} [inst_4 : Monoid G] [inst_5 : MulSemiringAction G R] [SMulCommClass G S R] {f : Polynomial S} {g : G},
IsUnit g → ∀ {x : R}, g • x ∈ f.rootSet R ↔ x ∈ f.rootSet R
theorem Polynomial.smul_mem_rootSet_iff E0 #
∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : CommRing S] [inst_3 : Algebra S R]
{G : Type u_1} [inst_4 : Group G] [inst_5 : MulSemiringAction G R] [SMulCommClass G S R] {f : Polynomial S} {g : G}
{x : R}, g • x ∈ f.rootSet R ↔ x ∈ f.rootSet R
instance Polynomial.instMulActionElemRootSetOfSMulCommClass E0 #
{R : Type u} →
{S : Type v} →
[inst : CommRing R] →
[inst_1 : IsDomain R] →
[inst_2 : CommRing S] →
[inst_3 : Algebra S R] →
(G : Type u_1) →
[inst_4 : Monoid G] →
[inst_5 : MulSemiringAction G R] →
[SMulCommClass G S R] → (f : Polynomial S) → MulAction G ↑(f.rootSet R)
theorem Polynomial.rootSet.coe_smul E0 #
∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : CommRing S] [inst_3 : Algebra S R]
{G : Type u_1} [inst_4 : Monoid G] [inst_5 : MulSemiringAction G R] [inst_6 : SMulCommClass G S R] {f : Polynomial S}
(g : G) (x : ↑(f.rootSet R)), ↑(g • x) = g • ↑x
instance Polynomial.instSMulCommClassElemRootSet E0 #
∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : CommRing S] [inst_3 : Algebra S R]
(G : Type u_1) (H : Type u_2) [inst_4 : Monoid G] [inst_5 : MulSemiringAction G R] [inst_6 : SMulCommClass G S R]
[inst_7 : Monoid H] [inst_8 : MulSemiringAction H R] [inst_9 : SMulCommClass H S R] [SMulCommClass G H R]
(f : Polynomial S), SMulCommClass G H ↑(f.rootSet R)
instance Polynomial.instIsScalarTowerElemRootSet E0 #
∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : CommRing S] [inst_3 : Algebra S R]
(G : Type u_1) (H : Type u_2) [inst_4 : Monoid G] [inst_5 : MulSemiringAction G R] [inst_6 : SMulCommClass G S R]
[inst_7 : Monoid H] [inst_8 : MulSemiringAction H R] [inst_9 : SMulCommClass H S R] [inst_10 : SMul G H]
[IsScalarTower G H R] (f : Polynomial S), IsScalarTower G H ↑(f.rootSet R)
theorem Polynomial.exists_eval_ne_zero_of_natDegree_lt_card E1 #
∀ {R : Type u} [inst : CommRing R] [IsDomain R] (f : Polynomial R),
f ≠ 0 → ↑f.natDegree < Cardinal.mk R → ∃ r, Polynomial.eval r f ≠ 0
theorem Polynomial.monic_multisetProd_X_sub_C E1 #
∀ {R : Type u} [inst : CommRing R] (s : Multiset R), (Multiset.map (fun a ↦ Polynomial.X - Polynomial.C a) s).prod.Monic
theorem Polynomial.monic_prod_X_sub_C E1 #
∀ {R : Type u} [inst : CommRing R] {α : Type u_1} (b : α → R) (s : Finset α),
(∏ a ∈ s, (Polynomial.X - Polynomial.C (b a))).Monic
theorem Polynomial.monic_finprod_X_sub_C E1 #
∀ {R : Type u} [inst : CommRing R] {α : Type u_1} (b : α → R), (∏ᶠ (k : α), (Polynomial.X - Polynomial.C (b k))).Monic
theorem Polynomial.prod_multiset_root_eq_finset_root E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R} [inst_2 : DecidableEq R],
(Multiset.map (fun a ↦ Polynomial.X - Polynomial.C a) p.roots).prod =
∏ a ∈ p.roots.toFinset, (Polynomial.X - Polynomial.C a) ^ Polynomial.rootMultiplicity a p
theorem Polynomial.prod_multiset_X_sub_C_dvd E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (p : Polynomial R),
(Multiset.map (fun a ↦ Polynomial.X - Polynomial.C a) p.roots).prod ∣ p
The product ∏ (X - a) for a inside the multiset p.roots divides p.
theorem Multiset.prod_X_sub_C_dvd_iff_le_roots E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R},
p ≠ 0 → ∀ (s : Multiset R), (Multiset.map (fun a ↦ Polynomial.X - Polynomial.C a) s).prod ∣ p ↔ s ≤ p.roots
A Galois connection.
theorem Polynomial.exists_prod_multiset_X_sub_C_mul E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] (p : Polynomial R),
∃ q,
(Multiset.map (fun a ↦ Polynomial.X - Polynomial.C a) p.roots).prod * q = p ∧
p.roots.card + q.natDegree = p.natDegree ∧ q.roots = 0
theorem Polynomial.C_leadingCoeff_mul_prod_multiset_X_sub_C E3 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R},
p.roots.card = p.natDegree →
Polynomial.C p.leadingCoeff * (Multiset.map (fun a ↦ Polynomial.X - Polynomial.C a) p.roots).prod = p
A polynomial p that has as many roots as its degree
can be written p = p.leadingCoeff * ∏(X - a), for a in p.roots.
theorem Polynomial.prod_multiset_X_sub_C_of_monic_of_roots_card_eq E0 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R},
p.Monic → p.roots.card = p.natDegree → (Multiset.map (fun a ↦ Polynomial.X - Polynomial.C a) p.roots).prod = p
A monic polynomial p that has as many roots as its degree
can be written p = ∏(X - a), for a in p.roots.
theorem Polynomial.Monic.isUnit_leadingCoeff_of_dvd E1 #
∀ {R : Type u} [inst : CommRing R] [IsDomain R] {a p : Polynomial R}, p.Monic → a ∣ p → IsUnit a.leadingCoeff
theorem Polynomial.card_roots_le_one_of_irreducible E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R}, Irreducible p → p.roots.card ≤ 1
theorem Polynomial.roots_eq_zero_of_irreducible_of_natDegree_ne_one E1 #
∀ {R : Type u} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R},
Irreducible p → p.natDegree ≠ 1 → p.roots = 0
theorem Polynomial.Monic.irreducible_iff_degree_lt E1 #
∀ {R : Type u} [inst : CommRing R] [IsDomain R] {p : Polynomial R},
p.Monic → p ≠ 1 → (Irreducible p ↔ ∀ (q : Polynomial R), q.degree ≤ ↑(p.natDegree / 2) → q ∣ p → IsUnit q)
To check a monic polynomial is irreducible, it suffices to check only for divisors that have smaller degree.
See also: Polynomial.Monic.irreducible_iff_natDegree.
theorem Polynomial.le_rootMultiplicity_map E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : CommRing A] [inst_1 : CommRing B] {p : Polynomial A} {f : A →+* B},
Polynomial.map f p ≠ 0 →
∀ (a : A), Polynomial.rootMultiplicity a p ≤ Polynomial.rootMultiplicity (f a) (Polynomial.map f p)
theorem Polynomial.count_map_roots E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : IsDomain A] [inst_3 : DecidableEq B]
{p : Polynomial A} {f : A →+* B},
Polynomial.map f p ≠ 0 →
∀ (b : B), Multiset.count b (Multiset.map (⇑f) p.roots) ≤ Polynomial.rootMultiplicity b (Polynomial.map f p)
theorem Polynomial.count_map_roots_of_injective E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : IsDomain A] [inst_3 : DecidableEq B]
(p : Polynomial A) {f : A →+* B},
Function.Injective ⇑f →
∀ (b : B), Multiset.count b (Multiset.map (⇑f) p.roots) ≤ Polynomial.rootMultiplicity b (Polynomial.map f p)
theorem Polynomial.map_roots_le E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : IsDomain A] [inst_3 : IsDomain B]
{p : Polynomial A} {f : A →+* B}, Polynomial.map f p ≠ 0 → Multiset.map (⇑f) p.roots ≤ (Polynomial.map f p).roots
theorem Polynomial.map_roots_le_of_injective E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : IsDomain A] [inst_3 : IsDomain B]
(p : Polynomial A) {f : A →+* B}, Function.Injective ⇑f → Multiset.map (⇑f) p.roots ≤ (Polynomial.map f p).roots
theorem Polynomial.card_roots_map_le_degree E1 #
∀ {A : Type u_3} {B : Type u_4} [inst : Semiring A] [inst_1 : CommRing B] [inst_2 : IsDomain B] {f : A →+* B}
(p : Polynomial A), p ≠ 0 → ↑(Polynomial.map f p).roots.card ≤ p.degree
theorem Polynomial.card_roots_map_le_natDegree E1 #
∀ {A : Type u_3} {B : Type u_4} [inst : Semiring A] [inst_1 : CommRing B] [inst_2 : IsDomain B] {f : A →+* B}
(p : Polynomial A), (Polynomial.map f p).roots.card ≤ p.natDegree
theorem Polynomial.ncard_rootSet_le E1 #
∀ {A : Type u_1} [inst : CommRing A] (p : Polynomial A) (B : Type u_3) [inst_1 : CommRing B] [inst_2 : IsDomain B]
[inst_3 : Algebra A B], (p.rootSet B).ncard ≤ p.natDegree
theorem Polynomial.filter_roots_map_range_eq_map_roots E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : IsDomain A] [inst_3 : IsDomain B]
{f : A →+* B} [inst_4 : DecidablePred fun x ↦ x ∈ f.range],
Function.Injective ⇑f →
∀ (p : Polynomial A), Multiset.filter (fun x ↦ x ∈ f.range) (Polynomial.map f p).roots = Multiset.map (⇑f) p.roots
theorem Polynomial.card_roots_le_map E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : IsDomain A] [inst_3 : IsDomain B]
{p : Polynomial A} {f : A →+* B}, Polynomial.map f p ≠ 0 → p.roots.card ≤ (Polynomial.map f p).roots.card
theorem Polynomial.card_roots_le_map_of_injective E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : IsDomain A] [inst_3 : IsDomain B]
{p : Polynomial A} {f : A →+* B}, Function.Injective ⇑f → p.roots.card ≤ (Polynomial.map f p).roots.card
theorem Polynomial.roots_map_of_injective_of_card_eq_natDegree E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : IsDomain A] [inst_3 : IsDomain B]
{p : Polynomial A} {f : A →+* B},
Function.Injective ⇑f → p.roots.card = p.natDegree → Multiset.map (⇑f) p.roots = (Polynomial.map f p).roots
theorem Polynomial.roots_map_of_map_ne_zero_of_card_eq_natDegree E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : IsDomain A] [inst_3 : IsDomain B]
{p : Polynomial A} (f : A →+* B),
Polynomial.map f p ≠ 0 → p.roots.card = p.natDegree → Multiset.map (⇑f) p.roots = (Polynomial.map f p).roots
theorem Polynomial.Monic.roots_map_of_card_eq_natDegree E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : IsDomain A] [inst_3 : IsDomain B]
{p : Polynomial A},
p.Monic → ∀ (f : A →+* B), p.roots.card = p.natDegree → Multiset.map (⇑f) p.roots = (Polynomial.map f p).roots
theorem Polynomial.eventually_atTop_not_isRoot E1 #
∀ {R : Type u} [inst : CommRing R] [IsDomain R] [inst_2 : Preorder R] {p : Polynomial R} [NoTopOrder R],
p ≠ 0 → ∀ᶠ (x : R) in Filter.atTop, ¬p.IsRoot x
theorem Polynomial.eventually_atBot_not_isRoot E1 #
∀ {R : Type u} [inst : CommRing R] [IsDomain R] [inst_2 : Preorder R] {p : Polynomial R} [NoBotOrder R],
p ≠ 0 → ∀ᶠ (x : R) in Filter.atBot, ¬p.IsRoot x
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Polynomial.aroots_smul_nonzero | Polynomial.aroots_smul_of_ne_zero | 2026-10-13 |
Polynomial.finite_setOf_isRoot | Polynomial.finite_setOfPred_isRoot | 2026-07-09 |
Polynomial.roots_eq_zero_iff_eq_zero_or_isRoot_eq_bot | Polynomial.roots_eq_zero_iff_eq_zero_or_not_isRoot | 2026-09-27 |
Polynomial.roots_eq_zero_iff_isRoot_eq_bot | Polynomial.roots_eq_zero_iff_not_isRoot | 2026-09-27 |
Polynomial.roots_smul_nonzero | Polynomial.roots_smul_of_ne_zero | 2026-10-13 |