Professional Documents
Culture Documents
Methods and Applications of Tropical Algebra
Methods and Applications of Tropical Algebra
Methods and Applications of Tropical Algebra
Guided Tour
Stephane.Gaubert@inria.fr
SMAI MAIRCI
Orange Labs, March 19, 2010
Issy Les Moulineaux
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 1 / 57
Max-plus or tropical algebra
“a + b” = max(a, b) “a × b” = a + b
So
“2 + 3” =
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 2 / 57
Max-plus or tropical algebra
“a + b” = max(a, b) “a × b” = a + b
So
“2 + 3” = 3
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 2 / 57
Max-plus or tropical algebra
“a + b” = max(a, b) “a × b” = a + b
So
“2 + 3” = 3
“2 × 3” =
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 2 / 57
Max-plus or tropical algebra
“a + b” = max(a, b) “a × b” = a + b
So
“2 + 3” = 3
“2 × 3” =5
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 2 / 57
Max-plus or tropical algebra
“a + b” = max(a, b) “a × b” = a + b
So
“2 + 3” = 3
“2 × 3” =5
“5/2” =
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 2 / 57
Max-plus or tropical algebra
“a + b” = max(a, b) “a × b” = a + b
So
“2 + 3” = 3
“2 × 3” =5
“5/2” =3
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 2 / 57
Max-plus or tropical algebra
“a + b” = max(a, b) “a × b” = a + b
So
“2 + 3” = 3
“2 × 3” =5
“5/2” =3
“23 ” =
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 2 / 57
Max-plus or tropical algebra
“a + b” = max(a, b) “a × b” = a + b
So
“2 + 3” = 3
“2 × 3” =5
“5/2” =3
“23 ” =“2 × 2 × 2” = 6
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 2 / 57
Max-plus or tropical algebra
“a + b” = max(a, b) “a × b” = a + b
So
“2 + 3” = 3
“2 × 3” =5
“5/2” =3
“23 ” =“2 × 2 × 2” = 6
√
“ −1” =
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 2 / 57
Max-plus or tropical algebra
“a + b” = max(a, b) “a × b” = a + b
So
“2 + 3” = 3
“2 × 3” =5
“5/2” =3
“23 ” =“2 × 2 × 2” = 6
√
“ −1” =−0.5
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 2 / 57
The sister algebra: min-plus
“a + b” = min(a, b) “a × b” = a + b
“2 + 3” = 2
“2 × 3” = 5
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 3 / 57
These algebras were invented by various schools in the
world (from Birmingham to St-Petersburg, passing
through Paris).
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 4 / 57
CNET, 87: first meeting on “algèbres exotiques”
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 5 / 57
The term “tropical” is in the honor of Imre Simon,
1943 - 2009
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 6 / 57
Motivation 1: max-plus linear discrete event
systems
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 7 / 57
Motivation 1: max-plus linear discrete event
systems
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 8 / 57
Gelfand, Kapranov, and Zelevinsky defined the amoeba of an
algebraic variety V ⊂ (C∗ )n to be the “log-log plot”
y +x +1=0
max(x, y , 0)
attained twice
y =x +1
Y = max(X , 0)
X = log(e X + 1)
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 9 / 57
See Passare & Rullgard, Duke Math. 04 for more information
on amoebas
Maslov’s “dequantization”
Define:
a ⊕h b := h log(e a/h + e b/h ) .
Then, (R ∪ {−∞}, ⊕h , +) ' (R+ , +, ×), but
lim a ⊕h b = max(a, b)
h→0+
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 10 / 57
Amoeba of
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 11 / 57
Max-plus algebra can help you to unify . . .
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 12 / 57
Non-linear Perron-Frobenius theory
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 14 / 57
Application: reputation systems
or self-referential aspects of web ranking
the rank ri of page i is the frequency of visit of this page
by a random walker on the web graph.
W adjacency matrix of the web, Wij = 1 if there is a link
from page i to page j, and Wij = 0 otherwise.
X Wij
r = rP, r ≥ 0, ri = 1, Pij = P
i k Wik
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 15 / 57
Application: reputation systems
or self-referential aspects of web ranking
the rank ri of page i is the frequency of visit of this page
by a random walker on the web graph.
W adjacency matrix of the web, Wij = 1 if there is a link
from page i to page j, and Wij = 0 otherwise.
r = r (1 − γ)P + γf
with probability γ, the user resets his exploration, and
moves to page i with proba. fi .
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 15 / 57
The pagerank influences the behaviour of web users
. . . which ultimately determines the pagerank.
A simple model Akian, SG, Ninove, Posta’06, arxiv:0712.0469
If the current pagerank is r , the user moves from page i
to page j with probability:
Wij e rj /T
PT (r )ij = P rk /T
k Wik e
Temperature T = measures the insensitivity of the surfer
to reputation; T = ∞: standard pagerank.
The pagerank of tomorrow is the stationnary distribution
of the walk of today
rTk+1 = rTk+1 PT (r k )
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 16 / 57
Let uT denote the map rTk → rTk+1 .
X
uT (x) = hT (x)/( hT (x)k )
k
/T
Wij e xj /T
X X Y
Wik e xk
hT (x)l = ,
k R→l (i,j)∈R
the latter sum being taken over river networks R with sea
l (Tutte’s matrix tree theorem)
So h is order preserving.
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 17 / 57
Theorem. Akian, SG, Ninove, Posta’06, arxiv:0712.0469 For
T ≥ n, the T -pagerank is unique. For T small, always
several T -pageranks.
Proof idea. For T ≥ n, the map h becomes nonexpansive
in Thompson’s metric, local =⇒ global uniqueness
Nussbaum (AMS memoir, 1988)
If T ≈ 0 and rT0 =
( 1+ε 1 1−ε
3 3 3 )
then limt→∞ rTk ≈ (1 0 0).
If one believes that the pagerank measures quality, then
the pagerank might become meaningless.
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 18 / 57
Similar idea applied by de Kerchove and Van Dooren (SIAM
News 08) to reputation systems. Rater i gives mark xij to
object j. P P
The reputation of object j is rj = i xij fi / k fk
The weight of rater i is decreased if he diverges from the
average rate:P
fi (r ) = d − j (xij − rj )2 , d fixed.
d → ∞: uniform weights of raters.
Applied to “spam” elimination.
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 19 / 57
Nonlinear PF with log-glasses = mean payoff
games
If f is (M)+(H),
g := log ◦f ◦ exp
(AH) : g (λ + x) = λ + g (x), ∀λ ∈ R
and so:
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 21 / 57
A combinatorial game with mean payoff
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 22 / 57
Circle: Max plays. Square: Min plays.
3 3
−1
1
7
4
9 1
6
0
5
2
−5
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 23 / 57
Circle: Max plays. Square: Min plays. vik value in horizon
k starting from node i
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 23 / 57
Max and Min flip a coin to decide who makes the move.
Min always pay.
3
2 1 2 2
−1
2 1
−1 −8
3
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 24 / 57
Max and Min flip a coin to decide who makes the move.
Min always pay.
3
2 1 2 2
−1
2 1
−1 −8
3
1
vik+1 = (max(cij + vjk ) + min (cij + vjk )) .
2 j: i→j j: i→j
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 24 / 57
The limit of v k /k = g k (v 0 )/k (mean payoff) exists
(finite state and actions), Kohlberg 1980.
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 25 / 57
The limit of v k /k = g k (v 0 )/k (mean payoff) exists
(finite state and actions), Kohlberg 1980.
attained by optimal stationnary feedback strategies
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 25 / 57
Policy iteration algorithm to compute the mean
payoff
Howard 60: 1 player; Hoffman and Karp 66: two player, ergodic;
Cochet, SG, Gunawardena 99: two player degenerate (deterministic);
Vöge, Jurdjinzky 00: parity games. . .
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 26 / 57
Choose a strategy: replace each min by one term.
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 27 / 57
Choose a strategy: replace each min by one term.
3 3
v1k+1 = max(2 + v1k , 13 + v2k )
−1
1
7
4
9 1 v2k+1 = −5 + v2k
6
0
5
2
−5
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 27 / 57
To improve the strategy, we use certificates of optimality:
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 28 / 57
Works well in practice
60
50
40
30
20
10
0
0 50000 100000 150000 200000 250000 300000 350000 400000
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 30 / 57
3
2 1 2 2
−1
2 1
−1 −8
3
v1 = 12 (max(2 + v1 , 3 + v2 , −1 + v3 ) + min(2 + v1 , 3 + v2 , −1 + v3 )
5
0 v2 = 1 (max(−1 + v1 , 2 + v2 , −8 + v3 ) + min(−1 + v1 , 2 + v2 , −8 + v3 )
2
4 v3 = 12 (max(2 + v1 , 1 + v2 ) + min(2 + v1 , 1 + v2 )
this game is fair
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 31 / 57
The same games appear in program verification
...
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 32 / 57
Static analysis of programs by abstract
interpretation
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 33 / 57
The best x is the smallest solution of x = f (x)
void main() {
int x=0; // 1
while (x<100) { // 2
x=x+1; // 3
} // 4
}
Let x2+ := max x2 . We arrive at
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 34 / 57
Lattice of templates
σX : P → R n , σX (p) := sup p · x
x∈X
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 35 / 57
Theorem (SG, Goubault, Taly, Zennou, ESOP’07)
When the arithmetics of the program is affine, abstract
interpretation over a lattice of templates reduces to
finding the smallest fixed point of a map
f : (R ∪ {+∞})n → (R ∪ {+∞})n
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 36 / 57
i ≤ +∞
void main() {
i = 1; j = 10; i ≥1
while (i <= j){ //1 j ≤ 10
i = i + 2; j ≥ −∞
j = j - 1; } i ≤j
} i + 2j ≤ 21
i + 2j ≥ 21
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 37 / 57
solved by policy iteration for games
often more accurate than value iteration with
accelerations of convergence -widening/narrowing-
used classically in the static analysis community
computing the smallest fixed point: works by Assale,
SG, Goubault (MTNS 08), Seidl and Gawlitza, . . .
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 38 / 57
The templates are special max-plus bases / finite
elements
X
v (·) '“ λi (t)wi ”
i∈[p]
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 39 / 57
The templates are special max-plus bases / finite
elements
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 39 / 57
The templates are special max-plus bases / finite
elements
Fleming, McEneaney 00-; Akian, Lakhoua, SG 04-
Approximate the value function Rd → R by a “linear
comb.”of “basis” functions with coeffs. λi (t) ∈ R:
hyi , xi
adapted if v is convex
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 40 / 57
Best max-plus approximation
xi
adapted if v is C -Lip
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 40 / 57
McEneaney’s curse of dimensionality reduction
We want to solve the Hamilton-Jacobi equation
∂v ∂v
= H(x, ) v (0, ·) = φ
∂t ∂x
with H(x, p) convex in p, x ∈ Rd (1 player, deterministic
game).
Suppose
1 1
H = sup Hi , Hi = −( x ∗ Di x + x ∗ A∗i p + p ∗ Σi p)
i∈[r ] 2 2
(=LQ with switching).
Write v as a max-plus linear combination of base
functions (computed via Riccati).
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 41 / 57
Inessential terms are trimmed dynamically using Shor
relaxation (SDP) → solution of a typical instance in dim
6 on a Mac in 30’
McEneaney, Desphande, SG; ACC 08
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 42 / 57
Some elementary tropical geometry
max(x, y , 0)
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 43 / 57
Some elementary tropical geometry
max(x, y , 0)
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 43 / 57
Two generic tropical lines meet at a unique point
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 44 / 57
By two generic points passes a unique tropical line
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 44 / 57
non generic case
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 44 / 57
Tropical segments:
f
g
[f , g ] := {sup(λ + f , µ + g ) λ, µ ∈
R ∪ {−∞}, max(λ, µ) = 0}.
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 45 / 57
Tropical convex set: f , g ∈ C =⇒ [f , g ] ∈ C
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 46 / 57
A tropical half-space is a set of the form
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 48 / 57
Equivalence between tropical linear programming
and mean payoff games
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 49 / 57
Tropical convex geometry works
Separation
projection
minimisation of distance
Choquet theory (generation by extreme points)
discrete convexity: Radon, Helly, Caratheodory,
Minkowski, colorful Caratheodory, Tverberg
carry over !
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 50 / 57
Separation of two convex sets
C b
r g
b
r
r
b
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 52 / 57
Tropical polyhedra can be efficiently handled
Allamigeon, SG, Goubault, arXiv:0904.3436, STACS’2010
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 53 / 57
Tropical convexity has been applied. . .
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 54 / 57
Conclusion
Maxplus algebra
is useful in applications (optimal control, discrete
event systems, games)
has proved to be a gold mine of counter examples and
inspiration, for several other fields of mathematics
(combinatorics, asymptotic analysis, geometry)
is quite fun.
Some references available on http://minimal.inria.fr/gaubert/
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 55 / 57
Advertisement
Stephane Gaubert (INRIA and CMAP) Methods and Applications of Tropical Algebra SMAI - MAIRCI 57 / 57