Documentation

CslibFrontier.GameTheory.LoadBalancing.PurePoA

Pure Nash price of anarchy for selfish load balancing #

This module proves exact and asymptotic pure Nash price-of-anarchy bounds across the three machine models of selfish load balancing ([Voc07]):

  1. Identical machines ([FH79]; [Voc07]):
    • Every pure Nash equilibrium A on m ≥ 1 identical machines satisfies makespan A ≤ (2m / (m + 1)) * optMakespan (IsIdentical.makespan_le_of_isPureNash), and strictly < 2 * optMakespan whenever 0 < optMakespan.
    • For m = 2, this gives makespan A ≤ (4 / 3) * optMakespan.
    • The 2m / (m + 1) bound is exact for every m ≥ 1: finnHorowitzTight m is an explicit 2m-job, m-machine identical instance with pure Nash equilibrium finnHorowitzTightNE m attaining makespan = (2m / (m + 1)) * optMakespan.
    • For 3 jobs on 2 identical machines, every pure Nash equilibrium is optimal (IsIdentical.makespan_eq_opt_of_three_jobs_two_machines, [Voc07]).
    • If every job has weight at most B, then makespan A ≤ optMakespan + (1 - 1 / m) * B ([Voc07]).
  2. Two uniformly related machines ([Voc07], generalized to arbitrary job counts):
  3. General uniformly related machines ([CV02b]; [Voc07]):
  4. Unrelated machines:

Main results #

References #

Identical-machine pure price of anarchy ([FH79]; [Voc07], §20.2.1, Theorem 20.5, pp. 522–523): every pure Nash equilibrium A on m = |M| ≥ 1 identical machines satisfies makespan A ≤ (2 * m / (m + 1)) * optMakespan (equivalently (2 - 2 / (m + 1)) * optMakespan).

Strict < 2 bound for arbitrary m identical machines when optMakespan > 0.

Special case m = 2 identical machines: makespan A ≤ (4 / 3) * optMakespan.

Tightness witness family for Finn–Horowitz ([FH79]; [Voc07]): for every m ≥ 1, 2m jobs indexed by Bool × Fin m on m identical machines. Machine 0 receives two jobs of weight m in the Nash equilibrium, while each machine k ≠ 0 receives jobs of weights k and m - k.

The worst-case pure Nash equilibrium on finnHorowitzTight m: job (b, k) goes to machine k.

Tightness of the 2m / (m + 1) pure price of anarchy ([FH79]; [Voc07], §20.2.1 & Exercise 20.2, pp. 523, 542): for every m ≥ 1, finnHorowitzTightNE m attains exact equality.

Three jobs on two identical machines ([Voc07], Exercise 20.1, p. 542): every pure Nash equilibrium of 3 jobs on 2 identical machines is makespan-optimal.

theorem Cslib.GameTheory.LoadBalancingGame.IsIdentical.makespan_le_optMakespan_add_of_weight_le {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] [Nonempty M] {G : LoadBalancingGame ι M} (hId : G.IsIdentical) {A : ι → M} (hA : G.toCostGame.IsPureNash A) {B : ℝ} (hB : 0 ≤ B) (hw : ∀ (i : ι), G.weight i ≤ B) :
G.makespan A ≤ G.optMakespan + (1 - 1 / ↑(Fintype.card M)) * B

Small-job pure Nash bound on identical machines ([Voc07], Exercise 20.6(a), p. 542): if every job has weight at most B, then every pure Nash equilibrium A satisfies makespan A ≤ optMakespan + (1 - 1 / |M|) * B. In particular, if weight i ≤ α * optMakespan with 0 < α and 0 < optMakespan, then makespan A < (1 + α) * optMakespan.

Two uniformly related machines: golden-ratio pure price of anarchy ([Voc07], Exercise 20.3(b), p. 542, proved here for an arbitrary finite number of jobs): every pure Nash equilibrium A on 2 uniformly related machines satisfies makespan A ≤ ((1 + √5) / 2) * optMakespan.

Golden-ratio tightness witness ([Voc07], Exercise 20.3(a), p. 542): two jobs of weights 1 and φ = (1 + √5) / 2 on two machines of speeds 1 and φ.

The worst-case pure Nash equilibrium on goldenRatioTight: the heavy job (1) sits on the slow machine (0), and the light job (0) sits on the fast machine (1).

theorem Cslib.GameTheory.LoadBalancingGame.sum_weight_Aopt_mem_le {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] [Nonempty M] (G : LoadBalancingGame ι M) {Aopt : ι → M} (hAopt : G.makespan Aopt = G.optMakespan) (S : Finset M) :
∑ i : ι with Aopt i ∈ S, G.weight i ≤ G.optMakespan * ∑ j ∈ S, G.speed j

Weight of jobs assigned by an optimal schedule Aopt to a subset S of machines is at most optMakespan * ∑_{j ∈ S} speed j.

theorem Cslib.GameTheory.LoadBalancingGame.card_speedPrefix_step_of_sum_speed_le {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] [Nonempty M] (G : LoadBalancingGame ι M) (L : M → ℝ) (P : ℕ → Finset M) (hP : ∀ (r : ℕ) (j : M), j ∈ P r ↔ ∀ (j' : M), G.speed j ≤ G.speed j' → ↑r * G.optMakespan ≤ L j') (hopt_nn : 0 ≤ G.optMakespan) (k : ℕ) (hspeed_sum : (P (k + 1)).Nonempty → ↑(k + 1) * ∑ j ∈ P (k + 1), G.speed j ≤ ∑ j ∈ P k, G.speed j) :
(k + 1) * (P (k + 1)).card ≤ (P k).card

General speed-prefix cardinality step over any machine-load map L : M → ℝ: for prefixes P k = {j | ∀ j', speed j ≤ speed j' → k * optMakespan ≤ L j'}, if (k + 1) * ∑_{P(k+1)} speed ≤ ∑_{P k} speed whenever P (k + 1) is nonempty, then (k + 1) * #(P (k + 1)) ≤ #(P k).

theorem Cslib.GameTheory.LoadBalancingGame.factorial_le_card_of_prefix_step {M : Type u_2} [Fintype M] (P : ℕ → Finset M) (hrec_step : ∀ (k : ℕ), (k + 1) * (P (k + 1)).card ≤ (P k).card) {c : ℕ} (hPc : 1 ≤ (P c).card) :

Downward factorial induction along a family P : ℕ → Finset M satisfying (k + 1) * #(P (k + 1)) ≤ #(P k): if 1 ≤ #(P c), then c! ≤ |M|.

noncomputable def Cslib.GameTheory.LoadBalancingGame.speedPrefix {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] [Nonempty M] (G : LoadBalancingGame ι M) (A : ι → M) (k : ℕ) :

The speed-sorted prefix L_k of machines all of whose at-least-as-fast peers have load at least k * optMakespan under A ([CV02b]; [Voc07]).

theorem Cslib.GameTheory.LoadBalancingGame.mem_prefix_of_nash_load_ge {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] [Nonempty M] (G : LoadBalancingGame ι M) {Aopt : ι → M} (hAopt : G.makespan Aopt = G.optMakespan) {L : M → ℝ} {P : Finset M} {k : ℕ} (hP : ∀ (j : M), j ∈ P ↔ ∀ (j' : M), G.speed j ≤ G.speed j' → ↑k * G.optMakespan ≤ L j') {i : ι} {Lj : ℝ} (hge : ↑(k + 1) * G.optMakespan ≤ Lj) (hNE : ∀ (j' : M), Lj ≤ L j' + G.weight i / G.speed j') :
Aopt i ∈ P

Shared inclusion criteria into any load-threshold speed prefix P k: if job i has optimal machine Aopt i, load lower bound (k + 1) * optMakespan ≤ Lj on a machine whose equilibrium comparison gives Lj ≤ L j' + weight i / speed j' for every j', then Aopt i ∈ P k.

theorem Cslib.GameTheory.LoadBalancingGame.mem_speedPrefix_of_load_ge {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] [Nonempty M] (G : LoadBalancingGame ι M) {A Aopt : ι → M} (hA : G.toCostGame.IsPureNash A) (hAopt : G.makespan Aopt = G.optMakespan) {k : ℕ} {i : ι} (hi : ↑(k + 1) * G.optMakespan ≤ G.load A (A i)) :
Aopt i ∈ G.speedPrefix A k

Prefix-list inclusion lemma ([CV02b]; [Voc07], §20.3.1, Lemma 20.8, p. 526): if A is a pure Nash equilibrium and Aopt is an optimal assignment, then any job whose A-machine has load at least (k + 1) * optMakespan is assigned by Aopt to a machine in speedPrefix G A k.

theorem Cslib.GameTheory.LoadBalancingGame.card_speedPrefix_ge {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] [Nonempty M] (G : LoadBalancingGame ι M) {A : ι → M} (hA : G.toCostGame.IsPureNash A) (hopt : 0 < G.optMakespan) (k : ℕ) :
(k + 1) * (G.speedPrefix A (k + 1)).card ≤ (G.speedPrefix A k).card

Speed-prefix cardinality growth ([CV02b]; [Voc07]): for every pure Nash equilibrium A with 0 < optMakespan and every k : ℕ, (k + 1) * #(speedPrefix G A (k + 1)) ≤ #(speedPrefix G A k).

theorem Cslib.GameTheory.LoadBalancingGame.factorial_le_card_of_makespan_ge {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] [Nonempty M] (G : LoadBalancingGame ι M) {A : ι → M} (hA : G.toCostGame.IsPureNash A) (hopt : 0 < G.optMakespan) {c : ℕ} (hge : ↑(c + 1) * G.optMakespan ≤ G.makespan A) :

Factorial pure PoA bound for uniformly related machines ([CV02b]; [Voc07]): if A is a pure Nash equilibrium with 0 < optMakespan and (c + 1) * optMakespan ≤ makespan A, then c! ≤ |M|. Equivalently, makespan A < (c + 1) * optMakespan whenever |M| < c!.

theorem Cslib.GameTheory.LoadBalancingGame.le_log_div_log_log_add_three_mul_of_factorial_le {m : ℕ} (hm : 3 ≤ m) {val opt : ℝ} (hopt : 0 < opt) (hval : 0 ≤ val) (hfac : ∀ (c : ℕ), ↑(c + 1) * opt ≤ val → c.factorial ≤ m) :
val ≤ (4 * Real.log ↑m / Real.log (Real.log ↑m) + 3) * opt

If m ≥ 3, 0 < opt, 0 ≤ val, and every integer c with (c + 1) * opt ≤ val satisfies c! ≤ m, then val ≤ (4 * log m / log (log m) + 3) * opt. Shared between the uniformly related pure makespan bound and mixed expected-load bound.

Asymptotic pure PoA for uniformly related machines ([CV02b]; [Voc07], §20.3.1, Theorem 20.7, pp. 525–527): for every load-balancing game on m = |M| ≥ 3 uniformly related machines and every pure Nash equilibrium A, makespan A ≤ (4 * log m / log (log m) + 3) * optMakespan = O(log m / log log m) * optMakespan.

Unbounded pure price of anarchy on unrelated machines: for every K ≥ 1, there is a 2-job, 2-machine unrelated load-balancing game with a pure Nash equilibrium whose makespan equals K * optMakespan (contrasting with 4/3 on identical and (1 + √5)/2 on uniformly related 2-machine games).