Documentation

CslibFrontier.GameTheory.Succinct.OptimalCorrelated

Optimal correlated equilibria in succinct games: compact symmetric LP and NP-hardness #

This module formalizes the core positive and negative results of [Pap07], Section 2.7.2, Theorem 2.7 (p. 49; originally Papadimitriou and Roughgarden, 2005):

  1. Compact linear-programming reduction for symmetric games (IsSymmetric):
  2. NP-hardness of optimal correlated equilibrium in atomic congestion games ([Pap07], Theorem 2.7, p. 49):
    • On the library's explicit congestion-game encoding CongestionCode (encCongestion), deciding whether a congestion game admits a correlated equilibrium with expected social cost at most a binary threshold costBound (CongestionHasCorrelatedCostLe) is NP-hard under a native multi-tape Turing-machine polynomial-time many-one reduction from IndependentSet (CongestionHasCorrelatedCostLe_npHard).
    • For a graph on n distinct vertices and m undirected edges, each vertex-player has two strategies: "in" (all incident edge resources, each with monotone latency [0, 2]) and "out" (a private opt-out resource of latency [1]). Every profile s has social cost (n - |I(s)|) + 4 |E(I(s))| ≥ n - α(G) (so every distribution has expected social cost at least n - α(G)), while any maximum independent set yields a pure Nash (hence correlated) equilibrium achieving social cost n - α(G).
  3. NP-hardness of optimal correlated equilibrium in graphical games ([Pap07], Theorem 2.7, p. 49):
    • On an explicit binary-action graphical-game encoding BinaryGraphicalGameCode (encBinaryGraphicalGame), deciding whether a graphical game admits a correlated equilibrium with expected social welfare at least a binary threshold welfareBound (BinaryGraphicalHasCorrelatedWelfareGe) is NP-hard under a native multi-tape Turing-machine polynomial-time many-one reduction from ThreeSATThree via SAT.toSparseIndependentSet (BinaryGraphicalHasCorrelatedWelfareGe_npHard).
    • Because every ThreeSATThree formula maps under SAT.toSparseIndependentSet to a graph of maximum degree at most 4, every player's complete explicit 2 ^ (1 + deg(i))-entry {0, 1} local payoff table has length at most 32, certifying polynomial-time encoding size. Player v earns payoff 1 iff it plays true and all neighbors play false, so every distribution has expected social welfare at most α(G), while any maximum independent set yields a pure Nash (hence correlated) equilibrium achieving welfare α(G).

Main definitions #

Main results #

References #

1. Symmetrization and compact LP for symmetric games #

noncomputable def Cslib.GameTheory.Succinct.permuteDist {ι : Type u_1} {A : Type u_2} [Fintype ι] [Fintype A] [DecidableEq ι] (π : Equiv.Perm ι) (σ : Convexity.StdSimplex ℝ (ι → A)) :

Permuting players in a joint profile distribution: (permuteDist π σ).weights s = σ (s ∘ π).

@[simp]
theorem Cslib.GameTheory.Succinct.permuteDist_weights {ι : Type u_1} {A : Type u_2} [Fintype ι] [Fintype A] [DecidableEq ι] (π : Equiv.Perm ι) (σ : Convexity.StdSimplex ℝ (ι → A)) (s : ι → A) :
(permuteDist π σ).weights s = σ.weights (s ∘ ⇑π)
theorem Cslib.GameTheory.Succinct.permuteDist_sum {ι : Type u_1} {A : Type u_2} [Fintype ι] [Fintype A] [DecidableEq ι] (π : Equiv.Perm ι) (σ : Convexity.StdSimplex ℝ (ι → A)) (f : (ι → A) → ℝ) :
((permuteDist π σ).sum fun (s : ι → A) (w : ℝ) => w * f s) = σ.sum fun (s : ι → A) (w : ℝ) => w * f (s ∘ ⇑(Equiv.symm π))
theorem Cslib.GameTheory.Succinct.isCorrelatedEquilibrium_permuteDist {ι : Type u_1} {A : Type u_2} [Fintype ι] [Fintype A] [DecidableEq ι] {G : CostGame ι fun (x : ι) => A} (hG : G.IsSymmetric) {σ : Convexity.StdSimplex ℝ (ι → A)} (hσ : G.IsCorrelatedEquilibrium σ) (π : Equiv.Perm ι) :

In a symmetric game, permuting players preserves correlated equilibria.

noncomputable def Cslib.GameTheory.Succinct.symmetrizeDist {ι : Type u_1} {A : Type u_2} [Fintype ι] [Fintype A] [DecidableEq ι] (σ : Convexity.StdSimplex ℝ (ι → A)) :

Averaging a profile distribution uniformly over all player permutations Equiv.Perm ι.

@[simp]
theorem Cslib.GameTheory.Succinct.symmetrizeDist_weights {ι : Type u_1} {A : Type u_2} [Fintype ι] [Fintype A] [DecidableEq ι] (σ : Convexity.StdSimplex ℝ (ι → A)) (s : ι → A) :
(symmetrizeDist σ).weights s = (↑(Fintype.card (Equiv.Perm ι)))⁻¹ * ∑ π : Equiv.Perm ι, σ.weights (s ∘ ⇑π)
theorem Cslib.GameTheory.Succinct.symmetrizeDist_perm_invariant {ι : Type u_1} {A : Type u_2} [Fintype ι] [Fintype A] [DecidableEq ι] (σ : Convexity.StdSimplex ℝ (ι → A)) (τ : Equiv.Perm ι) (s : ι → A) :

symmetrizeDist σ is invariant under every player permutation.

theorem Cslib.GameTheory.Succinct.symmetrizeDist_sum {ι : Type u_1} {A : Type u_2} [Fintype ι] [Fintype A] [DecidableEq ι] (σ : Convexity.StdSimplex ℝ (ι → A)) (f : (ι → A) → ℝ) :
((symmetrizeDist σ).sum fun (s : ι → A) (w : ℝ) => w * f s) = (↑(Fintype.card (Equiv.Perm ι)))⁻¹ * ∑ π : Equiv.Perm ι, (permuteDist π σ).sum fun (s : ι → A) (w : ℝ) => w * f s
theorem Cslib.GameTheory.Succinct.symmetrizeDist_sum_eq_of_perm_invariant {ι : Type u_1} {A : Type u_2} [Fintype ι] [Fintype A] [DecidableEq ι] (σ : Convexity.StdSimplex ℝ (ι → A)) {obj : (ι → A) → ℝ} (hobj : ∀ (π : Equiv.Perm ι) (s : ι → A), obj (s ∘ ⇑π) = obj s) :
((symmetrizeDist σ).sum fun (s : ι → A) (w : ℝ) => w * obj s) = σ.sum fun (s : ι → A) (w : ℝ) => w * obj s

Symmetrizing preserves the expectation of any permutation-invariant objective (such as G.socialCost in a symmetric game).

In a symmetric game, symmetrizing a correlated equilibrium yields a permutation-invariant correlated equilibrium.

def Cslib.GameTheory.Succinct.profileSym {ι : Type u_1} {A : Type u_2} [Fintype ι] (s : ι → A) :

The unordered action multiset profileSym s : Sym A (Fintype.card ι) of a pure profile s.

Stars-and-bars dimension ([Pap07], Section 2.5.2(ii), p. 40): the number of unordered action histograms of n = Fintype.card ι players with k = Fintype.card A actions is Nat.choose (k + n - 1) n.

theorem Cslib.GameTheory.Succinct.profileSym_eq_iff_exists_perm {ι : Type u_1} {A : Type u_2} [Fintype ι] (s₁ s₂ : ι → A) :
profileSym s₁ = profileSym s₂ ↔ ∃ (π : Equiv.Perm ι), s₁ ∘ ⇑π = s₂

Two profiles have the same action multiset profileSym iff they differ by a player permutation.

noncomputable def Cslib.GameTheory.Succinct.repProfile {ι : Type u_1} {A : Type u_2} [Fintype ι] (h : Sym A (Fintype.card ι)) :
ι → A

Canonical representative profile for a given action multiset h : Sym A (Fintype.card ι).

noncomputable def Cslib.GameTheory.Succinct.symRegret {ι : Type u_1} {A : Type u_2} [Fintype ι] [DecidableEq ι] [DecidableEq A] (G : CostGame ι fun (x : ι) => A) (a b : A) (h : Sym A (Fintype.card ι)) :

Total regret of all players playing a deviating to b at the representative profile of action multiset h. In a symmetric game this depends only on h.

def Cslib.GameTheory.Succinct.IsSymmetricCompactCE {ι : Type u_1} {A : Type u_2} [Fintype ι] [Fintype A] [DecidableEq ι] [DecidableEq A] (G : CostGame ι fun (x : ι) => A) (q : Sym A (Fintype.card ι) → ℝ) :

Compact correlated-equilibrium LP for symmetric games ([Pap07], Theorem 2.7, p. 49): a probability distribution q : Sym A (Fintype.card ι) → ℝ over action multisets satisfying the (Fintype.card A) ^ 2 aggregated incentive inequalities.

theorem Cslib.GameTheory.Succinct.socialCost_comp_perm {ι : Type u_1} {A : Type u_2} [Fintype ι] {G : CostGame ι fun (x : ι) => A} (hG : G.IsSymmetric) (π : Equiv.Perm ι) (s : ι → A) :
G.socialCost (s ∘ ⇑π) = G.socialCost s

In a symmetric game, G.socialCost is permutation-invariant.

theorem Cslib.GameTheory.Succinct.exists_isCorrelatedEquilibrium_obj_le_iff_compactLP {ι : Type u_1} {A : Type u_2} [Fintype ι] [Fintype A] [DecidableEq ι] [DecidableEq A] {G : CostGame ι fun (x : ι) => A} (hG : G.IsSymmetric) {obj : (ι → A) → ℝ} (hobj : ∀ (π : Equiv.Perm ι) (s : ι → A), obj (s ∘ ⇑π) = obj s) (T : ℝ) :
(∃ (σ : Convexity.StdSimplex ℝ (ι → A)), G.IsCorrelatedEquilibrium σ ∧ (σ.sum fun (s : ι → A) (w : ℝ) => w * obj s) ≤ T) ↔ ∃ (q : Sym A (Fintype.card ι) → ℝ), IsSymmetricCompactCE G q ∧ ∑ h : Sym A (Fintype.card ι), q h * obj (repProfile h) ≤ T

Exact compact-LP characterization of optimal correlated equilibria in symmetric games ([Pap07], Theorem 2.7, p. 49): for any finite symmetric game G, any permutation-invariant linear objective obj (such as G.socialCost), and any bound T : ℝ, G has a correlated equilibrium with expected objective at most T if and only if the compact Sym A (Fintype.card ι) linear program IsSymmetricCompactCE G has a solution q with ∑ h, q h * obj (repProfile h) ≤ T.

Shared averaging and maximum-independent-set helpers #

2. NP-hardness of optimal correlated equilibrium in atomic congestion games #

Decision instance for minimum-social-cost correlated equilibrium in an explicit atomic congestion game (CongestionCode, [Pap07], Theorem 2.7, p. 49).

  • The explicitly encoded atomic congestion game.

  • costBound : ℕ

    Binary upper bound on expected social cost.

theorem Cslib.GameTheory.Succinct.encCongestionCorrelatedCostInstance_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → CongestionCode} {T0 S0 x1 T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn encCongestion T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encNat T1 S1) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { game := x0 x, costBound := x1 x }) encIn encCongestionCorrelatedCostInstance (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x
theorem Cslib.GameTheory.Succinct.encCongestionCorrelatedCostInstance_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → CongestionCode} {x1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn encCongestion budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encNat budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { game := x0 x, costBound := x1 x }) encIn encCongestionCorrelatedCostInstance budget

Optimal correlated equilibrium (minimum social cost) in atomic congestion games: the instances (c, B) whose congestion game c.toGame admits a correlated equilibrium with expected social cost at most B ([Pap07], Theorem 2.7, p. 49).

Reduction from IndependentSet to CongestionHasCorrelatedCostLe: each of the n distinct vertices is a player with strategy 0 ("in", taking all incident edge resources with latency [0, 2]) and strategy 1 ("out", taking its private opt-out resource with latency [1]), with target social cost n - m.

Finding a minimum-social-cost correlated equilibrium in atomic congestion games is NP-hard ([Pap07], Section 2.7.2, Theorem 2.7, p. 49).

3. NP-hardness of optimal correlated equilibrium in graphical games #

Little-endian binary index of a list of bits: bitsToNat [b₀, b₁, …] = ∑ k, bₖ · 2ᵏ.

theorem Cslib.GameTheory.Succinct.bitsToNat_eq_one_iff (self : Bool) (nbrs : List Bool) :
bitsToNat (self :: nbrs) = 1 ↔ self = true ∧ ∀ b ∈ nbrs, b = false

An explicitly encoded binary-action graphical game ([Kea07], Definition 7.1, p. 162; [Pap07], Section 2.5.1, p. 40): each player i < neighbors.length has binary actions Bool, a listed neighborhood neighbors[i], and a local payoff table payoffTables[i] indexed by bitsToNat (selfAction :: neighborActions) (out-of-range neighbor indices read as false, missing table entries read as 0).

  • neighbors : List (List ℕ)

    For each player i, its listed neighbor indices (symmetrized in toGraphicalGame).

  • payoffTables : List (List ℕ)

    For each player i, its local payoff table of nonnegative integer payoffs.

Encoding of explicit binary-action graphical games: unary neighbor indices and binary natural payoff entries.

theorem Cslib.GameTheory.Succinct.encBinaryGraphicalGame_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → List (List ℕ)} {T0 S0 : γ → ℕ} {x1 : γ → List (List ℕ)} {T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn (Turing.MultiTapeTM.encList (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encUnary)) T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn (Turing.MultiTapeTM.encList (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat)) T1 S1) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { neighbors := x0 x, payoffTables := x1 x }) encIn encBinaryGraphicalGame (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x

The Cslib.GameTheory.GraphicalGame described by c: player i's local payoff reads its own action and the actions of its listed in-range neighbors from ClosedNeighborhood, indexing payoffTables[i] by bitsToNat.

Every listed in-range neighbor k ≠ i of i is adjacent to i in c.interactionGraph, so toGraphicalGame evaluates payoff by reading the exact global actions of i and its listed neighbors.

Decision instance for maximum-social-welfare correlated equilibrium in an explicit binary-action graphical game ([Pap07], Theorem 2.7, p. 49).

  • The explicitly encoded binary-action graphical game.

  • welfareBound : ℕ

    Binary lower bound on expected social welfare ∑ i, E[payoff i].

theorem Cslib.GameTheory.Succinct.encBinaryGraphicalCorrelatedWelfareInstance_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → BinaryGraphicalGameCode} {T0 S0 x1 T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn encBinaryGraphicalGame T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encNat T1 S1) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { game := x0 x, welfareBound := x1 x }) encIn encBinaryGraphicalCorrelatedWelfareInstance (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x

Optimal correlated equilibrium (maximum social welfare) in binary graphical games: instances (c, W) whose graphical game c.toGraphicalGame admits a correlated equilibrium with expected social welfare at least W ([Pap07], Theorem 2.7, p. 49).

Polynomial-time reduction from ThreeSATThree to BinaryGraphicalHasCorrelatedWelfareGe: guards the width-3 / occurrence-3 restriction, converts φ via SAT.toSparseIndependentSet into a graph of maximum degree at most 4, and builds the full explicit {0, 1} local payoff tables of size 2 ^ (1 + deg(i)) ≤ 32 where player i earns 1 iff it plays true and all neighbors play false.

Every player in the graphical game produced by threeSATThreeToGraphicalCE φ has degree at most 4 and a complete explicit 2 ^ (1 + deg(i))-entry payoff table.

Finding a maximum-social-welfare correlated equilibrium in graphical games is NP-hard ([Pap07], Section 2.7.2, Theorem 2.7, p. 49), already for binary-action games of maximum degree at most 4 with full explicit {0, 1} payoff tables.