Documentation

CslibFrontier.GameTheory.Strategic.Correlated

Correlated equilibria #

A correlated equilibrium of a cost-minimization game is a distribution σ on profiles under which no player can lower its expected cost by applying a switching function δ : S i → S i to its own strategy while the others keep theirs ([Rou13], Lecture 18, §1). A trusted party samples s ∼ σ and privately recommends s i to each player i; the condition says that following the recommendation is optimal given what the recommendation reveals about the others'. Equivalently (isCorrelatedEquilibrium_iff), for every recommendation a and deviation b, the expected cost of i on the event s i = a does not exceed its expected cost there after switching to b. This is Definition 3.3 of [Rou13], Lecture 13, with both sides multiplied by the probability of the event, so that the condition is meaningful when that probability vanishes.

Distributions are finitely supported, as for coarse correlated equilibria, so expectations are finite sums. The equilibrium concepts are nested ([Rou13], Lecture 13, §3): a pure Nash equilibrium is a correlated equilibrium as a point mass, the product distribution of a mixed Nash equilibrium is a correlated equilibrium, and a correlated equilibrium is a coarse correlated equilibrium, because a constant switching function is a fixed deviation. By Nash's theorem, every finite game has a correlated equilibrium. The set of correlated equilibria is convex, both in Convexity.StdSimplex ℝ (∀ i, S i) (isConvexSet_isCorrelatedEquilibrium) and as a polytope in ((∀ i, S i) → ℝ) (convex_correlatedEquilibriumPolytope), so every convex combination of mixed Nash product distributions is a correlated equilibrium (isCorrelatedEquilibrium_iConvexComb_mixedNash; [TV07a], Section 1.3.6, pp. 14–15; [Pap07], Section 2.7, pp. 45–47).

Main definitions #

Main results #

References #

def Cslib.GameTheory.CostGame.IsCorrelatedEquilibrium {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (G : CostGame ι S) (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)) :

A finitely supported distribution σ on profiles is a correlated equilibrium ([Rou13], Lecture 18, §1): for every player i and switching function δ : S i → S i, the expected cost of i under σ is at most its expected cost when it replaces its recommended strategy s i by δ (s i) while the others play according to σ.

def Cslib.GameTheory.CostGame.IsApproxCorrelatedEquilibrium {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (G : CostGame ι S) (ε : ι → ℝ) (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)) :

A finitely supported distribution σ on profiles is an approximate correlated equilibrium ([Rou13], Lecture 18, Proposition 1.3): for every player i and switching function δ : S i → S i, the expected cost of i under σ exceeds its expected cost under the deviation δ by at most the additive slack ε i.

An approximate correlated equilibrium with zero slack is a correlated equilibrium.

theorem Cslib.GameTheory.CostGame.isApproxCorrelatedEquilibrium_iff {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} [(i : ι) → DecidableEq (S i)] [(i : ι) → Fintype (S i)] {ε : ι → ℝ} {σ : Convexity.StdSimplex ℝ ((i : ι) → S i)} :
G.IsApproxCorrelatedEquilibrium ε σ ↔ ∀ (i : ι) (δ : S i → S i), (∑ a : S i, σ.sum fun (s : (i : ι) → S i) (w : ℝ) => w * if s i = a then G.cost i s else 0) ≤ (∑ a : S i, σ.sum fun (s : (i : ι) → S i) (w : ℝ) => w * if s i = a then G.cost i (Function.update s i (δ a)) else 0) + ε i

The conditional form of approximate correlated equilibria.

theorem Cslib.GameTheory.CostGame.isCorrelatedEquilibrium_iff {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} [(i : ι) → DecidableEq (S i)] {σ : Convexity.StdSimplex ℝ ((i : ι) → S i)} :
G.IsCorrelatedEquilibrium σ ↔ ∀ (i : ι) (a b : S i), (σ.sum fun (s : (i : ι) → S i) (w : ℝ) => w * if s i = a then G.cost i s else 0) ≤ σ.sum fun (s : (i : ι) → S i) (w : ℝ) => w * if s i = a then G.cost i (Function.update s i b) else 0

The conditional form of correlated equilibria ([Rou13], Lecture 13, Definition 3.3): for every player i, recommendation a and deviation b, the expected cost of i on the event s i = a is at most its expected cost there when it plays b instead. Both sides carry the probability of the event, so no division is needed.

A correlated equilibrium is a coarse correlated equilibrium: a fixed deviation a is the constant switching function.

theorem Cslib.GameTheory.CostGame.IsPureNash.isCorrelatedEquilibrium {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} {s : (i : ι) → S i} (hs : G.IsPureNash s) :

A pure Nash equilibrium, viewed as a point mass, is a correlated equilibrium.

theorem Cslib.GameTheory.CostGame.sum_ite_productWeight {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Fintype ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] (G : CostGame ι S) (p : (i : ι) → S i → ℝ) {i : ι} (hp : ∑ c : S i, p i c = 1) (a b : S i) :
(∑ s : (i : ι) → S i, productWeight p s * if s i = a then G.cost i (Function.update s i b) else 0) = p i a * G.deviationCost p i b

Under the product distribution of p, the expected cost of i after switching to b, on the event that i is recommended a, is p i a times the expected cost of playing b against the others' mixed strategies.

theorem Cslib.GameTheory.CostGame.IsMixedNash.isCorrelatedEquilibrium {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} [Fintype ι] [(i : ι) → Fintype (S i)] {p : (i : ι) → S i → ℝ} (h : G.IsMixedNash p) :

The product distribution of a mixed Nash equilibrium is a correlated equilibrium: conditioned on its own recommendation, a player still faces the others' independent mixed strategies.

theorem Cslib.GameTheory.CostGame.exists_isCorrelatedEquilibrium {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Finite ι] [∀ (i : ι), Finite (S i)] [∀ (i : ι), Nonempty (S i)] (G : CostGame ι S) :
∃ (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)), G.IsCorrelatedEquilibrium σ

Every finite game with nonempty strategy sets has a correlated equilibrium: the product distribution of a mixed Nash equilibrium.

Convexity of correlated equilibria #

theorem Cslib.GameTheory.CostGame.sum_convexCombPair_weights {X : Type u_3} {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hab : a + b = 1) (σ₁ σ₂ : Convexity.StdSimplex ℝ X) (f : X → ℝ) :
((Convexity.convexCombPair a b ha hb hab σ₁ σ₂).sum fun (s : X) (w : ℝ) => w * f s) = (a * σ₁.sum fun (s : X) (w : ℝ) => w * f s) + b * σ₂.sum fun (s : X) (w : ℝ) => w * f s

Linearity of expectation against a binary convex combination of standard-simplex distributions.

theorem Cslib.GameTheory.CostGame.IsCorrelatedEquilibrium.convexCombPair {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} {σ₁ σ₂ : Convexity.StdSimplex ℝ ((i : ι) → S i)} (h₁ : G.IsCorrelatedEquilibrium σ₁) (h₂ : G.IsCorrelatedEquilibrium σ₂) {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hab : a + b = 1) :

Binary convex combinations preserve correlated equilibria ([Pap07], Section 2.7, p. 47).

theorem Cslib.GameTheory.CostGame.IsPureNash.isCorrelatedEquilibrium_duple {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} {s₁ s₂ : (i : ι) → S i} (h₁ : G.IsPureNash s₁) (h₂ : G.IsPureNash s₂) {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hab : a + b = 1) :

A two-point convex combination (public-signal mixture) of two pure Nash equilibria is a correlated equilibrium.

The set of correlated equilibria is convex ([TV07a], Section 1.3.6, pp. 14–15; [Pap07], Section 2.7, pp. 45–47): {σ | G.IsCorrelatedEquilibrium σ} is a convex set in Convexity.StdSimplex ℝ (∀ i, S i).

theorem Cslib.GameTheory.CostGame.isCorrelatedEquilibrium_iConvexComb_mixedNash {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Fintype ι] [(i : ι) → Fintype (S i)] {J : Type u_3} {G : CostGame ι S} (w : Convexity.StdSimplex ℝ J) {p : J → (i : ι) → S i → ℝ} (hp : ∀ (j : J), G.IsMixedNash (p j)) :

Every convex combination of the product distributions of mixed Nash equilibria is a correlated equilibrium ([Pap07], Section 2.7, pp. 46–47).

theorem Cslib.GameTheory.CostGame.convex_correlatedEquilibriumPolytope {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (G : CostGame ι S) [Fintype ι] [(i : ι) → Fintype (S i)] :
Convex ℝ {w : ((i : ι) → S i) → ℝ | IsMixedStrategy w ∧ ∀ (i : ι) (δ : S i → S i), ∑ s : (i : ι) → S i, w s * G.cost i s ≤ ∑ s : (i : ι) → S i, w s * G.cost i (Function.update s i (δ (s i)))}

On a finite game, the correlated-equilibrium polytope in ((∀ i, S i) → ℝ) is convex in the usual vector-space sense Convex ℝ ([Pap07], Section 2.7, p. 47).