Degrees of polynomials #
This file establishes many results about the degree of a multivariate polynomial.
The degree set of a polynomial $P \in R[X]$ is a Multiset containing, for each $x$ in the
variable set, $n$ copies of $x$, where $n$ is the maximum number of copies of $x$ appearing in a
monomial of $P$.
Main declarations #
- MvPolynomial.degrees p: the multiset of variables representing the union of the multisets corresponding to each non-zero monomial in- p. For example if- 7 ≠ 0in- Rand- p = x²y+7y³then- degrees p = {x, x, y, y, y}
- MvPolynomial.degreeOf n p : ℕ: the total degree of- pwith respect to the variable- n. For example if- p = x⁴y+yzthen- degreeOf y p = 1.
- MvPolynomial.totalDegree p : ℕ: the max of the sizes of the multisets- swhose monomials- X^soccur in- p. For example if- p = x⁴y+yzthen- totalDegree p = 5.
Notation #
As in other polynomial files, we typically use the notation:
- σ τ : Type*(indexing the variables)
- R : Type*- [CommSemiring R](the coefficients)
- s : σ →₀ ℕ, a function from- σto- ℕwhich is zero away from a finite set. This will give rise to a monomial in- MvPolynomial σ Rwhich mathematicians might call- X^s
- r : R
- i : σ, with corresponding monomial- X i, often denoted- X_iby mathematicians
- p : MvPolynomial σ R
The maximal degrees of each variable in a multi-variable polynomial, expressed as a multiset.
(For example, degrees (x^2 * y + y^3) would be {x, x, y, y, y}.)
Instances For
degreeOf n p gives the highest power of X_n that appears in p
Equations
- MvPolynomial.degreeOf n p = Multiset.count n p.degrees
Instances For
totalDegree p gives the maximum |s| over the monomials X^s in p
Instances For
The submodule of multivariate polynomials of degrees bounded by a monomial s.