The signature-based F5 algorithm terminates and returns the reduced Gröbner basis full
This proof shows: correctness, termination.
Let K be a field, R=K[x1,…,xn] with a monomial order >, and f1,…,fs∈R. Let Rs be the free module with basis e1,…,es and α↦αˉ=∑iαifi the map onto I=⟨f1,…,fs⟩. Module monomials uei are ordered position over term: uei<vej if i<j, or i=j and u<v. This is a well-order compatible with multiplication by monomials. For α=0 the signature s(α) is its largest module monomial.
A pair (σ,p) is a labeled polynomial if p=αˉ for some α with s(α)=σ. For a finite set B of labeled polynomials, write sig(g)=σ for (σ,g)∈B. A standard s-representation of αˉ=0 is αˉ=∑kcktkgk with gk∈B, monomials tk, tksig(gk)≤s(α) and LM(tkgk)≤LM(αˉ). We say B is a signature Gröbner basis below σ if every α with s(α)<σ and αˉ=0 has one. A labeled (σ,p) is regular top-reduced by B if no g∈B and monomial t satisfy tLM(g)=LM(p) and tsig(g)<σ. A signature τ is a syzygy signature if τ=s(γ) for some γ with γˉ=0; then every multiple wτ is one too.
Lemma 1 (labels are valid). Every queue entry and every element of B is a labeled polynomial, and every element of Syz is a syzygy signature.
Proof. The entry (ei,fi) comes from α=ei. For an S-pair of (σr,r) and (σg,g) with multipliers ur,ug and urσr=ugσg, the combination (ur/LC(r))αr−(ug/LC(g))αg has signature max(urσr,ugσg), which is the label used at line L9. A regular reduction step subtracts ctg with tsig(g)<σ, which does not change the signature of the module element. For g∈B with sig(g) of index j<i, the element γ=gei−fiαg has γˉ=gfi−fig=0 and s(γ)=LM(g)ei, since fiαg involves only indices at most j; these are the signatures added at line L4. A reduction to zero at line L7 gives a labeled (σ,0), hence a syzygy signature. □
Lemma 2 (order of processing). The signatures handled at line L3 strictly increase, and when σ is handled, every signature smaller than σ that was ever put in the queue has already been handled.
Proof. A candidate created while handling σ has signature at least urσ≥σ. The smallest entry is taken each time, and an entry whose signature was already handled is skipped, so handled signatures strictly increase. □
Lemma 3 (uniqueness of leading monomials). Let B be a signature Gröbner basis below σ, and let (σ,p) and (σ,q) be labeled polynomials, both regular top-reduced by B. Then p=0 if and only if q=0, and otherwise LM(p)=LM(q).
Proof. Take α,β with signature σ and images p,q, and c∈K with s(α−cβ)<σ. Suppose p=0 and either q=0 or LM(p)>LM(q). Then p−cq=0 with LM(p−cq)=LM(p), and its standard s-representation contains a term cktkgk with LM(tkgk)=LM(p) and tksig(gk)≤s(α−cβ)<σ. So p is not regular top-reduced, a contradiction. The case with p and q exchanged is the same. □
Lemma 4 (completeness). Let σ be a signature such that every candidate signature smaller than σ has been handled, and let B be the current basis. Then B is a signature Gröbner basis below σ. The same holds with no bound on σ when the queue is empty.
Proof. By induction on the signatures handled (assume the lemma at each earlier handled signature), and inside that by well-founded induction on τ=s(α)<σ. Let τ=uei and αˉ=0.
Case 1: τ is a syzygy signature, τ=s(γ) with γˉ=0. Then α−cγ has a smaller signature and the same image, and the inner induction gives a standard s-representation.
Case 2: otherwise. Then ei is not a syzygy signature either, so its candidate was not discarded at line L5 and did not reduce to zero; it was the first signature of index i, so it is not singular top-reducible, and B contains an element of signature ei. Hence some g∈B has sig(g)∣τ. Among all such g, with tg of signature τ, choose one with LM(tg) smallest. Choose c with s(α−ctαg)<τ; by the inner induction its image αˉ−ctg is 0 or has a standard s-representation. If LM(tg)≤LM(αˉ), adding ctg gives a standard s-representation of αˉ. Otherwise LM(αˉ−ctg)=LM(tg)=:m, so there are g′∈B and t′ with t′LM(g′)=m and t′sig(g′)<τ; here g′=g.
Let ℓ=lcm(LM(g),LM(g′)), m=wℓ, and a=ℓ/LM(g), b=ℓ/LM(g′). Then wasig(g)=τ>wbsig(g′), so the S-pair of g and g′ is regular with signature ρ=asig(g), wρ=τ, and ρ<σ. It was put in the queue when the later of g,g′ was added (or skipped there because ρ was handled), so by Lemma 2 the signature ρ was handled, with some candidate (ρ,p). Let Bρ be the basis at that time; by the outer induction it is a signature Gröbner basis below ρ. Let S be the S-polynomial of g,g′, with LM(S)<ℓ or S=0, and S′ its regular top-reduction by Bρ.
- If ρ was discarded at line L5 or p reduced to zero, ρ is a syzygy signature by Lemma 1, and so is τ=wρ: excluded in Case 2.
- Otherwise p reduced to r=0, which is regular top-reduced by Bρ. By Lemma 3, S′=0 and LM(r)=LM(S′)≤LM(S)<ℓ. If r was added to B, then wr has signature τ and LM(wr)<wℓ=m. If r was discarded at line L8, some h∈B and th have thsig(h)=ρ and thLM(h)=LM(r), so wthh has signature τ and leading monomial below m.
Both contradict the choice of g. So Case 2 always ends with a standard s-representation. When the queue is empty, every regular S-pair and every ei has been handled, and the same argument applies to all τ. □
Theorem. The algorithm terminates and returns the reduced Gröbner basis of I.
Proof. Termination. Each regular reduction terminates, because the leading monomial decreases in a well-order. Suppose infinitely many elements were added to B. Then infinitely many have the same index i. By Dickson's lemma applied to the monomials (LM(r),ur) in 2n variables, where sig(r)=urei, there are rk added before rl with LM(rk)∣LM(rl) and uk∣ul. Put t=LM(rl)/LM(rk) and v=ul/uk. Since rl is regular top-reduced and not singular top-reducible (line L8), tuk>ul=vuk, so t>v. Then vrk is labeled with signature sig(rl) and LM(vrk)<LM(rl), and its regular top-reduction by the basis at the time of rl has a leading monomial below LM(rl) or is zero. This contradicts Lemma 3, which applies by Lemma 4. So B is finite, each element creates finitely many candidates, and the loop ends.
Correctness. By Lemma 1, B⊆I. When the queue is empty, Lemma 4 says that every nonzero f=αˉ∈I has a standard s-representation, so LM(f)=LM(tg) for some g∈B, and LM(g)∣LM(f). So the polynomials of B form a Gröbner basis of I, and line L10 turns it into the reduced Gröbner basis, which is unique (CLO Chapter 2, Section 7). ■