Documentation

CslibFrontier.GameTheory.Bimatrix.Symmetric

Symmetric bimatrix games and equilibrium correspondence for symmetrization #

A two-player bimatrix game G : BimatrixGame M M with shared strategy set M is symmetric (BimatrixGame.IsSymmetric) if G.B = G.Aᵀ ([Pap07], Example 2.2, p. 30): swapping the roles of the two players leaves all payoffs unchanged. A mixed strategy x : M → ℝ is a symmetric Nash equilibrium (BimatrixGame.IsSymmetricNash) if (x, x) is a Nash equilibrium, equivalently if x is a best response of player 1 to x.

This module establishes:

Main definitions #

Main results #

References #

Symmetric two-player bimatrix games #

A bimatrix game G : BimatrixGame M M on a common strategy set M is symmetric ([Pap07], Example 2.2, p. 30) if G.B = G.Aᵀ.

The symmetric bimatrix game ⟨A, Aᵀ⟩ determined by player 1's payoff matrix A.

Embedding of G : BimatrixGame M M as a two-player CostGame Bool (fun _ => M) on the shared strategy type M, where false is the row player and true is the column player.

G.toSymmCostGame is symmetric in the CostGame sense iff G is symmetric (G.B = G.Aᵀ).

x : M → ℝ is a symmetric Nash equilibrium of G ([Pap07], Example 2.2, p. 30) if (x, x) is a Nash equilibrium of G.

theorem Cslib.GameTheory.BimatrixGame.IsSymmetric.isNash_comm {M : Type u_1} [Fintype M] {G : BimatrixGame M M} (hG : G.IsSymmetric) {x y : M → ℝ} :
G.IsNash x y ↔ G.IsNash y x

Pure-row characterization of IsSymmetricNash in a symmetric bimatrix game.

Support characterization of IsSymmetricNash in a symmetric bimatrix game: every strategy in the support of x is a pure best response to x.

In a symmetric bimatrix game, x is a symmetric Nash equilibrium iff x is a symmetric mixed Nash equilibrium of G.toSymmCostGame.

Symmetric Nash equilibrium existence for bimatrix games ([Pap07], Example 2.2, pp. 30–31, and Section 2.3.1, p. 34; two-player specialization of [Nas51], Theorem 2): every finite nonempty symmetric bimatrix game has a symmetric Nash equilibrium.

Algebraic equilibrium-correspondence step of [Pap07], Theorem 2.4 #

The symmetric two-player game ofSymmetric [[0, A], [Bᵀ, 0]] on M ⊕ N associated to a bimatrix game G in the proof of [Pap07], Theorem 2.4, p. 34.

@[simp]
theorem Cslib.GameTheory.BimatrixGame.symmReduction_A_inl_inl {M : Type u_1} {N : Type u_2} (G : BimatrixGame M N) (i i' : M) :
@[simp]
theorem Cslib.GameTheory.BimatrixGame.symmReduction_A_inl_inr {M : Type u_1} {N : Type u_2} (G : BimatrixGame M N) (i : M) (j : N) :
G.symmReduction.A (Sum.inl i) (Sum.inr j) = G.A i j
@[simp]
theorem Cslib.GameTheory.BimatrixGame.symmReduction_A_inr_inl {M : Type u_1} {N : Type u_2} (G : BimatrixGame M N) (j : N) (i : M) :
G.symmReduction.A (Sum.inr j) (Sum.inl i) = G.B i j
@[simp]
theorem Cslib.GameTheory.BimatrixGame.symmReduction_A_inr_inr {M : Type u_1} {N : Type u_2} (G : BimatrixGame M N) (j j' : N) :
noncomputable def Cslib.GameTheory.BimatrixGame.symmProj₁ {M : Type u_1} {N : Type u_2} [Fintype M] (z : M ⊕ N → ℝ) :
M → ℝ

Normalized M-block projection of z : M ⊕ N → ℝ.

noncomputable def Cslib.GameTheory.BimatrixGame.symmProj₂ {M : Type u_1} {N : Type u_2} [Fintype N] (z : M ⊕ N → ℝ) :
N → ℝ

Normalized N-block projection of z : M ⊕ N → ℝ.

@[simp]
theorem Cslib.GameTheory.BimatrixGame.symmProj₁_apply {M : Type u_1} {N : Type u_2} [Fintype M] (z : M ⊕ N → ℝ) (i : M) :
symmProj₁ z i = (∑ i' : M, z (Sum.inl i'))⁻¹ * z (Sum.inl i)
@[simp]
theorem Cslib.GameTheory.BimatrixGame.symmProj₂_apply {M : Type u_1} {N : Type u_2} [Fintype N] (z : M ⊕ N → ℝ) (j : N) :
symmProj₂ z j = (∑ j' : N, z (Sum.inr j'))⁻¹ * z (Sum.inr j)
theorem Cslib.GameTheory.BimatrixGame.symmReduction_pos_and_isNash {M : Type u_1} {N : Type u_2} [Fintype M] [Fintype N] [Nonempty M] [Nonempty N] {G : BimatrixGame M N} (hA : ∀ (i : M) (j : N), 0 < G.A i j) (hB : ∀ (i : M) (j : N), 0 < G.B i j) {z : M ⊕ N → ℝ} (hz : G.symmReduction.IsSymmetricNash z) :
0 < ∑ i : M, z (Sum.inl i) ∧ 0 < ∑ j : N, z (Sum.inr j) ∧ G.IsNash (symmProj₁ z) (symmProj₂ z)

A step of [Pap07], Theorem 2.4 (Section 2.3.1, p. 34; the polynomial-time search reduction on BimatrixCode remains open in #7789): the algebraic equilibrium-recovery direction over ℝ. If G has strictly positive payoffs, then at every symmetric Nash equilibrium z of G.symmReduction, both blocks M and N carry strictly positive probability mass, and their normalized projections (symmProj₁ z, symmProj₂ z) form a Nash equilibrium of G.

theorem Cslib.GameTheory.BimatrixGame.isSymmetricNash_symmReduction_of_isNash {M : Type u_1} {N : Type u_2} [Fintype M] [Fintype N] {G : BimatrixGame M N} (hA : ∀ (i : M) (j : N), 0 < G.A i j) (hB : ∀ (i : M) (j : N), 0 < G.B i j) {x : M → ℝ} {y : N → ℝ} (hNash : G.IsNash x y) :
G.symmReduction.IsSymmetricNash (Sum.elim ((G.payoff₁ x y / (G.payoff₁ x y + G.payoff₂ x y)) • x) ((G.payoff₂ x y / (G.payoff₁ x y + G.payoff₂ x y)) • y))

A step of [Pap07], Theorem 2.4 (Section 2.3.1, p. 34; the polynomial-time search reduction on BimatrixCode remains open in #7789): the algebraic equilibrium-lifting direction over ℝ. Every Nash equilibrium (x, y) of a positive bimatrix game G lifts to a symmetric Nash equilibrium Sum.elim ((u / (u + v)) • x) ((v / (u + v)) • y) of G.symmReduction, where u = G.payoff₁ x y and v = G.payoff₂ x y.

theorem Cslib.GameTheory.BimatrixGame.exists_addConst_symmReduction {M : Type u_1} {N : Type u_2} [Fintype M] [Fintype N] [Nonempty M] [Nonempty N] (G : BimatrixGame M N) :
∃ (c : ℝ), (∀ (z : M ⊕ N → ℝ), (G.addConst c).symmReduction.IsSymmetricNash z → 0 < ∑ i : M, z (Sum.inl i) ∧ 0 < ∑ j : N, z (Sum.inr j) ∧ G.IsNash (symmProj₁ z) (symmProj₂ z)) ∧ ∀ (x : M → ℝ) (y : N → ℝ), G.IsNash x y → (G.addConst c).symmReduction.IsSymmetricNash (Sum.elim (((G.addConst c).payoff₁ x y / ((G.addConst c).payoff₁ x y + (G.addConst c).payoff₂ x y)) • x) (((G.addConst c).payoff₂ x y / ((G.addConst c).payoff₁ x y + (G.addConst c).payoff₂ x y)) • y))

A step of [Pap07], Theorem 2.4 (Section 2.3.1, p. 34; the polynomial-time search reduction on BimatrixCode remains open in #7789): the algebraic constant-shift equilibrium correspondence over ℝ for arbitrary-sign finite nonempty bimatrix games. For any finite nonempty bimatrix game G, there exists a uniform shift c : ℝ such that G' := G.addConst c has strictly positive payoffs, every symmetric Nash equilibrium z of G'.symmReduction puts strictly positive mass on both blocks and projects to a Nash equilibrium (symmProj₁ z, symmProj₂ z) of G, and every Nash equilibrium of G lifts to a symmetric Nash equilibrium of G'.symmReduction.