Documentation

CslibFrontier.GameTheory.Succinct.EllipsoidAgainstHope

Ellipsoid Against Hope for correlated equilibria in succinct games #

This module formalizes the linear-programming characterization of multiplayer correlated equilibria and the Ellipsoid Against Hope algorithm of Papadimitriou (2005) and Papadimitriou and Roughgarden (2008) ([Pap07], Section 2.7.2, Theorem 2.6, pp. 48–49), together with conditional-expectation derandomization (Jiang and Leyton-Brown, 2015) yielding exact small-support correlated equilibria for integer-cost games.

Mathematical structure #

For a finite strategic cost game G : CostGame ι S, the deviation index set is Deviation ι S := Σ i : ι, S i × S i of cardinality m = ∑ i, |S i|² (polynomial in the number of players and strategies, whereas the profile space ∀ i, S i has exponential size ∏ i, |S i|). The incentive matrix ceMatrix G : Matrix (Deviation ι S) (∀ i, S i) ℝ characterizes correlated equilibria by the linear system ceMatrix G *ᵥ x ≤ 0, x ≥ 0, ∑ s, x s = 1 (isCorrelatedEquilibrium_iff_ceMatrix_mulVec_le_zero).

  1. Primal–dual LP characterization and polynomial-support existence:
  2. Stationary product oracle (Papadimitriou, 2005; Hart and Schmeidler, 1989):
  3. Conditional-expectation derandomization:
  4. Exact-arithmetic Ellipsoid Against Hope:

Scope note #

Like Cslib.Algorithms.Ellipsoid, the ellipsoid updates use exact real arithmetic over ℝ, so the theorems here establish the polynomial iteration count, polynomial expected-utility-oracle query structure, and exact/approximate correlated-equilibrium extraction from the visited cuts. A finite-precision multi-tape Turing-machine implementation of Khachiyan's ellipsoid method and rational linear programming solver remains separate (tracked in #7789).

Main definitions #

Main results #

References #

1. Deviation matrix, Farkas duality, and basic small-support correlated equilibria #

@[reducible, inline]
abbrev Cslib.GameTheory.Succinct.Deviation (ι : Type u_3) (S : ι → Type u_4) :
Type (max u_4 u_3)

Deviation index (i, (a, b)): player i recommended strategy a considering deviation b.

theorem Cslib.GameTheory.Succinct.card_deviation {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] :
Fintype.card (Deviation ι S) = ∑ i : ι, Fintype.card (S i) ^ 2
def Cslib.GameTheory.Succinct.ceMatrix {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [(i : ι) → DecidableEq (S i)] (G : CostGame ι S) :
Matrix (Deviation ι S) ((i : ι) → S i) ℝ

The correlated-equilibrium incentive matrix of a cost game G: row ⟨i, (a, b)⟩ and column s record player i's regret cost i s - cost i (update s i b) on the event s i = a.

@[simp]
theorem Cslib.GameTheory.Succinct.ceMatrix_apply {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [(i : ι) → DecidableEq (S i)] (G : CostGame ι S) (i : ι) (a b : S i) (s : (i : ι) → S i) :
ceMatrix G ⟨i, (a, b)⟩ s = if s i = a then G.cost i s - G.cost i (Function.update s i b) else 0
theorem Cslib.GameTheory.Succinct.isCorrelatedEquilibrium_iff_ceMatrix_mulVec_le_zero {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] (G : CostGame ι S) (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)) :
G.IsCorrelatedEquilibrium σ ↔ ((ceMatrix G).mulVec fun (s : (i : ι) → S i) => σ.weights s) ≤ 0

Matrix form of correlated equilibrium ([Pap07], Section 2.7, eq. (CE), p. 46): a distribution σ is a correlated equilibrium of G iff ceMatrix G *ᵥ σ.weights ≤ 0.

theorem Cslib.GameTheory.Succinct.exists_isCorrelatedEquilibrium_iff_not_exists_dual {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] (G : CostGame ι S) :
(∃ (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)), G.IsCorrelatedEquilibrium σ) ↔ ¬∃ (y : Deviation ι S → ℝ), 0 ≤ y ∧ ∀ (s : (i : ι) → S i), 1 ≤ Matrix.vecMul y (ceMatrix G) s

Farkas duality for correlated equilibria ([Pap07], Section 2.7.2): a finite game G has a correlated equilibrium iff there is no nonnegative dual vector y : Deviation ι S → ℝ satisfying 1 ≤ (y ᵥ* ceMatrix G) s for every pure strategy profile s.

theorem Cslib.GameTheory.Succinct.exists_isCorrelatedEquilibrium_support_subset_and_card_le {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (G : CostGame ι S) {σ₀ : Convexity.StdSimplex ℝ ((i : ι) → S i)} (hσ₀ : G.IsCorrelatedEquilibrium σ₀) :
∃ (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)), G.IsCorrelatedEquilibrium σ ∧ σ.support ⊆ σ₀.support ∧ σ.support.card ≤ Fintype.card (Deviation ι S) + 1

Basic-solution support sparsification for correlated equilibria: any correlated equilibrium σ₀ of a finite game G can be replaced by a correlated equilibrium σ supported inside σ₀.weights.support whose support has cardinality at most Fintype.card (Deviation ι S) + 1.

2. Papadimitriou's stationary product oracle #

noncomputable def Cslib.GameTheory.Succinct.dualTransitionMatrix {ι : Type u_1} {S : ι → Type u_2} [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] (y : Deviation ι S → ℝ) (i : ι) :
Matrix (S i) (S i) ℝ

The per-player row-stochastic transition matrix induced by a dual vector y ≥ 0 (Papadimitriou, 2005; [Pap07], Section 2.7.2): off-diagonal entry (a, b) is y ⟨i, (a, b)⟩ / dualScale y i, and the diagonal entry absorbs the remaining mass so every row sums to 1.

theorem Cslib.GameTheory.Succinct.dualTransitionMatrix_mem_rowStochastic {ι : Type u_1} {S : ι → Type u_2} [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] {y : Deviation ι S → ℝ} (hy : 0 ≤ y) (i : ι) :

For every nonnegative dual vector y, dualTransitionMatrix y i is row-stochastic.

noncomputable def Cslib.GameTheory.Succinct.stationaryProfile {ι : Type u_1} {S : ι → Type u_2} [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] (y : Deviation ι S → ℝ) (i : ι) :
S i → ℝ

The stationary mixed strategy profile induced by a dual vector y: each player i plays the stationary distribution Matrix.stationaryVec (dualTransitionMatrix y i).

theorem Cslib.GameTheory.Succinct.stationaryProfile_isMixedStrategy {ι : Type u_1} {S : ι → Type u_2} [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] [∀ (i : ι), Nonempty (S i)] {y : Deviation ι S → ℝ} (hy : 0 ≤ y) (i : ι) :
theorem Cslib.GameTheory.Succinct.stationaryProfile_flow_balance {ι : Type u_1} {S : ι → Type u_2} [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] [∀ (i : ι), Nonempty (S i)] {y : Deviation ι S → ℝ} (hy : 0 ≤ y) (i : ι) (b : S i) :
∑ a : S i, stationaryProfile y i a * y ⟨i, (a, b)⟩ = ∑ c : S i, stationaryProfile y i b * y ⟨i, (b, c)⟩

Flow-balance identity for stationaryProfile y: for every player i and strategy b, the total y-weighted probability flow entering b equals the total flow leaving b.

def Cslib.GameTheory.Succinct.productDeviationVec {ι : Type u_1} {S : ι → Type u_2} [(i : ι) → Fintype (S i)] [Fintype ι] [DecidableEq ι] (G : CostGame ι S) (p : (i : ι) → S i → ℝ) :
Deviation ι S → ℝ

The expected-deviation vector of a product mixed-strategy profile p, evaluated purely via the expected-cost oracle CostGame.deviationCost: productDeviationVec G p ⟨i, (a, b)⟩ = p i a * (G.deviationCost p i a - G.deviationCost p i b).

@[simp]
theorem Cslib.GameTheory.Succinct.productDeviationVec_apply {ι : Type u_1} {S : ι → Type u_2} [(i : ι) → Fintype (S i)] [Fintype ι] [DecidableEq ι] (G : CostGame ι S) (p : (i : ι) → S i → ℝ) (i : ι) (a b : S i) :
productDeviationVec G p ⟨i, (a, b)⟩ = p i a * (G.deviationCost p i a - G.deviationCost p i b)
theorem Cslib.GameTheory.Succinct.ceMatrix_mulVec_productWeight {ι : Type u_1} {S : ι → Type u_2} [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] [Fintype ι] [DecidableEq ι] (G : CostGame ι S) {p : (i : ι) → S i → ℝ} (hp : ∀ (i : ι), ∑ a : S i, p i a = 1) :

Applying ceMatrix G to the exponential product distribution productWeight p equals the polynomial-length oracle vector productDeviationVec G p.

theorem Cslib.GameTheory.Succinct.dotProduct_productDeviationVec_stationaryProfile {ι : Type u_1} {S : ι → Type u_2} [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] [Fintype ι] [DecidableEq ι] [∀ (i : ι), Nonempty (S i)] (G : CostGame ι S) {y : Deviation ι S → ℝ} (hy : 0 ≤ y) :

Papadimitriou's orthogonality identity (Papadimitriou, 2005; [Pap07], Section 2.7.2): for every nonnegative dual vector y, the expected-deviation vector of stationaryProfile y is orthogonal to y.

theorem Cslib.GameTheory.Succinct.not_exists_dual_ceMatrix {ι : Type u_1} {S : ι → Type u_2} [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] [Fintype ι] [DecidableEq ι] [∀ (i : ι), Nonempty (S i)] (G : CostGame ι S) :
¬∃ (y : Deviation ι S → ℝ), 0 ≤ y ∧ ∀ (s : (i : ι) → S i), 1 ≤ Matrix.vecMul y (ceMatrix G) s

Unconditional dual infeasibility ("Against Hope", Papadimitriou, 2005; Hart and Schmeidler, 1989): for every finite game G with nonempty strategy sets, the correlated-equilibrium dual LP y ≥ 0, ∀ s, 1 ≤ (y ᵥ* ceMatrix G) s is infeasible. Combined with exists_isCorrelatedEquilibrium_iff_not_exists_dual, this gives a fixed-point-free proof of correlated equilibrium existence.

3. Conditional-expectation derandomization via the expected-cost oracle #

theorem Cslib.GameTheory.Succinct.sum_mul_dotProduct_productDeviationVec_update_single {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] (G : CostGame ι S) {p : (i : ι) → S i → ℝ} (hp : ∀ (j : ι), ∑ b : S j, p j b = 1) (y : Deviation ι S → ℝ) (i : ι) :

Averaging productDeviationVec G (update p i (Pi.single a 1)) ⬝ᵥ y over a : S i weighted by p i a equals productDeviationVec G p ⬝ᵥ y.

noncomputable def Cslib.GameTheory.Succinct.derandomizeProfile {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] [∀ (i : ι), Nonempty (S i)] (G : CostGame ι S) (y : Deviation ι S → ℝ) (p : (i : ι) → S i → ℝ) (i : ι) :
S i

Conditional-expectation derandomization (Jiang and Leyton-Brown, 2015): given a dual vector y and mixed profile p, deterministically fixes players one by one using only ∑ i, Fintype.card (S i) evaluations of productDeviationVec G · ⬝ᵥ y to produce a pure strategy profile whose dual evaluation (y ᵥ* ceMatrix G) s is at most productDeviationVec G p ⬝ᵥ y.

theorem Cslib.GameTheory.Succinct.derandomizeProfile_le {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] [∀ (i : ι), Nonempty (S i)] (G : CostGame ι S) (y : Deviation ι S → ℝ) {p : (i : ι) → S i → ℝ} (hp : ∀ (j : ι), IsMixedStrategy (p j)) :

The derandomized pure profile satisfies (y ᵥ* ceMatrix G) s ≤ productDeviationVec G p ⬝ᵥ y.

theorem Cslib.GameTheory.Succinct.derandomizeProfile_stationaryProfile_nonpos {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] [∀ (i : ι), Nonempty (S i)] (G : CostGame ι S) {y : Deviation ι S → ℝ} (hy : 0 ≤ y) :

For every nonnegative dual vector y, derandomizing stationaryProfile y yields a pure profile s with (y ᵥ* ceMatrix G) s ≤ 0.

4. Generic traced ellipsoid volume-exclusion helper and integer vertex Cramer bound #

5. Exact-arithmetic Ellipsoid Against Hope (approximate and exact) #

noncomputable def Cslib.GameTheory.Succinct.productCutOracle {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] (G : CostGame ι S) (z : Deviation ι S → ℝ) :
Option (Deviation ι S → ℝ)

Product-cut separation oracle for Ellipsoid Against Hope on the simplex-bounded dual {y ≥ 0 | ∑ d, y d ≤ 1}: returns a violated nonnegativity cut -e_d, the simplex upper-bound cut 1, none if stationaryProfile z is already an exact correlated equilibrium (productDeviationVec G (stationaryProfile z) = 0), or the orthogonal cut -productDeviationVec G (stationaryProfile z).

noncomputable def Cslib.GameTheory.Succinct.derandomizedCutOracle {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] [∀ (i : ι), Nonempty (S i)] (G : CostGame ι S) (z : Deviation ι S → ℝ) :
Option (Deviation ι S → ℝ)

Derandomized pure-profile cut oracle for exact Ellipsoid Against Hope (Jiang and Leyton-Brown, 2015): on z ≥ 0, runs derandomizeProfile G z (stationaryProfile z) using the expected-cost oracle to obtain a pure profile s_z whose column u_z = fun d => ceMatrix G d s_z satisfies u_z ⬝ᵥ z ≤ 0; returns none if u_z = 0 (so s_z is a pure Nash equilibrium) and some (-u_z) otherwise.

theorem Cslib.GameTheory.Succinct.ellipsoidAgainstHope_approx {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] [∀ (i : ι), Nonempty (S i)] (G : CostGame ι S) {B ε : ℝ} (hB : 0 ≤ B) (hcost : ∀ (i : ι) (s : (i : ι) → S i), |G.cost i s| ≤ B) (hε : 0 < ε) {N : ℕ} (hN : 2 * ↑(Fintype.card (Deviation ι S)) * (↑(Fintype.card (Deviation ι S)) + 1) * Real.log (max (6 * ↑(Fintype.card (Deviation ι S))) (3 * ↑(Fintype.card (Deviation ι S)) * (2 * B + 1) / ε)) < ↑N) :
have runState := Algorithms.Ellipsoid.run (productCutOracle G) 1 0; have visitedProfile := fun (t : Fin N) => if 0 ≤ (runState ↑t).center then stationaryProfile (runState ↑t).center else stationaryProfile 0; ∃ (α : Fin N → ℝ), IsMixedStrategy α ∧ (∀ (t : Fin N) (i : ι), IsMixedStrategy (visitedProfile t i)) ∧ ∃ (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)), (∀ (s : (i : ι) → S i), σ.weights s = ∑ t : Fin N, α t * productWeight (visitedProfile t) s) ∧ G.IsApproxCorrelatedEquilibrium (fun (i : ι) => 4 * ↑(Fintype.card (S i)) * ε) σ

Ellipsoid Against Hope for approximate correlated equilibria (exact-arithmetic central-cut form of Papadimitriou, 2005; [Pap07], Theorem 2.6, pp. 48–49):

For any finite cost game G with |G.cost i s| ≤ B (0 ≤ B), any ε > 0, and any iteration count N > 2 m (m + 1) ln (max (6 m) (3 m (2 B + 1) / ε)) where m = Fintype.card (Deviation ι S), running Cslib.Algorithms.Ellipsoid.run (productCutOracle G) 1 0 for N steps visits centers c_t whose nonnegative stationary product profiles p_t admit a convex combination σ = ∑ t : Fin N, α t • productDist (p_t) that is an (fun i => 4 * Fintype.card (S i) * ε)- correlated equilibrium of G.

Initial Cramer ball radius for exact derandomized Ellipsoid Against Hope on a game with m = Fintype.card (Deviation ι S) deviations and integer costs bounded by B.

Inner perturbation ball radius for exact derandomized Ellipsoid Against Hope.

theorem Cslib.GameTheory.Succinct.ellipsoidAgainstHope_exact {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] [∀ (i : ι), Nonempty (S i)] (G : CostGame ι S) {B : ℕ} (hcost : ∃ (costInt : ι → ((i : ι) → S i) → ℤ), (∀ (i : ι) (s : (i : ι) → S i), G.cost i s = ↑(costInt i s)) ∧ ∀ (i : ι) (s : (i : ι) → S i), |costInt i s| ≤ ↑B) {N : ℕ} (hN : 2 * ↑(Fintype.card (Deviation ι S)) * (↑(Fintype.card (Deviation ι S)) + 1) * Real.log (exactCramerRadius (Fintype.card (Deviation ι S)) B / exactInnerRadius (Fintype.card (Deviation ι S)) B) < ↑N) :
have m := Fintype.card (Deviation ι S); have R := exactCramerRadius m B; have runState := Algorithms.Ellipsoid.run (derandomizedCutOracle G) (R ^ 2 • 1) 0; have visitedPure := fun (t : Fin N) => if 0 ≤ (runState ↑t).center then derandomizeProfile G (runState ↑t).center (stationaryProfile (runState ↑t).center) else fun (i : ι) => Classical.arbitrary (S i); ∃ (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)), G.IsCorrelatedEquilibrium σ ∧ (∀ s ∈ σ.support, ∃ (t : Fin N), s = visitedPure t) ∧ σ.support.card ≤ min N (m + 1)

Exact Ellipsoid Against Hope with conditional-expectation derandomization (exact-arithmetic iteration/oracle step of [Pap07], Theorem 2.6, pp. 48–49, with Jiang and Leyton-Brown's 2015 pure-profile derandomization; finite-precision machine complexity remains open under #7789):

For any finite game G : CostGame ι S with integer costs bounded in absolute value by B : ℕ, let m = Fintype.card (Deviation ι S) and R = exactCramerRadius m B, r = exactInnerRadius m B. Running Cslib.Algorithms.Ellipsoid.run (derandomizedCutOracle G) (R² • 1) 0 for any N > 2 m (m + 1) ln (R / r) steps (which is O(m³ log(m (B + 1)))) yields an exact (ε = 0) correlated equilibrium σ of G supported entirely on the visited derandomized pure profiles derandomizeProfile G c_t (stationaryProfile c_t) (for steps t < N with 0 ≤ c_t), with support cardinality at most min N (m + 1).

Polynomial iteration-count upper bound: for m ≥ 1 deviations and integer costs bounded by B, the exact-arithmetic iteration threshold 2 m (m + 1) ln (R / r) is bounded by 2 m (m + 1) ((m + 2) * ln (m * max 1 (2 * B) + 1) + ln 9), i.e., O(m³ log(m (B + 1))).