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 Definitions #
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. For constants, this is defined as1.
Main Theorems #
initialOf_eq_leadingCoeff:initᵢ(p)is the leading coefficient when viewingpas a univariate polynomial inX i.initialOf_decomposition:p = initᵢ(p) * Xᵢ^degᵢ(p) + remainderwheredegᵢ(remainder) < degᵢ(p)initial_reducedTo: The initial is always reduced w.r.t. the original polynomialinitialOf_mul:initᵢ(p * q) = initᵢ(p) * initᵢ(q)(for integral domains)
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 removed (set to 1).
Equations
- MvPolynomial.initialOf i p = ∑ s ∈ p.support with s i = MvPolynomial.degreeOf i p, (MvPolynomial.monomial (Finsupp.erase i s)) (MvPolynomial.coeff s p)
Instances For
The initial of p with respect to i is the leading coefficient
when viewing p as a univariate polynomial in X i.
The fundamental decomposition of a polynomial with respect to a variable i.
p = initᵢ(p) * Xᵢ ^ degᵢ(p) + tail, where degᵢ(tail) < degᵢ(p).
The "Initial" of a polynomial p is p.initialOf p.mainVariable if p is not a constant,
and 1 if p is a non-zero constant.
Equations
- p.initial = if p = 0 then 0 else match p.mainVariable with | none => 1 | some c => MvPolynomial.initialOf c p
Instances For
The product of initials of a set of polynomials.
Equations
- MvPolynomial.initialProd PS = ∏ p ∈ PS, p.initial