In mathematics, and more specifically in computer algebra, computational algebraic geometry, and computational commutative algebra, a Gröbner basis is a particular kind of generating set of an ideal in a polynomial ring over a field . A Gröbner basis allows many important properties of the ideal and the associated algebraic variety to be deduced easily, such as the dimension and the number of zeros when it is finite. Gröbner basis computation is one of the main practical tools for solving systems of polynomial equations and computing the images of algebraic varieties under projections or rational maps.
Gröbner basis computation can be seen as a multivariate, non-linear generalization of both Euclid's algorithm for computing polynomial greatest common divisors, andGaussian elimination for linear systems.[1]
Gröbner bases were introduced by Bruno Buchberger in his 1965 Ph.D. thesis, which also included an algorithm to compute them (Buchberger's algorithm). He named them after his advisor Wolfgang Gröbner. In 2007, Buchberger received the Association for Computing Machinery's Paris Kanellakis Theory and Practice Award for this work.However, the Russian mathematician Nikolai Günther had introduced a similar notion in 1913, published in various Russian mathematical journals. These papers were largely ignored by the mathematical community until their rediscovery in 1987 by Bodo Renschuch et al.[2] An analogous concept for multivariate power series was developed independently by Heisuke Hironaka in 1964, who named them standard bases. This term has been used by some authors to also denote Gröbner bases.
The theory of Gröbner bases has been extended by many authors in various directions. It has been generalized to other structures such as polynomials over principal ideal rings or polynomial rings, and also some classes of non-commutative rings and algebras, like Ore algebras.
R=K[x1,\ldots,xn]
In the context of Gröbner bases, a nonzero polynomial in
R=K[x1,\ldots,xn]
c1M1+ … +cmMm,
ci
Mi
a1 | |
x | |
1 |
…
an | |
x | |
n |
,
ai
A=[a1,\ldots,an]
X=[x1,\ldots,xn]
a1 | |
x | |
1 |
…
an | |
x | |
n |
=XA.
Monomials are uniquely defined by their exponent vectors, and, when a monomial ordering (see below) is fixed, a polynomial is uniquely represented by the ordered list of the ordered pairs formed by an exponent vector and the corresponding coefficient. This representation of polynomials is especially efficient for Gröbner basis computation in computers, although it is less convenient for other computations such as polynomial factorization and polynomial greatest common divisor.
If
F=\{f1,\ldots,fk\}
g1,\ldots,gk\inR.
See main article: Monomial order. All operations related to Gröbner bases require the choice of a total order on the monomials, with the following properties of compatibility with multiplication. For all monomials,,,
M\leqN\LongleftrightarrowMP\leqNP
M\leqMP
These conditions imply that the order is a well-order, that is, every strictly decreasing sequence of monomials is finite.
Although Gröbner basis theory does not depend on a particular choice of an admissible monomial ordering, three monomial orderings are specially important for the applications:
Gröbner basis theory was initially introduced for the lexicographical ordering. It was soon realised that the Gröbner basis for degrevlex is almost always much easier to compute, and that it is almost always easier to compute a lex Gröbner basis by first computing the degrevlex basis and then using a "change of ordering algorithm". When elimination is needed, degrevlex is not convenient; both lex and lexdeg may be used but, again, many computations are relatively easy with lexdeg and almost impossible with lex.
Once a monomial ordering is fixed, the terms of a polynomial (product of a monomial with its nonzero coefficient) are naturally ordered by decreasing monomials (for this order). This makes the representation of a polynomial as a sorted list of pairs coefficient–exponent vector a canonical representation of the polynomials (that is, two polynomials are equal if and only they have the same representation).
The first (greatest) term of a polynomial for this ordering and the corresponding monomial and coefficient are respectively called the leading term, leading monomial and leading coefficient and denoted, in this article, and .
Most polynomial operations related to Gröbner bases involve the leading terms. So, the representation of polynomials as sorted lists make these operations particularly efficient (reading the first element of a list takes a constant time, independently of the length of the list).
The other polynomial operations involved by Gröbner basis computations are also compatible with the monomial ordering; that is, they can be performed without reordering the result:
Let
a1 | |
M=x | |
1 |
…
an | |
x | |
n |
b1 | |
N=x | |
1 |
…
bn | |
x | |
n |
A=[a1,\ldots,an]
B=[b1,\ldots,bn].
One says that divides, or that is a multiple of, if
ai\lebi
The greatest common divisor of and is the monomial whose exponent vector is the componentwise minimum of and . The least common multiple is defined similarly with instead of .
One has
\operatorname{lcm}(M,N)= | MN |
\gcd(M,N) |
.
The reduction of a polynomial by other polynomials with respect to a monomial ordering is central to Gröbner basis theory. It is a generalization of both row reduction occurring in Gaussian elimination and division steps of the Euclidean division of univariate polynomials.[1] When completed as much as possible, it is sometimes called multivariate division although its result is not uniquely defined.
Lead-reduction is a special case of reduction that is easier to compute. It is fundamental for Gröbner basis computation, since general reduction is needed only at the end of a Gröbner basis computation, for getting a reduced Gröbner basis from a non-reduced one.
Let an admissible monomial ordering be fixed, to which refers every monomial comparison that will occur in this section.
A polynomial is lead-reducible by another polynomial if the leading monomial is a multiple of . The polynomial is reducible by if some monomial of is a multiple . (So, if is lead-reducible by, it is also reducible, but may be reducible without being lead-reducible.)
Suppose that is reducible by, and let be a term of such that the monomial is a multiple of . A one-step reduction of by consists of replacing by
\operatorname{red} | (g)} | ||||
|
m{\operatorname{lm}(g)} | |
g. |
This operation removes the monomial from without changing the terms with a monomial greater than (for the monomial ordering). In particular, a one step lead-reduction of produces a polynomial all of whose monomials are smaller than .
Given a finite set of polynomials, one says that is reducible or lead-reducible by if it is reducible or lead-reducible, respectively, by at least one element of . In this case, a one-step reduction (resp. one-step lead-reduction) of by is any one-step reduction (resp. one-step lead-reduction) of by an element of .
The (complete) reduction (resp. lead-reduction) of by consists of iterating one-step reductions (respect. one-step lead reductions) until getting a polynomial that is irreducible (resp. lead-irreducible) by . It is sometimes called a normal form of by . In general this form is not uniquely defined because there are, in general, several elements of that can be used for reducing ; this non-uniqueness is the starting point of Gröbner basis theory.
The definition of the reduction shows immediately that, if is a normal form of by, one has
f=h+\sumg\inqgg,
qg
\operatorname{lm}(qgg)\leq\operatorname{lm}(f).
In the example that follows, there are exactly two complete lead-reductions that produce two very different results. The fact that the results are irreducible (not only lead-irreducible) is specific to the example, although this is rather common with such small examples.
In this two variable example, the monomial ordering that is used is the lexicographic order with
x>y,
f=2x3-x2y+y3+3y
G=\{g1,g2\},
For the first reduction step, either the first or the second term of may be reduced. However, the reduction of a term amounts to removing this term at the cost of adding new lower terms; if it is not the first reducible term that is reduced, it may occur that a further reduction adds a similar term, which must be reduced again. It is therefore always better to reduce first the largest (for the monomial order) reducible term; that is, in particular, to lead-reduce first until getting a lead-irreducible polynomial.
The leading term
2x3
g1
g2.
g1
f \xrightarrow{-2xg1} f1=f-2xg
2y-2xy | |
1=-x |
2+2x+y3+3y.
The leading term
-x2y
f1
g1
g2,
g2,
g2\colon
f \xrightarrow{-2xg1} f1 \xrightarrow{xg2} -2xy2+y3+3y \xrightarrow{2yg2}
3-y. | |
f | |
2=y |
f2
One gets a different result with the other choice for the second step:
f \xrightarrow{-2xg1} f1 \xrightarrow{yg1} -2xy2+2x+2y3+2y \xrightarrow{2yg2}
3-2y. | |
f | |
3=2x+2y |
f3
In summary, the complete reduction of can result in either
3-y | |
f | |
2=y |
3-2y. | |
f | |
3=2x+2y |
It is for dealing with the problems set by this non-uniqueness that Buchberger introduced Gröbner bases and -polynomials. Intuitively, may be reduced to
f2-f3.
f2-f3
f3-f2
f3
f2
f3-f2
Here Buchberger's algorithm for Gröbner bases would begin by adding to the polynomial
g3=yg1-xg
3-y. | |
2=2x+y |
x2y
g1
g2
g2
g1
g3=\left(x2y-
x2y | |
lt(g2) |
g2\right)-\left(x2y-
x2y | |
lt(g1) |
g1\right)=
x2y | |
lt(g1) |
g1-
x2y | |
lt(g2) |
g2
g3=f3-f2.
g2
g3.
Given monomial ordering, the S-polynomial or critical pair of two polynomials and is the polynomial
S(f,g)=\operatorname{red}1(lcm,g)-\operatorname{red}1(lcm,f)
\operatorname{red}1
\begin{align}S(f,g) &=\left(lcm-
1 | (g)} | |
\operatorname{lc |
lcm | |
\operatorname{lm |
(g)}g\right)-\left(lcm-
1 | (f)} | |
\operatorname{lc |
lcm | |
\operatorname{lm |
(f)}f\right)\\ &=
1 | (f)} | |
\operatorname{lc |
lcm | |
\operatorname{lm |
(f)}f-
1 | (g)} | |
\operatorname{lc |
lcm | |
\operatorname{lm |
(g)}g\\ \end{align}.
S(f,g)=
| ||||
As the monomials that are reducible by both and are exactly the multiples of, one can deal with all cases of non-uniqueness of the reduction by considering only the S-polynomials. This is a fundamental fact for Gröbner basis theory and all algorithms for computing them.
For avoiding fractions when dealing with polynomials with integer coefficients, the S polynomial is often defined as
S(f,g)=\operatorname{lc}(g)
\operatorname{lm | |
(g)}{gcd |
Let
R=F[x1,\ldots,xn]
Let be a finite set of polynomials in that generates an ideal . The set is a Gröbner basis (with respect to the monomial ordering), or, more precisely, a Gröbner basis of if
or, equivalently,
There are many characterizing properties, which can each be taken as an equivalent definition of Gröbner bases. For conciseness, in the following list, the notation "one-word/another word" means that one can take either "one-word" or "another word" for having two different characterizations of Gröbner bases. All the following assertions are characterizations of Gröbner bases:
Counting the above definition, this provides 12 characterizations of Gröbner bases. The fact that so many characterizations are possible makes Gröbner bases very useful. For example, condition 3 provides an algorithm for testing ideal membership; condition 4 provides an algorithm for testing whether a set of polynomials is a Gröbner basis and forms the basis of Buchberger's algorithm for computing Gröbner bases; conditions 5 and 6 allow computing in
R/I
For every admissible monomial ordering and every finite set of polynomials, there is a Gröbner basis that contains and generates the same ideal. Moreover, such a Gröbner basis may be computed with Buchberger's algorithm.
This algorithm uses condition 4, and proceeds roughly as follows: for any two elements of, compute the complete reduction by of their S-polynomial, and add the result to if it is not zero; repeat this operation with the new elements of included until, eventually, all reductions produce zero.
The algorithm terminates always because of Dickson's lemma or because polynomial rings are Noetherian (Hilbert's basis theorem). Condition 4 insures that the result is a Gröbner basis, and the definitions of S-polynomials and reduction insure that the generated ideal is not changed.
The above method is an algorithm for computing Gröbner bases; however, it is very inefficient. Many improvements of the original Buchberger's algorithm, and several other algorithms have been proposed and implemented, which dramatically improve the efficiency. See, below.
A Gröbner basis is if all leading monomials of its elements are irreducible by the other elements of the basis. Given a Gröbner basis of an ideal, one gets a minimal Gröbner basis of by removing the polynomials whose leading monomials are multiple of the leading monomial of another element of the Gröbner basis. However, if two polynomials of the basis have the same leading monomial, only one must be removed. So, every Gröbner basis contains a minimal Gröbner basis as a subset.
All minimal Gröbner bases of a given ideal (for a fixed monomial ordering) have the same number of elements, and the same leading monomials, and the non-minimal Gröbner bases have more elements than the minimal ones.
A Gröbner basis is if every polynomial in it is irreducible by the other elements of the basis, and has as leading coefficient. So, every reduced Gröbner basis is minimal, but a minimal Gröbner basis need not be reduced.
Given a Gröbner basis of an ideal, one gets a reduced Gröbner basis of by first removing the polynomials that are lead-reducible by other elements of the basis (for getting a minimal basis); then replacing each element of the basis by the result of the complete reduction by the other elements of the basis; and, finally, by dividing each element of the basis by its leading coefficient.
All reduced Gröbner bases of an ideal (for a fixed monomial ordering) are equal. It follows that two ideals are equal if and only if they have the same reduced Gröbner basis.
Sometimes, reduced Gröbner bases are defined without the condition on the leading coefficients. In this case, the uniqueness of reduced Gröbner bases is true only up to the multiplication of polynomials by a nonzero constant.
When working with polynomials over the field
\Q
For every monomial ordering, the empty set of polynomials is the unique Gröbner basis of the zero ideal.
For every monomial ordering, a set of polynomials that contains a nonzero constant is a Gröbner basis of the unit ideal (the whole polynomial ring). Conversely, every Gröbner basis of the unit ideal contains a nonzero constant. The reduced Gröbner basis of the unit is formed by the single polynomial .
In the case of polynomials in a single variable, there is a unique admissible monomial ordering, the ordering by the degree. The minimal Gröbner bases are the singletons consisting of a single polynomial. The reduced Gröbner bases are the monic polynomials.
Let
R=\Q[x,y]
I=\langlef,g\rangle
f=x2-y
g=x3-x
By reducing by, one obtains a new polynomial such that
I=\langlef,k\rangle:
k=g-xf=xy-x.
None of and is reducible by the other, but is reducible by, which gives another polynomial in :
h=xk-(y-1)f=y2-y.
Under lexicographic ordering with
x>y
As and belong to, and none of them is reducible by the others, none of
\{f,k\},
\{f,h\},
\{h,k\}
On the other hand, is a Gröbner basis of, since the S-polynomials
\begin{align} yf-xk&=y(x2-y)-x(xy-x)=f-h\\ yk-xh&=y(xy-x)-x(y2-y)=0\\ y2f-x2h&=y(yf-xk)+x(yk-xh) \end{align}
The method that has been used here for finding and, and proving that is a Gröbner basis is a direct application of Buchberger's algorithm. So, it can be applied mechanically to any similar example, although, in general, there are many polynomials and S-polynomials to consider, and the computation is generally too large for being done without a computer.
Unless explicitly stated, all the results that follow[3] are true for any monomial ordering (see that article for the definitions of the different orders that are mentioned below).
It is a common misconception that the lexicographical order is needed for some of these results. On the contrary, the lexicographical order is, almost always, the most difficult to compute, and using it makes impractical many computations that are relatively easy with graded reverse lexicographic order (grevlex), or, when elimination is needed, the elimination order (lexdeg) which restricts to grevlex on each block of variables.
Reduced Gröbner bases are unique for any given ideal and any monomial ordering. Thus two ideals are equal if and only if they have the same (reduced) Gröbner basis (usually a Gröbner basis software always produces reduced Gröbner bases).
The reduction of a polynomial f by the Gröbner basis G of an ideal yields 0 if and only if f is in . This allows to test the membership of an element in an ideal. Another method consists in verifying that the Gröbner basis of
G∪ is equal to G.To test if the ideal generated by
f1, ..., fk is contained in the ideal, it suffices to test that every is in . One may also test the equality of the reduced Gröbner bases of and ∪ .See main article: System of polynomial equations. Any set of polynomials may be viewed as a system of polynomial equations by equating the polynomials to zero. The set of the solutions of such a system depends only on the generated ideal, and, therefore does not change when the given generating set is replaced by the Gröbner basis, for any ordering, of the generated ideal. Such a solution, with coordinates in an algebraically closed field containing the coefficients of the polynomials, is called a zero of the ideal. In the usual case of rational coefficients, this algebraically closed field is chosen as the complex field.
An ideal does not have any zero (the system of equations is inconsistent) if and only if 1 belongs to the ideal (this is Hilbert's Nullstellensatz), or, equivalently, if its Gröbner basis (for any monomial ordering) contains 1, or, also, if the corresponding reduced Gröbner basis is [1].
Given the Gröbner basis G of an ideal I, it has only a finite number of zeros, if and only if, for each variable x, G contains a polynomial with a leading monomial that is a power of x (without any other variable appearing in the leading term). If this is the case, then the number of zeros, counted with multiplicity, is equal to the number of monomials that are not multiples of any leading monomial of G. This number is called the degree of the ideal.
When the number of zeros is finite, the Gröbner basis for a lexicographical monomial ordering provides, theoretically, a solution: the first coordinate of a solution is a root of the greatest common divisor of polynomials of the basis that depend only on the first variable. After substituting this root in the basis, the second coordinate of this solution is a root of the greatest common divisor of the resulting polynomials that depend only on the second variable, and so on. This solving process is only theoretical, because it implies GCD computation and root-finding of polynomials with approximate coefficients, which are not practicable because of numeric instability. Therefore, other methods have been developed to solve polynomial systems through Gröbner bases (see System of polynomial equations for more details).
The dimension of an ideal I in a polynomial ring R is the Krull dimension of the ring R/I and is equal to the dimension of the algebraic set of the zeros of I. It is also equal to number of hyperplanes in general position which are needed to have an intersection with the algebraic set, which is a finite number of points. The degree of the ideal and of its associated algebraic set is the number of points of this finite intersection, counted with multiplicity. In particular, the degree of a hypersurface is equal to the degree of its definition polynomial.
Both degree and dimension depend only on the set of the leading monomials of the Gröbner basis of the ideal for any monomial ordering.
The dimension is the maximal size of a subset S of the variables such that there is no leading monomial depending only on the variables in S. Thus, if the ideal has dimension 0, then for each variable x there is a leading monomial in the Gröbner basis that is a power of x.
Both dimension and degree may be deduced from the Hilbert series of the ideal, which is the series , where
di
infty | |
\sum | |
i=0 |
| ||||
d | ||||
it |
,
P(t)
P(1)
Although the dimension and the degree do not depend on the choice of the monomial ordering, the Hilbert series and the polynomial
P(t)
Most computer algebra systems that provide functions to compute Gröbner bases provide also functions for computing the Hilbert series, and thus also the dimension and the degree.
The computation of Gröbner bases for an elimination monomial ordering allows computational elimination theory. This is based on the following theorem.
Consider a polynomial ring
K[x1,\ldots,xn,y1,\ldots,ym]=K[X,Y],
G\capK[Y]
I\capK[Y]
G\capK[Y]
G\capK[Y]
This elimination property has many applications, some described in the next sections.
Another application, in algebraic geometry, is that elimination realizes the geometric operation of projection of an affine algebraic set into a subspace of the ambient space: with above notation, the (Zariski closure of) the projection of the algebraic set defined by the ideal I into the Y-subspace is defined by the ideal
I\capK[Y].
The lexicographical ordering such that
x1> … >xn
\{x1,\ldots,xk\},\{xk+1,\ldots,xn\}.
If and are two ideals generated respectively by and, then a single Gröbner basis computation produces a Gröbner basis of their intersection . For this, one introduces a new indeterminate t, and one uses an elimination ordering such that the first block contains only t and the other block contains all the other variables (this means that a monomial containing t is greater than every monomial that does not contain t). With this monomial ordering, a Gröbner basis of consists in the polynomials that do not contain t, in the Gröbner basis of the ideal
K=\langletf1,\ldots,tfm,(1-t)g1,\ldots,(1-t)gk\rangle.
(a-b)t+b
a\inI
b\inJ
b\inI\capJ.
A rational curve is an algebraic curve that has a set of parametric equations of the form
\begin{align} x1&=
f1(t) | |
g1(t) |
\\ & \vdots\\ xn&=
fn(t) | |
gn(t) |
, \end{align}
fi(t)
gi(t)
fi(t)
gi(t)
Implicitization consists in computing the implicit equations of such a curve. In case of n = 2, that is for plane curves, this may be computed with the resultant. The implicit equation is the following resultant:
Rest(g1x1-f1,g2x2-f2).
Elimination with Gröbner bases allows to implicitize for any value of n, simply by eliminating t in the ideal
\langleg1x1-f1,\ldots,gnxn-fn\rangle.
t\mapsto(x1,x2)
When modeling a problem by polynomial equations, it is often assumed that some quantities are non-zero, so as to avoid degenerate cases. For example, when dealing with triangles, many properties become false if the triangle degenerates to a line segment, i.e. the length of one side is equal to the sum of the lengths of the other sides. In such situations, one cannot deduce relevant information from the polynomial system unless the degenerate solutions are ignored. More precisely, the system of equations defines an algebraic set which may have several irreducible components, and one must remove the components on which the degeneracy conditions are everywhere zero.
This is done by saturating the equations by the degeneracy conditions, which may be done via the elimination property of Gröbner bases.
The localization of a ring consists in adjoining to it the formal inverses of some elements. This section concerns only the case of a single element, or equivalently a finite number of elements (adjoining the inverses of several elements is equivalent to adjoining the inverse of their product). The localization of a ring R by an element f is the ring
Rf=R[t]/(1-ft),
RfI
If.
Rf
The with respect to f of an ideal in R is the inverse image of
RfI
Rf.
I:finfty=\{g\inR\mid(\existsk\inN)fkg\inI\}
If is the ideal generated by and 1-ft in R[''t''], then
I:finfty=J\capR.
The important property of the saturation, which ensures that it removes from the algebraic set defined by the ideal the irreducible components on which the polynomial f is zero, is the following: The primary decomposition of
I:finfty
A Gröbner basis of the saturation by f of a polynomial ideal generated by a finite set of polynomials F, may be obtained by eliminating t in
F\cup\{1-tf\},
F\cup\{1-tf\}
Instead of using F, one may also start from a Gröbner basis of F. Which method is most efficient depends on the problem. However, if the saturation does not remove any component, that is if the ideal is equal to its saturated ideal, computing first the Gröbner basis of F is usually faster. On the other hand, if the saturation removes some components, the direct computation may be dramatically faster.
If one wants to saturate with respect to several polynomials
f1,\ldots,fk
f=f1 … fk,
f=f1 … fk
f1,
f2,
1-t1f1,\ldots,1-tkfk,
ti
Hilbert's Nullstellensatz has two versions. The first one asserts that a set of polynomials has no common zeros over an algebraic closure of the field of the coefficients, if and only if 1 belongs to the generated ideal. This is easily tested with a Gröbner basis computation, because 1 belongs to an ideal if and only if 1 belongs to the Gröbner basis of the ideal, for any monomial ordering.
The second version asserts that the set of common zeros (in an algebraic closure of the field of the coefficients) of an ideal is contained in the hypersurface of the zeros of a polynomial f, if and only if a power of f belongs to the ideal. This may be tested by saturating the ideal by f; in fact, a power of f belongs to the ideal if and only if the saturation by f provides a Gröbner basis containing 1.
By definition, an affine rational variety of dimension k may be described by parametric equations of the form
\begin{align} x | ||||
|
\\ & \vdots\\ x | ||||
|
, \end{align}
p0,\ldots,pn
t1,\ldots,tk.
t1,\ldots,tk
x1,\ldots,xn
I=\left\langlep0x1-p1,\ldots,p0xn-pn\right\rangle.
One could guess that it suffices to eliminate the parameters to obtain the implicit equations of the variety, as it has been done in the case of curves. Unfortunately this is not always the case. If the
pi
pi
ti
Therefore, if k>1, two Gröbner basis computations are needed to implicitize:
I
p0
G
ti
G
Buchberger's algorithm is the oldest algorithm for computing Gröbner bases. It has been devised by Bruno Buchberger together with the Gröbner basis theory. It is straightforward to implement, but it appeared soon that raw implementations can solve only trivial problems. The main issues are the following ones:
For solving 3. many improvements, variants and heuristics have been proposed before the introduction of F4 and F5 algorithms by Jean-Charles Faugère. As these algorithms are designed for integer coefficients or with coefficients in the integers modulo a prime number, Buchberger's algorithm remains useful for more general coefficients.
Roughly speaking, F4 algorithm solves 3. by replacing many S-polynomial reductions by the row reduction of a single large matrix for which advanced methods of linear algebra can be used. This solves partially issue 4., as reductions to zero in Buchberger's algorithm correspond to relations between rows of the matrix to be reduced, and the zero rows of the reduced matrix correspond to a basis of the vector space of these relations.
F5 algorithm improves F4 by introducing a criterion that allows reducing the size of the matrices to be reduced. This criterion is almost optimal, since the matrices to be reduced have full rank in sufficiently regular cases (in particular, when the input polynomials form a regular sequence). Tuning F5 for a general use is difficult, since its performances depend on an order on the input polynomials and a balance between the incrementation of the working polynomial degree and of the number of the input polynomials that are considered. To date (2022), there is no distributed implementation that is significantly more efficient than F4, but, over modular integers F5 has been used successfully for several cryptographic challenges; for example, for breaking HFE challenge.
Issue 5. has been solved by the discovery of basis conversion algorithms that start from the Gröbner basis for one monomial ordering for computing a Gröbner basis for another monomial ordering. FGLM algorithm is such a basis conversion algorithm that works only in the zero-dimensional case (where the polynomials have a finite number of complex common zeros) and has a polynomial complexity in the number of common zeros. A basis conversion algorithm that works is the general case is the Gröbner walk algorithm.[4] In its original form, FGLM may be the critical step for solving systems of polynomial equations because FGML does not take into account the sparsity of involved matrices. This has been fixed by the introduction of sparse FGLM algorithms.[5]
Most general-purpose computer algebra systems have implementations of one or several algorithms for Gröbner bases, often also embedded in other functions, such as for solving systems of polynomial equations or for simplifying trigonometric functions; this is the case, for example, of CoCoA, GAP, Macaulay 2, Magma, Maple, Mathematica, SINGULAR, SageMath and SymPy. When F4 is available, it is generally much more efficient than Buchberger's algorithm. The implementation techniques and algorithmic variants are not always documented, although they may have a dramatic effect on efficiency.
Implementations of F4 and (sparse)-FGLM are included in the library Msolve.[6] Beside Gröbner algorithms, Msolve contains fast algorithms for real-root isolation, and combines all these functions in an algorithm for the real solutions of systems of polynomial equations that outperforms dramatically the other software for this problem (Maple and Magma). Msolve is available on GitHub, and is interfaced with Julia, Maple and SageMath; this means that Msolve can be used directly from within these software environments.
The complexity of the Gröbner basis computations is commonly evaluated in term of the number of variables and the maximal degree of the input polynomials.
In the worst case, the main parameter of the complexity is the maximal degree of the elements of the resulting reduced Gröbner basis. More precisely, if the Gröbner basis contains an element of a large degree, this element may contain
\Omega(Dn)
\Omega(Dn)>D\Omega(n).
O(Dn).
O(Dn)O(1)=DO(n).
The worst-case complexity of a Gröbner basis computation is doubly exponential in . More precisely, the complexity is upper bounded by a polynomial in Using little o notation, it is therefore bounded by On the other hand, examples have been given of reduced Gröbner bases containing polynomials of degree or containing elements. As every algorithm for computing a Gröbner basis must write its result, this provides a lower bound of the complexity.
Gröbner basis is EXPSPACE-complete.
R ⊕ L
R[e1,\ldots,el]/\left\langle\{eiej|1\lei\lej\lel\}\right\rangle
e1,\ldots,el
g1,\ldots,gk
R[e1,\ldots,el]
g1,\ldots,gk
eiej
1\lei\lej\lel
The concept and algorithms of Gröbner bases have also been generalized to ideals over various rings, commutative or not, like polynomial rings over a principal ideal ring or Weyl algebras.
Gröbner basis has been applied in the theory of error-correcting codes for algebraic decoding. By using Gröbner basis computation on various forms of error-correcting equations, decoding methods were developed for correcting errors of cyclic codes,[7] affine variety codes,[8] algebraic-geometric codes and even general linear block codes.[9] Applying Gröbner basis in algebraic decoding is still a research area of channel coding theory.