Remainders and Gröbner bases #
Let m be a monomial order on σ →₀ ℕ. This file defines remainders on division by a set of
multivariate polynomials, and Gröbner bases of an ideal, and proves that remainders on division by
a Gröbner basis decide ideal membership.
MonomialOrder.IsRemainder m f B r:ris a remainder offon division byB, i.e.f = ∑ g_b * b + rwhere each productg_b * bhas degree at most that off, and no monomial ofris divisible by the leading monomial of a nonzerob ∈ B. The degree condition is stated withMonomialOrder.withBotDegree, so that the zero polynomial has degree⊥, and as the inequalitydeg b + deg g_b ≤ deg f; the remainder condition only concerns divisibility, not a comparison of degrees.MonomialOrder.IsGroebnerBasis m G I:Gis a subset of the idealIwhose leading terms span the same ideal as the leading terms of all elements ofI.
Main results #
MonomialOrder.exists_isRemainder: remainders exist when every nonzero divisor has a unit leading coefficient; this isMonomialOrder.div_set.MonomialOrder.IsGroebnerBasis.exists_degree_le_degree: the leading monomial of every nonzero element ofIis divisible by the leading monomial of a nonzero element of a Gröbner basis.MonomialOrder.isGroebnerBasis_iff_forall_exists_degree_le_degree: the converse, for a family whose nonzero members have unit leading coefficients.MonomialOrder.IsGroebnerBasis.image_leadingTerm: the leading terms of such a Gröbner basis ofIform a Gröbner basis of the ideal of leading terms ofI.MonomialOrder.IsGroebnerBasis.sub_mem_iff: for remaindersr₁,r₂off₁,f₂on division by a Gröbner basis ofI,f₁ - f₂ ∈ Iif and only ifr₁ = r₂. In particular remainders on division by a Gröbner basis are unique (MonomialOrder.IsGroebnerBasis.eq_of_isRemainder) and a remainder vanishes exactly onI(MonomialOrder.IsGroebnerBasis.remainder_eq_zero_iff_mem).MonomialOrder.IsGroebnerBasis.isRemainder_zero_iff_mem:0is a remainder offon division by a Gröbner basis ofIif and only iff ∈ I, whatever the leading coefficients of the basis: every element ofIhas a standard representation (Adams–Loustaunau, Theorem 4.1.12).MonomialOrder.IsGroebnerBasis.ideal_eq_span: a Gröbner basis generates its ideal.MonomialOrder.isGroebnerBasis_iff_isRemainder_zero:G ⊆ Iis a Gröbner basis ofIif and only if every element ofIhas remainder0on division byG.
None of these results assume that the coefficients form a field: the statements needing division
assume that the nonzero members of the divisor set have unit leading coefficients, which over a
field is discharged by MonomialOrder.isUnit_leadingCoeff.
References #
The definitions IsRemainder and IsGroebnerBasis are those of Junyu Guo and Hao Shen in
Mathlib pull request 29203, upstreamed from the WuProver Gröbner basis project.
- D. Cox, J. Little, D. O'Shea, Ideals, Varieties, and Algorithms, Chapter 2, §§5–6.
- W. W. Adams, P. Loustaunau, An Introduction to Gröbner Bases, Graduate Studies in Mathematics 3, American Mathematical Society, 1994, §4.1: Gröbner bases over rings and standard representations.
r is a remainder of f on division by the set B for the monomial order m: there is a
finitely supported family g : B →₀ MvPolynomial σ R such that
f = ∑ g_b * b + r;- for each
b ∈ B,deg b + deg g_b ≤ deg f, degrees being taken inWithBotso that the zero polynomial has degree⊥; - no monomial of
ris divisible by the leading monomial of a nonzerob ∈ B.
Instances For
A subset G of an ideal I is a Gröbner basis of I for the monomial order m if the
leading terms of the elements of G span the same ideal as the leading terms of all elements
of I.
Instances For
Unfolding lemma for MonomialOrder.IsRemainder.
The division representation of a remainder: f = ∑ g_b * b + r with
deg b + deg g_b ≤ deg f for each b ∈ B.
No monomial of a remainder is divisible by the leading monomial of a nonzero divisor.
Unfolding lemma for MonomialOrder.IsGroebnerBasis.
A subset of I whose leading terms span the ideal of leading terms of I is a Gröbner basis
of I.
For nonzero p, q and f, the WithBot degree bound deg p + deg q ≤ deg f used in
MonomialOrder.IsRemainder is the corresponding bound on MonomialOrder.degree.
The remainders of 0 are exactly 0.
A polynomial is a remainder of itself on division by B exactly when none of its monomials is
divisible by the leading monomial of a nonzero element of B.
If 0 is a remainder of f on division by B, then the leading term of f lies in the ideal
spanned by the leading terms of B.
Every monomial of an element of the ideal spanned by the leading terms of G is divisible by
the leading monomial of a nonzero element of G.
If 0 is a remainder of a nonzero f on division by B, then the leading monomial of f is
divisible by the leading monomial of a nonzero element of B.
The coefficient of X^D in an element of the ideal spanned by the leading terms of G lies in
the ideal of R spanned by the leading coefficients of those g ∈ G with deg g ≤ D.
A Gröbner basis of I is contained in I.
The leading terms of a Gröbner basis of I span the ideal of leading terms of I.
An ideal is a Gröbner basis of itself.
Adjoining further elements of I to a Gröbner basis of I gives a Gröbner basis of I.
Removing 0 does not change whether a set is a Gröbner basis.
The leading monomial of every nonzero element of I is divisible by the leading monomial of a
nonzero element of a Gröbner basis of I.
No monomial of a remainder on division by a Gröbner basis of I is divisible by the leading
monomial of a nonzero element of I.
A subset G of I whose nonzero members have unit leading coefficients is a Gröbner basis of
I if and only if the leading monomial of every nonzero element of I is divisible by the
leading monomial of a nonzero element of G.
If the nonzero members of G have unit leading coefficients, then so do the nonzero leading
terms of members of G.
The leading terms of a Gröbner basis G of I whose nonzero members have unit leading
coefficients form a Gröbner basis of the ideal of leading terms of I.
A polynomial differs from its remainders by an element of the ideal spanned by the divisors.
Existence of remainders. If every nonzero element of B has a unit leading coefficient,
then every polynomial has a remainder on division by B.
Remainders modulo a Gröbner basis. If r₁ and r₂ are remainders of f₁ and f₂ on
division by a Gröbner basis of I, then f₁ - f₂ ∈ I if and only if r₁ = r₂.
Uniqueness of remainders. Remainders on division by a Gröbner basis are unique.
Ideal membership. A remainder on division by a Gröbner basis of I vanishes if and only
if the divided polynomial lies in I.
If r is a remainder of X^a on division by a Gröbner basis of I, and a is the leading
exponent of a nonzero element of I, then X^a - r is a nonzero monic element of I with
leading exponent a.
For a Gröbner basis G of I, 0 is a remainder of f on division by G exactly when
f ∈ I. No condition on the leading coefficients of G is needed.
A Gröbner basis of I generates I.
Remainders on division by a Gröbner basis whose nonzero members have unit leading coefficients exist and are unique.
A subset G of I is a Gröbner basis of I if and only if every element of I has remainder
0 on division by G.