Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.4 — on proportionally sparse (and subcritical) compatibility graphs, JSQ(d) has the fully flexible mean-field limit and steady state

Proved
StrictCompatLB.MeanField.meanfield_limit_and_steady_state

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

jsq-dload-balancingmean-fieldp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1steady-state

Let 0<λ<10<\lambda<10<λ<1 and d≥2d\ge2d≥2. Tasks arrive at M(N)M(N)M(N) dispatchers as independent Poisson streams of rate λN/M(N)\lambda N/M(N)λN/M(N); a task arriving at dispatcher www samples min⁡(d,∣Nw∣)\min(d,|\mathcal N_w|)min(d,∣Nw​∣) servers of its neighbourhood Nw\mathcal N_wNw​ uniformly at random without replacement and joins a shortest of their queues (ties broken uniformly); services are exponential with unit mean. Let {GN}N≥1\{G_N\}_{N\ge1}{GN​}N≥1​ be a proportionally sparse sequence of connected compatibility graphs, and Φ(GN,t)\Phi(G_N,t)Φ(GN​,t) the vector of queue lengths at time ttt.

  1. Process level. Suppose q∗(0)∈Yq^*(0)\in\mathcal Yq∗(0)∈Y and ∥q(Φ(GN,0))−q∗(0)∥1→0\|q(\Phi(G_N,0))-q^*(0)\|_1\to0∥q(Φ(GN​,0))−q∗(0)∥1​→0, and let q∗q^*q∗ be the Y\mathcal YY-valued solution of
dqi∗(t)dt=λ(qi−1∗(t)d−qi∗(t)d)−(qi∗(t)−qi+1∗(t)),i=1,2,…(3.3)\frac{dq^*_i(t)}{dt}=\lambda\big(q^*_{i-1}(t)^d-q^*_i(t)^d\big)-\big(q^*_i(t)-q^*_{i+1}(t)\big),\qquad i=1,2,\dots\qquad(3.3)dtdqi∗​(t)​=λ(qi−1∗​(t)d−qi∗​(t)d)−(qi∗​(t)−qi+1∗​(t)),i=1,2,…(3.3)

with this initial value. Then for every T≥0T\ge0T≥0 and ε>0\varepsilon>0ε>0,

P(sup⁡t∈[0,T]∥q(Φ(GN,t))−q∗(t)∥1≥ε)⟶0(N→∞).P\Big(\sup_{t\in[0,T]}\|q(\Phi(G_N,t))-q^*(t)\|_1\ge\varepsilon\Big)\longrightarrow0\qquad(N\to\infty).P(t∈[0,T]sup​∥q(Φ(GN​,t))−q∗(t)∥1​≥ε)⟶0(N→∞).
  1. Steady state. If moreover {GN}\{G_N\}{GN​} satisfies the subcriticality condition, there is N0N_0N0​ such that for every N≥N0N\ge N_0N≥N0​ the process Φ(GN,⋅)\Phi(G_N,\cdot)Φ(GN​,⋅) has a unique stationary distribution πN\pi_NπN​, and q(Φ(GN,∞))q(\Phi(G_N,\infty))q(Φ(GN​,∞)) converges to the fixed point
qi∗(∞)=λdi−1d−1,i=1,2,…,q^*_i(\infty)=\lambda^{\frac{d^i-1}{d-1}},\qquad i=1,2,\dots,qi∗​(∞)=λd−1di−1​,i=1,2,…,

in the sense that πN(∥q−q∗(∞)∥1≥ε)→0\pi_N\big(\|q-q^*(\infty)\|_1\ge\varepsilon\big)\to0πN​(∥q−q∗(∞)∥1​≥ε)→0 for every ε>0\varepsilon>0ε>0.

Thus a sparse compatibility graph, as long as it is proportionally sparse and subcritical, gives the same transient and stationary mean-field behaviour as the fully flexible system, where every task may join every server.

Formalization Note Two printed defects are repaired. (i) The printed (3.4) reads λ(di−d)/(d−1)\lambda^{(d^i-d)/(d-1)}λ(di−d)/(d−1), which gives q1∗(∞)=1q^*_1(\infty)=1q1∗​(∞)=1 and is not the fixed point of (3.3); the statement uses λ(di−1)/(d−1)\lambda^{(d^i-1)/(d-1)}λ(di−1)/(d−1) (PowerTwoChoices.Limit.fixedPoint). (ii) "For each fixed NNN, the Markov process is ergodic" is asserted for all N≥N0N\ge N_0N≥N0​, as Theorem 4.8(i) proves; for small NNN it can fail. Weak convergence in Skorohod J1J_1J1​ to a continuous deterministic path, and weak convergence to a constant, are rendered as convergence in probability. Ergodicity is rendered as existence and uniqueness of a stationary distribution of the uniformised chain. The process is any realisation, for N≥1N\ge1N≥1, of the uniformised chain (IsLBProcess with jsqdRoute); the solution of (3.3) is any Y\mathcal YY-valued IsTrajectory. Both quantifications are over nonempty classes: the chain can be realised by Ionescu-Tulcea with an independent i.i.d. exponential clock, and (3.3) has a Y\mathcal YY-valued solution from every point of Y\mathcal YY. ∥⋅∥1\|\cdot\|_1∥⋅∥1​ is l1dist, which includes coordinate 000, equal to 111 on both sides.

Preamble
import Mathlib
import Definitions.Def_StrictCompatLB_MeanField_Model

open Filter Topology MeasureTheory
open scoped ENNReal
Formal statement
namespace StrictCompatLB.MeanField

/-- Theorem 3.4 (p. 12), with the fixed point (3.4) corrected to `q*_i(∞) = λ^{(d^i−1)/(d−1)}` and
ergodicity asserted for all large `N`. Let `0 < λ < 1`, `d ≥ 2`, and let `{G_N}` be a
proportionally sparse sequence of connected graphs.
1. (Process level.) If `q*(0) ∈ 𝒴` and `‖q(Φ(G_N, 0)) − q*(0)‖₁ → 0`, then for every `𝒴`-valued
   solution `q*` of (3.3) with this initial value, every `T ≥ 0` and `ε > 0`,
   `P(sup_{t ∈ [0,T]} ‖q(Φ(G_N, t)) − q*(t)‖₁ ≥ ε) → 0` under JSQ(d).
2. (Steady state.) If moreover `{G_N}` satisfies the subcriticality condition, then there is
   `N₀` such that the JSQ(d) chain on `G_N` has a unique stationary distribution `π_N` for
   every `N ≥ N₀`, and `π_N(‖q − q*(∞)‖₁ ≥ ε) → 0` for every `ε > 0`. -/
theorem meanfield_limit_and_steady_state (lam : ℝ) (hlam0 : 0 < lam) (hlam1 : lam < 1)
    (d : ℕ) (hd : 2 ≤ d)
    (M : ℕ → ℕ) (hM : ∀ N, 0 < M N) (G : (N : ℕ) → Finset (Fin N × Fin (M N)))
    (hconn : IsConnectedSeq M G) (hsparse : IsPropSparse M G) :
    (∀ (z₀ : (N : ℕ) → Fin N → ℕ) (q₀ : ℕ → ℝ), InY q₀ →
      Tendsto (fun N => PowerOfDUniversality.Fluid.l1dist (occ (z₀ N)) q₀) atTop (𝓝 0) →
      ∀ s : ℝ → ℕ → ℝ, PowerTwoChoices.Limit.IsTrajectory lam d s →
        (∀ t : ℝ, 0 ≤ t → InY (s t)) → s 0 = q₀ →
        ∀ (Ω : Type) [MeasurableSpace Ω] (P : Measure Ω)
          (Y : (N : ℕ) → ℕ → Ω → (Fin N → ℕ)) (τ : ℕ → ℕ → Ω → ℝ),
          (∀ N, 1 ≤ N → IsLBProcess P lam M N (jsqdRoute M G N d) (z₀ N) (Y N) (τ N)) →
          ∀ T : ℝ, 0 ≤ T → ∀ ε : ℝ, 0 < ε →
            Tendsto (fun N => P {ω | ENNReal.ofReal ε ≤
                PowerOfDUniversality.Fluid.supDistL1 (occPath (Y N) (τ N) ω) s T})
              atTop (𝓝 0)) ∧
    (IsSubcritical d M G →
      ∃ N₀ : ℕ, (∀ N ≥ N₀, ∃! π : (Fin N → ℕ) → ℝ, IsStationary (jsqdKernel lam d M G N) π) ∧
        ∀ π : (N : ℕ) → (Fin N → ℕ) → ℝ,
          (∀ N ≥ N₀, IsStationary (jsqdKernel lam d M G N) (π N)) →
          ∀ ε : ℝ, 0 < ε →
            Tendsto (fun N => probOf (π N) {z | ENNReal.ofReal ε ≤
                PowerOfDUniversality.Fluid.l1dist (occ z) (PowerTwoChoices.Limit.fixedPoint lam d)})
              atTop (𝓝 0)) := by sorry

end StrictCompatLB.MeanField
Source
Rutten & Mukherjee, Load Balancing Under Strict Compatibility Constraints, arXiv:2008.07562v2, p. 12, Theorem 3.4, (3.3), (3.4); pp. 8–9, §2 (model)
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 15, 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