Documentation

CslibFrontier.Foundations.Data.MvPolynomial.LowestComponent

Lowest homogeneous components #

A polynomial q starts in degree e if its homogeneous components of degree less than e vanish; this is the hypothesis ∀ j < e, homogeneousComponent j q = 0 of the results below. For such a q, the product r * q also starts in degree e, and its component of degree e is the constant coefficient of r times the component of q. Partial derivatives lower the degree of every homogeneous component by one. Polynomials whose components in their starting degrees are linearly independent are linearly independent. Substituting c * y i for the variables of a polynomial that starts in degree e gives a multiple of c ^ e.

Main results #

theorem MvPolynomial.coeff_eq_zero_of_homogeneousComponent_eq_zero {σ : Type u_1} {R : Type u_2} [CommSemiring R] {q : MvPolynomial σ R} {e : ℕ} (hq : ∀ j < e, (homogeneousComponent j) q = 0) {d : σ →₀ ℕ} (hd : Finsupp.degree d < e) :
q.coeff d = 0

A polynomial whose homogeneous components of degree less than e vanish has no monomial of degree less than e.

theorem MvPolynomial.eq_zero_of_homogeneousComponent_eq_zero {σ : Type u_1} {R : Type u_2} [CommSemiring R] {q : MvPolynomial σ R} (hq : ∀ (j : ℕ), (homogeneousComponent j) q = 0) :
q = 0

A polynomial all of whose homogeneous components vanish is zero.

theorem MvPolynomial.homogeneousComponent_mul_eq_zero {σ : Type u_1} {R : Type u_2} [CommSemiring R] {q : MvPolynomial σ R} {e : ℕ} (hq : ∀ j < e, (homogeneousComponent j) q = 0) (r : MvPolynomial σ R) {j : ℕ} (hj : j < e) :

If the homogeneous components of q of degree less than e vanish, so do those of a multiple of q.

theorem MvPolynomial.homogeneousComponent_mul {σ : Type u_1} {R : Type u_2} [CommSemiring R] {q : MvPolynomial σ R} {e : ℕ} (hq : ∀ j < e, (homogeneousComponent j) q = 0) (r : MvPolynomial σ R) :

If the homogeneous components of q of degree less than e vanish, the component of degree e of r * q is the constant coefficient of r times the component of degree e of q.

theorem MvPolynomial.homogeneousComponent_pderiv {σ : Type u_1} {R : Type u_2} [CommSemiring R] (j : ℕ) (i : σ) (q : MvPolynomial σ R) :

The component of degree j of a partial derivative is the partial derivative of the component of degree j + 1.

theorem MvPolynomial.homogeneousComponent_iteratedPDeriv {σ : Type u_1} {R : Type u_2} [CommSemiring R] {k : ℕ} (α : Fin k → σ) (j : ℕ) (q : MvPolynomial σ R) :

The component of degree j of an iterated partial derivative of order k is the iterated partial derivative of the component of degree j + k.

theorem MvPolynomial.iteratedPDeriv_homogeneousComponent_eq_zero {σ : Type u_1} {R : Type u_2} [CommSemiring R] {k m : ℕ} (hk : m < k) (α : Fin k → σ) (q : MvPolynomial σ R) :

An iterated partial derivative of order greater than m kills a homogeneous polynomial of degree m.

theorem MvPolynomial.aeval_mul_left_monomial {σ : Type u_1} {R : Type u_2} [CommSemiring R] {S : Type u_3} [CommSemiring S] [Algebra R S] (c : S) (y : σ → S) (d : σ →₀ ℕ) (a : R) :
(aeval fun (i : σ) => c * y i) ((monomial d) a) = c ^ Finsupp.degree d * (aeval y) ((monomial d) a)

Substituting c * y i for the variables of a monomial of degree k multiplies the value at y by c ^ k.

theorem MvPolynomial.aeval_mul_left_of_isHomogeneous {σ : Type u_1} {R : Type u_2} [CommSemiring R] {S : Type u_3} [CommSemiring S] [Algebra R S] {q : MvPolynomial σ R} {k : ℕ} (hq : q.IsHomogeneous k) (c : S) (y : σ → S) :
(aeval fun (i : σ) => c * y i) q = c ^ k * (aeval y) q

Substituting c * y i for the variables of a homogeneous polynomial of degree k multiplies the value at y by c ^ k.

theorem MvPolynomial.pow_dvd_aeval_mul_left {σ : Type u_1} {R : Type u_2} [CommSemiring R] {S : Type u_3} [CommSemiring S] [Algebra R S] {q : MvPolynomial σ R} {k : ℕ} (hq : ∀ j < k, (homogeneousComponent j) q = 0) (c : S) (y : σ → S) :
c ^ k ∣ (aeval fun (i : σ) => c * y i) q

If the homogeneous components of q of degree less than k vanish, substituting c * y i for the variables gives a multiple of c ^ k.

theorem MvPolynomial.coeff_aeval_scale_X {σ : Type u_1} {R : Type u_2} [CommSemiring R] (p : MvPolynomial σ R) (j : ℕ) :
((aeval fun (i : σ) => Polynomial.X * Polynomial.C (X i)) p).coeff j = (homogeneousComponent j) p

Keeping the original variables in the coefficient ring, scale them all by a fresh univariate indeterminate. Its coefficient at degree j is the original homogeneous component of degree j.

theorem MvPolynomial.natDegree_aeval_scale_X {σ : Type u_1} {R : Type u_2} [CommSemiring R] (p : MvPolynomial σ R) :
((aeval fun (i : σ) => Polynomial.X * Polynomial.C (X i)) p).natDegree = p.totalDegree

After scaling the variables by a fresh indeterminate, its univariate degree equals the original total degree. Distinct original monomials of the same degree remain distinct in their common coefficient.

theorem MvPolynomial.linearIndependent_of_homogeneousComponent {σ : Type u_1} {R : Type u_2} [CommRing R] {ι : Type u_3} {F : ι → MvPolynomial σ R} {e : ι → ℕ} (hlow : ∀ (i : ι), ∀ j < e i, (homogeneousComponent j) (F i) = 0) (hF : LinearIndependent R fun (i : ι) => (homogeneousComponent (e i)) (F i)) :

Polynomials are linearly independent if their lowest homogeneous components are: if the components of F i of degree less than e i vanish and the components of degree e i of the F i are linearly independent, then the F i are linearly independent.