Documentation

CslibFrontier.GameTheory.Bimatrix.CorrelatedPolytope

The correlated-equilibrium polytope and extreme-point Nash equilibria #

In a finite two-player bimatrix game G : BimatrixGame M N, a joint probability matrix P : Matrix M N ℝ is a correlated equilibrium (BimatrixGame.IsCorrelated; [TV07a], Section 1.3.6, p. 15; [Pap07], Section 2.7, equation (CE), p. 46) if its entries are nonnegative, sum to 1, and no recommended row i or column j has a profitable unilateral deviation i' or j'. The set of such matrices is the correlated-equilibrium polytope (BimatrixGame.correlatedPolytope).

This module establishes:

Main definitions #

Main results #

References #

The bimatrix correlated-equilibrium polytope #

A joint distribution matrix P : Matrix M N ℝ is a correlated equilibrium of G ([TV07a], Section 1.3.6, p. 15; [Pap07], Section 2.7, equation (CE), p. 46): its entries are nonnegative and sum to 1, and conditioned on any recommended row i (or column j), switching to i' (or j') does not increase that player's expected payoff.

The correlated-equilibrium polytope {P | G.IsCorrelated P} in Matrix M N ℝ ([Pap07], Section 2.7, pp. 46–48).

theorem Cslib.GameTheory.BimatrixGame.IsCorrelated.nonneg {M : Type u} {N : Type v} [Fintype M] [Fintype N] {G : BimatrixGame M N} {P : Matrix M N ℝ} (hP : G.IsCorrelated P) (i : M) (j : N) :
0 ≤ P i j
theorem Cslib.GameTheory.BimatrixGame.IsCorrelated.sum_eq_one {M : Type u} {N : Type v} [Fintype M] [Fintype N] {G : BimatrixGame M N} {P : Matrix M N ℝ} (hP : G.IsCorrelated P) :
∑ i : M, ∑ j : N, P i j = 1
theorem Cslib.GameTheory.BimatrixGame.IsCorrelated.row_le {M : Type u} {N : Type v} [Fintype M] [Fintype N] {G : BimatrixGame M N} {P : Matrix M N ℝ} (hP : G.IsCorrelated P) (i i' : M) :
∑ j : N, P i j * G.A i' j ≤ ∑ j : N, P i j * G.A i j
theorem Cslib.GameTheory.BimatrixGame.IsCorrelated.col_le {M : Type u} {N : Type v} [Fintype M] [Fintype N] {G : BimatrixGame M N} {P : Matrix M N ℝ} (hP : G.IsCorrelated P) (j j' : N) :
∑ i : M, P i j * G.B i j' ≤ ∑ i : M, P i j * G.B i j
@[simp]

Swapping the players transposes correlated equilibria.

The correlated-equilibrium polytope is convex ([Pap07], Section 2.7, p. 47).

Bridge to CostGame.IsCorrelatedEquilibrium #

The joint probability matrix on M × N induced by a distribution on G.toCostGame profiles.

@[simp]
theorem Cslib.GameTheory.BimatrixGame.jointMatrix_apply {M : Type u} {N : Type v} (σ : Convexity.StdSimplex ℝ ((b : Bool) → PureStrategy M N b)) (i : M) (j : N) :
jointMatrix σ i j = σ.weights fun (b : Bool) => match b with | false => { down := i } | true => { down := j }
def Cslib.GameTheory.BimatrixGame.jointWeight {M : Type u} {N : Type v} (P : Matrix M N ℝ) (s : (b : Bool) → PureStrategy M N b) :

The profile weight function on ∀ b, PureStrategy M N b induced by a matrix P.

@[simp]
theorem Cslib.GameTheory.BimatrixGame.jointWeight_apply {M : Type u} {N : Type v} (P : Matrix M N ℝ) (s : (b : Bool) → PureStrategy M N b) :

Equivalence between BimatrixGame.IsCorrelated and CostGame.IsCorrelatedEquilibrium on G.toCostGame: a distribution σ on pure profiles of G.toCostGame is a correlated equilibrium iff its induced matrix jointMatrix σ lies in G.correlatedPolytope.

theorem Cslib.GameTheory.BimatrixGame.isCorrelated_iff_toCostGame {M : Type u} {N : Type v} [Fintype M] [Fintype N] (G : BimatrixGame M N) (P : Matrix M N ℝ) :
G.IsCorrelated P ↔ IsMixedStrategy (jointWeight P) ∧ ∀ (b : Bool) (δ : PureStrategy M N b → PureStrategy M N b), ∑ s : (b : Bool) → PureStrategy M N b, jointWeight P s * G.toCostGame.cost b s ≤ ∑ s : (b : Bool) → PureStrategy M N b, jointWeight P s * G.toCostGame.cost b (Function.update s b (δ (s b)))

Polytope-level bridge to G.toCostGame: P lies in G.correlatedPolytope iff jointWeight P belongs to the switching-function correlated-equilibrium polytope of G.toCostGame in (∀ b, PureStrategy M N b) → ℝ (CostGame.convex_correlatedEquilibriumPolytope).

Product distributions and Nash equilibria #

theorem Cslib.GameTheory.BimatrixGame.IsNash.isCorrelated_vecMulVec {M : Type u} {N : Type v} [Fintype M] [Fintype N] {G : BimatrixGame M N} {x : M → ℝ} {y : N → ℝ} (h : G.IsNash x y) :

The product matrix Matrix.vecMulVec x y of any Nash equilibrium (x, y) is a correlated equilibrium ([Pap07], Section 2.7, p. 46).

Product correlated equilibria are Nash equilibria ([Pap07], Section 2.7, p. 46): for mixed strategies x and y, their outer product Matrix.vecMulVec x y is a correlated equilibrium iff (x, y) is a Nash equilibrium.

Every convex combination of Nash equilibrium product matrices belongs to G.correlatedPolytope ([Pap07], Section 2.7, pp. 46–47).

Nondegenerate support equality and support-equation uniqueness #

theorem Cslib.GameTheory.BimatrixGame.IsNondegenerate.support_left_eq_of_isNash {M : Type u_1} {N : Type u_2} [Fintype M] [Fintype N] {G : BimatrixGame M N} (hG : G.IsNondegenerate) {x : M → ℝ} {y : N → ℝ} (h : G.IsNash x y) :

All pure best responses are played in a nondegenerate Nash equilibrium ([vS07], Exercise 3.2, p. 77), row player: if G is nondegenerate and (x, y) is a Nash equilibrium, then Function.support x equals {i | G.IsPureBestResponse₁ y i}.

theorem Cslib.GameTheory.BimatrixGame.IsNondegenerate.support_right_eq_of_isNash {M : Type u_1} {N : Type u_2} [Fintype M] [Fintype N] {G : BimatrixGame M N} (hG : G.IsNondegenerate) {x : M → ℝ} {y : N → ℝ} (h : G.IsNash x y) :

All pure best responses are played in a nondegenerate Nash equilibrium ([vS07], Exercise 3.2, p. 77), column player.

Uniqueness of support-equation solutions in nondegenerate games ([vS07], Exercise 3.1, p. 77, proving the uniqueness claim after Algorithm 3.4 on p. 57): in a nondegenerate game G, if a mixed strategy y has {i | G.IsPureBestResponse₁ y i}.ncard = (Function.support y).ncard, then any mixed strategy y' with Function.support y' ⊆ Function.support y for which every pure best response to y remains a pure best response to y' must equal y.

Uniqueness of support-equation solutions in nondegenerate games, row-strategy form ([vS07], Exercise 3.1, p. 77).

Theorem 2.5: Nondegenerate Nash equilibria are extreme points of correlatedPolytope #

theorem Cslib.GameTheory.BimatrixGame.IsNondegenerate.exists_unique_maximizer_correlatedPolytope {M : Type u_1} {N : Type u_2} [Fintype M] [Fintype N] {G : BimatrixGame M N} (hG : G.IsNondegenerate) {x : M → ℝ} {y : N → ℝ} (h : G.IsNash x y) :
∃ (W : Matrix M N ℝ), ∀ P ∈ G.correlatedPolytope, ∑ i : M, ∑ j : N, W i j * P i j ≤ ∑ i : M, ∑ j : N, W i j * Matrix.vecMulVec x y i j ∧ (∑ i : M, ∑ j : N, W i j * P i j = ∑ i : M, ∑ j : N, W i j * Matrix.vecMulVec x y i j ↔ P = Matrix.vecMulVec x y)

Every Nash equilibrium of a nondegenerate bimatrix game is the unique correlated-equilibrium maximizer of some linear objective ([Pap07], Section 2.7.1, p. 47): for any nondegenerate game G and Nash equilibrium (x, y), there exists a weight matrix W : Matrix M N ℝ whose linear objective P ↦ ∑ i, ∑ j, W i j * P i j on G.correlatedPolytope attains its maximum uniquely at Matrix.vecMulVec x y.

Nondegenerate Nash equilibria are extreme points of the correlated-equilibrium polytope ([Pap07], Section 2.7.1, Theorem 2.5, p. 47): in any nondegenerate two-player game G, if (x, y) is a Nash equilibrium, then Matrix.vecMulVec x y ∈ G.correlatedPolytope.extremePoints ℝ.

Chicken / traffic-light separation between correlatedPolytope and conv(NE) #

def Cslib.GameTheory.BimatrixGame.socialWelfare {M : Type u_1} {N : Type u_2} [Fintype M] [Fintype N] (G : BimatrixGame M N) (P : Matrix M N ℝ) :

The expected sum of both players' payoffs under a joint matrix P ([Pap07], Section 2.7, p. 47).

theorem Cslib.GameTheory.BimatrixGame.socialWelfare_def {M : Type u_1} {N : Type u_2} [Fintype M] [Fintype N] (G : BimatrixGame M N) (P : Matrix M N ℝ) :
G.socialWelfare P = ∑ i : M, ∑ j : N, P i j * (G.A i j + G.B i j)

The symmetric 2 × 2 Chicken / drivers game of [Pap07], Section 2.7, p. 45 (0 = Stop, 1 = Go, with payoff matrix !![4, 1; 5, 0]). In contrast to the (-100, 1, 0) variant of [TV07a], Example 1.10, p. 15 (where mutual stopping pays (0, 0) so pure equilibria already attain the maximum outcome sum 1), mutual stopping (0, 0) here pays (4, 4) with sum 8, strictly higher than (Stop, Go) and (Go, Stop) (sum 6).

theorem Cslib.GameTheory.BimatrixGame.chickenGame_isNash_iff {x y : Fin 2 → ℝ} :
chickenGame.IsNash x y ↔ x = ![0, 1] ∧ y = ![1, 0] ∨ x = ![1, 0] ∧ y = ![0, 1] ∨ x = ![1 / 2, 1 / 2] ∧ y = ![1 / 2, 1 / 2]

Complete classification of the Nash equilibria of Chicken ([Pap07], Section 2.7, p. 46): chickenGame has exactly three Nash equilibria — the two asymmetric pure equilibria (![0, 1], ![1, 0]) and (![1, 0], ![0, 1]) and the symmetric mixed equilibrium (![1 / 2, 1 / 2], ![1 / 2, 1 / 2]).

The 50–50 traffic-signal correlated equilibrium C₁ = !![0, 1 / 2; 1 / 2, 0] of [Pap07], Section 2.7, pp. 46–47 (cf. [TV07a], Example 1.10, p. 15).

C₁ = !![0, 1 / 2; 1 / 2, 0] has rank 2, so it is not of the form Matrix.vecMulVec x y for any x, y : Fin 2 → ℝ ([Pap07], Section 2.7, p. 46).

The social-welfare-optimal correlated equilibrium C₂ = !![1 / 3, 1 / 3; 1 / 3, 0] of [Pap07], Section 2.7, p. 47 ("a traffic light that is red for both one third of the time").

Over all correlated equilibria of chickenGame, 20 / 3 is the maximum social welfare ([Pap07], Section 2.7, p. 47).

Every point in the convex hull of Nash equilibrium product distributions of chickenGame has expected social welfare at most 6.

Strict separation CE \ conv(NE): chickenOptimalCorrelated lies in chickenGame.correlatedPolytope and strictly outside the convex hull of Nash equilibrium product distributions ([Pap07], Section 2.7.1, Figure 2.4, pp. 47–48).

The social welfare of chickenOptimalCorrelated (20 / 3) strictly exceeds that of every convex combination of Nash equilibrium product distributions (≤ 6).