Variables of polynomials #
This file establishes many results about the variable sets of a multivariate polynomial.
The variable set of a polynomial $P \in R[X]$ is a Finset
containing each $x \in X$
that appears in a monomial in $P$.
Main declarations #
MvPolynomial.vars p
: the finset of variables occurring inp
. For example ifp = x⁴y+yz
thenvars p = {x, y, z}
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 inMvPolynomial σ R
which mathematicians might callX^s
r : R
i : σ
, with corresponding monomialX i
, often denotedX_i
by mathematiciansp : MvPolynomial σ R
The variables of the product of a family of polynomials are a subset of the union of the sets of variables of each polynomial.
If f₁
and f₂
are ring homs out of the polynomial ring and p₁
and p₂
are polynomials,
then f₁ p₁ = f₂ p₂
if p₁ = p₂
and f₁
and f₂
are equal on R
and on the variables
of p₁
.