Documentation

CslibFrontier.GameTheory.LoadBalancing.BallsIntoBins

Balls-into-bins lower bound and identical-machine mixed PoA #

This module formalizes the classical balls-into-bins lower bound on the expected maximum load of m balls thrown independently and uniformly into m bins ([Voc07], §20.4.1, Proposition 20.11, p. 530) and applies it to obtain the Ω(log m / log log m) lower bound on the mixed Nash price of anarchy for m identical machines ([KP99]; [CV02b]; [Voc07], §20.4.1, Theorem 20.12, p. 530). The full two-sided general (n, m) version of Proposition 20.11 lives in CslibFrontier.GameTheory.LoadBalancing.GeneralBallsIntoBins.

Proof overview #

Consider unitIdenticalGame m: m unit-weight jobs on m identical machines (optMakespan = 1), with the uniform profile uniformMixedProfile m (p i j = 1 / m), which is a totally mixed Nash equilibrium for every m ≥ 1.

For any integer k ≥ 2 with 2 * k ≤ m, let Y_k(A) = #{j : Fin m | #{i | A i = j} = k} count bins receiving exact load k:

  1. Exact single-bin and two-bin occupancy counts give p_k = Pr[L_j = k] = C(m, k) * (1 / m) ^ k * (1 - 1 / m) ^ (m - k) and q_k = Pr[L_{j₁} = k ∧ L_{j₂} = k] equals C(m, k) * C(m - k, k) * (1 / m) ^ (2k) * (1 - 2 / m) ^ (m - 2k) (for j₁ ≠ j₂).
  2. Negative correlation (q_k ≤ p_k ^ 2 for k ≥ 2 and 2 * k ≤ m): each factor (m - k - i) / (m - i) ≤ 1 - k / m ≤ 1 - 2 / m ≤ (1 - 1 / m) ^ 2 and 1 - 2 / m ≤ (1 - 1 / m) ^ 2, yielding E[Y_k ^ 2] ≤ E[Y_k] + (E[Y_k]) ^ 2.
  3. Paley–Zygmund ((E[Y_k]) ^ 2 ≤ E[Y_k ^ 2] * Pr[Y_k ≥ 1]): whenever E[Y_k] = m * p_k ≥ 1, Pr[max_j L_j ≥ k] ≥ Pr[Y_k ≥ 1] ≥ 1 / 2, so E[max_j L_j] ≥ k / 2.
  4. Using Real.exp_neg_one_le_one_sub_inv_pow ((1 - 1 / m) ^ (m - k) ≥ e⁻¹ > 1 / 3) and (m)_k / m ^ k ≥ (1 / 2) ^ k, the condition 3 * 2 ^ k * k! ≤ m guarantees m * p_k ≥ 1, producing E[max_j L_j] ≥ (1 / 20) * (log m / log (log m)) for every m ≥ 3.

Main definitions #

Main results #

References #

m unit-weight jobs on m identical machines (balls-into-bins instance; [Voc07], §20.4.1, p. 530).

The uniform mixed strategy profile p i j = 1 / m on m identical machines.

Optimal makespan of m unit jobs on m identical machines (m ≥ 1) is 1.

For m ≥ 1, the uniform mixed profile 1 / m is a totally mixed Nash equilibrium of unitIdenticalGame m.

For m ≥ 1, the uniform mixed profile 1 / m is a mixed Nash equilibrium of unitIdenticalGame m.

theorem Cslib.GameTheory.LoadBalancingGame.half_pow_le_descFactorial_div_pow {n d : ℕ} (hn : 1 ≤ n) (h2d : 2 * d ≤ n) :
(1 / 2) ^ d ≤ ↑(n.descFactorial d) / ↑n ^ d

Falling-factorial lower bound: whenever 2 * d ≤ n (1 ≤ n), (1 / 2) ^ d ≤ (n)_d / n ^ d.

theorem Cslib.GameTheory.LoadBalancingGame.ballsIntoBins_tail_ge_half_of_one_le {n B d : ℕ} [NeZero B] (hB : 2 ≤ B) (hd : 2 * n ≤ d * B) (h2d : 2 * d ≤ n) (hBp_ge1 : 1 ≤ ↑B * (↑(n.choose d) * ↑(B - 1) ^ (n - d) / ↑B ^ n)) :
1 / 2 ≤ ∑ A : Fin n → Fin B, if ∃ (j : Fin B), d ≤ {i : Fin n | A i = j}.card then (1 / ↑B) ^ n else 0

General Paley–Zygmund balls-into-bins lower tail ([Voc07], §20.4.1, Proposition 20.11, p. 530): when n balls are thrown independently and uniformly into B ≥ 2 bins, if 2 * n ≤ d * B, 2 * d ≤ n, and the expected number of bins with exact occupancy d is at least 1, then some bin receives at least d balls with probability at least 1 / 2.

theorem Cslib.GameTheory.LoadBalancingGame.ballsIntoBins_mul_tail_ge_half {n a B d : ℕ} [NeZero B] (hn : n = a * B) (ha : 1 ≤ a) (hB : 2 ≤ B) (hd : 2 * a ≤ d) (h2d : 2 * d ≤ n) (hcond : 3 ^ a * 2 ^ d * d.factorial ≤ B * a ^ d) :
1 / 2 ≤ ∑ A : Fin n → Fin B, if ∃ (j : Fin B), d ≤ {i : Fin n | A i = j}.card then (1 / ↑B) ^ n else 0

Balls-into-bins lower tail for n = a * B balls in B bins ([Voc07], §20.4.1, Proposition 20.11, p. 530): when n = a * B balls (a ≥ 1) are thrown independently and uniformly into B ≥ 2 bins, if 2 * a ≤ d, 2 * d ≤ n, and 3 ^ a * 2 ^ d * d! ≤ B * a ^ d, then some bin receives at least d balls with probability at least 1 / 2.

Balls-into-bins lower tail ([Voc07], §20.4.1, Proposition 20.11, p. 530): when m balls are thrown uniformly and independently into m bins, if 2 ≤ k and 3 * 2 ^ k * k! ≤ m, then the maximum bin load is at least k with probability at least 1 / 2.

Expectation consequence of the balls-into-bins lower tail: if 2 ≤ k and 3 * 2 ^ k * k! ≤ m, then expectedMakespan ≥ k / 2.

On m ≥ 1 identical machines with m unit jobs, the uniform profile has expected makespan at least 1.

Balls-into-bins & identical-machine mixed PoA lower bound ([KP99]; [CV02b]; [Voc07], §20.4.1, Proposition 20.11 and Theorem 20.12, p. 530): for every m ≥ 3, the uniform totally mixed Nash equilibrium on m unit jobs and m identical machines achieves expected makespan at least (1 / 20) * (log m / log (log m)) * optMakespan.