Gröbner basis
   HOME

TheInfoList



OR:

In
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, and more specifically in
computer algebra In mathematics and computer science, computer algebra, also called symbolic computation or algebraic computation, is a scientific area that refers to the study and development of algorithms and software for manipulating mathematical expressions ...
, computational
algebraic geometry Algebraic geometry is a branch of mathematics, classically studying zeros of multivariate polynomials. Modern algebraic geometry is based on the use of abstract algebraic techniques, mainly from commutative algebra, for solving geometrical ...
, and computational
commutative algebra Commutative algebra, first known as ideal theory, is the branch of algebra that studies commutative rings, their ideals, and modules over such rings. Both algebraic geometry and algebraic number theory build on commutative algebra. Prom ...
, a Gröbner basis is a particular kind of generating set of an ideal in a
polynomial ring In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring (which is also a commutative algebra) formed from the set of polynomials in one or more indeterminates (traditionally also called variables ...
over a field . A Gröbner basis allows many important properties of the ideal and the associated
algebraic variety Algebraic varieties are the central objects of study in algebraic geometry, a sub-field of mathematics. Classically, an algebraic variety is defined as the set of solutions of a system of polynomial equations over the real or complex numbers. ...
to be deduced easily, such as the
dimension In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coord ...
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 Algebraic varieties are the central objects of study in algebraic geometry, a sub-field of mathematics. Classically, an algebraic variety is defined as the set of solutions of a system of polynomial equations over the real or complex numbers. ...
under projections or
rational map In mathematics, in particular the subfield of algebraic geometry, a rational map or rational mapping is a kind of partial function between algebraic varieties. This article uses the convention that varieties are irreducible. Definition Formal d ...
s. Gröbner basis computation can be seen as a multivariate, non-linear generalization of both
Euclid's algorithm In mathematics, the Euclidean algorithm,Some widely used textbooks, such as I. N. Herstein's ''Topics in Algebra'' and Serge Lang's ''Algebra'', use the term "Euclidean algorithm" to refer to Euclidean division or Euclid's algorithm, is an ef ...
for computing
polynomial greatest common divisor In algebra, the greatest common divisor (frequently abbreviated as GCD) of two polynomials is a polynomial, of the highest possible degree, that is a factor of both the two original polynomials. This concept is analogous to the greatest common ...
s, and
Gaussian elimination In mathematics, Gaussian elimination, also known as row reduction, is an algorithm for solving systems of linear equations. It consists of a sequence of operations performed on the corresponding matrix of coefficients. This method can also be used ...
for linear systems. Gröbner bases were introduced in 1965, together with an algorithm to compute them ( Buchberger's algorithm), by
Bruno Buchberger Bruno Buchberger (born 22 October 1942) is Professor of Computer Mathematics at Johannes Kepler University in Linz, Austria. In his 1965 Ph.D. thesis, he created the theory of Gröbner bases, and has developed this theory throughout his career. ...
in his Ph.D. thesis. He named them after his advisor
Wolfgang Gröbner Wolfgang Gröbner (11 February 1899 – 20 August 1980) was an Austrian mathematician. His name is best known for the Gröbner basis, used for computations in algebraic geometry. However, the theory of Gröbner bases for polynomial rings was deve ...
. In 2007, Buchberger received the
Association for Computing Machinery The Association for Computing Machinery (ACM) is a US-based international learned society for computing. It was founded in 1947 and is the world's largest scientific and educational computing society. The ACM is a non-profit professional member ...
'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.'' An analogous concept for multivariate
power series In mathematics, a power series (in one variable) is an infinite series of the form \sum_^\infty a_n \left(x - c\right)^n = a_0 + a_1 (x - c) + a_2 (x - c)^2 + \dots where ''an'' represents the coefficient of the ''n''th term and ''c'' is a con ...
was developed independently by
Heisuke Hironaka is a Japanese mathematician who was awarded the Fields Medal in 1970 for his contributions to algebraic geometry. Career Hironaka entered Kyoto University in 1949. After completing his undergraduate studies at Kyoto University, he received his ...
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 ring In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring (which is also a commutative algebra) formed from the set of polynomials in one or more indeterminates (traditionally also called variables ...
s, and also some classes of non-commutative rings and algebras, like Ore algebras.


Tools


Polynomial ring

Gröbner bases are primarily defined for
ideal Ideal may refer to: Philosophy * Ideal (ethics), values that one actively pursues as goals * Platonic ideal, a philosophical idea of trueness of form, associated with Plato Mathematics * Ideal (ring theory), special subsets of a ring considered ...
s in a
polynomial ring In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring (which is also a commutative algebra) formed from the set of polynomials in one or more indeterminates (traditionally also called variables ...
R=K _1,\ldots,x_n/math> over a field . Although the theory works for any field, most Gröbner basis computations are done either when is the field of rationals or the integers modulo a prime number. In the context of Gröbner bases, a nonzero
polynomial In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An exampl ...
in R=K _1,\ldots,x_n/math> is commonly represented as a sum c_1M_1 +\cdots + c_mM_m, where the c_i are nonzero elements of , called ''coefficients'', and the M_i are
monomial In mathematics, a monomial is, roughly speaking, a polynomial which has only one term. Two definitions of a monomial may be encountered: # A monomial, also called power product, is a product of powers of variables with nonnegative integer expon ...
s (called ''power products'' by Buchberger and some of his followers) of the form x_1^\cdots x_n^, where the a_i are nonnegative integers. The vector A= _1, \ldots ,a_n/math> is called the ''exponent vector'' of the monomial. When the list X= _1, \ldots, x_n/math> of the variables is fixed, the notation of monomials is often abbreviated as x_1^\cdots x_n^=X^A. 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 In mathematics and computer algebra, factorization of polynomials or polynomial factorization expresses a polynomial with coefficients in a given field or in the integers as the product of irreducible factors with coefficients in the same dom ...
and
polynomial greatest common divisor In algebra, the greatest common divisor (frequently abbreviated as GCD) of two polynomials is a polynomial, of the highest possible degree, that is a factor of both the two original polynomials. This concept is analogous to the greatest common ...
. If F=\ is a finite set of polynomials in the polynomial ring , the ideal generated by is the set of linear combinations of elements of with coefficients in ; that is the set of polynomials that can be written \sum_^k g_i f_i with g_1,\ldots, g_k\in R.


Monomial ordering

All operations related to Gröbner bases require the choice of a
total order In mathematics, a total or linear order is a partial order in which any two elements are comparable. That is, a total order is a binary relation \leq on some set X, which satisfies the following for all a, b and c in X: # a \leq a ( reflexive ...
on the monomials, with the following properties of compatibility with multiplication. For all monomials , , , # M \leq N \Longleftrightarrow MP \leq NP # M \leq MP . A total order satisfying these condition is sometimes called an ''admissible ordering''. These conditions imply that the order is a
well-order In mathematics, a well-order (or well-ordering or well-order relation) on a set ''S'' is a total order on ''S'' with the property that every non-empty subset of ''S'' has a least element in this ordering. The set ''S'' together with the well-or ...
, 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: * ''Lexicographical ordering'', commonly called ''lex'' or ''plex'' (for pure lexical ordering). * ''Total degree reverse lexicographical ordering'', commonly called ''degrevlex''. * ''Elimination ordering'', ''lexdeg''. 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.


Basic operations


Leading term, coefficient and monomial

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).


Polynomial operations

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: * The addition of two polynomials consists in a merge of the two corresponding lists of terms, with a special treatment in the case of a conflict (that is, when the same monomial appears in the two polynomials). * The multiplication of a polynomial by a scalar consists of multiplying each coefficient by this scalar, without any other change in the representation. * The multiplication of a polynomial by a monomial consists of multiplying each monomial of the polynomial by . This does not change the term ordering by definition of a monomial ordering.


Divisibility of monomials

Let M=x_1^\cdots x_n^ and N=x_1^\cdots x_n^ be two monomials, with exponent vectors A= _1,\ldots, a_n/math> and B= _1,\ldots, b_n One says that ''divides'' , or that is a ''multiple'' of , if a_i\le b_i for every ; that is, if is componentwise not greater than . In this case, the quotient \frac NM is defined as \frac NM=x_1^\cdots x_n^. In other words, the exponent vector of \frac NM is the componentwise subtraction of the exponent vectors of and . The ''greatest common divisor'' of and is the monomial x_1^\cdots x_n^ whose exponent vector is the componentwise minimum of and . The ''least common multiple'' is defined similarly with instead of . One has :\operatorname(M,N)=\frac .


Reduction

The ''reduction'' of a polynomial by other polynomials with respect to a momomial ordering is central to Gröbner basis theory. It is a generalization of both row reduction occurring in
Gaussian elimination In mathematics, Gaussian elimination, also known as row reduction, is an algorithm for solving systems of linear equations. It consists of a sequence of operations performed on the corresponding matrix of coefficients. This method can also be used ...
and division steps of the Euclidean division of univariate polynomials. 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_1(f,g)=f-\frac\,\frac m\, 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 whose all 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+\sum_ q_g\,g, where is irreducible by and the q_g are polynomials such that \operatorname(q_g\,g) < \operatorname(f). In the case of univariate polynomials, if consists of a single element , then is the remainder of the
Euclidean division In arithmetic, Euclidean division – or division with remainder – is the process of dividing one integer (the dividend) by another (the divisor), in a way that produces an integer quotient and a natural number remainder strictly smaller than ...
of by , and is the quotient. Moreover, the division algorithm is exactly the process of lead-reduction. For this reason, some authors use the term ''multivariate division'' instead of reduction.


Non uniqueness of reduction

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, and we consider the reduction of f=2x^3-x^2y+y^3+3y by G=\, with \beging_1&=x^2+y^2-1,\\g_2&=xy-2.\end For the first reduction step, either the first or the second term of may be reduced. However, the reduction of a term amounts to remove 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 2x^3 of is reducible by g_1 and not by g_2. So the first reduction step consists of multiplying g_1 by and adding the result to : :f\;\overset\longrightarrow\; f_1=f-2xg_1=-x^2y-2xy^2+2x+y^3+3y. The leading term -x^2y of f_1 is a multiple of the leading monomials of both g_1 and g_2, So, one has two choices for the second reduction step. If one choses g_2, one gets a polynomial that can be reduced again by g_2\colon :f\;\overset\longrightarrow\; f_1 \;\overset\longrightarrow\; -2xy^2+y^3+3y\;\overset\longrightarrow\; f_2=y^3-y. No further reduction is possible, so f_2 is a complete reduction of . One gets a different result with the other choice for the second step: :f\;\overset\longrightarrow\; f_1 \;\overset\longrightarrow\; -2xy^2+2x+2y^3+2y \;\overset\longrightarrow\; f_3=2x+2y^3-2y. Again, the result f_3 is irreducible, although only lead reductions were done. In summary, the complete reduction of can result in either f_2=y^3-y or f_3=2x+2y^3-2y. This is for dealing with the problems set by this non-uniqueness that Buchberger introduced Gröbner bases and -polynomials. Intuitively, may be reduced to f_2-f_3. This implies that f_2-f_3 belongs to the ideal generated by . So, this ideal is not changed by adding f_3-f_2 to , and this allows more reductions. In particular, f_3 can be reduced to f_2 by f_3-f_2 and this restores the uniqueness of the reduced form. Here Buchberger's algorithm for Gröbner bases would begin by adding to the polynomial :g_3=yg_1-xg_2=2x+y^3-y. This polynomial, called -polynomial by Buchberger is the difference of the one-step reductions of the least common multiple x^2y of the leading monomials of g_1 and g_2 (in this example, one has g_3=f_3-f_2). This does not complete Buchberger's algorithm, as gives different results, when reduced by g_2 or g_3.


''S''-polynomial

The ''S''-polynomial, also called ''critical pair'', with respect of a given monomial ordering, of two polynomials and is the polynomial :\beginS(f,g) &=\operatorname_1 (\mathrm,g) -\operatorname_1 (\mathrm,f)\\ &=\frac 1\,\frac\,f - \frac 1\,\frac\,g, \end where and denote respectively the least common multiple and the greatest common divisor of the leading monomials of and . 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.


Definition

Let R=F _1,\ldots,x_n/math> be a
polynomial ring In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring (which is also a commutative algebra) formed from the set of polynomials in one or more indeterminates (traditionally also called variables ...
over a field . In this section, we suppose that an admissible monomial ordering has been fixed. Let be a finite set of polynomials in that generates an
ideal Ideal may refer to: Philosophy * Ideal (ethics), values that one actively pursues as goals * Platonic ideal, a philosophical idea of trueness of form, associated with Plato Mathematics * Ideal (ring theory), special subsets of a ring considered ...
. The set is a Gröbner basis (with respect to the monomial ordering), or, more precisely, a Gröbner basis of if # the ideal generated by the leading monomials of the polynomials in equals the ideal generated by the leading monomials of , 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 in a way that is very similar to
modular arithmetic In mathematics, modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" when reaching a certain value, called the modulus. The modern approach to modular arithmetic was developed by Carl Friedrich Gauss in his boo ...
. ''Existence of Gröbner bases.'' 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: add to all nonzero results of a complete reduction by of a -polynomial of two elements of ; repeat this operation with the new elements of included until, eventually, all reductions produce zero. The algorithm terminates always because of
Dickson's lemma In mathematics, Dickson's lemma states that every set of n-tuples of natural numbers has finitely many minimal elements. This simple fact from combinatorics has become attributed to the American algebraist L. E. Dickson, who used it to prove a re ...
or because polynomial rings are
Noetherian In mathematics, the adjective Noetherian is used to describe objects that satisfy an ascending or descending chain condition on certain kinds of subobjects, meaning that certain ascending or descending sequences of subobjects must have finite lengt ...
( Hilbert's basis theorem). Condition 4 insures that the result is a Gröbner basis.


Reduced Gröbner bases

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 needs not to 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 Two mathematical objects ''a'' and ''b'' are called equal up to an equivalence relation ''R'' * if ''a'' and ''b'' are related by ''R'', that is, * if ''aRb'' holds, that is, * if the equivalence classes of ''a'' and ''b'' with respect to ''R'' ...
the multiplication of polynomials by a nonzero constant. When working with polynomials over the field \Q of the
rational number In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all ra ...
s, it is useful to work only with polynomials with integer coefficients. In this case, the condition on the leading coefficients in the definition of a reduced basis may be replaced by the condition that all elements of the basis are primitive polynomials with integer coefficients, with positive leading coefficients. This restores the uniqueness of reduced bases. In most implementations of Gröbner basis computation, the Gröbner bases that are output are always reduced.


Special cases

For every monomial ordering, the
empty set In mathematics, the empty set is the unique set having no elements; its size or cardinality (count of elements in a set) is zero. Some axiomatic set theories ensure that the empty set exists by including an axiom of empty set, while in othe ...
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 In ring theory, a branch of abstract algebra, an ideal of a ring is a special subset of its elements. Ideals generalize certain subsets of the integers, such as the even numbers or the multiples of 3. Addition and subtraction of even numbers ...
(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 polynomial In algebra, a monic polynomial is a single-variable polynomial (that is, a univariate polynomial) in which the leading coefficient (the nonzero coefficient of highest degree) is equal to 1. Therefore, a monic polynomial has the form: :x^n+c_x^+\ ...
s.


Example and counterexample

Let R = \Q ,y/math> be the ring of bivariate polynomials with rational coefficients and consider the ideal I = \langle f,g\rangle generated by the polynomials :f=x^2-y, :g=x^3-x. By reducing by , one obtains a new polynomial such that I=\langle f,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= y^2 -y. Under lexicographic ordering with x>y we have : : : As and belong to , and none of them is reducible by the others, none of \, \, and \ is a Gröbner basis of . On the other hand, is a Gröbner basis of , since the S-polynomials :\begin yf-xk&=y(x^2-y)-x(xy-x)=f-h\\ yk-xh&=y(xy-x)-x(y^2-y)=0\\ y^2f-x^2h&= y(yf-xk)+x(yk-xh) \end can be reduced to zero by and . 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.


Properties and applications of Gröbner bases

Unless explicitly stated, all the results that follow 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.


Equality of ideals

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).


Membership and inclusion of ideals

The reduction of a polynomial ''f'' by the Gröbner basis ''G'' of an ideal yields 0
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (shortened as "iff") is a biconditional logical connective between statements, where either both statements are true or both are false. The connective is bic ...
''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 ''f''1, ..., ''f''''k'' 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 .


Solutions of a system of algebraic 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 In mathematics, a field is algebraically closed if every non-constant polynomial in (the univariate polynomial ring with coefficients in ) has a root in . Examples As an example, the field of real numbers is not algebraically closed, because ...
containing the coefficients of the polynomials, is called a ''zero of the ideal''. In the usual case of
rational Rationality is the quality of being guided by or based on reasons. In this regard, a person acts rationally if they have a good reason for what they do or a belief is rational if it is based on strong evidence. This quality can apply to an abi ...
coefficients, this algebraically closed field is chosen as the
complex field In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the fo ...
. An ideal does not have any zero (the system of equations is
inconsistent In classical deductive logic, a consistent theory is one that does not lead to a logical contradiction. The lack of contradiction can be defined in either semantic or syntactic terms. The semantic definition states that a theory is consiste ...
) if and only if 1 belongs to the ideal (this is
Hilbert's Nullstellensatz In mathematics, Hilbert's Nullstellensatz (German for "theorem of zeros," or more literally, "zero-locus-theorem") is a theorem that establishes a fundamental relationship between geometry and algebra. This relationship is the basis of algebraic ...
), or, equivalently, if its Gröbner basis (for any monomial ordering) contains 1, or, also, if the corresponding reduced Gröbner basis is 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 In mathematics, the greatest common divisor (GCD) of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. For two integers ''x'', ''y'', the greatest common divisor of ''x'' and ''y'' is ...
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).


Dimension, degree and Hilbert series

The dimension of an ideal ''I'' in a polynomial ring ''R'' is the
Krull dimension In commutative algebra, the Krull dimension of a commutative ring ''R'', named after Wolfgang Krull, is the supremum of the lengths of all chains of prime ideals. The Krull dimension need not be finite even for a Noetherian ring. More generally th ...
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
hyperplane In geometry, a hyperplane is a subspace whose dimension is one less than that of its '' ambient space''. For example, if a space is 3-dimensional then its hyperplanes are the 2-dimensional planes, while if the space is 2-dimensional, its hyper ...
s in
general position In algebraic geometry and computational geometry, general position is a notion of genericity for a set of points, or other geometric objects. It means the ''general case'' situation, as opposed to some more special or coincidental cases that are ...
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 In geometry, a hypersurface is a generalization of the concepts of hyperplane, plane curve, and surface. A hypersurface is a manifold or an algebraic variety of dimension , which is embedded in an ambient space of dimension , generally a Euclidea ...
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 In commutative algebra, the Hilbert function, the Hilbert polynomial, and the Hilbert series of a graded commutative algebra finitely generated over a field are three strongly related notions which measure the growth of the dimension of the homog ...
of the ideal, which is the series \sum_^\infty d_i t^i, where d_i is the number of monomials of degree ''i'' that are not multiple of any leading monomial in the Gröbner basis. The Hilbert series may be summed into a rational fraction :\sum_^\infty d_it^i=\frac, where ''d'' is the dimension of the ideal and P(t) is a polynomial such that P(1) is the degree of the ideal. Although the dimension and the degree do not depend on the choice of the monomial ordering, the Hilbert series and the polynomial P(t) change when one changes the monomial ordering. Most
computer algebra system A computer algebra system (CAS) or symbolic algebra system (SAS) is any mathematical software with the ability to manipulate mathematical expressions in a way similar to the traditional manual computations of mathematicians and scientists. The ...
s that provide functions to compute Gröbner bases provide also functions for computing the Hilbert series, and thus also the dimension and the degree.


Elimination

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 _1,\ldots,x_n,y_1,\ldots,y_mK ,Y in which the variables are split into two subsets ''X'' and ''Y''. Let us also choose an elimination monomial ordering "eliminating" ''X'', that is a monomial ordering for which two monomials are compared by comparing first the ''X''-parts, and, in case of equality only, considering the ''Y''-parts. This implies that a monomial containing an ''X''-variable is greater than every monomial independent of ''X''. If ''G'' is a Gröbner basis of an ideal ''I'' for this monomial ordering, then G\cap K /math> is a Gröbner basis of I\cap K /math> (this ideal is often called the ''elimination ideal''). Moreover, G\cap K /math> consists exactly of the polynomials of whose leading terms belong to (this makes very easy the computation of G\cap K /math>, as only the leading monomials need to be checked). This ''elimination property'' has many applications, some described in the next sections. Another application, in
algebraic geometry Algebraic geometry is a branch of mathematics, classically studying zeros of multivariate polynomials. Modern algebraic geometry is based on the use of abstract algebraic techniques, mainly from commutative algebra, for solving geometrical ...
, is that ''elimination'' realizes the geometric operation of projection of an
affine algebraic set Affine may describe any of various topics concerned with connections or affinities. It may refer to: * Affine, a relative by marriage in law and anthropology * Affine cipher, a special case of the more general substitution cipher * Affine com ...
into a subspace of the ambient space: with above notation, the (
Zariski closure In algebraic geometry and commutative algebra, the Zariski topology is a topology which is primarily defined by its closed sets. It is very different from topologies which are commonly used in the real or complex analysis; in particular, it is ...
of) the projection of the algebraic set defined by the ideal ''I'' into the ''Y''-subspace is defined by the ideal I\cap K The lexicographical ordering such that x_1>\cdots >x_n is an elimination ordering for every partition \,\. Thus a Gröbner basis for this ordering carries much more information than usually necessary. This may explain why Gröbner bases for the lexicographical ordering are usually the most difficult to compute.


Intersecting ideals

If ''I'' and ''J'' are two ideals generated respectively by and , then a single Gröbner basis computation produces a Gröbner basis of their intersection ''I'' ∩ ''J''. 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 ''I'' ∩ ''J'' consists in the polynomials that do not contain ''t'', in the Gröbner basis of the ideal :K=\langle tf_1,\ldots, tf_m, (1-t)g_1, \ldots, (1-t)g_k\rangle. In other words, ''I'' ∩ ''J'' is obtained by ''eliminating'' ''t'' in ''K''. This may be proven by remarking that the ideal ''K'' consists in the polynomials (a-b)t+b such that a\in I and b\in J. Such a polynomial is independent of ''t'' if and only if ''a''=''b'', which means that b\in I\cap J.


Implicitization of a rational curve

A rational curve is an
algebraic curve In mathematics, an affine algebraic plane curve is the zero set of a polynomial in two variables. A projective algebraic plane curve is the zero set in a projective plane of a homogeneous polynomial in three variables. An affine algebraic plane ...
that has a set of
parametric equation In mathematics, a parametric equation defines a group of quantities as functions of one or more independent variables called parameters. Parametric equations are commonly used to express the coordinates of the points that make up a geometric obj ...
s of the form :\begin x_1 &= \frac\\ &\;\;\vdots\\ x_n &= \frac, \end where f_i(t) and g_i(t) are univariate polynomials for 1 ≤ ''i'' ≤ ''n''. One may (and will) suppose that f_i(t) and g_i(t) are
coprime In mathematics, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equivale ...
(they have no non-constant common factors).
Implicitization In mathematics, a parametric equation defines a group of quantities as functions of one or more independent variables called parameters. Parametric equations are commonly used to express the coordinates of the points that make up a geometric ob ...
consists in computing the
implicit equation In mathematics, an implicit equation is a relation of the form R(x_1, \dots, x_n) = 0, where is a function of several variables (often a polynomial). For example, the implicit equation of the unit circle is x^2 + y^2 - 1 = 0. An implicit func ...
s of such a curve. In case of ''n'' = 2, that is for plane curves, this may be computed with the
resultant In mathematics, the resultant of two polynomials is a polynomial expression of their coefficients, which is equal to zero if and only if the polynomials have a common root (possibly in a field extension), or, equivalently, a common factor (ov ...
. The implicit equation is the following resultant: :\text_t(g_1x_1-f_1,g_2x_2-f_2). Elimination with Gröbner bases allows to implicitize for any value of ''n'', simply by eliminating ''t'' in the ideal \langle g_1x_1-f_1,\ldots, g_nx_n-f_n\rangle. If ''n'' = 2, the result is the same as with the resultant, if the map t \mapsto (x_1,x_2) is injective for almost every ''t''. In the other case, the resultant is a power of the result of the elimination.


Saturation

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
triangle A triangle is a polygon with three edges and three vertices. It is one of the basic shapes in geometry. A triangle with vertices ''A'', ''B'', and ''C'' is denoted \triangle ABC. In Euclidean geometry, any three points, when non- colline ...
s, 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 Algebraic may refer to any subject related to algebra in mathematics and related branches like algebraic number theory and algebraic topology. The word algebra itself has several meanings. Algebraic may also refer to: * Algebraic data type, a data ...
which may have several
irreducible component In algebraic geometry, an irreducible algebraic set or irreducible variety is an algebraic set that cannot be written as the union of two proper algebraic subsets. An irreducible component is an algebraic subset that is irreducible and maximal ( ...
s, 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.


Definition of the saturation

The
localization of a ring In commutative algebra and algebraic geometry, localization is a formal way to introduce the "denominators" to a given ring or module. That is, it introduces a new ring/module out of an existing ring/module ''R'', so that it consists of fractio ...
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 R_f=R (1-ft), where ''t'' is a new indeterminate representing the inverse of ''f''. The ''localization'' of an ideal of ''R'' is the ideal R_fI of I_f. When ''R'' is a polynomial ring, computing in R_f is not efficient because of the need to manage the denominators. Therefore, localization is usually replaced by the operation of ''saturation''. The with respect to ''f'' of an ideal in ''R'' is the inverse image of R_fI under the canonical map from ''R'' to R_f. It is the ideal I:f^\infty= \ consisting in all elements of ''R'' whose product with some power of ''f'' belongs to . If is the ideal generated by and 1−''ft'' in ''R'' 't'' then I:f^\infty=J\cap R. It follows that, if ''R'' is a polynomial ring, a Gröbner basis computation eliminating ''t'' produces a Gröbner basis of the saturation of an ideal by a polynomial. The important property of the saturation, which ensures that it removes from the algebraic set defined by the ideal the
irreducible component In algebraic geometry, an irreducible algebraic set or irreducible variety is an algebraic set that cannot be written as the union of two proper algebraic subsets. An irreducible component is an algebraic subset that is irreducible and maximal ( ...
s on which the polynomial ''f'' is zero, is the following: ''The
primary decomposition In mathematics, the Lasker–Noether theorem states that every Noetherian ring is a Lasker ring, which means that every ideal can be decomposed as an intersection, called primary decomposition, of finitely many '' primary ideals'' (which are relate ...
of'' I:f^\infty ''consists of the components of the primary decomposition of I that do not contain any power of f''.


Computation of the saturation

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\, that is by keeping the polynomials independent of ''t'' in the Gröbner basis of F\cup\ for an elimination ordering eliminating ''t''. 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 f_1,\ldots, f_k or with respect to a single polynomial which is a product f = f_1 \cdots f_k, there are three ways to proceed which give the same result but may have very different computation times (it depends on the problem which is the most efficient). * Saturating by f = f_1 \cdots f_k in a single Gröbner basis computation. * Saturating by f_1, then saturating the result by f_2, and so on. * Adding to ''F'' or to its Gröbner basis the polynomials 1-t_1f_1, \ldots, 1-t_kf_k, and eliminating the t_i in a single Gröbner basis computation.


Effective Nullstellensatz

Hilbert's Nullstellensatz In mathematics, Hilbert's Nullstellensatz (German for "theorem of zeros," or more literally, "zero-locus-theorem") is a theorem that establishes a fundamental relationship between geometry and algebra. This relationship is the basis of algebraic ...
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 In geometry, a hypersurface is a generalization of the concepts of hyperplane, plane curve, and surface. A hypersurface is a manifold or an algebraic variety of dimension , which is embedded in an ambient space of dimension , generally a Euclidea ...
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.


Implicitization in higher dimension

By definition, an affine
rational variety In mathematics, a rational variety is an algebraic variety, over a given field ''K'', which is birationally equivalent to a projective space of some dimension over ''K''. This means that its function field is isomorphic to :K(U_1, \dots , U_d), th ...
of dimension ''k'' may be described by
parametric equation In mathematics, a parametric equation defines a group of quantities as functions of one or more independent variables called parameters. Parametric equations are commonly used to express the coordinates of the points that make up a geometric obj ...
s of the form :\begin x_1&=\frac\\ &\;\;\vdots\\ x_n&=\frac, \end where p_0,\ldots,p_n are ''n''+1 polynomials in the ''k'' variables (parameters of the parameterization) t_1,\ldots,t_k. Thus the parameters t_1,\ldots,t_k and the coordinates x_1,\ldots,x_n of the points of the variety are zeros of the ideal :I=\left\langle p_0x_1-p_1, \ldots, p_0x_n-p_n\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 p_i have a common zero (sometimes called ''base point''), every
irreducible component In algebraic geometry, an irreducible algebraic set or irreducible variety is an algebraic set that cannot be written as the union of two proper algebraic subsets. An irreducible component is an algebraic subset that is irreducible and maximal ( ...
of the non-empty algebraic set defined by the p_i is an irreducible component of the algebraic set defined by ''I''. It follows that, in this case, the direct elimination of the t_i provides an empty set of polynomials. Therefore, if ''k''>1, two Gröbner basis computations are needed to implicitize: # Saturate I by p_0 to get a Gröbner basis G # Eliminate the t_i from G to get a Gröbner basis of the ideal (of the implicit equations) of the variety.


Algorithms and implementations

Buchberger's algorithm is the oldest algorithm for computing Gröbner bases. It has been devised by
Bruno Buchberger Bruno Buchberger (born 22 October 1942) is Professor of Computer Mathematics at Johannes Kepler University in Linz, Austria. In his 1965 Ph.D. thesis, he created the theory of Gröbner bases, and has developed this theory throughout his career. ...
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: # Even when the resulting Gröbner basis is small, the intermediate polynomials can be huge. It result that most of the computing time may be spent in
memory management Memory management is a form of resource management applied to computer memory. The essential requirement of memory management is to provide ways to dynamically allocate portions of memory to programs at their request, and free it for reuse when ...
. So, specialized memory management algorithms may be a fundamental part of an efficient implementation. # The
integer An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the languag ...
s occurring during a computation may be sufficiently large for making fast multiplication algorithms and multimodular arithmetic useful. For this reason, most optimized implementations use the GMPlibrary. Also,
modular arithmetic In mathematics, modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" when reaching a certain value, called the modulus. The modern approach to modular arithmetic was developed by Carl Friedrich Gauss in his boo ...
,
Chinese remainder theorem In mathematics, the Chinese remainder theorem states that if one knows the remainders of the Euclidean division of an integer ''n'' by several integers, then one can determine uniquely the remainder of the division of ''n'' by the product of the ...
and
Hensel lifting In mathematics, Hensel's lemma, also known as Hensel's lifting lemma, named after Kurt Hensel, is a result in modular arithmetic, stating that if a univariate polynomial has a simple root modulo a prime number , then this root can be ''lifted'' to ...
are used in optimized implementations # The choice of the S-polynomials to reduce and of the polynomials used for reducing them is devoted to
heuristic A heuristic (; ), or heuristic technique, is any approach to problem solving or self-discovery that employs a practical method that is not guaranteed to be optimal, perfect, or rational, but is nevertheless sufficient for reaching an immediate ...
s. As in many computational problems, heuristics cannot detect most hidden simplifications, and if heuristic choices are avoided, one may get a dramatic improvement of the algorithm efficiency. # In most cases most S-polynomials that are computed are reduced to zero; that is, most computing time is spent to compute zero. # The monomial ordering that is most often needed for the applications (pure lexicographic) is not the ordering that leads to the easiest computation, generally the ordering ''degrevlex''. For solving 3. many improvements, variants and
heuristic A heuristic (; ), or heuristic technique, is any approach to problem solving or self-discovery that employs a practical method that is not guaranteed to be optimal, perfect, or rational, but is nevertheless sufficient for reaching an immediate ...
s have been proposed before the introduction of F4 and F5 algorithms by
Jean-Charles Faugère Jean-Charles Faugère is the head of the POLSYS project-team (Solvers for Algebraic Systems and Applications) of the Laboratoire d'Informatique de Paris 6 (LIP6) and Paris–Rocquencourt center of INRIA, in Paris. The team was formerly known as SPI ...
. 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 Linear algebra is the branch of mathematics concerning linear equations such as: :a_1x_1+\cdots +a_nx_n=b, linear maps such as: :(x_1, \ldots, x_n) \mapsto a_1x_1+\cdots +a_nx_n, and their representations in vector spaces and through matrice ...
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 In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called '' vectors'', may be added together and multiplied ("scaled") by numbers called ''scalars''. Scalars are often real numbers, but can ...
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 as 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''. 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''. Most general-purpose
computer algebra system A computer algebra system (CAS) or symbolic algebra system (SAS) is any mathematical software with the ability to manipulate mathematical expressions in a way similar to the traditional manual computations of mathematicians and scientists. The ...
s 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 Cocoa may refer to: Chocolate * Chocolate * ''Theobroma cacao'', the cocoa tree * Cocoa bean, seed of ''Theobroma cacao'' * Chocolate liquor, or cocoa liquor, pure, liquid chocolate extracted from the cocoa bean, including both cocoa butter an ...
, GAP , Macaulay 2,
Magma Magma () is the molten or semi-molten natural material from which all igneous rocks are formed. Magma is found beneath the surface of the Earth, and evidence of magmatism has also been discovered on other terrestrial planets and some natura ...
,
Maple ''Acer'' () is a genus of trees and shrubs commonly known as maples. The genus is placed in the family Sapindaceae.Stevens, P. F. (2001 onwards). Angiosperm Phylogeny Website. Version 9, June 2008 nd more or less continuously updated since h ...
,
Mathematica Wolfram Mathematica is a software system with built-in libraries for several areas of technical computing that allow machine learning, statistics, symbolic computation, data manipulation, network analysis, time series analysis, NLP, optimiza ...
,
SINGULAR Singular may refer to: * Singular, the grammatical number that denotes a unit quantity, as opposed to the plural and other forms * Singular homology * SINGULAR, an open source Computer Algebra System (CAS) * Singular or sounder, a group of boar ...
,
SageMath SageMath (previously Sage or SAGE, "System for Algebra and Geometry Experimentation") is a computer algebra system (CAS) with features covering many aspects of mathematics, including algebra, combinatorics, graph theory, numerical analysis, numbe ...
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. , the fastest implementations of F4 and (sparse)-FGLM seem to be those of the
library A library is a collection of materials, books or media that are accessible for use and not just for display purposes. A library provides physical (hard copies) or digital access (soft copies) materials, and may be a physical location or a vi ...
''Msolve''. 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 GitHub, Inc. () is an Internet hosting service for software development and version control using Git. It provides the distributed version control of Git plus access control, bug tracking, software feature requests, task management, cont ...
, and is interfaced with Julia, Maple and SageMath; this means that Msolve can be used directly from within these software environments.


Complexity

The
complexity Complexity characterises the behaviour of a system or model whose components interact in multiple ways and follow local rules, leading to nonlinearity, randomness, collective dynamics, hierarchy, and emergence. The term is generally used to ch ...
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(D^n) nonzero terms whose computation requires a time of \Omega(D^n)>D^. On the other hand, if all polynomials in the reduced Gröbner basis a
homogeneous ideal In mathematics, in particular abstract algebra, a graded ring is a ring such that the underlying additive group is a direct sum of abelian groups R_i such that R_i R_j \subseteq R_. The index set is usually the set of nonnegative integers or the ...
have a degree of at most , the Gröbner basis can be computed by
linear algebra Linear algebra is the branch of mathematics concerning linear equations such as: :a_1x_1+\cdots +a_nx_n=b, linear maps such as: :(x_1, \ldots, x_n) \mapsto a_1x_1+\cdots +a_nx_n, and their representations in vector spaces and through matrice ...
on the
vector space In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called '' vectors'', may be added together and multiplied ("scaled") by numbers called ''scalars''. Scalars are often real numbers, but can ...
of polynomials of degree less than , which has a dimension O(D^n). So, the complexity of this computation is O(D^n)^= D^. 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 d^. Using little o notation, it is therefore bounded by d^. On the other hand, examples have been given of reduced Gröbner bases containing polynomials of degree d^, or containing d^ elements. As every algorithm for computing a Gröbner basis must write its result, this provides a lower bound of the complexity.


Generalizations

The concept and algorithms of Gröbner bases have been generalized to
submodule In mathematics, a module is a generalization of the notion of vector space in which the field of scalars is replaced by a ring. The concept of ''module'' generalizes also the notion of abelian group, since the abelian groups are exactly the mo ...
s of
free module In mathematics, a free module is a module that has a basis – that is, a generating set consisting of linearly independent elements. Every vector space is a free module, but, if the ring of the coefficients is not a division ring (not a fiel ...
s over a polynomial ring. In fact, if is a free module over a ring , then one may consider the
direct sum The direct sum is an operation between structures in abstract algebra, a branch of mathematics. It is defined differently, but analogously, for different kinds of structures. To see how the direct sum is used in abstract algebra, consider a mor ...
R\oplus L as a ring by defining the product of two elements of to be . This ring may be identified with R _1, \ldots, e_l\left\langle \\right\rangle, where e_1, \ldots, e_l is a basis of ''L''. This allows identifying a submodule of generated by g_1, \ldots, g_k with the ideal of R _1, \ldots, e_l/math> generated by g_1, \ldots, g_k and the products e_ie_j, 1\le i\le j\le l. If is a polynomial ring, this reduces the theory and the algorithms of Gröbner bases of modules to the theory and the algorithms of Gröbner bases of ideals. 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.


Areas of applications


Error-Correcting Codes

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, affine variety codes, algebraic-geometric codes and even general linear block codes. Applying Gröbner basis in algebraic decoding is still a research area of channel coding theory.


See also

* Graver basis * Janet basis *
Regular chain In computer algebra, a regular chain is a particular kind of triangular set in a multivariate polynomial ring over a field. It enhances the notion of characteristic set. Introduction Given a linear system, one can convert it to a triangular ...
s, an alternative way to represent algebraic sets


References


Further reading

* * * * his is Buchberger's thesis inventing Gröbner bases.* (This is the journal publication of Buchberger's thesis.) * * * * (translated from Sibirsk. Mat. Zh. Siberian Mathematics Journal 3 (1962), 292–296). * (on infinite dimensional Gröbner bases for polynomial rings in infinitely many indeterminates).


External links


Faugère's own implementation of his F4 algorithm
* * *
Comparative Timings Page for Gröbner Bases SoftwareProf. Bruno Buchberger
Bruno Buchberger *
Gröbner basis introduction
on
Scholarpedia ''Scholarpedia'' is an English-language wiki-based online encyclopedia with features commonly associated with open-access online academic journals, which aims to have quality content in science and medicine. ''Scholarpedia'' articles are writ ...
{{DEFAULTSORT:Grobner basis Algebraic geometry Commutative algebra Computer algebra Invariant theory Rewriting systems