Documentation

CslibFrontier.GameTheory.LoadBalancing.PureNash

Existence, convergence, and price of stability of pure Nash equilibria #

This module establishes the fundamental existence and convergence properties of pure Nash equilibria in selfish load-balancing games ([Voc07]):

  1. Finite improvement property, existence, and PoS = 1 ([Voc07]): Every uniformly related load-balancing game (allowing zero-weight jobs), as well as every unrelated load-balancing game with strictly positive processing times, satisfies the finite improvement property (CostGame.HasFIP). The proof uses the strict lexicographic decrease of the descending sorted load vector (expressed directly via level-set cardinalities, with CostGame.socialCost breaking ties on zero-weight moves). Because no improving move can increase the makespan (makespan_le_of_improves), better-response dynamics started from a makespan-optimal assignment terminate at an optimal pure Nash equilibrium, giving price of stability 1 (exists_isPureNash_makespan_eq_optMakespan).
  2. Fast convergence on identical machines ([EDKM03]; [Voc07]): Under max-weight best-response dynamics on identical machines, each job moves at most once, so every max-weight best-response sequence has length at most |ι| and reaches a pure Nash equilibrium in at most |ι| steps.
  3. LPT yields a pure Nash equilibrium on uniformly related machines ([FKK+02]; [Voc07]): Greedily inserting jobs in non-increasing weight order onto a machine minimizing post-insertion load always produces a pure Nash equilibrium. For identical machines this applies directly to Cslib.Algorithms.Lean.Scheduling.lptSchedule.

Main definitions #

Main results #

References #

A strict improvement step never increases the makespan.

Makespan never increases along any sequence of improvement steps.

theorem Cslib.GameTheory.UnrelatedLoadBalancingGame.hasFIP_of_pos {ι : Type u_3} {M : Type u_4} [Fintype ι] [DecidableEq ι] [Finite M] [DecidableEq M] (U : UnrelatedLoadBalancingGame ι M) (hpos : ∀ (i : ι) (j : M), 0 < U.procTime i j) :

Every unrelated load-balancing game with strictly positive processing times has the finite improvement property: every improving move strictly lowers the descending sorted load vector.

theorem Cslib.GameTheory.UnrelatedLoadBalancingGame.exists_isPureNash_makespan_eq_optMakespan_of_pos {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype M] [DecidableEq M] (U : UnrelatedLoadBalancingGame ι M) [Nonempty M] (hpos : ∀ (i : ι) (j : M), 0 < U.procTime i j) :
∃ (A : ι → M), U.toCostGame.IsPureNash A ∧ U.makespan A = U.optMakespan

Pure Nash existence and PoS = 1 for positive unrelated machines: better-response dynamics from an optimal schedule reach a pure Nash equilibrium with optimal makespan.

theorem Cslib.GameTheory.LoadBalancingGame.makespan_le_of_improves {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [DecidableEq M] [Fintype M] [Nonempty M] (G : LoadBalancingGame ι M) {A' A : ι → M} (h : G.toCostGame.Improves A' A) :

A strict improvement step never increases the makespan.

Makespan never increases along any sequence of improvement steps.

Finite improvement property ([Voc07], §20.1.1, Proposition 20.3, pp. 519–520): every uniformly related load-balancing game has the finite improvement property (even when zero-weight jobs are present). Positive-weight improving moves strictly decrease the descending sorted load vector; zero-weight improving moves leave all machine loads unchanged and strictly decrease CostGame.socialCost.

theorem Cslib.GameTheory.LoadBalancingGame.exists_isPureNash {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [DecidableEq M] [Finite M] [Nonempty M] (G : LoadBalancingGame ι M) :
∃ (A : ι → M), G.toCostGame.IsPureNash A

Existence of pure Nash equilibria ([Voc07], §20.1.1, Proposition 20.3, pp. 519–520): every uniformly related load-balancing game with at least one machine admits a pure Nash equilibrium.

Price of stability equals 1 ([Voc07], §20.1.1, p. 520): every uniformly related load-balancing game admits a pure Nash equilibrium whose makespan equals optMakespan.

def Cslib.GameTheory.LoadBalancingGame.IsSatisfied {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq M] (G : LoadBalancingGame ι M) (A : ι → M) (i : ι) :

Job i is satisfied at assignment A if no unilateral move strictly lowers its cost.

def Cslib.GameTheory.LoadBalancingGame.IsMaxWeightBestResponseStep {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [DecidableEq M] (G : LoadBalancingGame ι M) (A' A : ι → M) (i : ι) :

One step of max-weight best-response dynamics ([EDKM03]; [Voc07]): A' arises from A by moving an unsatisfied job i of maximum weight among all unsatisfied jobs to a machine b minimizing its post-move load.

theorem Cslib.GameTheory.LoadBalancingGame.IsIdentical.maxWeightBestResponse_injective {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [DecidableEq M] {G : LoadBalancingGame ι M} (hId : G.IsIdentical) {T : ℕ} (γ : Fin (T + 1) → ι → M) (move : Fin T → ι) (hγ : ∀ (t : Fin T), G.IsMaxWeightBestResponseStep (γ t.succ) (γ t.castSucc) (move t)) :

Max-weight best-response convergence (job-uniqueness and step bound) ([EDKM03]; [Voc07], §20.2.2, Theorem 20.6, p. 524): along any sequence of T max-weight best-response steps on identical machines, each job is activated at most once (Function.Injective move), and hence T ≤ Fintype.card ι.

theorem Cslib.GameTheory.LoadBalancingGame.IsIdentical.maxWeightBestResponse_length_le {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [DecidableEq M] {G : LoadBalancingGame ι M} (hId : G.IsIdentical) {T : ℕ} (γ : Fin (T + 1) → ι → M) (move : Fin T → ι) (hγ : ∀ (t : Fin T), G.IsMaxWeightBestResponseStep (γ t.succ) (γ t.castSucc) (move t)) :

Every sequence of max-weight best-response steps on identical machines has length at most the number of jobs |ι| ([EDKM03]; [Voc07]).

theorem Cslib.GameTheory.LoadBalancingGame.IsIdentical.exists_maxWeightBestResponse_isPureNash {ι : Type u_1} {M : Type u_2} [Fintype ι] [DecidableEq ι] [DecidableEq M] [Finite M] [Nonempty M] {G : LoadBalancingGame ι M} (hId : G.IsIdentical) (A₀ : ι → M) :
∃ (T : ℕ) (γ : Fin (T + 1) → ι → M) (move : Fin T → ι), T ≤ Fintype.card ι ∧ γ 0 = A₀ ∧ (∀ (t : Fin T), G.IsMaxWeightBestResponseStep (γ t.succ) (γ t.castSucc) (move t)) ∧ G.toCostGame.IsPureNash (γ (Fin.last T))

Starting from any assignment A₀ on identical machines, max-weight best-response dynamics reach a pure Nash equilibrium in at most |ι| steps ([EDKM03]; [Voc07]).

noncomputable def Cslib.GameTheory.LoadBalancingGame.prefixLoad {n : ℕ} {M : Type u_1} [DecidableEq M] (G : LoadBalancingGame (Fin n) M) (A : Fin n → M) (k : ℕ) (j : M) :

The load of machine j contributed by jobs with index < k.

Greedy post-insertion LPT property on uniformly related machines ([FKK+02]; [Voc07]): each job i, processed in index order, is assigned to a machine minimizing its post-insertion load prefixLoad G A i k + weight i / speed k.

LPT produces a pure Nash equilibrium on uniformly related machines ([FKK+02]; [Voc07], §20.3.2, Theorem 20.10, pp. 528–529): if jobs are ordered by non-increasing weight (Antitone G.weight) and A places each job greedily on a machine minimizing its post-insertion load, then A is a pure Nash equilibrium.

theorem Cslib.GameTheory.LoadBalancingGame.exists_isRelatedLPT {n : ℕ} {M : Type u_1} [DecidableEq M] [Finite M] [Nonempty M] (G : LoadBalancingGame (Fin n) M) :
∃ (A : Fin n → M), G.IsRelatedLPT A

Existence of an LPT pure Nash equilibrium for any job ordering on uniformly related machines ([FKK+02]; [Voc07]): every game admits an IsRelatedLPT assignment in any given job order.

theorem Cslib.GameTheory.LoadBalancingGame.exists_isPureNash_of_lptOrder {n : ℕ} {M : Type u_1} [DecidableEq M] [Finite M] [Nonempty M] (G : LoadBalancingGame (Fin n) M) :
∃ (A : Fin n → M), have e := Algorithms.Lean.Scheduling.lptOrder G.weight; have Gs := { weight := G.weight ∘ ⇑e, speed := G.speed, weight_nonneg := ⋯, speed_pos := ⋯ }; Gs.IsRelatedLPT (A ∘ ⇑e) ∧ G.toCostGame.IsPureNash A

LPT algorithm produces a pure Nash equilibrium for any weight vector on uniformly related machines ([FKK+02]; [Voc07]): sorting jobs via Cslib.Algorithms.Lean.Scheduling.lptOrder and applying greedy post-insertion load minimization yields a pure Nash equilibrium.

On identical machines (Fin n jobs, Fin m machines), greedy post-insertion LPT (IsRelatedLPT) coincides with Graham's list-scheduling condition (Cslib.Algorithms.Lean.Scheduling.IsListSchedule).

Graham's computable lptSchedule is a pure Nash equilibrium on identical machines ([FKK+02]; [Voc07]).

Graham's 4 / 3 - 1 / (3m) makespan bound for lptSchedule on identical machines ([Gra69]; [Voc07]).