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}
ProvedLLMThroughput.TokenBudget.proposition_15Stability of the fluid model. Let with batch-time parameters satisfying Assumption 1. Let , and satisfy the load condition (eq. (36) = eq. (12))
Then there is a time such that every work-conserving fluid model solution satisfies for all , provided its request levels are nonnegative ( for ) and . 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 is chosen before the solution, as in Definition 14.
Differences from the source:
- correction: fluid model solutions satisfying (45)–(49), (52) → in addition for ; reason: without it the claim is false. Take , , , , and . This satisfies (45)–(49) and (52), with and . 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) → ; reason: typo; (60) on p. 41 has
- encoding: Definition 12, "the solution is differentiable at time " → each of the eight component functions is differentiable at ; reason: same condition, componentwise
- encoding: functions on → functions on with the equations imposed on ; reason: values at negative times are unconstrained and irrelevant; one-sided issues do not arise since regular points are
- generalization: , → arbitrary reals , ; reason: specializes to the model's means
- encoding: real, → and , , ; reason: integer slots force integer , and the other conditions only exclude undefined cases
import Mathlib import Definitions.Def_LLMThroughput_TokenBudget_Model import Definitions.Def_LLMThroughput_TokenBudget_Fluid
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.