The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.Polynomial.Vieta
11 declarations. Mathlib docs · Source
theorem Multiset.prod_X_add_C_eq_sum_esymm E3 #
∀ {R : Type u_1} [inst : CommSemiring R] (s : Multiset R),
(Multiset.map (fun r ↦ Polynomial.X + Polynomial.C r) s).prod =
∑ j ∈ Finset.range (s.card + 1), Polynomial.C (s.esymm j) * Polynomial.X ^ (s.card - j)
A sum version of Vieta's formula for Multiset: the product of the linear terms X + λ
where λ runs through a multiset s is equal to a linear combination of the symmetric functions
esymm s of the λ's .
theorem Multiset.prod_X_add_C_coeff E2 #
∀ {R : Type u_1} [inst : CommSemiring R] (s : Multiset R) {k : ℕ},
k ≤ s.card → (Multiset.map (fun r ↦ Polynomial.X + Polynomial.C r) s).prod.coeff k = s.esymm (s.card - k)
Vieta's formula for the coefficients of the product of linear terms X + λ where λ runs
through a multiset s : the kth coefficient is the symmetric function esymm (card s - k) s.
theorem Multiset.prod_X_add_C_coeff' E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {σ : Type u_2} (s : Multiset σ) (r : σ → R) {k : ℕ},
k ≤ s.card →
(Multiset.map (fun i ↦ Polynomial.X + Polynomial.C (r i)) s).prod.coeff k = (Multiset.map r s).esymm (s.card - k)
theorem Finset.prod_X_add_C_coeff E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {σ : Type u_2} (s : Finset σ) (r : σ → R) {k : ℕ},
k ≤ s.card →
(∏ i ∈ s, (Polynomial.X + Polynomial.C (r i))).coeff k = ∑ t ∈ Finset.powersetCard (s.card - k) s, ∏ i ∈ t, r i
theorem Multiset.esymm_neg E1 #
∀ {R : Type u_1} [inst : CommRing R] (s : Multiset R) (k : ℕ), (Multiset.map Neg.neg s).esymm k = (-1) ^ k * s.esymm k
theorem Multiset.prod_X_sub_X_eq_sum_esymm E1 #
∀ {R : Type u_1} [inst : CommRing R] (s : Multiset R),
(Multiset.map (fun t ↦ Polynomial.X - Polynomial.C t) s).prod =
∑ j ∈ Finset.range (s.card + 1), (-1) ^ j * (Polynomial.C (s.esymm j) * Polynomial.X ^ (s.card - j))
theorem Multiset.prod_X_sub_C_coeff E1 #
∀ {R : Type u_1} [inst : CommRing R] (s : Multiset R) {k : ℕ},
k ≤ s.card →
(Multiset.map (fun t ↦ Polynomial.X - Polynomial.C t) s).prod.coeff k = (-1) ^ (s.card - k) * s.esymm (s.card - k)
theorem Polynomial.coeff_eq_esymm_roots_of_card E3 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : IsDomain R] {p : Polynomial R},
p.roots.card = p.natDegree →
∀ {k : ℕ}, k ≤ p.natDegree → p.coeff k = p.leadingCoeff * (-1) ^ (p.natDegree - k) * p.roots.esymm (p.natDegree - k)
Vieta's formula for the coefficients and the roots of a polynomial over an integral domain with as many roots as its degree.
theorem Polynomial.coeff_eq_esymm_roots_of_splits E2 #
∀ {F : Type u_2} [inst : Field F] {p : Polynomial F},
p.Splits →
∀ {k : ℕ}, k ≤ p.natDegree → p.coeff k = p.leadingCoeff * (-1) ^ (p.natDegree - k) * p.roots.esymm (p.natDegree - k)
Vieta's formula for split polynomials over a field.
theorem MvPolynomial.prod_C_add_X_eq_sum_esymm E2 #
∀ (R : Type u_1) (σ : Type u_2) [inst : CommSemiring R] [inst_1 : Fintype σ],
∏ i, (Polynomial.X + Polynomial.C (MvPolynomial.X i)) =
∑ j ∈ Finset.range (Fintype.card σ + 1),
Polynomial.C (MvPolynomial.esymm σ R j) * Polynomial.X ^ (Fintype.card σ - j)
A sum version of Vieta's formula for MvPolynomial: viewing X i as variables,
the product of linear terms λ + X i is equal to a linear combination of
the symmetric polynomials esymm σ R j.
theorem MvPolynomial.prod_X_add_C_coeff E1 #
∀ (R : Type u_1) (σ : Type u_2) [inst : CommSemiring R] [inst_1 : Fintype σ],
∀ k ≤ Fintype.card σ,
(∏ i, (Polynomial.X + Polynomial.C (MvPolynomial.X i))).coeff k = MvPolynomial.esymm σ R (Fintype.card σ - k)