Theorem 2(a), pp. 15–16 — above load b_max/t_{b_max} the token backlog diverges a.s. under every scheduler
ProvedLLMThroughput.TokenBudget.theorem_2_aConsider the basic LLM queueing model of §3.1: the batch processing time is (Assumption 1, , ); the arrival counts per slot are i.i.d. with finite mean ; the request sizes are i.i.d., independent of the arrivals, with values in and means . Write for the total number of unprocessed tokens at the beginning of slot .
Theorem 2(a) (instability). If
then for every (batch) scheduling algorithm and every admissible initial state,
This is part (a) of Theorem 2 of the source: is the largest token processing rate of any schedule, so above it no algorithm can keep up with the incoming work.
Formalization Note This is the first conjunct of LLMThroughput.TokenBudget.theorem_2, with the load hypothesis moved before the quantifiers; slots are 0-based, the policy is a function of the labelled state and is required to be feasible at every admissible scheduling instant, and almost-sure divergence is ∀ᵐ ω, Tendsto |X(n)| atTop atTop.
import Mathlib import Definitions.Def_LLMThroughput_TokenBudget_Model
namespace LLMThroughput.TokenBudget
open MeasureTheory ProbabilityTheory Filter Topology
theorem theorem_2_a {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
(P : Params) (hP : P.Valid) (vpmax vdmax : ℕ) (a : ℕ → Ω → ℕ) (v : ℕ → Ω → ℕ × ℕ)
(hA : IIDArrivals μ a v vpmax vdmax)
(hload : (P.bmax : ℝ) / (P.t P.bmax : ℝ) < arrivalRate μ a * (meanPrefill μ v + meanDecode μ v)) :
∀ π : Policy, IsScheduler P π → ∀ x : State, Admissible P.bmax x →
∀ᵐ ω ∂μ, Tendsto
(fun n => totalTokens (run P π x (fun m => a m ω) (fun i => v i ω) n)) atTop atTop := by sorry
end LLMThroughput.TokenBudget