Documentation

CslibFrontier.GameTheory.Congestion.Basic

Atomic congestion games and Rosenthal's potential #

In an atomic congestion game there are finitely many players and a set E of resources. A strategy of player i is a strategy a : S i that determines a finite set of resources resources i a, for instance the edges of a path in a network. Given a profile s, the load load s e of a resource e is the number of players whose chosen resource set contains e, and player i pays the sum of the latencies latency e (load s e) of its resources. This is the model of [Ros73]; see also [MS96], Section 3, and [Rou15b], Example 2.5.

Rosenthal [Ros73] observed that Φ s = ∑ e, ∑ k ∈ Finset.range (load s e), latency e (k + 1) is an exact potential: when player i changes its strategy, the change in its cost equals the change in Φ. Hence every congestion game with finitely many strategies has a pure Nash equilibrium and the finite improvement property ([MS96], Theorem 3.1).

Main definitions #

Main results #

References #

structure Cslib.GameTheory.CongestionGame (ι : Type u_1) (S : ι → Type u_2) (E : Type u_3) :
Type (max (max u_1 u_2) u_3)

An atomic congestion game on the resources E: player i chooses a strategy a : S i, which uses the finite set of resources resources i a, and latency e k is the cost to each user of resource e when exactly k players use it.

  • resources (i : ι) : S i → Finset E

    The resources used by player i when it plays the strategy a.

  • latency : E → ℕ → ℝ

    The per-user cost of resource e when its load is k.

def Cslib.GameTheory.CongestionGame.load {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (C : CongestionGame ι S E) (s : (i : ι) → S i) (e : E) :

The load of resource e at the profile s: the number of players whose resource set contains e.

def Cslib.GameTheory.CongestionGame.toCostGame {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (C : CongestionGame ι S E) :

The strategic game defined by a congestion game: player i pays the sum of the latencies of its resources at their current loads.

theorem Cslib.GameTheory.CongestionGame.toCostGame_cost {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (C : CongestionGame ι S E) (i : ι) (s : (i : ι) → S i) :
C.toCostGame.cost i s = ∑ e ∈ C.resources i (s i), C.latency e (C.load s e)
def Cslib.GameTheory.CongestionGame.rosenthalPotential {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (C : CongestionGame ι S E) [Fintype E] (s : (i : ι) → S i) :

Rosenthal's potential [Ros73]: ∑ e, (latency e 1 + latency e 2 + ⋯ + latency e (load s e)).

theorem Cslib.GameTheory.CongestionGame.rosenthalPotential_def {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (C : CongestionGame ι S E) [Fintype E] (s : (i : ι) → S i) :
C.rosenthalPotential s = ∑ e : E, ∑ k ∈ Finset.range (C.load s e), C.latency e (k + 1)
theorem Cslib.GameTheory.CongestionGame.sum_sum_resources_eq_sum_load_mul {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (C : CongestionGame ι S E) [Fintype E] (s : (i : ι) → S i) (f : E → ℝ) :
∑ i : ι, ∑ e ∈ C.resources i (s i), f e = ∑ e : E, ↑(C.load s e) * f e

Exchanging the sums over players and resources: summing f e over every player's resources counts each resource e with multiplicity load s e.

theorem Cslib.GameTheory.CongestionGame.socialCost_toCostGame {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (C : CongestionGame ι S E) [Fintype E] (s : (i : ι) → S i) :
C.toCostGame.socialCost s = ∑ e : E, ↑(C.load s e) * C.latency e (C.load s e)

The social cost of a congestion game is ∑ e, load s e * latency e (load s e).

theorem Cslib.GameTheory.CongestionGame.load_update_le {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (C : CongestionGame ι S E) [DecidableEq ι] (s : (i : ι) → S i) (i : ι) (a : S i) (e : E) :
C.load (Function.update s i a) e ≤ C.load s e + 1

A unilateral deviation raises the load of each resource by at most one.

Rosenthal's theorem ([Ros73]; [MS96], Theorem 3.1): Rosenthal's function is an exact potential for every atomic congestion game with finitely many resources.

theorem Cslib.GameTheory.CongestionGame.hasFIP {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (C : CongestionGame ι S E) [DecidableEq ι] [Finite E] [∀ (i : ι), Finite (S i)] :

An atomic congestion game with finitely many players, strategies and resources has the finite improvement property: every sequence of strictly improving unilateral deviations is finite.

theorem Cslib.GameTheory.CongestionGame.exists_isPureNash {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (C : CongestionGame ι S E) [DecidableEq ι] [Finite E] [∀ (i : ι), Finite (S i)] [∀ (i : ι), Nonempty (S i)] :
∃ (s : (i : ι) → S i), C.toCostGame.IsPureNash s

Every atomic congestion game has a pure Nash equilibrium [Ros73], when there are finitely many players, strategies and resources and every player has a strategy.