The value of a finite zero-sum game #
In the finite zero-sum game with loss matrix M : I → J → K over a linearly ordered field K,
the row player picks i, the column player picks j, and the row player pays M i j to the
column player. An element v : K is the value of the game (IsMinimaxValue M v) if the row
player has a mixed strategy p paying at most v against every column and the column player has
a mixed strategy q collecting at least v against every row. By von Neumann's minimax theorem
[vN28] every game with finitely many rows and columns has a value
(exists_isMinimaxValue), and it is unique (IsMinimaxValue.unique):
min_p max_j ∑ i, p i M i j = max_q min_i ∑ j, q j M i j = v.
Existence is proved by linear-programming duality over K
(Matrix.exists_isGreatest_isLeast_dotProduct_of_nonneg, by Fourier–Motzkin elimination), with no
topology. The LP-duality argument is that of [MG07], Theorem 8.1.3 and its proof
(Section 8.1, pp. 136–138), for real games: there the row and column players' problems are the
linear programs (8.2) and (8.4), over strategies summing to 1 with a free variable for the value.
The formulation here is different: after shifting M by a constant, the row player's problem,
normalized by its value, is the canonical program max {∑ i, x i | 0 ≤ x, ∑ i, x i * M i j ≤ 1}
and the column player's is its dual, and the argument runs over every linearly ordered field. So a
game with entries in ℚ has a rational value and rational optimal strategies. The theorem proves
that optimal strategies exist; the source's clause that they can be computed efficiently is not
formalized here. Cslib.Algorithms.Lean.Simplex.solveGame computes the value and optimal
strategies with the simplex method (Bland's rule), with no bound on its running time. The
hypothesis form of the minimax theorem used by Yao's principle,
Convexity.StdSimplex.exists_forall_sum_le_of_forall_exists_sum_le, is derived from it in
CslibFrontier.Probability.Minimax.
The open Mathlib pull request
mathlib4#39393 proves the
existence of a saddle point of a finite real matrix game (Matrix.exists_saddle_point,
Matrix.exists_mixedNash) from Sion's theorem on stdSimplex. The proof here does not depend on
it and holds over every linearly ordered field; over ℝ, the payoff at such a saddle point is the
value (IsMinimaxValue.unique).
Main definitions #
Cslib.Probability.IsMinimaxValue:vis the value of a finite zero-sum game.
Main results #
Cslib.Probability.exists_isMinimaxValue: every finite zero-sum game over a linearly ordered field has a value, with optimal mixed strategies over the same field.Cslib.Probability.IsMinimaxValue.unique: the value is unique.Cslib.Probability.IsMinimaxValue.exists_le,Cslib.Probability.IsMinimaxValue.exists_ge: against any mixed strategy, the opponent has a pure strategy doing at least as well as the value.
References #
v is the value of the finite zero-sum game with loss matrix M (the row player pays
M i j): some mixed row strategy pays at most v against every column, and some mixed column
strategy collects at least v against every row. This is a value predicate, not a saddle-point
existence theorem; see the module documentation for its relation to mathlib4#39393.
Instances For
Weight vectors p and q of mixed strategies, with p paying at most v against every
column and q collecting at least v against every row, witness that v is the value.
The value of a game is unique.
Optimal strategies from the canonical pair of a game. Let x ≥ 0 be feasible for
max {∑ i, x i | 0 ≤ x, ∑ i, x i * (M i j + s) ≤ 1} and y ≥ 0 for its dual
min {∑ j, y j | 0 ≤ y, 1 ≤ ∑ j, y j * (M i j + s)}, with the same objective value V. Then
V > 0 (as y = 0 violates the dual constraint of any row), x / V and y / V are mixed
strategies, x / V pays at most 1 / V - s against every column and y / V collects at least
1 / V - s against every row; so 1 / V - s is the value (IsMinimaxValue.of_weights). This is
the read-off step of exists_isMinimaxValue, also used by the simplex solver
Cslib.Algorithms.Lean.Simplex.solveGame.
Every finite zero-sum game has a value, over every linearly ordered field [vN28]:
there are mixed strategies p, q and v : K with ∑ i, p i * M i j ≤ v for every column j
and v ≤ ∑ j, q j * M i j for every row i. This is the existence part of
[MG07], Theorem 8.1.3, extended from real games to every linearly ordered field;
the source's efficient-computation clause is not formalized. The proof follows the source's
LP-duality argument (pp. 136–138), but with the canonical pair in place of its programs (8.2) and
(8.4): shifting M by s so that some column pays at least 1 against every row, the programs
max {∑ i, x i | 0 ≤ x, ∑ i, x i * (M i j + s) ≤ 1} and
min {∑ j, y j | 0 ≤ y, 1 ≤ ∑ j, y j * (M i j + s)} are feasible, and their common optimum V is
positive; x / V and y / V are optimal strategies and 1 / V - s is the value.
Against any mixed row strategy p, some column collects at least the value.
Against any mixed column strategy q, some row pays at most the value.