Documentation

CslibFrontier.GameTheory.LoadBalancing.MixedNash

Mixed Nash equilibria in selfish load-balancing games #

This module formalizes mixed Nash equilibria and expected makespan in the Koutsoupias–Papadimitriou load-balancing model ([KP99]; [Voc07]), building directly on Cslib.GameTheory.CostGame.IsMixedNash, IsTotallyMixedNash, and productWeight from CslibFrontier.GameTheory.Strategic.

Main definitions #

Main results #

References #

noncomputable def Cslib.GameTheory.LoadBalancingGame.expectedLoad {ι : Type u_1} {M : Type u_2} [Fintype ι] (G : LoadBalancingGame ι M) (p : ι → M → ℝ) (j : M) :

The expected load of machine j under mixed strategy profile p: ∑ i, p i j * (weight i / speed j).

noncomputable def Cslib.GameTheory.LoadBalancingGame.expectedMakespan {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] [Nonempty M] (G : LoadBalancingGame ι M) (p : ι → M → ℝ) :

The expected makespan (Koutsoupias–Papadimitriou social cost, [Voc07]) under the product distribution of mixed strategies p: ∑ A, productWeight p A * makespan A.

theorem Cslib.GameTheory.LoadBalancingGame.expectedLoad_eq_sum_productWeight {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] (G : LoadBalancingGame ι M) {p : ι → M → ℝ} (hp : ∀ (i : ι), ∑ j : M, p i j = 1) (j : M) :
G.expectedLoad p j = ∑ A : ι → M, productWeight p A * G.load A j

Expected load equals the expectation of G.load A j under the product distribution.

theorem Cslib.GameTheory.LoadBalancingGame.sum_speed_mul_expectedLoad {ι : Type u_1} {M : Type u_2} [Fintype ι] [Fintype M] (G : LoadBalancingGame ι M) {p : ι → M → ℝ} (hp : ∀ (i : ι), ∑ j : M, p i j = 1) :
∑ j : M, G.speed j * G.expectedLoad p j = ∑ i : ι, G.weight i

Speed-weighted expected loads sum to the total job weight.

theorem Cslib.GameTheory.LoadBalancingGame.expectedMakespan_single {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] [Nonempty M] (G : LoadBalancingGame ι M) (A : ι → M) :
(G.expectedMakespan fun (i : ι) => Pi.single (A i) 1) = G.makespan A

Point-mass mixed profiles recover the deterministic makespan.

When optMakespan = 0, every job has weight 0, so every profile has zero expected makespan.

theorem Cslib.GameTheory.LoadBalancingGame.deviationCost_toCostGame {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] (G : LoadBalancingGame ι M) {p : ι → M → ℝ} (hp : ∀ (k : ι), ∑ m : M, p k m = 1) (i : ι) (j : M) :
G.toCostGame.deviationCost p i j = G.expectedLoad p j + (1 - p i j) * (G.weight i / G.speed j)

Closed-form expected deviation cost ([Voc07], §20.1.1, Eq. (20.1), p. 519): when player i deviates to machine j against a profile p of probability vectors, its expected cost is expectedLoad p j + (1 - p i j) * (weight i / speed j).

theorem Cslib.GameTheory.LoadBalancingGame.isMixedNash_iff {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] (G : LoadBalancingGame ι M) (p : ι → M → ℝ) :
G.toCostGame.IsMixedNash p ↔ (∀ (i : ι), IsMixedStrategy (p i)) ∧ ∀ (i : ι) (j : M), 0 < p i j → ∀ (k : M), G.expectedLoad p j + (1 - p i j) * (G.weight i / G.speed j) ≤ G.expectedLoad p k + (1 - p i k) * (G.weight i / G.speed k)

Mixed Nash characterization ([Voc07], §20.1.1, Proposition 20.1, p. 519): a profile p is a mixed Nash equilibrium of G if and only if each p i is a mixed strategy and for every player i and machine j in the support of p i, no machine k has a strictly smaller expected deviation cost expectedLoad p k + (1 - p i k) * (weight i / speed k).

theorem Cslib.GameTheory.LoadBalancingGame.eq_of_isTotallyMixedNash {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] (G : LoadBalancingGame ι M) (hw : ∀ (i : ι), 0 < G.weight i) (hn : Fintype.card ι ≠ 1) {p q : ι → M → ℝ} (hp : G.toCostGame.IsTotallyMixedNash p) (hq : G.toCostGame.IsTotallyMixedNash q) :
p = q

Uniqueness of totally mixed Nash equilibria ([MS01a]; [Voc07], Exercise 20.5, p. 542): if every job has strictly positive weight and |ι| ≠ 1, then a uniformly related load-balancing game admits at most one totally mixed Nash equilibrium.

(The hypothesis |ι| ≠ 1 is necessary: a single positive-weight job on two identical machines has a continuum of totally mixed Nash equilibria.)

Two unit-weight jobs on two machines of speeds 1 and s > 0 ([Voc07]).

Two unit jobs on two related machines ([Voc07], Exercise 20.4(a)–(b), p. 542): a totally mixed Nash equilibrium exists if and only if 1 / 2 < s < 2, in which case it is uniquely given by p i 0 = (2 - s) / (s + 1) and p i 1 = (2 * s - 1) / (s + 1).

theorem Cslib.GameTheory.LoadBalancingGame.isTotallyMixedNash_twoUnitRelated_eq {s : ℝ} (hs : 0 < s) (hs1 : 1 / 2 < s) (hs2 : s < 2) {p : Fin 2 → Fin 2 → ℝ} (hp : (twoUnitRelated s hs).toCostGame.IsTotallyMixedNash p) (i : Fin 2) :
p i 0 = (2 - s) / (s + 1) ∧ p i 1 = (2 * s - 1) / (s + 1)

Closed form of the unique totally mixed Nash equilibrium of twoUnitRelated s hs for 1 / 2 < s < 2 ([Voc07]).

Koutsoupias–Papadimitriou mixed price of anarchy for two identical machines ([KP99]): for 2 identical machines and any finite set of jobs with nonnegative weights, every mixed Nash equilibrium p satisfies expectedMakespan p ≤ (3 / 2) * optMakespan.

Tightness witness for Koutsoupias–Papadimitriou 3 / 2 ([KP99]): two unit-weight jobs on two identical machines.

The uniform mixed strategy profile (1/2, 1/2) for kpTwoUnit.

The uniform mixed Nash equilibrium on two unit jobs and two identical machines achieves expected makespan (3 / 2) * optMakespan ([KP99]).