Documentation

CslibFrontier.Foundations.Data.MvPolynomial.TruncateTotalDegree

Truncating multivariate polynomials by total degree #

MvPolynomial.truncateTotalDegree D p retains the monomials of p of total degree at most D. Its linear-map interface MvPolynomial.truncateTotalDegreeₗ D projects onto Mathlib's submodule MvPolynomial.restrictTotalDegree V R D and fixes every polynomial in that submodule.

Truncation commutes with multiplication by p when each monomial of the other factor either stays below the cutoff after multiplication or starts above it. This gap criterion does not require a domain or additive inverses.

Main definitions #

Main results #

def MvPolynomial.truncateTotalDegree {V : Type u_1} {R : Type u_2} [CommSemiring R] (D : ℕ) (p : MvPolynomial V R) :

Retain the monomials of total degree at most D.

noncomputable def MvPolynomial.truncateTotalDegreeₗ {V : Type u_1} {R : Type u_2} [CommSemiring R] (D : ℕ) :

Total-degree truncation as an R-linear map.

@[simp]

The linear map agrees with computable truncation.

@[simp]

Truncation leaves a coefficient unchanged precisely below the cutoff.

The support of a truncation is the corresponding filtered support.

Truncation does not increase the number of monomials.

Truncation has total degree at most the cutoff.

theorem MvPolynomial.truncateTotalDegree_eq_self {V : Type u_1} {R : Type u_2} [CommSemiring R] {D : ℕ} {p : MvPolynomial V R} (h : p.totalDegree ≤ D) :

Truncation fixes every polynomial whose total degree is at most the cutoff.

@[simp]

Truncation fixes precisely the polynomials whose total degree is at most the cutoff.

@[simp]

Applying the same truncation twice has the same effect as applying it once.

The range of truncation is Mathlib's submodule of polynomials of bounded total degree.

@[simp]

Truncation preserves the constant polynomial 1.

@[simp]

Truncating zero gives zero.

theorem MvPolynomial.truncateTotalDegree_sum {V : Type u_1} {R : Type u_2} [CommSemiring R] {ι : Type u_3} (D : ℕ) (s : Finset ι) (p : ι → MvPolynomial V R) :
truncateTotalDegree D (∑ i ∈ s, p i) = ∑ i ∈ s, truncateTotalDegree D (p i)

Truncation commutes with finite sums.

Truncation commutes with multiplication when no monomial of the second factor can cross the cutoff. The hypothesis uses the total degree of the first factor, so it remains sufficient over semirings with zero divisors or cancellation of coefficients.