Sagbi combinatorics of maximal minors and a Sagbi algorithm
Winfried Bruns, Aldo Conca

TL;DR
This paper investigates the Sagbi bases of maximal minors, showing their behavior varies with monomial orders, and introduces an improved Sagbi algorithm implementation that significantly enhances computational efficiency.
Contribution
It provides new experimental insights into Sagbi bases of maximal minors and introduces a more efficient Sagbi algorithm implementation using Singular and Normaliz.
Findings
Enhanced computational range by at least tenfold.
Experimental analysis of Sagbi bases behavior under different monomial orders.
Implementation organized in a Singular script with fallback to Normaliz.
Abstract
The maximal minors of a matrix of indeterminates are a universal Gr\"obner basis by a theorem of Bernstein, Sturmfels and Zelevinsky. On the other hand it is known that they are not always a universal Sagbi basis. By an experimental approach we discuss their behavior under varying monomial orders and their extensions to Sagbi bases. These experiments motivated a new implementation of the Sagbi algorithm which is organized in a Singular script and falls back on Normaliz for the combinatorial computations. In comparison to packages in the current standard distributions of Macaulay 2 and Singular it extends the range of computability by at least one order of magnitude.
| norm deg | times in minutes | |||||||
|---|---|---|---|---|---|---|---|---|
| ( ecample | bound | Sagbi | (Deg) | #Sagbi | (Deg) | (Hilb) | CoCoA5 | M2 |
| ( (HK0) | 16 | — | — | 80 | 1:13.67 | 1:19.56 | 3:29.00 | T |
| ( (HK2) | 16 | — | — | 16 | 0:00.91 | 0:00.91 | 0:00.54 | 0:02.89 |
| ( (Powl) | 200 | — | — | 28 | 0:26.16 | 0:20.87 | 21:27.51 | — |
| ( (Powr) | 200 | — | — | 46 | 1:24.92 | 1:10.98 | 78:58.44 | T |
| ( (2x20) | 10 | 3 | 7 | 89 | 0:35:78 | 0:9.72 | 56:17.28 | — |
| ( (2x22) | 15 | 6 | 13 | 130 | 2:20.30 | O | T | — |
| (( 3x6) | 10 | 2 | 4 | 21 | 0:00.45 | 0:00.41 | 0:0 .40 | 0:01.10 |
| ( (3x7) | 10 | 2 | 4 | 37 | 0:01.48 | 0:00.82 | 0:08.95 | 1:44.20 |
| ( (3x8) | 10 | 3 | 6 | 67 | 0:08.15 | 0:03.07 | 0:44.84 | T |
| ( (3x9l) | 10 | 3 | 6 | 101 | 0:37.27 | 0:12.94 | 14:36.46 | — |
| ( (3x9r) | 10 | 7 | 8 | 90 | M | 0:22:69 | — | — |
| rounds | |||||
|---|---|---|---|---|---|
| ( example | bound | Sagbi | #Sagbi | (Gen) | Singular |
| ( (2x20) | 10 | 3 | 89 | 1:18.89 | T |
| ( (3x6) | 10 | 2 | 21 | 0:00.58 | 0:00.22 |
| ( (3x7) | 10 | 2 | 37 | 0:01.87 | F |
| ( (3x8) | 10 | 3 | 65 | 0:16.47 | — |
| ( (3x9l) | 10 | 3 | 101 | 1:45.72 | — |
| ( (3x9d) | 10 | 1 | 84 | 0:11.31 | T |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCommutative Algebra and Its Applications · Polynomial and algebraic computation · Advanced Combinatorial Mathematics
Sagbi combinatorics of maximal minors and a Sagbi algorithm
Winfried Bruns
Universität Osnabrück, Institut für Mathematik, 49069 Osnabrück, Germany
and
Aldo Conca
Dipartimento di Matematica, Universitá di Genova, Italy
Abstract.
The maximal minors of a matrix of indeterminates are a universal Gröbner basis by a theorem of Bernstein, Sturmfels and Zelevinsky. On the other hand it is known that they are not always a universal Sagbi basis. By an experimental approach we discuss their behavior under varying monomial orders and their extensions to Sagbi bases. These experiments motivated a new implementation of the Sagbi algorithm which is organized in a Singular script and falls back on Normaliz for the combinatorial computations. In comparison to packages in the current standard distributions of Macaulay 2, version 1.21, and Singular, version 4.2.1 and a package intended for CoCoA 5.4.2, it extends the range of computability by at least one order of magnitude.
Key words and phrases:
Grasmannian, maximal minors, Sagbi basis, Singular, Normaliz
2010 Mathematics Subject Classification:
13F50, 13F65, 13P10, 13P99, 14M25
AC is supported by PRIN 2020355B8Y and by INdAM-GNSAGA
1. Introduction
Let be an matrix of indeterminates over a field . The minors of , i.e., the determinants of the submatrices of generate subalgebras and ideals of the polynomial ring that are important not only in algebraic geometry and commutative algebra, but also in representation theory and combinatorics. For a recent survey of the manifold approaches to the theory of ideals and subalgebras generated by minors we refer the reader to our recent volume [9] with Raicu and Varbaro. One of these approaches is via Gröbner and Sagbi bases. We trust that the reader is familiar with the notion of Gröbner basis. A Sagbi basis (terminology of Robbiano and Sweedler [31]) of a subalgebra for a given monomial (or term) order on the ambient polynomial ring is a system of generators such that the set of initial monomials generates the initial algebra .
Let us assume . By a theorem of Sturmfels [33], the -minors, i.e., the determinants of the -submatrices, are a Gröbner basis of the ideal they generate under any diagonal monomial order—a diagonal monomial order chooses the product of the diagonal elements as the initial monomial of a -minor. For the maximal minors, for which , much more is true: They are a universal Gröbner basis, namely a Gröbner basis for an arbitrary monomial order. See Conca, De Negri and Gorla [15] for a simple proof of this theorem of Bernstein, Sturmfels and Zelevinsky [3, 35].
The subalgebra generated by the maximal minors is the homogeneous coordinate ring of the Grassmann variety of -dimensional subspaces of . For general the -minors are not a Sagbi basis of the algebra they generate. But for maximal minors this is true for diagonal orders, and the toric deformation of that it offers gives comfortable access to many homological and enumerative invariants of . Other term orders for which maximal minors are a Sagbi bases of have been recently discovered, see for example [18] and [25].
In view of the Bernstein–Sturmfels–Zelevinsky theorem the question of universality arises also here. But it was disproved by Speyer and Sturmfels [32]: for a matrix there exists a lexicographical order under which the -minors are not a Sagbi basis of .
The starting point of the project on which we report in this paper was the question of what can be said about reverse lexicographical orders in this respect. As we will see, revlex universality also fails, but needs a matrix for failure. In view of the special properties of normal monomial algebras it is also interesting to ask whether initial algebras of are always normal. This is surprisingly often true, and finding a counterexample needs more patience. By our experimental methods whose results are reported in Section 3, we cannot answer the question whether there is a finite universal Sagbi basis of . But our findings support the conjecture that this is true.
Our investigation of Sagbi bases of Grassmannians motivated the development of an algorithm for the computation of Sagbi bases in general. It is almost impossible to devise a really new algorithm, but the efficiency of the implementation is extremely important for this complicated task. Our algorithm is implemented in the Singular [19] script sagbiNormaliz.lib. While Singular is used for the polynomial arithmetic, newly developed functions of Normaliz [13] are called for the combinatorial tasks. The variants of our algorithms are explained in Section 4. One of them is based on control by Hilbert series.
In the last section we compare our algorithm to packages that come with the standard distributions of Macaulay2[22], version 1.21, and Singular [19], version 4.2.1. We also compare it with a preliminary version of a CoCoA5 [2] package which will be in the standard distribution from version 5.4.2 on. Applications to different types of subalgebras show that our implementation extends the range of computability by more than one order of magnitude.
Normaliz 3.10.0 together with the Singular library sagbiNormaliz.lib and a new version of normaliz.lib , has been published in January 2023. On request we will provide the software and all data of this project to interested readers.
2. Basics of Sagbi bases
The reader finds a compact discussion of Sagbi bases in [9, Sect. 1.3]. We use the notation developed there. Kreuzer and Robbiano [29, Sect. 6.6] give a more extensive introduction; also see Ene and Herzog [21] and Sturmfels [34]. Sagbi bases were introduced independently by Robbiano and Sweedler [31] and Kapur and Madlener [28]. The acronym Sagbi stands for “subalgebra analog to Gröbner bases of ideals” [31]. Some authors have adopted recently a new terminology, Khovanskii bases, for a notion that generalize that Sagbi bases but in this paper we keep the traditional name.
Let be a -subalgebra and a (not necessarily finite) family of polynomials belonging to . We assume that is endowed with a monomial (or term) order . In the following we will often simply speak of an order. One calls a Sagbi basis of if the initial monomials , , generate the initial algebra . A Sagbi basis is automatically a system of generators of . If is finite, then and are connected by a flat deformation (Conca, Herzog and Valla [17]), and this allows the transfer homological and enumerative data from the toric algebra to . Chapter 6 of [9] exploits this approach for the investigation of algebras generated by minors.
Sagbi bases need not be finite, but can always be chosen countable. Therefore one must allow that with or . We will always assume that the members of are monic. This is evidently no essential restriction of generality as long as the base ring is a field.
For us the following simple lemma is an important tool in the computation of Sagbi bases. For a -graded vector -vector space one defines the Hilbert function of by
[TABLE]
where is the subspace of degree elements of .
Lemma 1**.**
Let be a polynomial ring, endowed with a monomial order, and a finitely generated graded subalgebra. Furthermore let be a family of polynomials in and the subalgebra generated by the monomials , .Then the following hold:
- (1)
* for all .* 2. (2)
* is a Sagbi basis of if and only if for all .*
Proof.
For a graded subspace of the polynomial ring one has for all [9, 1.4.3]. Furthermore there are inclusions
[TABLE]
and equality holds if and only if for all . Together with Equation (2.1) this proves the lemma. ∎
To present as a residue class ring of a polynomial ring, we choose and define a surjection
[TABLE]
The -algebra is a homomorphic image of , as well, namely by the surjection
[TABLE]
The kernel of is generated by a set of binomials. In the terminology of [31] a binomial in is called a tête-a-tête.
A monomial in is given by an exponent vector of natural numbers of which all but finitely many are [math]. We set . Let be a polynomial, given as a -linear combination of monomials, where the are exponent vectors, and for all indices involved. We set
[TABLE]
Note that in the definition of the maximum is taken over the initial monomials with respect to the monomial order on so that it is a monomial in . In contrast, is a polynomial in . Since can be [math], in general , and this cancellation of initials is the crucial aspect of Sagbi computation. One says that a polynomial lifts a polynomial if .
We can now formulate the Sagbi criterion (see [9, 1.3.14]).
Theorem 2**.**
With the notation introduced, et be a set of binomials generating . Then the following are equivalent:
- (1)
* is a Sagbi basis of ;* 2. (2)
every binomial can be lifted to a polynomial .
The Buchberger algorithm for a Gröbner basis of an ideal starts from a system of generators of . Then one applies two steps, namely (i) the computation of the -polynomials , , and (ii) their reductions modulo . The nonzero reductions are then added to , and the next round of -polynomials of the augmented and their reductions is run. This produces an increasing sequence of initial ideals . Because of Noetherianity the process stops after finitely many rounds with a Gröbner basis of . The reduction of an -polynomial to [math] is equivalent to the liftability of the “divided Koszul syzygy” of and to a syzygy of the polynomials .
The computation of Sagbi bases follows the same pattern. There are however two main differences: an analog of the divided Koszul syzygies does not exist, and ascending chains of monomial subalgebras of need not stabilize. For Sagbi bases one must therefore compute a binomial system of generators of , and one cannot expect the algorithm to stop. The analog of reduction is called subduction (we again follow [31]) .
Definition 3**.**
Let . Then is a subduction of modulo if there exist monomials and non-zero coefficients such that the following hold:
- (1)
; 2. (2)
for ; 3. (3)
no monomial is of type .
The process that computes a subduction of modulo is also called subduction. Here is the set of monomials of appearing in with a nonzero coefficient. In the computation of Sagbi bases one can replace (3) by the weaker condition
- ()
is not of type .
There is an obvious algorithm that produces a subduction remainder in : if ,we replace by where is the leading coefficient of , and iterate this subduction step as long as possible. The algorithm stops since the sequence of initial monomials is descending and descending sequences in a monomial order are finite. Once is reached, one applies subduction steps iteratively to the remaining monomials to achieve the ‘tail subduction” asked for by (3).
The algorithm (Sagbi) starts from the finite family generating the subalgebra . Then one proceeds as follows:
- (1)
Set . 2. (2)
Set and compute a binomial system of generators of the kernel of , , . 3. (3)
For all compute the subduction of modulo , given by the substitution , . If , make monic and add it to . 4. (4)
If , set , , for all and stop. 5. (5)
Otherwise set , and go to (2).
It is not hard to see that is a Sagbi basis of , and that the algorithm stops after finitely many steps if has a finite Sagbi basis.
Remark 4**.**
The computation of Sagbi bases is in general a very complex operation. However, in some cases it can offer a fast solution to problems that seem much simpler at first sight, but then turn out to be very hard. We discuss two cases.
(a) In our work preparing the article [8] with Varbaro, we did not succeed to compute the defining ideal of the algebra generated by the minors of a matrix of indeterminates over a field in “nonexceptional” characteristics, for example, characteristic [math]. Singular, CoCoA and Macaulay did not stop in computing the defining ideal in reasonable time, not even up to degree .
From [7] it was however known that has a finite Sagbi basis, and meanwhile more is known about it by work of Varbaro; see [9, 6.4.10]. In Section 5 we come back to the computation. It takes only 40 sec; see Table 1. With the right bookkeeping one can explicitly lift the final tête-a-tête to a defining ideal of the algebra. Since one wants the defining ideal in terms of the original system of generators, further processing is necessary and a minimization must follow. Nevertheless this is a feasible approach.
By the work of Huang et al. [27] it is now known that the defining ideal for algebras of -minors is generated in degree and .
(b) Suppose that one wants to compute the Hilbert series of a Grassmannian explicitly by a computer algebra system. It is of course possible to use representation theoretic methods or classical approaches going back to Hodge [26]; see Braun [6] for explicit formulas. But these need preparations, and the same is true if one wants to exploit the Plücker relations. Computing a Gröbner basis by elimination is therefore tempting, but already for rather small cases it takes surprisingly long— already takes days. In contrast, the computation from a Sagbi basis given by the generating minors in a diagonal monomial order is almost instantaneous. Also the explicit computation of the Sagbi basis with respect to a diagonal monomial order is very fast. See Remark 12(f) for computational data.
3. Sagbi combinatorics of maximal minors
Let be a field and an matrix of indeterminates with . By we denote the set of -minors of , i.e., the determinants of the submatrices
[TABLE]
The subalgebra of is an object of classical algebraic geometry, namely the homogeneous coordinate ring of the Grassmannian of -dimensional vector subspaces of in its Plücker embedding. A “natural” monomial order on is lexicographic (or degree reverse lexicographic) for the order
[TABLE]
It is diagonal: the product of the indeterminates in the diagonal is the initial monomial of each minor in . The standard bitableaux are a -basis of (see [9, Chap 3]), and this implies that is a Sagbi basis of for every diagonal monomial order on . To the best of our knowledge, this was first observed by Sturmfels [34]. This toric deformation gives a comfortable access to the cohomological and enumerative properties of . For example see [9, Sect. 6.2].
In view of Lemma 1 it is crucial for our experimental approach to compute the Hilbert series
[TABLE]
Usually we work with the normalized degree on in which the -minors have degree . So is the degree homogeneous component of in the standard grading of . Since the Hilbert series of and its initial algebra coincide and the initial algebra is normal, the computation of the Hilbert series by Normaliz is almost instantaneous.
It takes some work to show that is a Gröbner basis of the ideal of maximal minors of with respect to a diagonal monomial order. But much more is true: by a theorem of Bernstein–Sturmfels–Zelevinsky [3, 35], is a universal Gröbner basis of , a Gröbner basis with respect to every monomial order on . See [15] for the simple proof of Conca, De Negri and Gorla and [16] for further developments. This raises the question whether is also a universal Sagbi basis for . While this is true for [9, 5.3.6], it fails already for , , as observed by Speyer and Sturmfels [32]: there exists a lexicographic order on for which is not a Sagbi basis of . But is universally revlex, namely a Sagbi basis for all degree reverse lexicographic orders on ?
Before we answer this question, let us outline two strategies for the investigation of it and related questions. The first strategy is very simple: after fixing the matrix format, choose an order of the indeterminates, extend it to a (reverse) lexicographic order and check whether is a Sagbi basis for this order by comparing the Hilbert functions. (Instead of varying the order, we use a random permutation of the matrix entries.) This strategy is realized in a Singular script and the Hilbert series are computed by Normaliz. In the cases in which is not a Sagbi basis, one can furthermore try to extend it to a full Sagbi basis by the algorithm documented in Section 4.
While the random search suggests reasonable working hypotheses, it cannot prove statements about universality for which we must exhaust all relevant monomial orders. Even if one tries to use all the symmetries of , it is impossible to scan all (reverse) lexicographic orders. Instead we start from the matching fields in the terminology of Sturmfels-Zelevinsky [35]: a matching field assigns each minor a monomial in its Laplace expansion. It is called coherent if it always selects the initial monomial with respect to a monomial order. To reduce the number of matching fields, we use a result of Sturmfels and Zelevinsky: given a coherent matching field, there are exactly indeterminates that do not appear in any monomial (we call them the “missing” indeterminates). Sturmfels and Zelevinsky also explain that the location of these missing indeterminates satisfies certain restrictions, for example in each row one finds exactly of them. Hence the configuration of the missing indeterminates subdivides the set of coherent matching fields. For and , up to row and column permutations, there are exactly types. See Figure 1 in which the entries [math] denote the missing indeterminates.
We call a matching field lex (revlex) compatible if there exists a (reverse) lexicographic order that produces the given matching field as the sequence of the initial monomials of . The following observation saves computation time.
Proposition 5**.**
Type 4 is not lex compatible.
Proof.
Among the indeterminates one entry is largest with respect to the order, say . However, regardless of which it is, there always exist a minor involving columns such that both monomials in its Laplace expansion that are divisible by are excluded since they both hit a [math] in one of the rows different from row . ∎
The types are scanned individually. Even after these preparations it would take too long to create all macing fields for a given type and then check whether they are lex or revlex compatible, and if so, whether is a Sagbi basis for such an order. Usually there are several such orders; but it depends only on the matching field whether is a Sagbi basis. As soon as the matching field is fixed, this is only a question of whether the corresponding monomial algebra and have the same Hilbert series.
Therefore we choose an incremental approach that is realized in a C++ program. Let , . The matching fields under consideration are sequences of monomials such that appears in the Laplace expansion of and avoids the indeterminates that are excluded by the chosen type. The notion of lex or revlex compatibility extends naturally to initial subsequences of a matching field. For a given initial subsequence let be the set of all compatible matching fields that extend by . We want to compute where stands for the empty initial subsequence. This is done via the recursive relation
[TABLE]
where satisfies the following conditions:
- (1)
appears in the Laplace expansion of , 2. (2)
is not excluded by the given type, and 3. (3)
is compatible.
Less formally, we extend a compatible initial sequence in all possible ways. Condition (3) is the crucial test: if is not extensible by at least one , the recursion sops and we backtrack to and try the next choice of .
Let us state the results of the two experimental approaches:
Theorem 6**.**
Let .
- (1)
* is a universal Sagbi basis for , but not for .* 2. (2)
* is a universally revlex Sagbi basis for .* 3. (3)
There exist a lexicographic order for and a reverse lexicographic order for such that is not a Sagbi basis for them.
Unexpectedly often we have observed that both and the full initial algebra are normal:
Theorem 7**.**
Let .
- (1)
For lex orders is normal for . 2. (2)
For revlex orders is normal for . 3. (3)
For there exists a revlex order such that is a Sagbi basis, but is not normal. 4. (4)
For there exists a lex order such is not normal.
As a concrete example let us give a matrix for Theorem 7(3) where denotes :
[TABLE]
The indeterminates are ordered as in (3.1) and the monomial order is the degrevlex extension; as mentioned, we have permuted the entries of the matrix instead of changing the order of the indeterminates.
Even our recursive method for finding compatible matching fields does not reach . Already for it needs weeks of computation time, whereas it finishes in hours for . So one can say that we were rescued by the random search that produced counterexamples exactly one step beyond the limit of computability.
The experimental evidence that we have collected, makes us optimistic for the following
Conjecture 8**.**
* has a finite universal Sagbi basis.*
The conjecture is supported by overwhelming experimental evidence for ; in fact, we expect that the universal Sagbi basis has elements of (normalized) degree in addition to the -minors. We are confident that we can extend our experiments to checking the conjecture for and . It is already clear that is out of reach, not only because of the large number of cases, but also since the algorithm of Section 4 must often give up if the degrees of the polynomials in the Sagbi basis exceeds , and we have seen cases in which degree is reached. Even if the combinatorial computations should be still doable, the complexity of the polynomial computations and the available memory set a limit.
Remark 9**.**
(a) While fails to be a Sagbi basis much earlier and much more often for lex orders than for revlex ones, we have observed that the missing polynomials usually have considerably lower degree in the lex case.
(b) Instead of lex and revlex orders one can experiment with arbitrary orders. At least for and , all matching fields found for arbitrary orders are lex or revlex compatible.
(c) The algebra is a retract of the Rees algebra by degree selection, and therefore the equality is a necessary condition for . Not surprisingly, it is not a sufficient condition, as many counterexamples demonstrate. Note that is equivalent to for all . Even if this does not hold in general, it often starts to fail for unexpectedly large .
As a concrete example consider the matrix
[TABLE]
where we use the same notation and monomial order as in the example following Theorem 7. Despite of one has , as the comparison of Hilbert series shows . Since the elements of have constant degree, and have a standard grading. With CoCoA [2] we have analyzed the binomial relations of . With respect to the normalized bigrading of the Rees algebra there are quadrics of bidegree and . Those of bidegree can be lifted since the minors form a universal Gröbner basis. Those of bidegree have standard degree , but the first degree in which the Hilbert series differ is . So they are liftable as well. The obstruction to equality is a relation of bidegree and standard degree . This implies that for , but .
The algorithm (Gen) of Section 4 completes the Sagbi basis by exactly one more degree element in a few seconds and confirms the analysis above: the additional element has bidegree . Consequences: (i) and differ in degree and (ii) for .
4. An implementation of the Sagbi algorithm
Our implementation is based on Singular [19] and Normaliz [13]. We have realized three variants of the algorithm that we will explain below. They are organized in the Singular library sagbiNormaliz.lib, which in its turn connects to Normaliz for the combinatorial tasks via an extended version of the Singular library normaliz.lib. Both libraries will be published together with Normaliz version 3.10.0 (released in January 2023).
The interface offered by normaliz.lib writes input files for Normaliz, calls it, and then reads the output files. The Macaulay2 [22] interface normaliz.m2 [12] is file based as well. The transfer of the Singular implementation to Macaulay2, together with an update of normaliz.M2, is not hard for an experienced Macaulay2 user. The Normaliz team would be very grateful for help! A realization via the C++ class library libnormaliz would of course be preferable and simplify the implementation.
Independently of the Sagbi computations, version 3.10.0 of Normaliz has been augmented by functions for arbitrary positive affine monoids. Such a monoid represents the combinatorial skeleton of a monomial algebra , namely the monoid of the exponent vectors of the monomials of . Whereas the functions are implemented additively on the combinatorial side, we describe their results in the multiplicative language of monomial algebras:
- (1)
A minimal system of generators, which is uniquely determined. (See Bruns and Gubeladze [10, Chap. 2] for the theory of affine monoids.). In fact, it is the set of irreducible elements of , i.e., those monomials that cannot be written as a product of monomials . In addition, one can ask for the representations of the reducible elements in a given system of generators as power products of the irreducible ones. 2. (2)
A defining binomial ideal of , given by a minimal system of generators. Such an ideal is often called toric and the (minimal) system of generators is a (minimal) Markov basis; see De Loera, Hemmecke and Köppe [20]. Contrary to (1), this is a time critical task. Normaliz has implemented the project-and-lift algorithm of Hemmecke and Malkin [24]. The Normaliz implementation is not inferior to Hemmecke and Malkin’s 4ti2 [1]. 3. (3)
The Hilbert series of , which is the ordinary generating function of the enumeration of monomials by degree. It uses the classical commutation of Hilbert series via initial (monomial) ideals.
One needs the defining binomial ideal for the tête-a-tête, as is clear by their definition. The irreducible elements must be known for a minimal Sagbi basis and the control of the algorithm. The representations are necessary for subduction. One of our variants uses the Hilbert series, as we will explain below.
As far as a grading is involved, the algorithms assume the standard -grading of the ambient polynomial ring . The extension to other positive gradings would be possible without much effort, not yet however the extension to multi-gradings because the current version of Normaliz does not allow them. For a (monomial) subalgebra we work with the normalized degree. It is obtained as follows: first one computes the greatest common divisor of the degrees of the polynomials in a generating set, and then divides the standard degree by this “grading denominator”. This is compatible to Normaliz, which uses the normalized degree as well (unless one forbids the grading denominator).
Via the generating system of the subalgebra , the polynomial ring is graded as well when we set for all . Under this grading all tête-a-tête are homogeneous.
All three variants proceed in “rounds” as described in the algorithm (Sagbi), but are modified in two variants:
- (Gen)
The general variant is essentially (Sagbi). It stops when in step (4) is empty. As this may never happen, the user can set a bound on the number of rounds. The general variant does not require a grading. 2. (Deg)
After the computation of the tête-a-tête for a set , the degree by degree variant goes over the homogeneous components of the tête-a-tête and stops at degree as soon as at least one of the subduction remainders is nonzero and therefore at least one new element of the Sagbi basis has been found.
All subduction remainders then extend the Sagbi basis to degree , and the “search degree” can be raised to . The stop criterion is the same as for (Gen). It is reached in degree when no homogeneous component of the ntête-a-tête has a nonzero subduction remainder in degrees .
For (Deg) the user must set an upper bound for . If it can be expected that the Sagbi basis is finite, the upper bound should be chosen very large. 3. (Hilb)
The Hilbert series controlled variant refines (Deg). As input it not only needs a system of generators of the subalgebra , but also the Hilbert series of , given as a rational function by its numerator and denominator.
Let be the Sagbi basis of up to degree . Then the Hilbert series of is computed. If it agrees with the Hilbert series of , is the complete Sagbi basis. Otherwise the “critical degree” is computed, i.e., the lowest degree in which the Hilbert functions of and differ, together with the difference.
This information not only tells us in which degree we must evaluate the tête-a-tête for to find the next elements of the Sagbi basis, but also their number . Therefore the subduction can stop as soon as nonzero pairwise different remainders have been reached. They must be irreducible since they are not divisible by monomials of smaller degree and do not divide each other.
In contrast to (Gen) and (Deg), (Hilb) offers a perfect error control, which was extremely helpful during the development of the library.
(Gen) and (Deg) have been implemented in other packages (though not necessarily together) that will be named in Section 5, and only some details may vary. But we are not aware of an implementation of (Hilb).
All our variants return the (partial) Sagbi basis computed and an additional integer that takes the value [math], if the partial Sagbi basis is incomplete, the value if completeness is unknown, and if the Sagbi basis is complete.
Remark 10**.**
(a) Both the evaluation of the tête-a-tête and a subduction step can be realized by the homomorphism of Equation (2.2). Both amount to mapping binomials from to via . We use the Singular map functionality for it.
(b) For the subduction one has two choices: (i) to subduce the polynomials individually until the remainder has been found, or (ii) apply one subduction step to all polynomials simultaneously, and iterate this step as long as necessary. In our computations (ii) has proved to be the better choice.
Remark 11**.**
The following comments will be illustrated by computational data in Section 5.
(a) If the given subalgebra is graded, it is always advisable to use (Deg) or even (Hilb). (Gen) should be reserved for nongraded subalgebras: a stop after a certain number of rounds gives much less information on the Sagbi basis than the stop at a predefined degree. Even in graded cases in which the complete Sagbi basis is computed, (Deg) is usually better.
Subduction remainders of homogeneous polynomials of degree with respect to a family of homogeneous polynomials of degree remain untouched if is augmented by homogeneous polynomials of degree . In other words, the partial Sagbi basis computed by (Deg) or (Hilb) are increasing with respect to inclusion.
(b) The choice between (Deg) and (Hilb) is more difficult. (Hilb) knows exactly into which degree to look next and can often stop the subduction process much earlier than (Deg). On the other hand, the Hilbert series of must be known, and in each round the Hilbert series of a monomial algebra must be computed.
The Hilbert series computation is very fast if the monomial algebra is normal since then the Normaliz algorithm based on triangulation and Stanley decomposition can be used. In the non-normal case it is a byproduct of the tête-a-tête computation that produces a Gröbner basis of the binomial ideal before shrinking it to a minimal system of generators, but the Hilbert series computation for the initial ideal of the tête-a-tête ideal does not come for free.
Another parameter is the unpredictable complexity of subduction, which in its turn depends crucially on the sparsity of the polynomials involved in it. So the decision between (Deg) and (Hilb) is a matter of the Hilbert series computation versus the subduction.
As for (Deg) the reader must set a degree bound for (Hilb), but can ask for a final check when it is reached.
(c) In some cases the time of the tête-a-tête computation depends significantly on the order of the polynomials entering it (see Remark 12(e)). Our explanation is that the Gröbner basis computation on which it is based depends on a monomial order and is not invariant under the permutation of coordinates. However, we have no suggestion how to choose an order for which the tête-a-tête computation is especially fast. As a step in this direction, the user can ask for a sorting of the polynomials at the beginning of each round. In the implementation it is fixed to be ascending in the degrevlex monomial order on the ambient polynomial ring . Note, that both (Deg) and (Hilb) generate the elements of the Sagbi basis in ascending degree, but not necessarily in any more refined order.
5. Computational data
In the following we give computation times for several examples and compare them to packages that are included in the computer algebra systems CoCoA5, Macaualy2 and Singular:
- (1)
The computations with CoCoA 5 use a variation of the script developed by Anna Bigatti for [4] which is available at [5] and will be part of the standard distribution of CoCoA from version 5.4.2. 2. (2)
The Macaulay2 distribution, version 1.21 (December 2022) contains the package SubalgebraBases.m2 by Burr et al., version 1.3. It realizes the variant (Deg) and allows a degree bound. 3. (3)
The Singular distribution, version 4.2.1 (May 2021) contains the library sagbi.lib by Hackfeld, Pfister and Levandovskyy. It offers only the variant (Gen) with an optional bound on the number of rounds.
As far as we could complete the computations, all packages give the same results.
The original submission of this article and the preprint arXiv:2302.14345v1 were based on a pre-release version of Normaliz 3.10.0 and version 1.1 of SubalgebraBases.m2. For this revised version we have updated the computational data. The preprint [14] on SubalgebraBases.m2 was not yet available at the time of our original submission.
We now list our test examples. With the exception of (HK2) and (2x22), the base field has characteristic [math].
- (HK0)
the subalgebra of generated by the polynomials , , , , . It is taken from Han and Kwak [23] where it serves as a simple counterexample to the Eisenbud–Goto conjecture. Order is degrevlex.
- (HK2)
The same, but over a field of characteristic .
- (Powl)
The subalgebra of generated by the polynomials , , . The monomial order is lex.
- (Powr)
The same as (Powl), but order degrevlex.
- (2x20)
The subalgebra of generated by the -minors. The monomial order is diagonal.
- (2x22)
The same, but over a field of characteristic .
- (3x6)
, a nondiagonal lex order.
- (3x7)
, a nondiagonal lex order.
- (3x8)
, a nondiagonal lex order.
- (3x9l)
, a nondiagonal lex order.
- (3x9r)
, a nondiagonal degrevlex order.
Table 1 contains data of the examples that are relevant for the Sagbi computation.
In the table the first column after the name of the example is the degree bound for all four computations, (Deg), (Hilb), CoCoA5 and M2.The next column gives the maximum degree of the Sagbi basis, provided we could compute a complete Sagbi basis. The third column lists to what degree the computation had to be run for (Deg) to finish in these cases. Then we find the cardinality of the (partial) Sagbi basis, followed by the computation times. Some computations failed because of error conditions or the excess of the time bound:
- T
Time bound of 90 minutes exceeded. Because the time bound was exceeded for (3x8) by Macaulay2, we did not try larger formats.
- M
Lack of memory (max 32 GB), see Remark 13(d).
- O
An intermediate Hilbert series could not be transferred from Normaliz to Singular because of Singular’s bound of 32 bit for the type int.
The times are given in the format min:sec with two decimals for the seconds. The times have been taken on a Dell xps17 laptop with an Intel i7-11800H at 2.3 GHz, on a Dell server r6525 for Macaulay 2, and for CoCoA5, on a MacBook Pro with an Intel Quad-Core i7 at 2,3 GHz. For comparison, the r6525 have been multiplied by , and the Macbook times have been multiplied by the factor 0.73 measured by running (3x7) with Macaulay2 on the three machines.
Remark 12**.**
We add comments on specific examples.
(a) The bulk of the computation time for (HK0) goes into the tête-a-tête computation which reaches rather high degrees. In contrast, the polynomials are very sparse so that the subductions are fast. This explains why (Deg) is faster than (Hilb). We have added the characteristic case since it shows that the Sagbi basis depends significantly on the base field. In this case it shrinks from characteristic [math] to characteristic (and ), but the opposite can happen as well.
We expect that (HK0) and (HK2) do not have finite Sagbi bases.
(b) In contrast to (HK0), (Powr) uses more time for the subduction by rather dense polynomials. We expect that the Sagbi bases are infinite.
(c) We have mentioned the minors of a matrix of indeterminates already in Remark 4(a). That the defining ideal was not computable for us about 10 years ago, while the Sagbi basis takes only 25 sec with (Deg) and only 10 sec with (Hilb) is remarkable.
In characteristic the algebraic structure is very different from that in characteristic [math], and this is also visible in the Sagbi basis that becomes considerably larger. Since (Deg) went through we could compute the Hilbert series. But then (Hilb) failed since an intermediate Hilbert series could not be transferred because of an overflow in Singular.
(d) The evaluation of the tête-a-tête on the partial Sagbi basis computed can of course fail for lack of memory, as we see in (Deg) for (3x9r). For (Deg) it is impossible to know that the Sagbi basis is already complete (as is clear from (Hilb)), and degree power products of -minors can already be very long polynomials. Even if the memory of a larger machine could suffice, computation time can set a limit at this point.
(e) (HK0) has been run with sorting, all the others without. It is the only case in which we have seen a significant difference in running time. Without sorting the computation times grow by about 1 min, for (Deg) as well as for (Hilb), and the terminal output reveals that the time difference stems form the tête-a-tête computation.
(f) The computation of the Hilbert series of via a Sagbi basis with respect to a diagonal monomial order (not in Table 1), order takes only 12 sec.
We add some computations with (Gen) to get a comparison to the Singular library sagbi.lib. For it the number of rounds of (Sagbi) can be limited. We have confined ourselves to the algebras related by minors since the degrees of the tête-a-tête for (HK) and (HK) become extremely large after one or two rounds, and (Gen) must evaluate them fully. We have added (3x9d), with a diagonal monomial order.
In Table 2 T indicates that the computation was stopped after hour without output, and F indicates a failure because of a segmentation fault in Singular.
Remark 13**.**
As documented in Table 2, sagbi.lib computes (3x6). It failed for the others. In view of the failure for (3x7) after min we did not try (3x8) or (3x9l). It is certainly surprising that sagbi.lib cannot recognize that the minors form already a Sagbi basis for (3x9d).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] 4ti 2 team. 4ti 2-A software package for algebraic, geometric and combinatorial problems on linear spaces. Available at https://github.com/4ti 2/4ti 2 .
- 2[2] John Abbott, Anna Maria Bigatti, Lorenzo Robbiano. Co Co A: a system for doing Computations in Commutative Algebra. Available at http://cocoa.dima.unige.it
- 3[3] D. Bernstein and A. Zelevinsky. Combinatorics of maximal minors. J. Algebraic Combin. 2, 2 (1993), 111–121.
- 4[4] A. Bigatti and L. Robbiano. Saturations of subalgebras, SAGBI bases, and U-invariants. J. Symbolic Comput. 109 (2022), 259–282.
- 5[5] A. Bigatti, A Co Co A 5 package for Sagbi bases, Available at https://www.dima.unige.it/ bigatti/data/Computing Saturations Of Subalgebras/
- 6[6] L. Braun. Hilbert series of the Grassmannian and k-Narayana numbers. Commun. Math. 27 (2019), no. 1, 27–41.
- 7[7] W. Bruns and A. Conca. KRS and powers of determinantal ideals. Compositio Math. 111, 1 (1998), 111–122.
- 8[8] W. Bruns, A. Conca and M. Varbaro. Relations between the minors of a generic matrix. Adv. Math. 244 (2013), 17–206.
