30 3. Rings, Ideals, and GR Obner Bases
30 3. Rings, Ideals, and GR Obner Bases
However, every ideal I ⊆ R is finitely generated, i.e., I = hf1 , · · · , fr i for some finite
number r of polynomials fi ∈ R (see Theorem 3.2.10). This is yet another “nice”
property of R: a ring with such property is called Noetherian.
Exercise 3.1.2. A ring is said to satisfy the ascending chain condition (ACC)
if every chain of ideals
I1 ⊆ I2 ⊆ I3 ⊆ · · ·
stabilizes, i.e., there is i0 such that Ii = Ii0 for all i > i0 .
For an arbitrary ring, show that this condition is equivalent to the condition of
all ideals being finitely generated.
Example 3.1.3. Consider an ideal I = x + y, x2
⊆ k[x, y]. However, we can
pick another set of generators of I; for instance, I = x + y, y 2 .
The polynomials in the second set of generators belong to I as
y 2 = x2
+ (y − x) (x + y) .
2
This shows the containment y , x + y ⊆ I. Since, in a similar way, the reverse
containment can be shown, the ideals are equal.
Exercise 3.1.4. Determine whether the following subsets of R are ideals:
(1) k, the field of coefficients;
(2) a subring k[x1 , . . . , xm ] ⊂ R = k[x1 , . . . , xn ], where 0 < m < n;
(3) polynomials with no constant term;
(4) R≤d , polynomials of degree at most d;
(5) homogeneous polynomials, i.e., polynomials with all terms of the same
degree.
3.1.2. Sum, product, and intersection of ideals. The sum of two ideals
I and J (as k-subspaces),
I + J = { f + g | f ∈ I, g ∈ J } ,
is an ideal. So is the intersection
I ∩ J = { f | f ∈ I, f ∈ J } .
Exercise 3.1.5. Prove that I +J is the smallest ideal containing I and J. Show
that, if I = hf1 , . . . , fr i and J = hg1 , . . . , gs i, then I + J = hf1 , . . . , fr , g1 , . . . , gs i.
32 3. RINGS, IDEALS, AND GRÖBNER BASES
Given an ideal I ⊆ R we introduce the quotient ring R/I. The elements of R/I
are equivalence classes [f ] = { g ∈ R | f − g ∈ I } ⊆ R where f ∈ R. Two elements
f, g ∈ R are equivalent modulo I if [f ] = [g]; that, in turn, holds iff f − g ∈ I.
The ring structure of R/I is induced by that of the ring R:
• [f ] + [g] = [f + g];
• [f ][g] = [f g];
• [0] is the additive and [1] is the multiplicative identities.
The addition above is well defined: if f 0 ∈ [f ], g 0 ∈ [g] are alternative representatives
then [f 0 + g 0 ] = [f + g], since f 0 + g 0 − (f + g) = (f 0 − f ) + (g 0 − g) ∈ I.
Exercise 3.1.11. Show that the product in a quotient ring is well defined.
There is a natural surjective ring map
φ : R → R/I
f 7→ [f ]
Proposition 3.1.12. Let I be an ideal in an arbitrary ring R. There is a one-
to-one correspondence between ideals of R/I are ideals of R containing I. Sums,
intersections, and products of ideals are preserved under this correspondence.
Proof. We claim that the ring map φ above establishes a one-to-one corre-
spondence.
Take an ideal J ⊆ R, then φ(J) is an ideal of J; in fact, this is true for any
map φ. This follows from the definition of an ideal and the fact that φ respects the
ring addition and multiplication. Similarly, if J¯ is an ideal of R/I then φ−1 (J)
¯ is
−1
an ideal of R; it contains the preimage of zero φ ([0]) = I.
Exercise 3.1.13. Let R = k[x1 , . . . , xn ] and I = hxm+1 , . . . , xn i. Show that
the rings R/I and S = k[x1 , . . . , xm ] are isomorphic via a natural ring map ψ :
R/I → S,
ψ([f ]) = f (x1 , . . . , xm , 0, ..., 0) ∈ S, f ∈ R.
Exercise 3.1.14. Consider ideal I = x2 + 1 ⊂ Q[x].
Prove that the quotient ring Q[x]/I is a field; it is called the field of Gaussian
rational numbers. (Hint: For each element of Q[x]/I find a “small” representatitive
in Q[x] and then determine its inverse.)
34 3. RINGS, IDEALS, AND GRÖBNER BASES
Note that >lex is a 2-block order with respect to the blocks {x1 , . . . , xm } and
{xm+1 , . . . , xn }.
3.2.2. Normal form algorithm. In §1.1.4 we have introduced NFf the nor-
mal form function that maps a polynomial g ∈ k[x] to its remainder after division
by the polynomial f ∈ k[x]. We would like to define the normal form NFF : R → R,
where R = k[x1 , . . . , xn ], with respect to a system of polynomials F ∈ Rr .
LT(h)
h←h− f
LT(f )
end while
The leading monomials and leading terms in Algorithm 3.2.1 are taken with
respect to a fixed monomial order >. If this needs to be emphasized, we write
(>)
NFF ; normal forms for the same input, but different monomial orders are not the
same, in general.
Proof of termination and correctness of Algorithm 3.2.1. Let hi be
the contents of h at the i-th iteration. Then
LM(h1 ) > LM(h2 ) > LM(h3 ) > · · ·
Since a monomial order is a well-order, the descending sequence of monomials
terminates, so does the algorithm. The condition (3.2.1) holds for all h = hi by
construction. When the algorithm terminates h is either 0 or LM(h) is not divisible
by LM(f ) for all f ∈ F .
Exercise 3.2.5. Let f1 , . . . , fr ∈ I, where I ⊆ R is an ideal.
Show that NF(f1 ,...,fr ) (g) ∈ I iff g ∈ I.
Note: As its univariate analoque, Algorithm 3.2.1 can be modified to compute not only
the “remainder”, but also the “quotients”, i.e., polynomial coefficients qi ∈ R in (3.2.1).
Note that, in general, the normal form also depends on the order of polynomials
in the system.
36 3. RINGS, IDEALS, AND GRÖBNER BASES
where Ji ⊆ k[x2 , . . . , xn ] are monomial ideals (in a ring with one fewer variable)
such that
i β2 ···βn β2 ···βn
∈ in(Ji ) = { xα1 α2 ···αn ∈ in(J) | α1 = i } .
x1 x |x
Using induction on the number of variables in a polynomial ring, we may assume
that k[x2 , . . . , xn ] is Noetherian. The base of induction is the case R = k, a poly-
nomial ring with no variables, which has only trivial ideals.
Observe that J1 ⊆ J2 ⊆ · · · is an ascending chain of ideals. By Noetherianity
it stabilizes; we also may pick finite generating sets of monomials Gi for Ji .
Now the infinite union above becomes finite: for some s > 0,
J = J0 ∪ x1 J1 ∪ x21 J2 ∪ · · · ∪ xs1 Js
= J0 ∪ x1 G1 ∪ x21 G2 ∪ · · · ∪ xs1 Gs ,
G ← a Gröbner basis of I
h←0
t←f -- This is the “tail” that we reduce.
while t 6= 0 and LM(t) is divisible by LM(g) for some g ∈ G do
t ← NFG (t)
if h 6= 0 then
h ← h + LT(t)
t ← t − LT(t)
end if
end while
is a Gröbner basis of the ideal I = hGi, find the reduced Gröbner basis of I.
3.2.5. Buchberger’s algorithm. Now we are ready to provide the missing
piece of Algorithm 3.2.2 is a subroutine that would compute a Gröbner basis for
an ideal generated by a finite set of polynomials.
For two nonzero polynomials f, g ∈ R. Define the s-polynomial of f and g
LT(g) LT(f )
Sf,g = f− g ∈ R.
gcd(LM(f ) , LM(g)) gcd(LM(f ) , LM(g))
Theorem 3.2.18 (Buchberger’s criterion). Let G ⊆ R be a finite set of poly-
nomials, then G is a Gröbner basis of the ideal I = hGi (with respect to a fixed
monomial order) iff NFG (Sf,g ) = 0 for all f, g ∈ G.
Proof. If G is a Gröbner basis, then Sf,g ∈ I implies NFG (Sf,g ) = 0 by
Proposition 3.2.12. To prove the statement in the other direction, we will show
that, when every s-polynomial reduces to zero, every element f ∈ I also reduces to
zero with respect to G. This is sufficient,
Pr since it implies in(I) = hin(G)i.
Let G = {g1 , . . . , gr }. If f = i=1 hi gi for hi ∈ R, we shall call the sequence
h = (h1 , . . . , hr ) a representation of f ∈ I. Define the leading monomial λ of a
representation to be
λ = λ(h) = max LM(hi gi )
i
and the multiplicity µ of the representation to be the number of times the equality
LM(hi gi ) = λ(h1 , . . . , hr ) holds for i = 1, . . . , r.
3.2. GRÖBNER BASES 39
h0l = hl + cm ĥ
l , if l ∈
/ {i, j} ,
LT(gj )
h0i = hi − cm + ĥi ,
gcd(LM(gi ),LM(gj ))
LT(gi )
h0j = hj + cm gcd(LM(g i ),LM(gj ))
+ ĥj ,
has either λ(h0 ) < λ(h) (this happens if µ(h) = 2) or λ(h0 ) = λ(h) but µ(h0 ) < µ(h).
This contradicts the minimality of representation h. Hence, NFG (f ) = 0 for every
f ∈ I.
The criterion translates into Buchberger’s algorithm for finding a Gröbner basis
(Algorithm 3.2.3).
has a property that either Gi+1 = Gi or LM(Gi ) ( LM(Gi+1 ), which which mirrors
in the sequence
hLM(G1 )i ⊆ hLM(G2 )i ⊆ · · ·
Since the latter sequence has to stabilize due to Noetherianity of the polynomial
ring, the former one stabilizes too. This means that no new elements are appended
to the set G = Gf inal after some step and the algorithm runs through the remaining
s-pairs reducing each of them to zero and stops.
The s-polynomials of s-pairs that resulted in a new element g ∈ G reduce to
zero, since g ∈ Gf inal . Therefore, every s-pair considered during the run reduces to
zero and the algorithm goes through all pairs Gf inal × Gf inal by construction.
3.3. BASIC COMPUTATIONS IN POLYNOMIAL RINGS 41