Blueprint of Groebner Basis Theory in LEAN

1 Definitions

Definition 1 leadingTerm
#

Given a nonzero polynomial \(f \in k[x]\), let

\[ f = c_0 x^m + c_1 x^{m-1} + \cdots + c_m, \]

where \(c_i \in k\) and \(c_0 \neq 0\) [thus, \(m = \deg (f)\)]. Then we say that \(c_0 x^m\) is the leading term of \(f\), written

\[ \operatorname {LT}(f) = c_0 x^m. \]
Definition 2 IsRemainder
#

Fix a monomial order \({\gt}\) on \(\mathbb {Z}_{\geq 0}^n\), and let \(F = (f_1, \ldots , f_s)\) be an ordered \(s\)-tuple of polynomials in \(k[x_1, \ldots , x_n]\). Then every \(f \in k[x_1, \ldots , x_n]\) can be written as

\[ f = a_1 f_1 + \cdots + a_s f_s + r, \]

where \(a_i, r \in k[x_1, \ldots , x_n]\), and either \(r = 0\) or \(r\) is a linear combination, with coefficients in \(k\), of monomials, none of which is divisible by any of \(\mathrm{LT}(f_1), \ldots , \mathrm{LT}(f_s)\). We will call \(r\) a remainder of \(f\) on division by \(F\).

Definition 3 IsGroebnerBasis
#

Fix a monomial order on the polynomial ring \(k[x_1, \ldots , x_n]\).A finite subset \(G = \{ g_1, \ldots , g_t\} \) of an ideal \(I \subseteq k[x_1, \ldots , x_n]\), with \(I \ne \{ 0\} \), is said to be a Gröbner basis (or standard basis) if

\[ \langle \operatorname {LT}(g_1), \ldots , \operatorname {LT}(g_t) \rangle = \langle \operatorname {LT}(I) \rangle . \]

Using the convention that \(\langle \emptyset \rangle = \{ 0\} \), we define the empty set \(\emptyset \) to be the Gröbner basis of the zero ideal \(\{ 0\} \).

Definition 4 sPolynomial
#

The \(S\)-polynomial of \(f\) and \(g\) is the combination

\[ S(f, g) = \frac{x^\gamma }{\mathrm{LT}(f)} \cdot f - \frac{x^\gamma }{\mathrm{LT}(g)} \cdot g. \]