Documentation

CslibFrontier.GameTheory.Strategic.SinkEquilibrium

Sink equilibria and smoothness bounds for best-response dynamics #

When a finite strategic game lacks pure Nash equilibria (such as weighted nonlinear atomic congestion games, [Rou07], Example 18.7, p. 467), Goemans, Mirrokni, and Vetta [GMV05] (surveyed in [Rou07], §18.4.2 Remark 18.26, p. 477, and §18.6.2, p. 482) introduced sink equilibria: terminal strongly connected components (sink SCCs) of the unilateral best-response dynamics graph.

Unlike pure Nash equilibria, sink equilibria exist in every finite nonempty game and are reachable from every starting strategy profile. Under a lazy random-player best-response Markov chain (picking a player uniformly at random and moving it to a best response, staying put when already at a best response), every sink equilibrium Q is closed under transitions and therefore supports a stationary distribution π (via Matrix.exists_vecMul_eq_self_of_mem_rowStochastic). When the game combines (λ, μ)-smoothness with a bounded unilateral externality constant α (socialCost (update s i a) - socialCost s ≤ α * cost i (update s i a) - cost i s) satisfying α * μ < 1, every stationary distribution π of best-response dynamics has expected social cost at most (α * λ) / (1 - α * μ) times the social cost of every benchmark profile s'.

Main definitions #

Main results #

References #

Terminal strongly connected components of finite directed graphs #

structure Cslib.GameTheory.IsSinkComponent {α : Type u_1} (R : α → α → Prop) (Q : Set α) :

A subset Q of vertices is a terminal strongly connected component (sink SCC) of a directed relation R if it is nonempty, closed under outgoing R-edges, and every pair of vertices in Q is mutually reachable via Relation.ReflTransGen R.

  • nonempty : Q.Nonempty

    A sink component contains at least one vertex.

  • closed ⦃u v : α⦄ : u ∈ Q → R u v → v ∈ Q

    No outgoing R-edge leaves Q.

  • stronglyConnected ⦃u v : α⦄ : u ∈ Q → v ∈ Q → Relation.ReflTransGen R u v

    Every two vertices in Q are mutually reachable via R-paths.

theorem Cslib.GameTheory.exists_isSinkComponent_reachable {α : Type u_1} [Finite α] (R : α → α → Prop) (x₀ : α) :
∃ (Q : Set α), IsSinkComponent R Q ∧ ∃ s ∈ Q, Relation.ReflTransGen R x₀ s

Existence of a reachable terminal SCC in every finite directed graph: starting from any vertex x₀ in a finite type α, there is a sink component Q containing a vertex reachable from x₀.

Best-response transitions and sink equilibria #

def Cslib.GameTheory.CostGame.IsBestResponse {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (G : CostGame ι S) (i : ι) (s : (j : ι) → S j) (a : S i) :

Strategy a : S i is a best response for player i at profile s if it minimizes i's cost among all unilateral deviations from s.

def Cslib.GameTheory.CostGame.BestResponseStep {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (G : CostGame ι S) (s t : (i : ι) → S i) :

A strict best-response transition s → t: some player i switches to a best response a : S i that strictly lowers i's cost (G.cost i t < G.cost i s).

def Cslib.GameTheory.CostGame.IsSinkEquilibrium {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (G : CostGame ι S) (Q : Set ((i : ι) → S i)) :

A sink equilibrium of G ([GMV05]; [Rou07], Remark 18.26, p. 477): a terminal strongly connected component of the best-response graph G.BestResponseStep.

theorem Cslib.GameTheory.CostGame.BestResponseStep.improves {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} {s t : (i : ι) → S i} (h : G.BestResponseStep s t) :
G.Improves t s

Every strict best-response transition is a unilateral improvement step (G.Improves t s).

theorem Cslib.GameTheory.CostGame.exists_isSinkEquilibrium_reachable {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Finite ((i : ι) → S i)] (G : CostGame ι S) (s₀ : (i : ι) → S i) :
∃ (Q : Set ((i : ι) → S i)), G.IsSinkEquilibrium Q ∧ ∃ s ∈ Q, Relation.ReflTransGen G.BestResponseStep s₀ s

Existence of a reachable sink equilibrium: from every starting profile s₀ of a finite CostGame, there exists a sink equilibrium reachable by best-response steps.

theorem Cslib.GameTheory.CostGame.exists_isSinkEquilibrium {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Finite ((i : ι) → S i)] [Nonempty ((i : ι) → S i)] (G : CostGame ι S) :
∃ (Q : Set ((i : ι) → S i)), G.IsSinkEquilibrium Q

Unconditional existence of sink equilibria ([GMV05]; [Rou07], Remark 18.26, p. 477): every finite nonempty CostGame admits at least one sink equilibrium.

theorem Cslib.GameTheory.CostGame.isPureNash_iff_isSinkEquilibrium_singleton {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [∀ (i : ι), Finite (S i)] [∀ (i : ι), Nonempty (S i)] (G : CostGame ι S) (s : (i : ι) → S i) :

Singleton sink equilibria coincide with pure Nash equilibria: on a game with finite nonempty strategy sets, s is a pure Nash equilibrium if and only if {s} is a sink equilibrium.

theorem Cslib.GameTheory.CostGame.isSinkEquilibrium_singleton_of_hasFIP {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [∀ (i : ι), Finite (S i)] [∀ (i : ι), Nonempty (S i)] {G : CostGame ι S} (hFIP : G.HasFIP) {Q : Set ((i : ι) → S i)} (hQ : G.IsSinkEquilibrium Q) :
∃ (s : (i : ι) → S i), Q = {s} ∧ G.IsPureNash s

Under the finite improvement property, every sink equilibrium is a pure Nash singleton: a non-singleton sink equilibrium would contain a nontrivial best-response cycle, contradicting HasFIP.

Lazy best-response Markov chain and stationary distributions #

structure Cslib.GameTheory.CostGame.BestResponsePolicy {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (G : CostGame ι S) :
Type (max u_1 u_2)

A lazy best-response policy selects, for each profile s and player i, a best response choose s i : S i, staying at s i whenever s i is already a best response.

  • choose : ((j : ι) → S j) → (i : ι) → S i

    Best-response choice for player i at profile s.

  • isBestResponse (s : (j : ι) → S j) (i : ι) : G.IsBestResponse i s (self.choose s i)

    choose s i minimizes player i's cost against s.

  • lazy (s : (j : ι) → S j) (i : ι) : G.IsBestResponse i s (s i) → self.choose s i = s i

    If s i is already a best response, player i does not switch.

theorem Cslib.GameTheory.CostGame.exists_bestResponsePolicy {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [∀ (i : ι), Finite (S i)] [∀ (i : ι), Nonempty (S i)] (G : CostGame ι S) :

Every game with finite nonempty strategy sets admits a lazy best-response policy.

theorem Cslib.GameTheory.CostGame.BestResponsePolicy.update_mem_of_isSinkEquilibrium {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} (pol : G.BestResponsePolicy) {Q : Set ((i : ι) → S i)} (hQ : G.IsSinkEquilibrium Q) {s : (i : ι) → S i} (hs : s ∈ Q) (i : ι) :
Function.update s i (pol.choose s i) ∈ Q

Any lazy best-response policy preserves membership in every sink equilibrium Q.

noncomputable def Cslib.GameTheory.CostGame.bestResponseMatrix {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Fintype ι] (br : ((j : ι) → S j) → (i : ι) → S i) :
Matrix ((i : ι) → S i) ((i : ι) → S i) ℝ

Random-player best-response transition matrix: from profile s, a player i : ι is drawn uniformly at random (1 / |ι|) and updates its coordinate to br s i.

theorem Cslib.GameTheory.CostGame.bestResponseMatrix_mem_rowStochastic {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Fintype ι] [(i : ι) → Fintype (S i)] [Nonempty ι] [DecidableEq ((i : ι) → S i)] (br : ((j : ι) → S j) → (i : ι) → S i) :

Every row of bestResponseMatrix br is a probability distribution when ι is nonempty.

structure Cslib.GameTheory.CostGame.IsBestResponseStationary {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Fintype ι] [(i : ι) → Fintype (S i)] (br : ((j : ι) → S j) → (i : ι) → S i) (π : ((i : ι) → S i) → ℝ) :

A probability vector π on profiles is stationary for the random-player best-response Markov chain induced by br if π ≥ 0, ∑ s, π s = 1, and π ᵥ* bestResponseMatrix br = π.

  • nonneg (s : (i : ι) → S i) : 0 ≤ π s

    Every profile has nonnegative stationary probability.

  • sum_eq_one : ∑ s : (i : ι) → S i, π s = 1

    Stationary probabilities sum to 1.

  • stationary : Matrix.vecMul π (bestResponseMatrix br) = π

    Balance equation π ᵥ* P = π.

theorem Cslib.GameTheory.CostGame.exists_isBestResponseStationary_supported {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Fintype ι] [(i : ι) → Fintype (S i)] [Nonempty ι] (G : CostGame ι S) (pol : G.BestResponsePolicy) {Q : Set ((i : ι) → S i)} (hQ : G.IsSinkEquilibrium Q) :
∃ (π : ((i : ι) → S i) → ℝ), IsBestResponseStationary pol.choose π ∧ ∀ s ∉ Q, π s = 0

Existence of a stationary distribution supported on every sink equilibrium ([GMV05]): for any sink equilibrium Q and lazy best-response policy pol on a finite game with [Nonempty ι], there exists a stationary distribution π of bestResponseMatrix pol.choose with ∀ s, s ∉ Q → π s = 0.

Bounded unilateral externality and sink-equilibrium price of anarchy #

def Cslib.GameTheory.CostGame.HasBoundedUnilateralExternality {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Fintype ι] (G : CostGame ι S) (α : ℝ) :

G has bounded unilateral externality α if whenever a single player i switches from s i to a, total social cost increases by at most α * cost i (update s i a) - cost i s.

theorem Cslib.GameTheory.CostGame.IsBestResponseStationary.sum_drift_eq_zero {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Fintype ι] [(i : ι) → Fintype (S i)] [Nonempty ι] {br : ((j : ι) → S j) → (i : ι) → S i} {π : ((i : ι) → S i) → ℝ} (hπ : IsBestResponseStationary br π) (f : ((i : ι) → S i) → ℝ) :
∑ s : (i : ι) → S i, π s * ∑ i : ι, (f (Function.update s i (br s i)) - f s) = 0

Stationarity balance for an arbitrary test function f: under any stationary distribution π of bestResponseMatrix br, the expected average one-step drift ∑ s, π s * ∑ i, (f (update s i (br s i)) - f s) is zero.

theorem Cslib.GameTheory.CostGame.IsSmooth.expected_socialCost_le_of_isBestResponseStationary {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Fintype ι] [(i : ι) → Fintype (S i)] [Nonempty ι] {G : CostGame ι S} {lam μ α : ℝ} (hSmooth : G.IsSmooth lam μ) (hExt : G.HasBoundedUnilateralExternality α) (hα : 0 ≤ α) (hαμ : α * μ < 1) {br : ((j : ι) → S j) → (i : ι) → S i} (hbr : ∀ (s : (j : ι) → S j) (i : ι), G.IsBestResponse i s (br s i)) {π : ((i : ι) → S i) → ℝ} (hπ : IsBestResponseStationary br π) (s' : (i : ι) → S i) :
∑ s : (i : ι) → S i, π s * G.socialCost s ≤ α * lam / (1 - α * μ) * G.socialCost s'

Price of anarchy for sink equilibria via smoothness and bounded unilateral externalities (after [GMV05]; [Rou07], Remark 18.26, p. 477): if G is (λ, μ)-smooth and has bounded unilateral externality α ≥ 0 with α * μ < 1, then every stationary distribution π of a best-response Markov chain has expected social cost at most (α * λ) / (1 - α * μ) times the social cost of every benchmark profile s'.