Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 15, p. 40 (corrected: fluid levels Z_f ≥ 0) — the work-conserving LLM fluid model is stable under λ(m_p + m_d) < b_max/t_{b_max}

Proved
LLMThroughput.TokenBudget.proposition_15

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

fluid-modellyapunovp2o-batch-pfp2ap2o-correctedp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1stability

Stability of the fluid model. Let κ=bmax⁡/tbmax⁡\kappa=b_{\max}/t_{b_{\max}}κ=bmax​/tbmax​​ with batch-time parameters satisfying Assumption 1. Let λ≥0\lambda\ge 0λ≥0, mp>0m_p>0mp​>0 and md>0m_d>0md​>0 satisfy the load condition (eq. (36) = eq. (12))

λ(mp+md)<bmax⁡tbmax⁡.\lambda(m_p+m_d)<\frac{b_{\max}}{t_{b_{\max}}}.λ(mp​+md​)<tbmax​​bmax​​.

Then there is a time δ>0\delta>0δ>0 such that every work-conserving fluid model solution (Bf,Ff,Wf,Zf)f∈{p,d}(B_f,F_f,W_f,Z_f)_{f\in\{p,d\}}(Bf​,Ff​,Wf​,Zf​)f∈{p,d}​ satisfies Zp(t)=Zd(t)=0Z_p(t)=Z_d(t)=0Zp​(t)=Zd​(t)=0 for all t≥δt\ge\deltat≥δ, provided its request levels are nonnegative (Zp(t),Zd(t)≥0Z_p(t),Z_d(t)\ge 0Zp​(t),Zd​(t)≥0 for t≥0t\ge 0t≥0) and Zp(0)+Zd(0)≤1Z_p(0)+Z_d(0)\le 1Zp​(0)+Zd​(0)≤1. Here a work-conserving fluid model solution is one that satisfies eqs. (45)–(49) and (52), as in Definition 13.

This is the stability of the fluid model (Definition 14) under the load condition. In the fluid-limit approach it is the deterministic step from which positive recurrence of the stochastic model is derived.

Formalization Note The scheduling algorithm enters the fluid model only through eq. (52), so the statement quantifies over all work-conserving fluid model solutions. The time δ\deltaδ is chosen before the solution, as in Definition 14.

Differences from the source:

  • correction: fluid model solutions satisfying (45)–(49), (52) → in addition Zp(t),Zd(t)≥0Z_p(t),Z_d(t)\ge 0Zp​(t),Zd​(t)≥0 for t≥0t\ge 0t≥0; reason: without it the claim is false. Take mp=md=1m_p=m_d=1mp​=md​=1, λ=1/4\lambda=1/4λ=1/4, κ=1\kappa=1κ=1, Z(0)=0Z(0)=0Z(0)=0, Bp(t)=tB_p(t)=tBp​(t)=t and Bd≡0B_d\equiv 0Bd​≡0. This satisfies (45)–(49) and (52), with Zp(t)=−3t/4Z_p(t)=-3t/4Zp​(t)=−3t/4 and Zd(t)=t≠0Z_d(t)=t\ne 0Zd​(t)=t=0. The fluid limits it is meant for are nonnegative by (39)–(42)
  • encoding: "under any work-conserving, K-FCFS algorithm" → every work-conserving fluid model solution (Definition 13); reason: the algorithm appears in the fluid model only through (52)
  • encoding: eq. (48) Ff(t)=1mfBf(f)F_f(t)=\frac1{m_f}B_f(f)Ff​(t)=mf​1​Bf​(f) → Ff(t)=Bf(t)/mfF_f(t)=B_f(t)/m_fFf​(t)=Bf​(t)/mf​; reason: typo; (60) on p. 41 has Bf(t)B_f(t)Bf​(t)
  • encoding: Definition 12, "the solution is differentiable at time ttt" → each of the eight component functions is differentiable at t>0t>0t>0; reason: same condition, componentwise
  • encoding: functions on R+\mathbb R_+R+​ → functions on R\mathbb RR with the equations imposed on [0,∞)[0,\infty)[0,∞); reason: values at negative times are unconstrained and irrelevant; one-sided issues do not arise since regular points are t>0t>0t>0
  • generalization: λ=E[a1]\lambda=E[a_1]λ=E[a1​], mf=E[vf(1)]≥1m_f=E[v_f(1)]\ge 1mf​=E[vf​(1)]≥1 → arbitrary reals λ≥0\lambda\ge 0λ≥0, mp,md>0m_p,m_d>0mp​,md​>0; reason: specializes to the model's means
  • encoding: a,c≥0a,c\ge 0a,c≥0 real, b0∣bmax⁡b_0\mid b_{\max}b0​∣bmax​ → a,c∈Na,c\in\mathbb Na,c∈N and 1≤b01\le b_01≤b0​, 1≤bmax⁡1\le b_{\max}1≤bmax​, 1≤tbmax⁡1\le t_{b_{\max}}1≤tbmax​​; reason: integer slots force integer a,ca,ca,c, and the other conditions only exclude undefined cases
Preamble
import Mathlib
import Definitions.Def_LLMThroughput_TokenBudget_Model
import Definitions.Def_LLMThroughput_TokenBudget_Fluid
Formal statement
namespace LLMThroughput.TokenBudget

theorem proposition_15 (P : Params) (hP : P.Valid) (lam mp md : ℝ) (hlam : 0 ≤ lam)
    (hmp : 0 < mp) (hmd : 0 < md)
    (hload : lam * (mp + md) < (P.bmax : ℝ) / (P.t P.bmax : ℝ)) :
    ∃ δ : ℝ, 0 < δ ∧
      ∀ s : FluidPath, IsWCFluidSolution lam mp md ((P.bmax : ℝ) / (P.t P.bmax : ℝ)) s →
        (∀ t, 0 ≤ t → 0 ≤ s.Zp t ∧ 0 ≤ s.Zd t) →
        s.Zp 0 + s.Zd 0 ≤ 1 →
        ∀ t, δ ≤ t → s.Zp t = 0 ∧ s.Zd t = 0 := by sorry

end LLMThroughput.TokenBudget
Source
Dai, Deng, Li & Peng, Throughput-Optimal Scheduling Algorithms for LLM Inference and AI Agents, arXiv:2504.07347v3, p. 40, Proposition 15; fluid model (45)–(49), (52) and Definitions 12–14, pp. 39–40; load condition (36), p. 36
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

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