Initial of a polynomial #
This file defines the initial of a multivariate polynomial.
For a polynomial p with main variable xᵢ, the initial is the coefficient (a polynomial)
of the highest power of xᵢ appearing in p.
Main declarations #
MvPolynomial.initialOf i p: The initial ofpwith respect to a specific variablei. This is the coefficient ofX i ^ degᵢ(p).MvPolynomial.initial: The initial ofpwith respect to its main variable. It is1for nonzero constants and0for zero.
Main results #
initialOf_eq_leadingCoeff:initᵢ(p)is the leading coefficient when viewingpas a univariate polynomial inX i.initialOf_mul_X_pow_add_eraseInitOf:p = initᵢ(p) * Xᵢ^degᵢ(p) + remainder, with strictly smaller degree whendegᵢ(p) > 0.initial_reducedTo: The initial is always reduced w.r.t. the original polynomialinitialOf_mul_eq:initᵢ(p * q) = initᵢ(p) * initᵢ(q)(for integral domains)
References #
- [Wen-Tsun Wu, Basic principles of mechanical theorem proving in elementary geometries] [WT86]
The "initial" of a polynomial p with respect to a variable i.
It is the coefficient of the highest power of X i appearing in p.
More formally, it is the sum of terms in p whose degree in i equals p.degreeOf i,
but with the variable i erased.
Equations
- MvPolynomial.initialOf i p = ∑ s ∈ p.support with s i = MvPolynomial.degreeOf i p, (MvPolynomial.monomial (Finsupp.erase i s)) (p.coeff s)
Instances For
The initial of p with respect to i is the leading coefficient
when viewing p as a univariate polynomial in X i.
eraseInitOf i p for a polynomial p is the sum of all terms in p
whose degree in i is not equal to p.degreeOf i.
Equations
- MvPolynomial.eraseInitOf i p = ∑ s ∈ p.support with s i ≠ MvPolynomial.degreeOf i p, (MvPolynomial.monomial s) (p.coeff s)
Instances For
The fundamental decomposition of a polynomial with respect to a variable i.
p = initᵢ(p) * Xᵢ ^ degᵢ(p) + eraseInit, with strictly smaller remainder degree
when degᵢ(p) > 0.
The "Initial" of a polynomial p is p.initialOf p.max_vars if p is not a constant,
and 1 if p is a non-zero constant.
Equations
Instances For
The product of initials of a set of polynomials.
Equations
- MvPolynomial.initialProd PS = ∏ p ∈ PS, p.initial