Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3 — a weighted L1L_1L1​ potential Φ(t)=∑iwi∣si(t)−πi∣\Phi(t)=\sum_i w_i|s_i(t)-\pi_i|Φ(t)=∑i​wi​∣si​(t)−πi​∣ converges exponentially to 000

Proved
PowerTwoChoices.Limit.theorem_3

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

differential-equationsload-balancinglyapunovmean-fieldp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1queueing

Let d≥2d\ge2d≥2 and 0<λ<10<\lambda<10<λ<1, and let πi=λ(di−1)/(d−1)\pi_i=\lambda^{(d^i-1)/(d-1)}πi​=λ(di−1)/(d−1) be the fixed point of the limiting supermarket system (1). There exist constants wi≥1w_i\ge1wi​≥1 (i≥1i\ge1i≥1), depending only on λ\lambdaλ and ddd, such that for every trajectory s(t)s(t)s(t) of (1) the potential

Φ(t)=∑i=1∞wi ∣si(t)−πi∣\Phi(t)=\sum_{i=1}^\infty w_i\,|s_i(t)-\pi_i|Φ(t)=i=1∑∞​wi​∣si​(t)−πi​∣

has the following properties.

  1. If Φ(0)<∞\Phi(0)<\inftyΦ(0)<∞, then Φ\PhiΦ converges exponentially to 000: there are δ>0\delta>0δ>0 and c0c_0c0​ with Φ(t)≤c0e−δt\Phi(t)\le c_0e^{-\delta t}Φ(t)≤c0​e−δt for all t≥0t\ge0t≥0.
  2. In particular, if sj(0)=0s_j(0)=0sj​(0)=0 for some jjj, then Φ\PhiΦ converges exponentially to 000.

This is the paper's convergence theorem: from any reasonable starting point, the limiting system approaches its fixed point exponentially fast in a weighted L1L_1L1​ sense.

Formalization Note. The weights are chosen before the trajectory. Φ\PhiΦ is computed in [0,∞][0,\infty][0,∞], so "Φ(0)<∞\Phi(0)<\inftyΦ(0)<∞" is literal. The constants δ\deltaδ and c0c_0c0​ may depend on the trajectory (Definition 2). The paper writes its proof for d=2d=2d=2; the statement is for every d≥2d\ge2d≥2.

Preamble
import Mathlib
import Definitions.Def_PowerTwoChoices_Limit_SupermarketSystem

open scoped ENNReal
open Filter Topology
Formal statement
namespace PowerTwoChoices.Limit

/-- Theorem 3 (Mitzenmacher 2001, p. 1098). Let `d ≥ 2` and `0 < λ < 1`. There are constants
`w_i ≥ 1` (`i ≥ 1`), fixed before any trajectory is chosen, such that for every trajectory the
potential `Φ(t) = ∑_{i ≥ 1} w_i |s_i(t) - π_i|` converges exponentially to `0`
(Definition 2) whenever `Φ(0) < ∞`, and in particular whenever `s_j(0) = 0` for some `j`. -/
theorem theorem_3 (lam : ℝ) (d : ℕ) (hd : 2 ≤ d) (hlam0 : 0 < lam) (hlam1 : lam < 1) :
    ∃ w : ℕ → ℝ, (∀ i : ℕ, 1 ≤ i → 1 ≤ w i) ∧
      ∀ s : ℝ → ℕ → ℝ, IsTrajectory lam d s →
        (potential lam d w (s 0) < ⊤ →
          ConvergesExponentially (fun t => potential lam d w (s t))) ∧
        ((∃ j : ℕ, s 0 j = 0) →
          ConvergesExponentially (fun t => potential lam d w (s t))) := by sorry

end PowerTwoChoices.Limit
Source
Mitzenmacher, The Power of Two Choices in Randomized Load Balancing, IEEE Trans. Parallel Distrib. Syst. 12(10), 2001, p. 1098, Theorem 3 (with Definition 2, p. 1097)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me