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 #
MvPolynomial.truncateTotalDegree: computable truncation by total degree.MvPolynomial.truncateTotalDegreeₗ: the corresponding linear map.
Main results #
MvPolynomial.totalDegree_truncateTotalDegree_le: the cutoff bounds the resulting degree.MvPolynomial.truncateTotalDegree_eq_self_iff: truncation fixes precisely the polynomials whose total degree is at most the cutoff.MvPolynomial.range_truncateTotalDegreeₗ: the range is the existing bounded-degree submodule.MvPolynomial.truncateTotalDegree_mul_of_gap: multiplication commutes with truncation under a gap in the degrees of the second factor's monomials.
Retain the monomials of total degree at most D.
Total-degree truncation as an R-linear map.
The linear map agrees with computable truncation.
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.
Truncation fixes every polynomial whose total degree is at most the cutoff.
Truncation fixes precisely the polynomials whose total degree is at most the cutoff.
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.
Truncation preserves the constant polynomial 1.
Truncating zero gives zero.
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.