Computing zero-dimensional tropical varieties via projections
Paul G\"orlach, Yue Ren, Leon Zhang

TL;DR
This paper introduces an efficient algorithm for computing zero-dimensional tropical varieties using projections and unimodular transforms of Gr"obner bases, with proven polynomial complexity and favorable implementation performance.
Contribution
It presents a novel algorithm leveraging projections and unimodular transforms for zero-dimensional tropical varieties, improving computational efficiency and complexity analysis.
Findings
Algorithm requires polynomial arithmetic operations given a Gr"obner basis.
Implementation outperforms existing methods in speed and efficiency.
Complexity for tropical links dominated by Gr"obner walk complexity.
Abstract
We present an algorithm for computing zero-dimensional tropical varieties using projections. Our main tools are fast unimodular transforms of lexicographical Gr\"obner bases. We prove that our algorithm requires only a polynomial number of arithmetic operations if given a Gr\"obner basis, and we demonstrate that our implementation compares favourably to other existing implementations. Applying it to the computation of general positive-dimensional tropical varieties, we argue that the complexity for calculating tropical links is dominated by the complexity of the Gr\"obner walk.
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
TopicsPolynomial and algebraic computation · Algebraic Geometry and Number Theory
Computing zero-dimensional tropical varieties
via projections
Paul Görlach
Max Planck Institute for Mathematics in the Sciences
Inselstraße 22
04103 Leipzig
Germany
[email protected] https://personal-homepages.mis.mpg.de/goerlach ,
Yue Ren
Max Planck Institute for Mathematics in the Sciences
Inselstraße 22
04103 Leipzig
Germany
[email protected] https://yueren.de and
Leon Zhang
University of California, Berkeley
970 Evans Hall #3840
Berkeley, CA 94720-3840, USA USA
[email protected] https://math.berkeley.edu/ leonyz
Abstract.
We present an algorithm for computing zero-dimensional tropical varieties using projections. Our main tools are fast unimodular transforms of lexicographical Gröbner bases. We prove that our algorithm requires only a polynomial number of arithmetic operations if given a Gröbner basis, and we demonstrate that our implementation compares favourably to other existing implementations.
Applying it to the computation of general positive-dimensional tropical varieties, we argue that the complexity for calculating tropical links is dominated by the complexity of the Gröbner walk.
Key words and phrases:
tropical geometry, tropical varieties, computer algebra.
2010 Mathematics Subject Classification:
14T05, 13P10, 13P15, 68W30
1. Introduction
Tropical varieties are piecewise linear structures which arise from polynomial equations. They appear naturally in many areas of mathematics and beyond, such as geometry [Mik05], combinatorics [AK06, FS05], and optimisation [ABGJ18], as well as phylogenetics [SS04, LMY18], celestial mechanics [HM06, HJ11], and auction theory [BK19, TY15]. Wherever they emerge, tropical varieties often provide a fresh insight into existing computational problems, which is why efficient algorithms and optimised implementations are of great importance.
Computing tropical varieties from polynomial ideals is a fundamentally important yet algorithmically challenging task, requiring sophisticated techniques from computational algebra and convex geometry. Currently, Gfan [Jen17] and Singular [DGPS19] are the only two programs capable of computing general tropical varieties. Both programs rely on a traversal of the Gröbner complex as initially suggested by Bogart, Jensen, Speyer, Sturmfels, and Thomas [BJSST07], and for both programs the initial bottleneck had been the computation of so-called tropical links. Experiments suggest that this bottleneck was resolved with the recent development of new algorithms [Cha13, HR18]. However the new approaches still rely on computations that are known to be very hard, [Cha13] on elimination and [HR18] on root approximation to an unknown precision.
In this paper, we study the computation of zero-dimensional tropical varieties, which is the key computational ingredient in [HR18], but using projections, which is the key conceptual idea in [Cha13]. We create a new algorithm for computing zero-dimensional tropical varieties that only requires a polynomial amount of field operations if we start with a Gröbner basis, and whose timings compare favourably with other implementations even if we do not. In particular, we argue that in the computation of general tropical varieties, the calculation of so-called tropical links becomes computationally insignificant compared to the Gröbner walk required to traverse the tropical variety.
Note that projections are a well-studied approach in polynomial systems solving, see [Stu02, DE05] for an overview on various techniques. Our approach can be regarded as a non-Archimedean analogue of that strategy, since tropical varieties can be regarded as zeroth-order approximation of the solutions in the topology induced by the valuation.
Our paper is organised as follows: In Section 3, we introduce a special class of unimodular transformations and study how they act on generic lexicographical Gröbner bases. In Section 4, we explain our main algorithm for reconstructing zero-dimensional tropical varieties from their projections, while Section 5 touches upon some technical details of the implementation. In Section 6, we compare the performance of our algorithm against the root approximation approach, while Section 7 analyses the complexity of our algorithm.
Implementations of all our algorithms can be found in the Singular library tropicalProjection.lib. Together with the data for the timings, it is available at https://software.mis.mpg.de, and will also be made publicly available as part of the official Singular distribution.
Acknowledgment
The authors would like to thank Avi Kulkarni (MPI Leipzig) for his Magma script for solving polynomial equations over -adic numbers, Marta Panizzut (TU Berlin) and Bernd Sturmfels (MPI Leipzig + UC Berkeley) for the examples of tropical cubic surfaces with distinct lines, as well as Andreas Steenpaß (TU Kaiserslautern) for his work on the Singular library modular.lib [Ste19].
2. Background
For the sake of notation, we briefly recall some basic notions of tropical algebraic geometry and computational algebra that are of immediate relevance to us. In tropical geometry, our notation closely follows that of [MS15].
Convention 2.1
For the remainder of the article, let be a field with non-trivial valuation and fix a multivariate polynomial ring as well as a multivariate Laurent polynomial ring .
Moreover, given a Laurent polynomial ideal , we call a finite subset a Gröbner basis with respect to a monomial ordering on if consists of polynomials and forms a Gröbner basis of the polynomial ideal with respect to in the conventional sense, see for example [GP02, §1.6]. All our Gröbner bases are reduced.
Finally, a lexicographical Gröbner basis will be a Gröbner basis with respect to the lexicographical ordering with .
For the purposes of this article, the following definition of tropical varieties in terms of coordinate-wise valuations of points in solution sets suffices.
Definition 2.2** **(Tropical variety)
Let be a Laurent polynomial ideal. The tropical variety is given by
[TABLE]
where denotes the algebraic closure of the completion of , so that extends uniquely to a valuation on , denotes the affine variety of over , and is the closure in the euclidean topology.
In this article, our focus lies on zero-dimensional ideals , in which case is a finite set of points if each point is counted with the multiplicity corresponding to the number of solutions with .
In the univariate case, the tropical variety of an ideal simply consists of the negated slopes in the Newton polygon of [Neu99, Proposition II.6.3]. Our approach for computing zero-dimensional tropical varieties of multivariate ideals is based on reducing computations to the univariate case.
Definition 2.3
We say that a zero-dimensional ideal is in shape position if the projection onto the last coordinate , defines a closed embedding .
In this article, we will concentrate on ideals that are in shape position. Lemma 2.4 shows an easy criterion to decide whether a given ideal is in shape position, while Lemma 2.5 shows how to coax degenerate ideals into shape position.
Lemma 2.4** **([CLO05, §4 Exercise 16])
A zero-dimensional ideal is in shape position if and only if its (reduced) lexicographical Gröbner basis is of the form
[TABLE]
for some univariate polynomials . The polynomials are unique.
Lemma 2.5
Let be a zero-dimensional ideal. Then there exists a euclidean dense open subset such that for any the unimodular transformation
[TABLE]
maps into an ideal in shape position.
Proof.
Without loss of generality, we may assume that the field is algebraically closed. For any , let be the torus automorphism induced by , so that . Then the transformed ideal is in shape position if and only if the map , is injective on the finite set .
For , the set is a -sublattice of positive corank. Hence, is a proper affine subspace of . By definition, for any two elements , we have
[TABLE]
Thus, is in shape position if and only if , where is a euclidean dense open subset of . ∎
3. Unimodular transformations on lexicographical Gröbner bases
In this section, we introduce a special class of unimodular transformations and describe how they operate on lexicographical Gröbner bases in shape position.
Definition 3.1
We will consider unimodular transformations indexed by the set
[TABLE]
For any , we define a unimodular ring automorphism
[TABLE]
and a linear projection
[TABLE]
We call such a a slim (unimodular) transformation concentrated at .
While our slim unimodular transformations might seem overly restrictive, the next lemma states that they are sufficient to compute arbitrary projections of tropical varieties, which is what we will need in Section 4.
Lemma 3.2
Let be a slim transformation concentrated at . Then
[TABLE]
Proof.
We may assume that is algebraically closed. The ring automorphism induces a torus automorphism with , which in turn induces a linear transformation mapping to :
K[\mathbf{x}^{\pm}]$$K[\mathbf{x}^{\pm}]induces(K^{\ast})^{n}$$(K^{\ast})^{n}$$\mathbb{R}^{n}$$\mathbb{R}^{n}$$\varphi_{u}$$f_{u}$$h_{u}$$\nu$$\nu$$x_{\ell}\prod_{i\neq\ell}x_{i}^{u_{i}}$$x_{\ell}$$(z_{1},\ldots,z_{n})$$(z_{1},\ldots,z_{\ell}\cdot\prod_{i\neq\ell}z_{i}^{u_{i}},\ldots,z_{n})$$(w_{1},\ldots,w_{n})$$(w_{1},\ldots,w_{\ell}+\sum_{i\neq\ell}u_{i}w_{i},\ldots,w_{n})
Hence, with denoting the projection onto the -th coordinate:
[TABLE]
The following easy properties of slim unimodular transformations serve as a basic motivation for their inception. They map polynomials to polynomials, which is important when working with software which only supports polynomial data. Moreover, they preserve saturation and shape position for zero-dimensional ideals, which is valuable as saturating and restoring shape position as in Lemma 2.5 are two expensive operations.
Lemma 3.3
For any slim transformation and any zero-dimensional ideal , we have
- (1)
, 2. (2)
, 3. (3)
* in shape position in shape position.*
Proof.
From the definition, it is clear that polynomials get mapped to polynomials under , showing (1). In particular, induces a morphism which on the torus restricts to an automorphism with . To show (2), we need to see that does not have irreducible components supported outside the torus . Now, is the closure of in , so by zero-dimensionality of , we have . Since , this proves (2). Finally, we note that , so we have , where denotes the projection onto the last coordinate. Hence, is a closed embedding if and only if is, proving (3). ∎
The next Algorithm 3.4 allows us to efficiently transform a lexicographical Gröbner basis of into a lexicographical Gröbner basis of . This is the main advantage of slim unimodular transformations, which we will leverage to compute .
Algorithm 3.4** **(Slim unimodular transformation of a Gröbner basis)
0: , where
- •
is a slim transformation concentrated at ,
- •
is the lexicographical Gröbner basis of an ideal in shape position as in (SP).
0: , the lexicographical Gröbner basis of .
1: In the univariate polynomial ring , compute with and
[TABLE]
2: return .
Correctness of Algorithm 3.4.
The polynomial ideal is saturated with respect to the product of variables , and is by assumption generated by . This implies that is relatively prime to each for and to . In particular, the inverse in showing up in the definition of is well-defined. The ideal is generated by
[TABLE]
Note that the expression is equivalent to modulo the ideal . It follows that is generated by , and it is clear that is a lexicographical Gröbner basis. ∎
4. Computing zero-dimensional tropical varieties via projections
In this section, we assemble our algorithm for computing from a zero-dimensional ideal . This is done in two stages, see Figure 1: In the first stage, we project onto all coordinate axes of . In the second stage, we iteratively glue the coordinate projections together until is fully assembled.
For the sake of simplicity, all algorithms contain some elements of ambiguity to minimise the level of technical detail. To see how these ambiguities are resolved in the actual implementation, see Section 5. Moreover, we will only consider as points in without multiplicities. It is straightforward to generalise the algorithms to work with as points in with multiplicities, which is how they are implemented in Singular.
The following algorithm merges several small projections into a single large projection. For clarity, given a finite subset , we use to denote the linear subspace of spanned by the unit vectors indexed by and to denote the projection .
Algorithm 4.1** **(gluing projections)
0: , where
- •
is the lexicographical Gröbner basis of a zero-dimensional ideal in shape position as in (SP),
- •
are non-empty sets.
0: , where .
1: Construct the candidate set
[TABLE]
2: Pick a slim transformation such that the following map is injective:
[TABLE]
3: Using Algorithm 3.4, transform into a Gröbner basis of :
[TABLE]
4: Compute the minimal polynomial of over and read off from its Newton polygon.
5: return .
Correctness of Algorithm 4.1.
First, we argue that line 2 can be realised, i.e., we show the existence of a slim unimodular transformation such that is injective on the candidate set . Pick and denote . It suffices to show that the set
[TABLE]
contains an integer point. By the definition of , we see that
[TABLE]
This describes as the complement of an affine hyperplane arrangement in inside the positive orthant. Therefore, must contain an integer point.
Next, we note that the candidate set contains by construction, so injectivity of shows that . Therefore, the correctness of the output will follow from showing . By Lemma 3.2, it suffices to prove that generates the elimination ideal .
For this, we observe that reducing a univariate polynomial with respect to the lexicographical Gröbner basis substitutes by to obtain a univariate polynomial in and then reduces the result modulo . In particular, this shows that such lies in the ideal if and only if in . Hence, the elimination ideal is generated by . ∎
The next algorithm computes by projecting it onto all coordinate axes and gluing the projections together via Algorithm 4.1.
Algorithm 4.2** **(tropical variety via projections)
0: , the lexicographical Gröbner basis of a zero-dimensional ideal in shape position as in (SP).
0:
1: Compute the projection onto the last coordinate .
2: for do
3: Compute the minimal polynomial of over and read off the projection .
4: Initialise a set of computed projections .
5: while do
6: Pick projections to be merged such that for .
7: Using Algorithm 4.1, compute .
8: .
9: return .
Correctness of Algorithm 4.2.
Since is the lexicographical Gröbner basis of , the elimination ideal is generated by , so we indeed have the equality in line 1. The equality in line 3 holds because generates the elimination ideal by the same argument as in the proof of correctness of Algorithm 4.1.
In every iteration of the while loop, the set grows in size. Since there are only finitely many coordinate sets , we will after finitely many iterations compute , hence the while loop terminates. ∎
Example 4.3
Consider equipped with the 2-adic valuation and the ideal
[TABLE]
This ideal is in shape position by Lemma 2.4. From the Newton polygon of , see Figure 2 (left), it is not hard to see that
[TABLE]
where points with multiplicity are highlighted in bold. To merge and , we consider the following projection that is injective on the candidate set :
[TABLE]
The corresponding unimodular transformation sends to and hence is generated by , which Algorithm 3.4 transforms into the following lexicographical Gröbner basis:
[TABLE]
The minimal polynomial of in over can be computed as the resultant
[TABLE]
Figure 2 (middle) shows the Newton polygon of the resultant, from which we see:
[TABLE]
Thus,
[TABLE]
To merge and , we consider the following projection that is injective on the candidate set :
[TABLE]
The corresponding unimodular transformation sends to and hence is generated by , which Algorithm 3.4 transforms into the following lexicographical Gröbner basis:
[TABLE]
Another resultant computation yields the minimal polynomial of over :
[TABLE]
Figure 2 (right) shows the Newton polygon of the resultant, from which we see:
[TABLE]
and thus
[TABLE]
5. Implementation
In this section, we reflect on some design decisions that were made in the implementation of the algorithms in the Singular library tropicalProjection.lib. While the reader who is only interested in the algorithms, their performance, and their complexity may skip this section without impeding their understanding, we thought it important to include this section for the reader who is interested in the actual implementation.
5.1. Picking unimodular transformations in Algorithm 4.1 Line 2
As is injective for generic , it seems reasonable to sample random until the corresponding projection is injective on the candidate set. Our implementation however iterates over all in increasing -norm until the smallest one with injective is found. This is made in an effort to keep the slim unimodular transformation as simple as possible, since Lines 3–4 are the main bottlenecks of our algorithm.
5.2. Transforming Gröbner bases in Algorithm 4.1 Line 3
As mentioned before, Lines 3–4 are the main bottlenecks of our algorithm. Two common reasons why polynomial computations may scale badly are an explosion in degree or in coefficient size. The degree of the polynomials is not problematic in our algorithm, as using Algorithm 3.4 in Line 3 only incurs basic arithmetic operations in whose elements can be represented by polynomials of degree bounded by , while the degree of the minimal polynomial in Line 4 also is bounded by . Therefore, the only aspect that needs to be controlled in our computation is the size of the coefficients.
Coefficient explosion is a common problem for computing inverses in via the Extended Euclidean Algorithm [GG13, §6.1]. To make matters worse, the polynomial to be inverted in Algorithm 3.4 usually already has large coefficients. However, we can exploit the fact that the minimal polynomial of is if and only if the minimal polynomial of is . Instead of computing in Algorithm 3.4, it therefore suffices to compute , which is easier as has generally smaller coefficients than and is independent of , so its inversion modulo is much faster.
5.3. Computing minimal polynomials in Algorithm 4.1 Line 4
The computation of minimal polynomials for elements in can be carried out in many different ways, for example using:
*item**Resultants: ***
We can compute the resultant of the two polynomials and with respect to the variable by standard resultant algorithms. The minimal polynomial is the squarefree part of the resultant.
*item**Linear Algebra: ***
Let be minimal such that in the finite-dimensional -vector space the set of polynomials is linearly dependent, where . We can find a linear dependence and conclude that .
*item**Gröbner bases: ***
Note that forms a Gröbner basis with respect to the lexicographical ordering with . We can transform this to a Gröbner basis with respect to the lexicographical ordering with using FGLM [FGLM93] and read off the eliminant as the generator of the elimination ideal .
For polynomials with small coefficients, the implementation using Singular’s resultants seemed the fastest, but Singular’s FGLM seems to be best when dealing with very large coefficients.
For however, we can use a modular approach thanks to the Singular library modular.lib [Ste19]: It computes the minimal polynomial over for several primes using any of the above methods, then lifts the results to . This modular approach avoids problems caused by very large coefficients and works particularly well using the method based on linear algebra from above. We can check if the lifted is correct by testing whether in .
5.4. Picking gluing strategies in Algorithm 4.2 Line 6
Algorithm 4.2 is formulated in a flexible way: Different strategies of realising the choice of coordinate sets in line 6 can adapt to the needs of a specific tropicalization problem. The four gluing strategies that follow seem very natural and are implemented in our Singular library. See Figure 3 for an illustration in the case .
**oneProjection: **
Only a single iteration of the while loop, in which we pick and for .
**sequential: **
iterations of the while loop, during which we pick and and in the -th iteration.
**regularTree(): **
iterations of the while loop, which can be partially run in parallel in batches. In each batch we merge of the previous projections.
**overlap: **
iterations of the while loop, which can be partially run in parallel in batches. During batch , we pick and , for .
oneProjection is the simplest strategy, requiring only one unimodular transformation. For examples of very low degree, it is the best strategy due to its minimal overhead. For examples of higher degree , the candidate set in Algorithm 4.1 can become quite large, at worst . This generally leads to larger in Line 2 and causes problems due to coefficient growth.
sequential avoids the problem of a large candidate set by only gluing two projections at a time, guaranteeing . This comes at the expense of computing unimodular transformations, but even for medium-sized instances we observe considerable improvements compared to oneProjection. In Section 7, we prove that sequential guarantees good complexity bounds on Algorithm 4.2.
regularTree() can achieve considerable speed-up by parallelisation. Whereas every while-iteration in sequential depends on the output of the previous iteration, regularTree() allows us to compute all gluings in parallel in batches. The total number of gluings remains the same.
overlap further reduces the size of the candidate set compared to sequential, while exploiting parallel computation like regularTree(). It glues projections two at a time, but only those and which overlap significantly. This can lead to much smaller candidate sets , at best which makes a unimodular transformation obsolete. The strategy overlap seems particularly successful in practice and is the one used for the timings in Section 6.
Our implementation in Singular also allows for custom gluing strategies by means of specifying a graph as in Figure 3.
6. Timings
In this section we present timings of our Singular implementation of Algorithm 4.2 for and the -adic valuation. We compare it to a Magma [BCP97] implementation which approximates the roots in the -adic norm. While Singular is also capable of the same task, we chose to compare to Magma instead as it is significantly faster due to its finite precision arithmetic over -adic numbers. Our Singular timings use the overlap strategy, a modular approach and parallelisation with up to four threads. The Singular times we report on are total CPU times across all threads (for reference, the longest example in Singular required 118 seconds total CPU time, but only 32 seconds real time). All computations were run on a server with 2 Intel Xeon Gold 6144 CPUs, 384GB RAM and Debian GNU/Linux 9.9 OS. All examples and scripts are available at https://software.mis.mpg.de.
6.1. Random lexicographical Gröbner bases in shape position
Given natural numbers and , a random lexicographical Gröbner basis of an ideal of degree in shape position will be a Gröbner basis of the form
[TABLE]
where are univariate polynomials in of degree respectively with coefficients of the form for a random and a random .
Figure 4 shows timings for and varying . Each computation was aborted if it failed to terminate within one hour. We see that Magma is significantly faster for small examples, while Singular scales better with increasing degree.
For many of the ideals however, has fewer than distinct points. This puts our algorithm at an advantage, as it allows for easier projections in Algorithm 4.2 Line 2. Mathematically, it is not an easy task to generate non-trivial examples with distinct tropical points. Picking to have roots with distinct valuation for example would make all roots live in , in which case Magma terminates instantly. Our next special family of examples has criteria which guarantee distinct points.
6.2. Tropical lines on a random honeycomb cubic
Let be a smooth cubic surface. In [PV19], it is shown that may contain infinitely many tropical lines. However, for general whose coefficient valuations induce a honeycomb subdivision of its Newton polytope, will always contain exactly distinct tropical lines [PV19, Theorem 27], which must therefore be the tropicalizations of the lines on .
We used Polymake [GJ00] to randomly generate cubic polynomials with honeycomb subdivisions whose coefficients are pure powers of . For each cubic polynomial , we constructed the one-dimensional homogeneous ideal of degree whose solutions are the lines on in Plücker coordinates. Figure 5 shows the timings for computing , where is a zero-dimensional ideal of degree . Out of our random cubics, had to be discarded because was of lower degree, i.e., contained lines with .
Unsurprisingly, the Singular timings are relatively stable, while the Magma timings heavily depend on the degree of the splitting field of over . Over , the generic splitting field degree would be [EJ12]. Over , the distinct tropical points of severely restrict the Galois group of the splitting field.
7. Complexity
In this section, we bound the complexity for computing a zero-dimensional tropical variety from a given Gröbner basis using Algorithm 4.2 with the sequential strategy. We show that the number of required arithmetic operations is polynomial in the degree of the ideal and the ambient dimension. Based on this, we argue that the complexity of computing a higher-dimensional tropical variety is dominated by the Gröbner walk required to traverse the Gröbner complex, as the computation of a tropical link is essentially polynomial time in the aforementioned sense.
Convention 7.1
For the remainder of the section, consider a zero-dimensional ideal of degree and assume , so that .
For the sake of convenience, we recall some results on the complexity of arithmetic operations over algebraic extensions, a well-studied topic in the area of computational algebra.
Proposition 7.2** **([GG13, Corollary 4.6 + Section 4.3 + Exercise 12.10])
Let be two univariate polynomials of degree . Then:
- **(1): **
Addition, multiplication and inversion in require arithmetic operations in . 2. **(2): **
Computing the -th power of requires arithmetic operations in . 3. **(3): **
Computing the minimal polynomial of requires arithmetic operations in .
Proposition 7.3
Algorithm 3.4, which computes the lexicographical Gröbner basis of for some slim transformation , requires \mathcal{O}\big{(}d^{2}\sum_{u_{i}>0}(1+\log u_{i})\big{)} arithmetic operations in .
Proof.
We need to count the number of field operations in which the following polynomial can be computed:
[TABLE]
Denoting , this entails the following in the ring :
- **•: **
exponentiations and for .
- **•: **
inversion for ,
- **•: **
multiplications for the product of , and all other ,
- **•: **
final inversion.
An exponentiation to the power requires arithmetic operations in , while every other operation requires arithmetic operations in by Proposition 7.2. In total, the number of required field operations in is
[TABLE]
Lemma 7.4
Let be finite sets of cardinality . Then there exists a non-negative integer such that , is injective. The smallest such can be found in arithmetic operations in .
Proof.
The map will fail to be injective if and only if there exists a pair of points in lying on an affine line with slope . Since there are at most pairs of points, the statement follows by the pigeonhole principle.
We can determine all integral slopes attained by a line between any two points of with arithmetic operations in . Picking the smallest natural number not occurring among these slopes gives the desired . ∎
Proposition 7.5
Let and assume that the following is known from a previous call of Algorithm 4.1 within Algorithm 4.2 running the sequential strategy:
- **•: **
* and ,*
- **•: **
a slim transformation concentrated at with for such that is injective on ,
- **•: **
the lexicographical Gröbner basis of .
Then Algorithm 4.1 for gluing the two projections into requires and arithmetic operations in and respectively.
Proof.
Applying Lemma 7.4 to and , we can compute a minimal such that is injective on in arithmetic -operations. Setting , this means that is injective on .
Since for and a lexicographical Gröbner basis of is already known, we may compute the lexicographical Gröbner basis of by applying Algorithm 3.4 to and . By Proposition 7.3, this requires arithmetic operations in .
By Proposition 7.2, computing the minimal polynomial of requires arithmetic operations in , so the overall number of arithmetic -operations in Algorithm 4.1 is also . ∎
Theorem 7.6
Algorithm 4.2, which computes the zero-dimensional tropical variety , with the sequential strategy requires and arithmetic operations in and respectively.
Proof.
Algorithm 4.2 using the sequential strategy consists of
- **•: **
Computing minimal polynomials of for
- **•: **
Applying Algorithm 4.1 to and for .
We may store the information on the unimodular transformation computed in iteration during the computation of and this information may be used in the next iteration. Then Propositions 7.2 and 7.5 allow us to deduce the claimed bounds on arithmetic operations in Algorithm 4.2. ∎
Remark 7.7** **(Computing positive-dimensional tropical varieties)
Currently, gfan and Singular are the only software systems capable of computing general tropical varieties, and both rely on a guided traversal of the Gröbner complex as introduced in [BJSST07]. Their frameworks roughly consist of two parts:
- **(1): **
the Gröbner walk to traverse the tropical variety, 2. **(2): **
the computation of tropical links to guide the Gröbner walk.
While the computation of tropical links had been a major bottleneck of the original algorithm and in early implementations, experiments suggest that it has since been resolved by new approaches [Cha13, HR18]. However, the algorithm in [Cha13, §4.2] relies heavily on projections, while [HR18, Algorithm 2.10] relies on root approximations to an unknown precision, so neither approach has good complexity bounds. In fact, [HR18, Timing 3.9] shows that the necessary precision can be exponential in the number of variables.
Algorithm 4.2 was designed with [HR18, Algorithm 2.10] in mind, and with Theorem 7.6 we argue that the complexity of calculating tropical links as in [HR18, Algorithm 4.6] is dominated by the complexity of the Gröbner basis computations required for the Gröbner walk. In the following, let be a homogeneous ideal of codimension and degree .
- **(1): **
The Gröbner walk requires Gröbner bases of initial ideals with respect to weight vectors with , where denotes the Gröbner polyhedron of around . Note that is neither monomial since nor binomial as . Therefore, this is a general Gröbner basis computation which is commonly regarded as double exponential time. 2. **(2): **
Replacing [HR18, Algorithm 2.10] in [HR18, Algorithm 4.6] with our Algorithm 4.2 requires Gröbner bases of ideals of the form
[TABLE]
where is chosen as before and is chosen to satisfy . These ideals are zero-dimensional of degree at most , and it is known that Gröbner bases of zero-dimensional ideals can be on average computed in polynomial time in the number of solutions [Lak91, LL91]. Thus the entire computation of tropical links can on average be done in polynomial time.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[ABGJ 18] Xavier Allamigeon, Pascal Benchimol, Stéphane Gaubert and Michael Joswig “Log-barrier interior point methods are not strongly polynomial” In SIAM J. Appl. Algebra Geom. 2.1 , 2018, pp. 140–178 DOI: 10.1137/17M 1142132 · doi ↗
- 2[AK 06] Federico Ardila and Caroline J. Klivans “The Bergman complex of a matroid and phylogenetic trees” In J. Combin. Theory Ser. B 96.1 , 2006, pp. 38–49 DOI: 10.1016/j.jctb.2005.06.004 · doi ↗
- 3[BK 19] Elizabeth Baldwin and Paul Klemperer “Understanding Preferences: Demand Types and the Existence of Equilibrium With Indivisibilities” In Econometrica 87.3 , 2019, pp. 867–932 DOI: 10.3982/ECTA 13693 · doi ↗
- 4[BJSST 07] T. Bogart et al. “Computing tropical varieties” In J. Symbolic Comput. 42.1-2 , 2007, pp. 54–73 DOI: 10.1016/j.jsc.2006.02.004 · doi ↗
- 5[BCP 97] Wieb Bosma, John Cannon and Catherine Playoust “The Magma algebra system. I. The user language” Computational algebra and number theory (London, 1993) In J. Symbolic Comput. 24.3-4 , 1997, pp. 235–265 DOI: 10.1006/jsco.1996.0125 · doi ↗
- 6[Cha 13] Andrew Chan “Gröbner bases over fields with valuation and tropical curves by coordinate projections”, 2013
- 7[CLO 05] David A. Cox, John Little and Donal O’Shea “Using algebraic geometry” 185 , Graduate Texts in Mathematics Springer, New York, 2005, pp. xii+572
- 8[DGPS 19] Wolfram Decker, Gert-Martin Greuel, Gerhard Pfister and Hans Schönemann “ Singular 4-1-2 — A computer algebra system for polynomial computations”, http://www.singular.uni-kl.de , 2019
