Finite sums and products of polynomials #
If each factor f i of a finite product has degree at most n i, then the product has degree at
most ∑ i, n i, and its coefficient in that degree is the product of the coefficients of the
factors in the degrees n i. Mathlib proves this for a uniform bound n
(Polynomial.coeff_prod_of_natDegree_le) and for two factors
(Polynomial.coeff_mul_add_eq_of_natDegree_le); here the bounds may vary with the factor. This is
what is needed to read off the top coefficient of a determinant whose columns have different
degree bounds.
This file also groups products of linear factors according to their constant terms, records
that a sum ∑ j ∈ range N, C (c j) * X ^ (N - j) has no constant term, and computes the degree
of geometric sums of mixed powers of equal-degree monic polynomials.
It also records that the image of a finite product of polynomials under a ring homomorphism into a ring without zero divisors has degree the sum of the factors' degrees when each factor's image is nonzero, and is itself nonzero when the target ring is moreover nontrivial.
Finally, TauCeti.sum_range_monomial_add_monomial_eq_of_eq_add turns coefficient relations
cᵢ = bᵢ + qᵢ + qᵢ₋₁ into the polynomial identity
∑ᵢ₌₀ⁿ cᵢ Xⁱ + qₙ Xⁿ⁺¹ = ∑ᵢ₌₀ⁿ bᵢ Xⁱ + (1 + X) ∑ᵢ₌₀ⁿ qᵢ Xⁱ, the shape of the Morse polynomial
identity.
Over a nontrivial ring without zero divisors, the image of a finite product of polynomials is nonzero when the image of each factor is nonzero.
Over a ring without zero divisors, the degree of the image of a finite product of polynomials is the sum of the degrees of the images of the factors, when each image is nonzero.
If each factor f i has degree at most n i, the coefficient of the product in degree
∑ i ∈ s, n i is the product of the coefficients of the factors in the degrees n i.
A local classical equality decision used to group the constant terms.
Instances For
The product of the linear factors whose constant term equals a is the corresponding power
of X + C a.
Group a product of linear factors according to whether their constant term equals a.
The geometric sum of mixed powers of two monic polynomials of equal degree has the expected degree in characteristic zero.
The polynomial form of cᵢ = bᵢ + qᵢ + qᵢ₋₁. If c₀ = b₀ + q₀ and
cᵢ₊₁ = bᵢ₊₁ + qᵢ₊₁ + qᵢ for i < n, then
∑ᵢ₌₀ⁿ cᵢ Xⁱ + qₙ Xⁿ⁺¹ = ∑ᵢ₌₀ⁿ bᵢ Xⁱ + (1 + X) ∑ᵢ₌₀ⁿ qᵢ Xⁱ.