Documentation

CslibFrontier.GameTheory.Congestion.Weighted

Weighted atomic congestion games #

In a weighted atomic congestion game, finitely many players i : ι route unsplittable demands weight i : ℝ across finite sets of resources resources i a : Finset E. Given a strategy profile s, the load load s e on resource e is the total weight of the players whose chosen resource set contains e. Each unit of traffic on e incurs latency e (load s e), so player i incurs per-unit latency unitCost i s = ∑ e ∈ resources i (s i), latency e (load s e) and demand-weighted cost weight i * unitCost i s, making the social cost equal to ∑ e, load s e * latency e (load s e) ([Rou07], §18.2.2, Definition 18.5, p. 466).

Unlike unweighted congestion games (Cslib.GameTheory.CongestionGame), weighted atomic congestion games with nonlinear nondecreasing latencies need not admit pure Nash equilibria: Goemans, Mirrokni, and Vetta [GMV05] ([Rou07], §18.2.2, Example 18.7 and Figure 18.4, p. 467) exhibited a two-player (weight = fun i => if i = 0 then 1 else 2), four-path, six-edge network gmvGame with degree-2 polynomial latencies that has no pure Nash equilibrium and therefore no generalized ordinal potential.

By contrast, Fotakis, Kontogiannis, and Spirakis (2005; [Rou07], §18.3.2, Theorem 18.15, p. 472, and Exercise 18.4, p. 485) showed that every weighted atomic congestion game with affine latencies latency e x = a e * x + b e is a potential game: half of affinePotential s = ∑ e, (load s e * latency e (load s e) + ∑_{i : e ∈ s_i} w_i * latency e w_i) is an exact potential of toCostGame. Consequently, every finite weighted affine congestion game has the finite improvement property, admits a pure Nash equilibrium, and (for nonnegative weights and affine coefficients) has price of stability at most 2.

Main definitions #

Main results #

References #

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

A weighted atomic congestion game on resources E: player i routes unsplittable demand weight i across the finite resource set resources i a when playing a : S i, and each unit of demand on resource e pays latency e x when the total weight on e is x ([Rou07], §18.2.2, Definition 18.5, p. 466).

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

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

  • weight : ι → ℝ

    The demand weight routed by player i.

  • latency : E → ℝ → ℝ

    The per-unit latency of resource e when its total load is x.

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

The load on resource e at profile s: the total weight of players whose chosen resource set contains e.

def Cslib.GameTheory.WeightedCongestionGame.unitCost {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) (i : ι) (s : (i : ι) → S i) :

The per-unit latency experienced by player i at profile s: the sum of the latencies of its chosen resources at their current loads.

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

The strategic game defined by a weighted congestion game: player i pays its demand weight i times its per-unit resource latency unitCost i s, so socialCost equals total system latency ∑ e, load s e * latency e (load s e).

@[simp]
theorem Cslib.GameTheory.WeightedCongestionGame.toCostGame_cost {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) (i : ι) (s : (i : ι) → S i) :
W.toCostGame.cost i s = W.weight i * W.unitCost i s
theorem Cslib.GameTheory.WeightedCongestionGame.isPureNash_toCostGame_iff {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [DecidableEq ι] (hw : ∀ (i : ι), 0 < W.weight i) {s : (i : ι) → S i} :
W.toCostGame.IsPureNash s ↔ ∀ (i : ι) (a : S i), W.unitCost i s ≤ W.unitCost i (Function.update s i a)

When all player weights are strictly positive, a profile is a pure Nash equilibrium of toCostGame iff no player can strictly reduce its per-unit path latency unitCost ([Rou07], §18.2.2, Definition 18.5, p. 466).

theorem Cslib.GameTheory.WeightedCongestionGame.sum_weight_mul_sum_resources {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [Fintype E] (s : (i : ι) → S i) (f : E → ℝ) :
∑ i : ι, W.weight i * ∑ e ∈ W.resources i (s i), f e = ∑ e : E, W.load s e * f e

Exchanging sums over players and resources: summing weight i * f e over every player's chosen resources weights each resource e by load s e.

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

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

theorem Cslib.GameTheory.WeightedCongestionGame.load_nonneg {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) (hw : ∀ (i : ι), 0 ≤ W.weight i) (s : (i : ι) → S i) (e : E) :
0 ≤ W.load s e

Nonnegative weights produce nonnegative resource loads.

theorem Cslib.GameTheory.WeightedCongestionGame.load_eq_ite_add_erase {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [DecidableEq ι] (t : (j : ι) → S j) (i : ι) (e : E) :
W.load t e = (if e ∈ W.resources i (t i) then W.weight i else 0) + ∑ j ∈ Finset.univ.erase i, if e ∈ W.resources j (t j) then W.weight j else 0

Decomposition of load t e into player i's contribution and the remaining players' load.

theorem Cslib.GameTheory.WeightedCongestionGame.load_update {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [DecidableEq ι] (s : (j : ι) → S j) (i : ι) (a : S i) (e : E) :
W.load (Function.update s i a) e = (W.load s e + if e ∈ W.resources i a then W.weight i else 0) - if e ∈ W.resources i (s i) then W.weight i else 0

Unilateral deviation formula for resource load: updating player i to a replaces player i's demand indicator while leaving all other players' contributions unchanged.

theorem Cslib.GameTheory.WeightedCongestionGame.load_update_le {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [DecidableEq ι] {s : (j : ι) → S j} {i : ι} (hi : 0 ≤ W.weight i) (a : S i) (e : E) :
W.load (Function.update s i a) e ≤ W.load s e + W.weight i

For nonnegative player weight weight i, a unilateral deviation of player i increases the load on any resource by at most weight i.

Reduction of uniform-weight games to CongestionGame #

When all players share a common demand weight w, W induces an unweighted CongestionGame with scaled count latencies w * W.latency e (k * w).

theorem Cslib.GameTheory.WeightedCongestionGame.load_eq_uniform {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) (w : ℝ) (hw : ∀ (i : ι), W.weight i = w) (s : (i : ι) → S i) (e : E) :
W.load s e = ↑((W.toUniformCongestionGame w).load s e) * w
theorem Cslib.GameTheory.WeightedCongestionGame.toCostGame_toUniformCongestionGame {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) (w : ℝ) (hw : ∀ (i : ι), W.weight i = w) :

If every player has weight w, toUniformCongestionGame w induces the exact same CostGame as W.

theorem Cslib.GameTheory.WeightedCongestionGame.hasFIP_of_uniform_weight {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [DecidableEq ι] [Finite E] [∀ (i : ι), Finite (S i)] (w : ℝ) (hw : ∀ (i : ι), W.weight i = w) :

Equilibrium existence for equal-weight atomic congestion games ([Rou07], §18.3.2, Theorem 18.12, p. 471): if all players route a common demand w, W has the finite improvement property and admits a pure Nash equilibrium for arbitrary latency functions.

theorem Cslib.GameTheory.WeightedCongestionGame.exists_isPureNash_of_uniform_weight {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [DecidableEq ι] [Finite E] [∀ (i : ι), Finite (S i)] [∀ (i : ι), Nonempty (S i)] (w : ℝ) (hw : ∀ (i : ι), W.weight i = w) :
∃ (s : (i : ι) → S i), W.toCostGame.IsPureNash s

Fotakis–Kontogiannis–Spirakis affine weighted potential #

W has affine latencies if there are nonnegative a e, b e ≥ 0 with latency e x = a e * x + b e for every resource e and load x.

def Cslib.GameTheory.WeightedCongestionGame.affinePotential {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [Fintype E] (s : (i : ι) → S i) :

The Fotakis–Kontogiannis–Spirakis affine potential ([Rou07], Exercise 18.4, p. 485): Φ(s) = ∑ e, (load s e * latency e (load s e) + ∑_{i : e ∈ s_i} weight i * latency e (weight i)).

theorem Cslib.GameTheory.WeightedCongestionGame.affinePotential_def {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [Fintype E] (s : (i : ι) → S i) :
W.affinePotential s = ∑ e : E, (W.load s e * W.latency e (W.load s e) + ∑ i : ι with e ∈ W.resources i (s i), W.weight i * W.latency e (W.weight i))
theorem Cslib.GameTheory.WeightedCongestionGame.affinePotential_update_sub {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [DecidableEq ι] [Fintype E] {a b : E → ℝ} (hl : ∀ (e : E) (x : ℝ), W.latency e x = a e * x + b e) (s : (j : ι) → S j) (i : ι) (a' : S i) :

Exact 2 * weight i deviation identity for affinePotential ([Rou07], Exercise 18.4, p. 485): for any affine latencies latency e x = a e * x + b e (without sign hypotheses on a, b, or weight), a unilateral deviation changes affinePotential by 2 * weight i times the change in player i's per-unit cost unitCost.

theorem Cslib.GameTheory.WeightedCongestionGame.isExactPotential_half_affinePotential_of_forall {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [DecidableEq ι] [Fintype E] {a b : E → ℝ} (hl : ∀ (e : E) (x : ℝ), W.latency e x = a e * x + b e) :
W.toCostGame.IsExactPotential fun (s : (i : ι) → S i) => 1 / 2 * W.affinePotential s

Half of affinePotential is an exact potential of toCostGame whenever latencies are affine ([Rou07], Exercise 18.4, p. 485; unsplittable case of [TW07], Exercise 19.11(b), p. 514).

Nonnegative affine latencies are nondecreasing.

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

Finite improvement property for weighted affine congestion games (Fotakis, Kontogiannis, and Spirakis 2005; [Rou07], §18.3.2, Theorem 18.15, p. 472).

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

Pure Nash equilibrium existence for weighted affine congestion games (Fotakis, Kontogiannis, and Spirakis 2005; [Rou07], §18.3.2, Theorem 18.15, p. 472).

theorem Cslib.GameTheory.WeightedCongestionGame.HasAffineLatencies.socialCost_le_affinePotential {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] {W : WeightedCongestionGame ι S E} [Fintype E] (h : W.HasAffineLatencies) (hw : ∀ (i : ι), 0 ≤ W.weight i) (s : (i : ι) → S i) :

Under nonnegative player weights and nonnegative affine latencies, socialCost s ≤ affinePotential s ≤ 2 * socialCost s.

theorem Cslib.GameTheory.WeightedCongestionGame.HasAffineLatencies.affinePotential_le_two_mul_socialCost {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] {W : WeightedCongestionGame ι S E} [Fintype E] (h : W.HasAffineLatencies) (hw : ∀ (i : ι), 0 ≤ W.weight i) (s : (i : ι) → S i) :
theorem Cslib.GameTheory.WeightedCongestionGame.HasAffineLatencies.exists_isPureNash_socialCost_le_two_mul {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] {W : WeightedCongestionGame ι S E} [DecidableEq ι] [Finite E] [∀ (i : ι), Finite (S i)] (h : W.HasAffineLatencies) (hw : ∀ (i : ι), 0 ≤ W.weight i) (s' : (i : ι) → S i) :

Price of stability at most 2 for weighted affine congestion games: every finite nonempty weighted affine congestion game with nonnegative weights has a pure Nash equilibrium of social cost at most 2 * socialCost s' for every profile s', reachable from s' by better-response steps.

Goemans–Mirrokni–Vetta pure-equilibrium nonexistence witness #

Resources of the four s–t paths in Goemans, Mirrokni, and Vetta's six-edge Wheatstone-plus- direct network ([GMV05]; [Rou07], §18.2.2, Example 18.7 and Figure 18.4, p. 467): 0 is s → u → t, 1 is s → v → t, 2 is s → u → v → t, and 3 is the direct edge s → t.

Resource latencies of the Goemans–Mirrokni–Vetta network: 13 x, x^2 + 44, x + 33, 3 x^2, 6 x^2, and 47 x.

The Goemans–Mirrokni–Vetta weighted congestion game ([GMV05]; [Rou07], §18.2.2, Example 18.7 and Figure 18.4, p. 467): two players of weights 1 and 2 routing across gmvPaths under nonnegative, nondecreasing polynomial latencies of degree at most 2.

Weighted congestion games with quadratic latencies need not have pure Nash equilibria ([GMV05]; [Rou07], §18.2.2, Example 18.7, p. 467).

gmvGame admits no generalized ordinal potential (and hence no ordinal or exact potential; [TW07], Exercise 19.11(c), p. 514).