Proofs: F4 algorithm
These are the human proofs of F4 algorithm, at full length.
F4 terminates and returns the reduced Gröbner basis full
This proof shows: correctness, termination.
Let be a field, with a monomial order , and . We say that reduces to zero modulo a finite set , written , if with , monomials , , and for all . This is a standard representation, and it remains one when grows. We use two facts.
- Buchberger's criterion (CLO Chapter 2, Section 6, Theorem 6 and Chapter 2, Section 10). A finite that generates is a Gröbner basis if the S-polynomial of every pair has a standard representation, or more generally an lcm-representation, with respect to .
- Gebauer and Möller (1988). The pairs removed by UPDATE are covered: if all pairs that are never removed have S-polynomials with standard representations with respect to the final , then so do the removed pairs, through lcm-representations. This is the theorem behind the Gebauer-Möller criteria.
Lemma 1 (rows lie in the ideal). At all times , and generates .
Proof. Line L1 puts the nonzero into . Every row of is a monomial multiple of some : the halves at line L4 by construction, and the reducers at line L5 by construction. The row echelon form consists of -linear combinations of rows of , so .
Lemma 2 (symbolic preprocessing). SYMBOLIC-PREPROCESSING terminates, and its output has this property: for every monomial that occurs in some row of and is divisible by for some , there is a row of of the form with and .
Proof. Each step marks one monomial as handled and possibly adds a row whose leading monomial is that monomial , so every other monomial of the new row is smaller than . Consider the graph whose nodes are the handled monomials, with an edge from to each monomial of the row added for . Each node has finitely many successors, and every path is strictly decreasing for . A monomial order is a well-order, so there is no infinite path, and by König's lemma only finitely many monomials are reached from the finitely many monomials of . So the loop ends. At the end every monomial of every row is handled. For a monomial in , the half itself is a row with leading monomial ; for every other handled divisible by some , the reducer was added.
Lemma 3 (the span reduces to zero). Let be the basis before line L8, the rows of a round, the row echelon form and the new rows. Then every in the -span of satisfies .
Proof. By induction on , which is well founded. If there is nothing to show. Otherwise is a basis of the span with distinct leading monomials, so for some , and is a monomial of some row of .
- If , then is the leading monomial of a row of , and every element of is divisible by the leading monomial of an element of (by Lemma 2 and the form of the halves). Then is in the span of and has .
- If , then , and is in the span and has .
In both cases the subtracted term is with and , and by induction has a standard representation with terms of leading monomial at most . Adding the two gives one for .
Lemma 4 (new leading monomials). For , is divisible by no with .
Proof. is a monomial of some row of , since is a combination of rows. If for some , Lemma 2 gives a row of with leading monomial , so , which contradicts .
Theorem. F4 terminates and returns the reduced Gröbner basis of .
Proof. Termination. Let at the start of a round. By Lemma 4, every has , so a round with makes strictly larger. By Dickson's lemma (equivalently, is Noetherian) a strictly ascending chain of monomial ideals is finite, so only finitely many rounds add elements, each adds finitely many, and stays finite. Pairs are created only by UPDATE, at most for each new element, and each round removes at least one pair from at line L3. So the loop ends.
Correctness. Every pair that is selected at line L3 has its two halves in , so its S-polynomial is in the span of , and by Lemma 3 it reduces to zero modulo , which is contained in the final . Every pair that is never selected was removed by UPDATE, and by the theorem of Gebauer and Möller its S-polynomial also has an lcm-representation with respect to the final . By Lemma 1 the final lies in and generates it, so by Buchberger's criterion it is a Gröbner basis. Line L9 removes elements whose leading monomial is divisible by another one, makes the rest monic, and reduces their tails, which gives the reduced Gröbner basis; it is unique (CLO Chapter 2, Section 7).