MathLabs

Geometry

Tropical geometry

Replacing ordinary addition and multiplication with the tropical operations ⊕=min⁡\oplus=\min and ⊗=+\otimes=+ turns polynomial curves into piecewise-linear graphs, with roots reaching back to shortest-path algorithms and forward to open problems in enumerative and non-archimedean geometry.

IntuitionFrom ordinary arithmetic to tropical arithmetic

Imagine every "addition" means pick the cheaper of two prices, and every "multiplication" means add up the costs along a route. Define two new operations on numbers extended with +∞+\infty: tropical addition a⊕b=min⁡(a,b)a \oplus b = \min(a, b) and tropical multiplication a⊗b=a+ba \otimes b = a + b. A tropical polynomial is an ordinary polynomial with every ++ read as ⊕\oplus and every ×\times read as ⊗\otimes. Because ⊗\otimes is just addition, a monomial such as x⊗3x^{\otimes 3} — three copies of xx multiplied tropically — becomes 3x3x, and the whole polynomial collapses into the minimum of finitely many linear functions. Instead of a smooth curve, its "zero set" becomes the set of points where that minimum is achieved by at least two of the linear pieces at once: a corner, or piecewise-linear graph.

Why "tropical"? The name honors Imre Simon (1943–2009), a Hungarian-born Brazilian computer scientist who pioneered the study of min-plus algebra in theoretical computer science starting in the late 1970s. His French colleagues in automata theory coined the adjective "tropical" as a friendly nod to Simon's home city of São Paulo — south of the Tropic of Capricorn — with, as Sturmfels and Speyer later put it, "no deeper meaning." The word stuck once mathematicians realized that doing algebraic geometry over the min-plus semiring produces a rich, genuinely geometric theory.

Example: Evaluating a tropical polynomial by hand

Take the one-variable tropical polynomial p(x)=min⁡(2x+3, x+1, 2)p(x) = \min(2x + 3,\ x + 1,\ 2), coming from the ordinary polynomial 2⊗x⊗2⊕1⊗x⊕22 \otimes x^{\otimes 2} \oplus 1 \otimes x \oplus 2 (coefficients 2,1,22, 1, 2 on x2,x,x0x^2, x, x^0). Evaluate p(1)p(1).

Solution

Substitute x=1x = 1 into each of the three linear pieces: 2(1)+3=52(1) + 3 = 5, 1+1=21 + 1 = 2, and the constant piece 22. The tropical value is the ordinary minimum of these three numbers: p(1)=min⁡(5,2,2)=2p(1) = \min(5, 2, 2) = 2. Notice the tie between the second and third pieces (2=22 = 2) — this is exactly a corner point of the piecewise-linear graph, the tropical analogue of a root.

UndergraduateThe tropical semiring and tropical curves

Definition: Tropical semiring

The tropical semiring (in the min-plus convention) is the set T=R∪{+∞}\mathbb{T} = \mathbb{R} \cup \{+\infty\} equipped with tropical addition a⊕b=min⁡(a,b)a \oplus b = \min(a, b) and tropical multiplication a⊗b=a+ba \otimes b = a + b. It is a semiring, not a ring: ⊕\oplus and ⊗\otimes are commutative, associative, and ⊗\otimes distributes over ⊕\oplus, but no element other than +∞+\infty has an additive inverse (there is no number xx with min⁡(a,x)=+∞\min(a, x) = +\infty for finite aa). The additive identity is +∞+\infty (since min⁡(a,+∞)=a\min(a, +\infty) = a) and the multiplicative identity is 00 (since a+0=aa + 0 = a). (A dual max-plus convention, with ⊕=max⁡\oplus = \max, is equally common in the literature; the two are related by x↦−xx \mapsto -x, and this page fixes the min-plus convention throughout.)

A tropical polynomial in nn variables is a finite ⊕\oplus-sum of ⊗\otimes-monomials, i.e. a function p:Rn→Rp : \mathbb{R}^n \to \mathbb{R} of the form p(x)=⨁α∈Scα⊗x⊗α=min⁡α∈S(cα+α⋅x)p(x) = \bigoplus_{\alpha \in S} c_\alpha \otimes x^{\otimes \alpha} = \min_{\alpha \in S} \big(c_\alpha + \alpha \cdot x\big), where SS is a finite set of exponent vectors α∈Zn\alpha \in \mathbb{Z}^n and cα∈Rc_\alpha \in \mathbb{R}. Every such pp is the pointwise minimum of finitely many affine-linear functions with integer slopes, hence piecewise linear and concave. The tropical hypersurface (for n=2n = 2, a tropical curve) cut out by pp is its corner locus V(p)={x∈Rn:the minimum in p(x) is attained by at least two terms}V(p) = \{x \in \mathbb{R}^n : \text{the minimum in } p(x) \text{ is attained by at least two terms}\} — precisely the set of points where pp fails to be linear, the tropical analogue of "where the polynomial vanishes."

p(x)=⨁α∈Scα⊗x⊗α=min⁡α∈S(cα+α⋅x)p(x) = \bigoplus_{\alpha \in S} c_\alpha \otimes x^{\otimes \alpha} = \min_{\alpha \in S} \big(c_\alpha + \alpha \cdot x\big)

A tropical polynomial in nn variables is a finite ⊕\oplus-sum of ⊗\otimes-monomials, i.e. a function p:Rn→Rp : \mathbb{R}^n \to \mathbb{R} of the form p(x)=⨁α∈Scα⊗x⊗α=min⁡α∈S(cα+α⋅x)p(x) = \bigoplus_{\alpha \in S} c_\alpha \otimes x^{\otimes \alpha} = \min_{\alpha \in S} \big(c_\alpha + \alpha \cdot x\big), where SS is a finite set of exponent vectors α∈Zn\alpha \in \mathbb{Z}^n and cα∈Rc_\alpha \in \mathbb{R}. Every such pp is the pointwise minimum of finitely many affine-linear functions with integer slopes, hence piecewise linear and concave. The tropical hypersurface (for n=2n = 2, a tropical curve) cut out by pp is its corner locus, the set of points where at least two of the linear pieces tie for the minimum: V(p)={x∈Rn:∣{α∈S:cα+α⋅x=p(x)}∣≥2}V(p) = \{x \in \mathbb{R}^n : |\{\alpha \in S : c_\alpha + \alpha \cdot x = p(x)\}| \ge 2\} — precisely the set of points where pp fails to be linear, the tropical analogue of "where the polynomial vanishes."

Example: The tropical line

Take the simplest degree-11 tropical polynomial in two variables with all coefficients 00: q(x,y)=x⊕y⊕0=min⁡(x,y,0)q(x, y) = x \oplus y \oplus 0 = \min(x, y, 0). Find its corner locus (the tropical curve it defines), and describe the three regions where each term wins.

Solution

The three linear pieces are xx, yy, and 00. Compare them pairwise: xx is the unique minimum when x<yx < y and x<0x < 0; yy is the unique minimum when y<xy < x and y<0y < 0; 00 is the unique minimum when x>0x > 0 and y>0y > 0. The corner locus — where two pieces tie — consists of exactly three rays from the origin: the ray {x=y≤0}\{x = y \le 0\} (direction (−1,−1)(-1,-1), where the xx- and yy-pieces tie), the ray {x=0, y≥0}\{x = 0,\ y \ge 0\} (direction (0,1)(0,1), where the xx-piece ties the constant), and the ray {y=0, x≥0}\{y = 0,\ x \ge 0\} (direction (1,0)(1,0), where the yy-piece ties the constant). This three-pronged figure — sometimes nicknamed the "Mercedes-Benz" curve — is the tropical line: the tropical analogue of an ordinary straight line.

∑j=1kwjvj=0\sum_{j=1}^{k} w_j v_j = 0

Let pp be a tropical polynomial in two variables and let vv be a vertex of its tropical curve V(p)V(p). Let the edges of V(p)V(p) incident to vv have primitive integer direction vectors v1,…,vk∈Z2v_1, \dots, v_k \in \mathbb{Z}^2 (each pointing away from vv) and positive integer weights w1,…,wkw_1, \dots, w_k. Then ∑j=1kwjvj=0\sum_{j=1}^{k} w_j v_j = 0.

Why is it true?

This is a conservation law, structurally identical to Kirchhoff's current law at a node of an electrical circuit: near vv, the polynomial pp is the minimum of the affine pieces that achieve equality at vv, and each edge is where exactly two of them stay tied. As you walk once around vv, the slope of pp jumps by an amount proportional to wjvjw_j v_j each time you cross an edge; since pp is a single well-defined continuous function, these jumps must cancel out after a full turn, which is exactly the balancing equation. It is this local cancellation — not just any polyhedral complex will do — that makes a tropical curve genuinely algebraic, i.e. the corner locus of an honest tropical polynomial, rather than an arbitrary collection of rays and segments.

Proof

Recall that p(x)=min⁡α∈S(cα+α⋅x)p(x) = \min_{\alpha \in S}(c_\alpha + \alpha \cdot x) is dual to the regular subdivision Δp\Delta_p of its Newton polygon conv(S)\mathrm{conv}(S) obtained by lifting each point α∈S\alpha \in S to height cαc_\alpha and projecting the lower convex hull back down. Every edge ee of V(p)V(p) is dual to an edge e∗e^* of Δp\Delta_p: ee is perpendicular to e∗e^* (rotate by 90∘90^\circ), and its weight ww equals the lattice length of e∗e^*. Every vertex vv of V(p)V(p) is dual to a 22-dimensional cell (a polygon) σv\sigma_v of Δp\Delta_p, and the edges of V(p)V(p) incident to vv correspond, in matching cyclic order, exactly to the boundary edges of σv\sigma_v. Traversing the boundary of the closed polygon σv\sigma_v once around, its edge vectors e1∗,…,ek∗e_1^*, \dots, e_k^* sum to zero — a polygon returns to where it started: e1∗+⋯+ek∗=0e_1^* + \cdots + e_k^* = 0. Rotation by 90∘90^\circ is a linear map RR, and each R(ej∗)R(e_j^*) equals wjvjw_j v_j up to the fixed choice of orientation (the weight wjw_j is the lattice length of ej∗e_j^*, and vjv_j is ej∗e_j^* rotated and rescaled to a primitive vector). Applying the linear map RR to both sides of e1∗+⋯+ek∗=0e_1^* + \cdots + e_k^* = 0 gives w1v1+⋯+wkvk=R(0)=0w_1 v_1 + \cdots + w_k v_k = R(0) = 0, which is exactly the balancing condition.

Check the balancing condition on the tropical line above: at the origin, the three rays have primitive directions (1,0)(1,0), (0,1)(0,1), (−1,−1)(-1,-1), each with weight 11 (every coefficient of qq was 00, so every dual edge in the Newton triangle has lattice length 11). Indeed 1⋅(1,0)+1⋅(0,1)+1⋅(−1,−1)=(0,0)1\cdot(1,0) + 1\cdot(0,1) + 1\cdot(-1,-1) = (0,0), confirming the theorem on this simplest possible example.

AdvancedFrom formal valuations to a genuinely algebraic theory

The tropical line above was built by hand from arbitrary coefficients, but the deepest tropical curves come from tropicalizing an actual algebraic variety. Let KK be a field with a valuation val:K∗→R\mathrm{val} : K^* \to \mathbb{R} — a function with val(ab)=val(a)+val(b)\mathrm{val}(ab) = \mathrm{val}(a) + \mathrm{val}(b) and val(a+b)≥min⁡(val(a),val(b))\mathrm{val}(a+b) \ge \min(\mathrm{val}(a), \mathrm{val}(b)) — such as the field C{ ⁣{t}}\mathbb{C}\{\!\{t\}\} of Puiseux series (where val\mathrm{val} reads off the lowest exponent of tt) or the pp-adic numbers Qp\mathbb{Q}_p (where val\mathrm{val} is the pp-adic valuation). Extend val\mathrm{val} coordinatewise to a map trop:(K∗)n→Rn\mathrm{trop} : (K^*)^n \to \mathbb{R}^n, trop(x1,…,xn)=(val(x1),…,val(xn))\mathrm{trop}(x_1, \dots, x_n) = (\mathrm{val}(x_1), \dots, \mathrm{val}(x_n)). For a variety X⊆(K∗)nX \subseteq (K^*)^n, the tropicalization trop(X)\mathrm{trop}(X) is the closure of the image trop(X(K))\mathrm{trop}(X(K)) in Rn\mathbb{R}^n.

The single most important fact tying this formal machinery back to genuine algebraic geometry is the Fundamental Theorem of Tropical Geometry: for a variety X=V(I)⊆(K∗)nX = V(I) \subseteq (K^*)^n cut out by an ideal II over an algebraically closed field KK with a nontrivial valuation, trop(X)\mathrm{trop}(X) coincides with the set V(trop(I)))V(\mathrm{trop}(I))) obtained by tropicalizing every polynomial in II and intersecting their corner loci — so the analytic tropicalization (built from actual points of XX) agrees with the purely combinatorial tropical variety built from the ideal alone. Mikhail Kapranov proved the hypersurface case (a single defining polynomial) in the 1990s; the general statement for arbitrary ideals, together with a full proof via Gröbner theory and initial ideals, is developed as the Fundamental Theorem in Diane Maclagan and Bernd Sturmfels's 20152015 textbook Introduction to Tropical Geometry, building on tropical Gröbner-basis techniques worked out earlier in the 2000s.

Long before anyone called any of this "tropical," computer scientists were already doing tropical linear algebra by hand. The all-pairs shortest path problem on a weighted directed graph is a textbook instance of (min⁡,+)(\min, +)-algebra: if AA is the n×nn \times n matrix with AijA_{ij} the weight of the edge from ii to jj (and Aij=+∞A_{ij} = +\infty when no edge exists, Aii=0A_{ii} = 0), then tropical matrix multiplication is defined exactly as in ordinary linear algebra but with ⊕\oplus replacing ++ and ⊗\otimes replacing ×\times: (A⊗B)ij=⨁k(Aik⊗Bkj)=min⁡k(Aik+Bkj)(A \otimes B)_{ij} = \bigoplus_k \big(A_{ik} \otimes B_{kj}\big) = \min_k \big(A_{ik} + B_{kj}\big).

dij(k)=min⁡(dij(k−1), dik(k−1)+dkj(k−1))d_{ij}^{(k)} = \min\big(d_{ij}^{(k-1)},\ d_{ik}^{(k-1)} + d_{kj}^{(k-1)}\big)

Let AA be the (min⁡,+)(\min,+) weight matrix of a directed graph on nn vertices with no negative-weight cycles. Let A⊗mA^{\otimes m} denote the mm-fold tropical matrix product of AA with itself. Then the entry (A⊗(n−1))ij(A^{\otimes(n-1)})_{ij} equals the length of the shortest path from ii to jj in the graph. This is exactly the quantity computed by the Floyd–Warshall algorithm, whose recurrence dij(k)=min⁡(dij(k−1), dik(k−1)+dkj(k−1))d_{ij}^{(k)} = \min\big(d_{ij}^{(k-1)},\ d_{ik}^{(k-1)} + d_{kj}^{(k-1)}\big) builds up A⊗(n−1)A^{\otimes(n-1)} one intermediate vertex at a time.

Why is it true?

Entry (A⊗m)ij(A^{\otimes m})_{ij} tracks the length of the best walk from ii to jj using **at most mm edges**, because tropical matrix multiplication is exactly "combine a first leg and a rest-of-the-journey via addition, then keep only the cheapest combination" — precisely Bellman's principle of optimality for shortest paths. Iterating this n−1n - 1 times is enough because a shortest simple path in an nn-vertex graph never needs more than n−1n - 1 edges, so no further tropical squaring can improve the answer.

Proof

By induction on mm. Base case m=1m = 1: (A⊗1)ij=Aij(A^{\otimes 1})_{ij} = A_{ij} is trivially the length of the best walk using at most one edge. Inductive step: assume (A⊗m)ik(A^{\otimes m})_{ik} equals the length of the shortest walk from ii to kk using at most mm edges, for every kk. Then (A⊗(m+1))ij=(A⊗m⊗A)ij=min⁡k((A⊗m)ik+Akj)(A^{\otimes(m+1)})_{ij} = (A^{\otimes m} \otimes A)_{ij} = \min_k\big((A^{\otimes m})_{ik} + A_{kj}\big). Any walk from ii to jj with at most m+1m+1 edges either uses at most mm edges already (covered by the k=jk = j, Ajj=0A_{jj} = 0 term) or splits as a walk of at most mm edges from ii to some vertex kk followed by one final edge k→jk \to j; minimizing over all such kk recovers exactly (A⊗(m+1))ij(A^{\otimes(m+1)})_{ij}, so the claim holds for m+1m + 1. Since there are no negative-weight cycles, no shortest walk needs to repeat a vertex, so every shortest path uses at most n−1n - 1 edges; taking m=n−1m = n - 1 shows (A⊗(n−1))ij(A^{\otimes(n-1)})_{ij} is exactly the shortest-path distance, matching the Floyd–Warshall recurrence, which computes the same quantity by fixing intermediate vertices one at a time instead of edge-counts.

Example: A tiny tropical matrix squaring

Three vertices A,B,CA, B, C with directed edges A→BA \to B (weight 44), B→CB \to C (weight 33), and A→CA \to C (weight 99). Its (min⁡,+)(\min,+) weight matrix is A=(049∞03∞∞0)A = \begin{pmatrix} 0 & 4 & 9 \\ \infty & 0 & 3 \\ \infty & \infty & 0 \end{pmatrix} (rows/columns in order A,B,CA, B, C). Compute (A⊗A)AC(A \otimes A)_{AC} and compare it to the direct edge weight 99.

Solution

By definition (A⊗A)AC=min⁡k(AAk+AkC)=min⁡(AAA+AAC, AAB+ABC, AAC+ACC)=min⁡(0+9, 4+3, 9+0)=min⁡(9,7,9)=7(A \otimes A)_{AC} = \min_k(A_{Ak} + A_{kC}) = \min\big(A_{AA}+A_{AC},\ A_{AB}+A_{BC},\ A_{AC}+A_{CC}\big) = \min(0+9,\ 4+3,\ 9+0) = \min(9, 7, 9) = 7. The tropical squaring found the two-edge route A→B→CA \to B \to C of total weight 77, strictly cheaper than the direct edge of weight 99 — exactly the shortest-path update that Floyd–Warshall performs when it considers BB as an intermediate vertex. Squaring once already suffices here since the shortest path uses only 2≤n−1=22 \le n - 1 = 2 edges.

A directed graph with a designated source and sink vertex and several intermediate vertices connected by directed edges, drawn here as a generic weighted network to illustrate min-plus (shortest-path) matrix computation rather than its usual max-flow use.
This is the "s–t flow network" graph from the catalog, shown here (not for its usual max-flow role) simply as a concrete weighted directed graph — the literal historical setting where (min⁡,+)(\min,+) matrix computation was born: Floyd's and Warshall's early-1960s shortest-path algorithms already computed exactly the tropical matrix powers described above, decades before anyone called this algebra "tropical."

Tropical geometry sits at a genuine crossroads. Every tropical polynomial pp carries a Newton polytope conv(S)⊆Rn\mathrm{conv}(S) \subseteq \mathbb{R}^n, and the coefficients cαc_\alpha induce a regular subdivision of that polytope (lift each α\alpha to height cαc_\alpha and project the lower faces back down) — exactly the polyhedral machinery of convex and discrete geometry. Dually, the tropical variety trop(X)\mathrm{trop}(X) of a classical algebraic variety XX encodes genuine algebraic-geometric data of XX (its dimension, degree, and much of its intersection theory) inside a purely combinatorial object, which is why so many computations in algebraic geometry can be carried out tropically. And because every tropical polynomial is a minimum of affine-linear functions, evaluating one is itself a small linear program: tropical geometry and convex/linear optimization share the same underlying (min⁡,+)(\min, +)-linear structure, and tropical methods now feed directly into linear and convex programming algorithms.

A rotatable 3D tetrahedron (four triangular faces) whose faces can be pulled apart from the center using an "explode" slider; shown as a schematic stand-in for the general shape of a convex polytope, not the Newton polytope of a specific polynomial.
Honesty first: this is a generic tetrahedron, one of the library's stock 3D polytopes — it is not the Newton polytope of any specific tropical polynomial from this page. Real Newton polytopes (of the tropical line, a plane conic, or the graph example above) are typically much simpler flat polygons in R2\mathbb{R}^2 or R3\mathbb{R}^3, not this shape. What this widget honestly illustrates is only the general idea of a 3D convex polytope with flat faces that can be pulled apart (exploded) — the same kind of object (Newton polytopes, subdivided by height functions) that underlies the bridge to convex and discrete geometry described above.

AdvancedA hundred years in the making: from automata theory to algebraic geometry

ResearchWhere tropical geometry stands now

In the min-plus convention used on this page, what is 2⊕52 \oplus 5?

The tropical curve (corner locus) defined by a tropical polynomial pp is the set of points where...

The balancing condition at a vertex of a tropical curve, ∑jwjvj=0\sum_j w_j v_j = 0, is important because...

The Floyd–Warshall shortest-path algorithm is a direct historical ancestor of tropical geometry because it essentially computes...

References

  1. Diane Maclagan, Bernd Sturmfels (2015). Introduction to Tropical Geometry
  2. Grigory Mikhalkin (2005). Enumerative tropical algebraic geometry in R^2 · arXiv:math/0312530
  3. Imre Simon (1978). Limited subsets of a free monoid · DOI:10.1109/SFCS.1978.21