Documentation

CslibFrontier.GameTheory.Congestion.WeightedAffine

The price of anarchy of weighted affine congestion games #

For weighted atomic congestion games (Cslib.GameTheory.WeightedCongestionGame) with nonnegative weights and nonnegative affine latencies latency e x = a e * x + b e, Awerbuch, Azar, and Epstein [AAE05] proved that the price of anarchy of pure and mixed Nash equilibria is (3 + √5) / 2 = φ² ≈ 2.618, strictly larger than the unweighted bound 5 / 2 of CslibFrontier.GameTheory.Congestion.Affine (see also [Rou07], §18.2.2 Example 18.6 and Figure 18.3, pp. 466–467; §18.4.2 Theorem 18.23 and Lemmas 18.24–18.25, pp. 476–477; and Exercise 18.2, pp. 484–485).

We organize the theory around smoothness (Cslib.GameTheory.CostGame.IsSmooth):

  1. Equilibrium condition and inequality (Lemmas 18.24–18.25): sum_cost_update_le_socialCost_add proves ∑ i, cost i (update s i (s' i)) ≤ socialCost s' + ∑ e, a e * load s e * load s' e, yielding socialCost_le_add_sum_mul_load_of_isPureNash at any pure Nash equilibrium s.
  2. ((5 + √5) / 4, (√5 - 1) / 4)-smoothness and (3 + √5) / 2 Price of Anarchy (Theorem 18.23): combining Lemma 18.25 with x² + x y ≤ (5 + √5) / 4 * x² + (√5 - 1) / 4 * y² (sq_add_mul_le_golden_smooth) establishes isSmooth_of_hasAffineLatencies, giving (3 + √5) / 2 upper bounds simultaneously for pure Nash equilibria (socialCost_le_of_isPureNash), coarse correlated equilibria (expected_socialCost_le), and mixed Nash equilibria (expected_socialCost_le_of_isMixedNash).
  3. Network and player-count tightness witnesses (Example 18.6 & Exercise 18.2(a, b)):
    • aaeTriangleGame wHeavy wLight: four-player routing on a three-vertex bidirected triangle with four latency-x edges and two latency-0 edges. At (1, 1) it realizes Example 18.6 (10 = 5 / 2 * 4); at ((1 + √5) / 2, 1) it attains (3 + √5) / 2 on the same network (Exercise 18.2(a)).
    • exists_three_player_socialCost_eq_golden_mul: a three-player weighted game with weights (1, φ, φ) attaining (3 + √5) / 2 (Exercise 18.2(b)).
  4. Exact two-player affine Price of Anarchy (Exercise 18.2(c)):

Main definitions #

Main results #

References #

Golden-ratio smoothness algebra #

theorem Cslib.GameTheory.WeightedCongestionGame.sq_add_mul_le_golden_smooth (x y : ℝ) :
x ^ 2 + x * y ≤ (5 + √5) / 4 * x ^ 2 + (√5 - 1) / 4 * y ^ 2

Real smoothness inequality underlying Awerbuch–Azar–Epstein's (3 + √5) / 2 bound: x² + x y ≤ (5 + √5) / 4 * x² + (√5 - 1) / 4 * y² for all real numbers x and y, with equality when y = (1 + √5) / 2 * x.

Equilibrium inequalities, smoothness, and (3 + √5) / 2 Price of Anarchy #

theorem Cslib.GameTheory.WeightedCongestionGame.unitCost_update_le {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) {a b : E → ℝ} (ha : ∀ (e : E), 0 ≤ a e) (hl : ∀ (e : E) (x : ℝ), W.latency e x = a e * x + b e) {s : (j : ι) → S j} {i : ι} (hi : 0 ≤ W.weight i) (a' : S i) :
W.unitCost i (Function.update s i a') ≤ ∑ e ∈ W.resources i a', (a e * (W.load s e + W.weight i) + b e)

Deviation bound for weighted affine latencies: when player i with 0 ≤ weight i deviates from s to a', its per-unit latency on a' is at most ∑ e ∈ resources i a', (a e * (load s e + weight i) + b e).

theorem Cslib.GameTheory.WeightedCongestionGame.unitCost_le_of_isPureNash {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) {a b : E → ℝ} (ha : ∀ (e : E), 0 ≤ a e) (hl : ∀ (e : E) (x : ℝ), W.latency e x = a e * x + b e) {s : (j : ι) → S j} (hs : W.toCostGame.IsPureNash s) {i : ι} (hi : 0 < W.weight i) (a' : S i) :
∑ e ∈ W.resources i (s i), (a e * W.load s e + b e) ≤ ∑ e ∈ W.resources i a', (a e * (W.load s e + W.weight i) + b e)

Equilibrium condition for weighted affine congestion games ([Rou07], §18.4.2, Lemma 18.24, Eq. (18.8), p. 476): at any pure Nash equilibrium s with 0 < weight i, ∑ e ∈ resources i (s i), (a e * load s e + b e) ≤ ∑ e ∈ resources i a', (a e * (load s e + weight i) + b e).

theorem Cslib.GameTheory.WeightedCongestionGame.sum_cost_update_le_socialCost_add {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [Fintype E] {a b : E → ℝ} (ha : ∀ (e : E), 0 ≤ a e) (hl : ∀ (e : E) (x : ℝ), W.latency e x = a e * x + b e) (hw : ∀ (i : ι), 0 ≤ W.weight i) (s s' : (i : ι) → S i) :
∑ i : ι, W.toCostGame.cost i (Function.update s i (s' i)) ≤ W.toCostGame.socialCost s' + ∑ e : E, a e * W.load s e * W.load s' e

Deviation-sum inequality underlying Lemma 18.25: for arbitrary profiles s and s', ∑ i, cost i (update s i (s' i)) ≤ socialCost s' + ∑ e, a e * load s e * load s' e.

theorem Cslib.GameTheory.WeightedCongestionGame.socialCost_le_add_sum_mul_load_of_isPureNash {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [Fintype E] {a b : E → ℝ} (ha : ∀ (e : E), 0 ≤ a e) (hl : ∀ (e : E) (x : ℝ), W.latency e x = a e * x + b e) (hw : ∀ (i : ι), 0 ≤ W.weight i) {s : (i : ι) → S i} (hs : W.toCostGame.IsPureNash s) (s' : (i : ι) → S i) :
W.toCostGame.socialCost s ≤ W.toCostGame.socialCost s' + ∑ e : E, a e * W.load s e * W.load s' e

Equilibrium inequality for weighted affine congestion games ([Rou07], §18.4.2, Lemma 18.25, Eq. (18.9), pp. 476–477): at any pure Nash equilibrium s, socialCost s ≤ socialCost s' + ∑ e, a e * load s e * load s' e.

theorem Cslib.GameTheory.WeightedCongestionGame.isSmooth_of_hasAffineLatencies {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [Finite E] (h : W.HasAffineLatencies) (hw : ∀ (i : ι), 0 ≤ W.weight i) :
W.toCostGame.IsSmooth ((5 + √5) / 4) ((√5 - 1) / 4)

Weighted atomic congestion games with nonnegative weights and nonnegative affine latencies are ((5 + √5) / 4, (√5 - 1) / 4)-smooth.

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

Awerbuch–Azar–Epstein theorem: pure Price of Anarchy at most (3 + √5) / 2 ([AAE05]; [Rou07], §18.4.2, Theorem 18.23, pp. 476–477).

theorem Cslib.GameTheory.WeightedCongestionGame.expected_socialCost_le {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [Finite E] (h : W.HasAffineLatencies) (hw : ∀ (i : ι), 0 ≤ W.weight i) {σ : Convexity.StdSimplex ℝ ((i : ι) → S i)} (hσ : W.toCostGame.IsCoarseCorrelatedEquilibrium σ) (s' : (i : ι) → S i) :
(σ.sum fun (s : (i : ι) → S i) (w : ℝ) => w * W.toCostGame.socialCost s) ≤ (3 + √5) / 2 * W.toCostGame.socialCost s'

Robust Price of Anarchy at most (3 + √5) / 2 for coarse correlated equilibria ([AAE05]; [Rou15b], Theorem 3.2).

theorem Cslib.GameTheory.WeightedCongestionGame.expected_socialCost_le_of_isMixedNash {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq ι] [DecidableEq E] (W : WeightedCongestionGame ι S E) [Finite E] [(i : ι) → Fintype (S i)] (h : W.HasAffineLatencies) (hw : ∀ (i : ι), 0 ≤ W.weight i) {p : (i : ι) → S i → ℝ} (hp : W.toCostGame.IsMixedNash p) (s' : (i : ι) → S i) :
∑ s : (i : ι) → S i, productWeight p s * W.toCostGame.socialCost s ≤ (3 + √5) / 2 * W.toCostGame.socialCost s'

Mixed Nash Price of Anarchy at most (3 + √5) / 2 ([AAE05]).

Tightness witnesses: AAE bidirected triangle and 3-player weighted game #

Simple paths of the four players on Awerbuch–Azar–Epstein's three-vertex bidirected triangle {u, v, w} ([Rou07], §18.2.2, Example 18.6 and Figure 18.3, pp. 466–467, and Exercise 18.2(a), p. 484). The six directed arcs are 0 : u → w, 1 : v → w, 2 : u → v, 3 : v → u (each of latency x) and 4 : w → v, 5 : w → u (each of latency 0). Strategy true is the direct 1-hop edge and strategy false is the unique 2-hop simple path.

The Awerbuch–Azar–Epstein four-player bidirected-triangle network, with heavy demand wHeavy for players 0, 1 (u → w, v → w) and light demand wLight for players 2, 3 (u → v, v → u).

Unweighted bidirected-triangle 5 / 2 witness ([Rou07], §18.2.2, Example 18.6, pp. 466–467): at unit weights (1, 1), both the 1-hop profile (social cost 4) and the 2-hop profile (social cost 10) are pure Nash equilibria, achieving 10 = 5 / 2 * 4.

Weighted bidirected-triangle (3 + √5) / 2 tightness ([AAE05]; [Rou07], Exercise 18.2(a), p. 484): with heavy weight φ = (1 + √5) / 2 and light weight 1, the 2-hop profile is a pure Nash equilibrium whose social cost equals (3 + √5) / 2 times the 1-hop social cost.

Three-player weighted tightness of (3 + √5) / 2 ([Rou07], Exercise 18.2(b), p. 484): there is a three-player weighted congestion game with strictly positive weights (1, φ, φ) and identity latencies latency e x = x admitting a pure Nash equilibrium s and a profile s' with 0 < socialCost s' and socialCost s = (3 + √5) / 2 * socialCost s'.

Exact two-player weighted affine Price of Anarchy #

Exact worst-case pure-Nash social-cost ratio for two players with demand weights 0 ≤ w₀ ≤ w₁ (0 < w₁).

theorem Cslib.GameTheory.WeightedCongestionGame.twoPlayerRatio_le_twenty_one_tenths {w₀ w₁ : ℝ} (hw₀ : 0 ≤ w₀) (hw₁ : 0 < w₁) :
twoPlayerRatio w₀ w₁ ≤ 21 / 10

Across all nonnegative weight pairs (w₀, w₁) with 0 < w₁, twoPlayerRatio w₀ w₁ is at most 21 / 10 (strictly below 5 / 2 and (3 + √5) / 2).

theorem Cslib.GameTheory.WeightedCongestionGame.socialCost_le_twoPlayerRatio_mul_of_isPureNash {S : Fin 2 → Type u_1} {E : Type u_2} [DecidableEq E] [Finite E] (W : WeightedCongestionGame (Fin 2) S E) (h : W.HasAffineLatencies) (hw₀ : 0 ≤ W.weight 0) (hw₀₁ : W.weight 0 ≤ W.weight 1) (hw₁ : 0 < W.weight 1) {s : (i : Fin 2) → S i} (hs : W.toCostGame.IsPureNash s) (s' : (i : Fin 2) → S i) :

Exact two-player weighted affine Price of Anarchy upper bound: for any two-player weighted congestion game on Fin 2 with 0 ≤ weight 0 ≤ weight 1 and 0 < weight 1, every pure Nash equilibrium s satisfies socialCost s ≤ twoPlayerRatio (weight 0) (weight 1) * socialCost s'.

Three-resource two-player affine congestion game with demand weights (w₀, w₁) and latencies (w₀ + w₁) x, w₁ x, and w₀² + w₀ w₁ + w₁², attaining twoPlayerRatio w₀ w₁ for all 0 < w₀ and 0 < w₁ ([Rou07], Exercise 18.2(c), p. 485).

theorem Cslib.GameTheory.WeightedCongestionGame.exists_two_player_socialCost_eq_twoPlayerRatio_mul {w₀ w₁ : ℝ} (hw₀ : 0 < w₀) (hw₁ : 0 < w₁) :
((twoPlayerTightGame w₀ w₁).toCostGame.IsPureNash fun (x : Fin 2) => false) ∧ (0 < (twoPlayerTightGame w₀ w₁).toCostGame.socialCost fun (x : Fin 2) => true) ∧ ((twoPlayerTightGame w₀ w₁).toCostGame.socialCost fun (x : Fin 2) => false) = twoPlayerRatio w₀ w₁ * (twoPlayerTightGame w₀ w₁).toCostGame.socialCost fun (x : Fin 2) => true

Tightness of twoPlayerRatio w₀ w₁: for all 0 < w₀ and 0 < w₁, twoPlayerTightGame w₀ w₁ has a pure Nash equilibrium (false, false) whose social cost equals twoPlayerRatio w₀ w₁ times the (true, true) social cost.

Exact unweighted two-player affine Price of Anarchy (PoA = 2) #

theorem Cslib.GameTheory.CongestionGame.isSmooth_two_zero_of_card_le_two {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq ι] [DecidableEq E] [Finite E] (C : CongestionGame ι S E) (hcard : Fintype.card ι ≤ 2) (h : C.HasAffineLatencies) :

Every unweighted affine congestion game with at most two players is (2, 0)-smooth ([Rou07], Exercise 18.2(c), p. 485).

theorem Cslib.GameTheory.CongestionGame.socialCost_le_two_mul_of_card_le_two {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq ι] [DecidableEq E] [Finite E] (C : CongestionGame ι S E) (hcard : Fintype.card ι ≤ 2) (h : C.HasAffineLatencies) {s : (i : ι) → S i} (hs : C.toCostGame.IsPureNash s) (s' : (i : ι) → S i) :

Unweighted two-player affine Price of Anarchy is at most 2 ([Rou07], Exercise 18.2(c), p. 485).

theorem Cslib.GameTheory.CongestionGame.expected_socialCost_le_two_mul_of_card_le_two {ι : Type u_1} {S : ι → Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq ι] [DecidableEq E] [Finite E] (C : CongestionGame ι S E) (hcard : Fintype.card ι ≤ 2) (h : C.HasAffineLatencies) {σ : Convexity.StdSimplex ℝ ((i : ι) → S i)} (hσ : C.toCostGame.IsCoarseCorrelatedEquilibrium σ) (s' : (i : ι) → S i) :
(σ.sum fun (s : (i : ι) → S i) (w : ℝ) => w * C.toCostGame.socialCost s) ≤ 2 * C.toCostGame.socialCost s'

Robust unweighted two-player affine Price of Anarchy is at most 2 for coarse correlated equilibria.

Tightness of the unweighted two-player bound 2 ([Rou07], Exercise 18.2(c), p. 485): derived directly from WeightedCongestionGame.twoPlayerTightGame 1 1 via toUniformCongestionGame.