Documentation

CslibFrontier.GameTheory.Evolutionary.CliqueHardness

Computational complexity of evolutionarily stable strategies #

This module formalizes Nisan's clique reduction for evolutionarily stable strategies (ESS) and the resulting NP-hardness and coNP-hardness theorems from [Sur07], Section 29.2 (pp. 720–723) and Exercise 29.5 (p. 735).

Given a finite simple graph G on vertex type V and a positive integer k, the symmetric two-player game BimatrixGame.cliqueESSGame G k has pure strategy set Option V, where none is strategy 0 and some v represents vertex v:

The reduction yields an exact correspondence between the clique number G.cliqueNum and the evolutionarily stable strategies of cliqueESSGame G k:

Representing symmetric two-player rational games on BimatrixCode (encBimatrix) as well-formed square games with B = Aᵀ (BimatrixCode.IsSymmetric), we define the decision problems BimatrixCode.SymGameHasESS (ESS existence) and BimatrixCode.SymGameIsESS (ESS recognition on SymGameStrategyInstance under encSymGameStrategyInstance). Explicit multi-tape Turing-machine polynomial-time reductions prove:

Main definitions #

Main results #

References #

Section 1: Nisan's clique-to-ESS symmetric game #

Nisan's symmetric two-player game attached to a simple graph G and parameter k ([Sur07], Section 29.2, p. 721). Pure strategies are Option V, where none plays the role of pure strategy 0 and some v represents vertex v. Payoffs are 1 / 2 on the vertex diagonal, 1 on edges of G, 0 on non-edges, and 1 - 1 / (2 * k) on the entire none row and column; B = Aᵀ.

@[simp]
@[simp]
@[simp]
theorem Cslib.GameTheory.BimatrixGame.cliqueESSGame_A_some_some {V : Type u_1} [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (k : ℕ) (u v : V) :
(cliqueESSGame G k).A (some u) (some v) = if u = v then 1 / 2 else if G.Adj u v then 1 else 0

cliqueESSGame G k is a symmetric bimatrix game (B = Aᵀ).

Player 1's payoff matrix in cliqueESSGame G k is itself symmetric (Aᵀ = A).

The strategy assigning uniform probability 1 / #C to each some v with v ∈ C and 0 to none and to vertices outside C.

The uniform strategy on a nonempty vertex set is a mixed strategy on Option V.

Section 2: Quadratic form and Lemma 29.3 #

theorem Cslib.GameTheory.BimatrixGame.payoff₁_self_cliqueESSGame_le {V : Type u_1} [DecidableEq V] [Fintype V] (G : SimpleGraph V) [DecidableRel G.Adj] (k : ℕ) {s : Option V → ℝ} (hs : IsMixedStrategy s) (hs0 : s none = 0) :
(cliqueESSGame G k).payoff₁ s s ≤ 1 - 1 / (2 * ↑G.cliqueNum)

Upper bound on vertex-supported strategies ([Sur07], Lemma 29.3, p. 721): any mixed strategy s with s none = 0 satisfies F(s|s) ≤ 1 - 1 / (2 * G.cliqueNum).

Equality characterization for vertex-supported strategies ([Sur07], Lemma 29.3, p. 721): a mixed strategy s with s none = 0 achieves F(s|s) = 1 - 1 / (2 * G.cliqueNum) if and only if s is the uniform distribution over a maximum clique of G.

Section 3: Lemmas 29.4–29.7 and ESS characterizations #

theorem Cslib.GameTheory.BimatrixGame.isESS_cliqueESSGame_of_maximalClique {V : Type u_1} [DecidableEq V] [Fintype V] (G : SimpleGraph V) [DecidableRel G.Adj] {k : ℕ} (hk : 0 < k) {C : Finset V} (hC : Maximal (fun (S : Finset V) => G.IsClique ↑S) C) (hcard : k < C.card) :

Maximal cliques larger than k yield ESSs ([Sur07], Lemma 29.4, p. 722): if C is a maximal clique of G with k < #C and 0 < k, then the uniform distribution on C is an ESS of cliqueESSGame G k.

Pure strategy none is an ESS iff G.cliqueNum < k ([Sur07], Lemmas 29.5 and 29.6, p. 722): when 0 < k, playing strategy 0 (none) is evolutionarily stable in cliqueESSGame G k if and only if the maximum clique size of G is strictly smaller than k.

No non-zero strategy is an ESS when G.cliqueNum ≤ k ([Sur07], Lemma 29.7, p. 722, and Exercise 29.5, p. 735): if the maximum clique size of G is at most k, then no strategy other than pure strategy none is evolutionarily stable in cliqueESSGame G k.

Existence of an ESS characterizes G.cliqueNum ≠ k ([Sur07], Section 29.2, pp. 721–723, combining Lemmas 29.4–29.7): for 0 < k, cliqueESSGame G k has an evolutionarily stable strategy if and only if the clique number of G is not equal to k.

theorem Cslib.GameTheory.BimatrixGame.isESS_relabel {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] {G₁ : BimatrixGame α α} {G₂ : BimatrixGame β β} (e : α ≃ β) (hA : ∀ (i j : α), G₁.A i j = G₂.A (e i) (e j)) {s : β → ℝ} :
G₁.IsESS (s ∘ ⇑e) ↔ G₂.IsESS s

Relabeling pure strategies by an equivalence e : α ≃ β preserves evolutionary stability.

Section 4: Encoded symmetric rational games and hardness theorems #

An instance of the evolutionarily stable strategy recognition problem: an explicitly presented two-player rational bimatrix game paired with a candidate rational mixed strategy.

  • The explicitly presented two-player rational payoff matrices.

  • strategy : List ℚ

    The candidate rational mixed strategy as a list of probabilities.

Instances For
    theorem Cslib.GameTheory.encSymGameStrategyInstance_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → BimatrixCode} {T0 S0 : γ → ℕ} {x1 : γ → List ℚ} {T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn encBimatrix T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encRat) T1 S1) :
    Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { game := x0 x, strategy := x1 x }) encIn encSymGameStrategyInstance (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x
    theorem Cslib.GameTheory.encSymGameStrategyInstance_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → BimatrixCode} {x1 : γ → List ℚ} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn encBimatrix budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encRat) budget) :
    Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { game := x0 x, strategy := x1 x }) encIn encSymGameStrategyInstance budget
    theorem Cslib.GameTheory.encSymGameStrategyInstance_game_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → SymGameStrategyInstance} :

    The decision problem ESS Existence for two-player symmetric rational games ([Sur07], Theorem 29.8, p. 723): well-formed symmetric bimatrix codes (B = Aᵀ) admitting an evolutionarily stable strategy.

    The decision problem ESS Recognition for two-player symmetric rational games ([Sur07], Theorem 29.9, p. 723): pairs (game, strategy) where game is a well-formed symmetric bimatrix code (B = Aᵀ) and strategy is a rational strategy vector of length game.rows forming an evolutionarily stable strategy of game.toSymGame.

    Relabeling invariance of ESS existence #

    Fixed 2 × 2 YES and NO instances #

    Computable Nisan matrix encoding for Graph #

    Disjoint union G ⊔ K_r for the Clique ≤ₚ SymGameHasESS reduction #

    Reduction 1: Clique ≤ₚ SymGameHasESS (Theorem 29.8, NP-hardness) #

    Deciding whether a symmetric rational two-player game has an ESS is NP-hard ([Sur07], Theorem 29.8, p. 723, NP-hardness half).

    Reduction 2: UNSAT ≤ₚ SymGameHasESS (Theorem 29.8, coNP-hardness) #

    Deciding whether a symmetric rational two-player game has an ESS is coNP-hard ([Sur07], Theorem 29.8, p. 723, coNP-hardness half).

    Reduction 3: Cliqueᶜ ≤ₚ SymGameIsESS (Theorem 29.9, coNP-hardness) #

    Deciding whether a given rational strategy is an ESS of a symmetric rational two-player game is coNP-hard ([Sur07], Theorem 29.9, p. 723).