Reduction from general two-player games to three-player zero-sum games #
While two-player zero-sum games reduce to linear programming
(CslibFrontier/GameTheory/Bimatrix/ZeroSum.lean), adding a third player restores the full
generality of two-player strategic games ([TV07a], Exercise 1.3, p. 26). Given any
two-player bimatrix game G = (A, B) on M × N, adjoining a dummy third player with a single
pure strategy PUnit.unit and payoff -(A_{ij} + B_{ij}) yields a three-player zero-sum game
G.toThreePlayerZeroSum whose costs always sum to 0 (toThreePlayerZeroSum_isZeroSum).
This module establishes both the exact game-theoretic equilibrium correspondence over ℝ and a
native multi-tape Turing-machine polynomial-time search reduction on rational payoff encodings:
- General zero-sum strategic games (
CostGame.IsZeroSum): a strategic game is zero-sum whenG.socialCost s = 0for every pure profiles. For bimatrix games, this agrees withBimatrixGame.IsZeroSum(BimatrixGame.isZeroSum_iff_toCostGame_isZeroSum). - Game-theoretic bijection (
BimatrixGame.toThreePlayerZeroSum):- Exact mixed Nash equilibria of
G.toThreePlayerZeroSumcorrespond bijectively to Nash equilibria ofG(isNash_iff_isMixedNash_toThreePlayerZeroSum,isMixedNash_toThreePlayerZeroSum_iff). - Pure Nash equilibria and
ε-approximate mixed Nash equilibria correspond identically (isPureNash_toThreePlayerZeroSum_iff,isApproxNash_iff_isApproxMixedNash_toThreePlayerZeroSum).
- Exact mixed Nash equilibria of
- Polynomial-time search reduction (
ThreePlayerZeroSumCode):ThreePlayerZeroSumCodeencodes arbitrary finitem × n × kthree-player rational zero-sum games(matA, matB, matC)(A_{ijk} + B_{ijk} + C_{ijk} = 0) underencThreePlayerZeroSum, with rational Nash search problemThreePlayerZeroSumCode.RationalNashSearch.BimatrixCode.toThreePlayerZeroSumCodemaps anym × nbimatrix code to anm × n × 1zero-sum three-player code in polynomial time, and witness projection extracts(x, y)from(x, y, z)in polynomial time, yieldingCslib.Complexity.SearchReducible encBimatrix encThreePlayerZeroSum BimatrixCode.RationalNashSearch ThreePlayerZeroSumCode.RationalNashSearch(searchReducible_bimatrixRationalNash_threePlayerZeroSum).
Main definitions #
Cslib.GameTheory.CostGame.IsZeroSum:∀ s, G.socialCost s = 0.Cslib.GameTheory.BimatrixGame.ThreePlayerStrategy,Cslib.GameTheory.BimatrixGame.toThreePlayerZeroSum,Cslib.GameTheory.BimatrixGame.threePlayerProfile: lifting a bimatrix game and its strategies to a three-player zero-sumCostGameonFin 3.Cslib.GameTheory.ThreePlayerStrategyTriple,Cslib.GameTheory.encThreePlayerWitness: encoded rational strategy triple((x, y), z).Cslib.GameTheory.ThreePlayerZeroSumCode,Cslib.GameTheory.encThreePlayerZeroSum: encoded rationalm × n × kthree-player zero-sum game.Cslib.GameTheory.BimatrixCode.RationalNashSearch,Cslib.GameTheory.ThreePlayerZeroSumCode.RationalNashSearch: exact rational Nash equilibrium search relations.Cslib.GameTheory.BimatrixCode.toThreePlayerZeroSumCode: polynomial-time embedding of a bimatrix game code into a three-player zero-sum code.
Main results #
Cslib.GameTheory.BimatrixGame.isZeroSum_iff_toCostGame_isZeroSum: bridge withBimatrixGame.IsZeroSum.Cslib.GameTheory.BimatrixGame.toThreePlayerZeroSum_isZeroSum:G.toThreePlayerZeroSumis zero-sum.Cslib.GameTheory.BimatrixGame.isNash_iff_isMixedNash_toThreePlayerZeroSum,Cslib.GameTheory.BimatrixGame.isMixedNash_toThreePlayerZeroSum_iff,Cslib.GameTheory.BimatrixGame.isPureNash_toThreePlayerZeroSum_iff,Cslib.GameTheory.BimatrixGame.isApproxNash_iff_isApproxMixedNash_toThreePlayerZeroSum: exact equilibrium correspondence ([TV07a], Exercise 1.3, p. 26).Cslib.GameTheory.BimatrixCode.rationalNashSearch_isTotalSearch: totality of rational bimatrix Nash search.Cslib.GameTheory.searchReducible_bimatrixRationalNash_threePlayerZeroSum: polynomial-time search reduction from two-player rational Nash to three-player zero-sum rational Nash ([TV07a], Exercise 1.3, p. 26).
References #
Section 1: General zero-sum cost games and the three-player lifting #
For a two-player bimatrix game, BimatrixGame.IsZeroSum (B = -A) agrees with
CostGame.IsZeroSum on G.toCostGame.
Strategy sets of the three-player zero-sum lifting of a bimatrix game on M × N: player 0
has row strategies M, player 1 has column strategies N, and player 2 has a single dummy
strategy PUnit.unit.
Instances For
Three-player zero-sum lifting of a general bimatrix game G = (A, B) ([TV07a],
Exercise 1.3, p. 26): players 0 and 1 pay -A_{ij} and -B_{ij}, and dummy player 2 pays
A_{ij} + B_{ij} (reward -(A_{ij} + B_{ij})).
The lifted three-player game is always zero-sum.
Lifting a pair of mixed strategies (x, y) to a three-player profile by assigning weight 1
to player 2's unique strategy.
Pure Nash equilibria of G.toThreePlayerZeroSum correspond directly to pure Nash equilibria of
G.toCostGame.
Any mixed strategy profile p of G.toThreePlayerZeroSum is of the form
threePlayerProfile x y.
Exact mixed Nash correspondence for toThreePlayerZeroSum ([TV07a],
Exercise 1.3, p. 26): (x, y) is a Nash equilibrium of G iff threePlayerProfile x y is a
mixed Nash equilibrium of the three-player zero-sum game G.toThreePlayerZeroSum.
Every mixed Nash equilibrium p of G.toThreePlayerZeroSum projects directly to a Nash
equilibrium (x, y) of G.
ε-approximate Nash equilibria (ε ≥ 0) also correspond identically between G and
G.toThreePlayerZeroSum.
Section 2: Encoded three-player zero-sum games and polynomial-time search reduction #
A rational mixed strategy triple ((x, y), z) for a three-player game, nesting StrategyPair
for players 1 and 2 so witness extraction is a direct prefix projection.
- pair : StrategyPair
Players 1 and 2's rational mixed strategy pair.
Player 3's rational mixed strategy list.
Instances For
The tuple of the fields of encThreePlayerWitness.
An explicitly presented three-player rational payoff game (matA, matB, matC).
Player 1's rational payoff tensor
A[i][j][k].Player 2's rational payoff tensor
B[i][j][k].Player 3's rational payoff tensor
C[i][j][k].
Instances For
Binary encoding of three-player rational games as (matA, matB, matC) via encRatTensor.
Number of pure strategies of player 1.
Number of pure strategies of player 2.
Number of pure strategies of player 3.
Exact rational mixed Nash equilibrium condition for a three-player game code c.
The exact rational Nash equilibrium search problem on three-player zero-sum game codes (with
empty witness [] on malformed codes).
Exact rational Nash equilibrium search problem on BimatrixCode (without an artificial bit
length cap; total because BimatrixNash is total).
Every BimatrixCode admits a rational Nash witness.
Polynomial-time reduction mapping a two-player BimatrixCode (A, B) to an m × n × 1
three-player zero-sum game code (A', B', -(A' + B')) ([TV07a], Exercise 1.3, p. 26).
Malformed bimatrix codes map to the malformed empty code ⟨[], [], []⟩.
Equivalence between rational Nash equilibria of c and rational Nash equilibria of
c.toThreePlayerZeroSumCode.
NRTV Exercise 1.3 (polynomial-time search reduction) ([TV07a], Exercise 1.3, p. 26): finding an exact rational Nash equilibrium in a general two-player bimatrix game reduces in polynomial time (on multi-tape Turing machines) to finding a rational Nash equilibrium in a three-player zero-sum game.