Lemma 11, p. 38 (corrected: departure order only; the prefill-completion clause is false) — under work-conserving K-FCFS, a request departs only after every request at least K′ older
ProvedLLMThroughput.TokenBudget.lemma_11Bounded overtaking in departure order. Fix , the size bounds and the token budget . Then there is a finite constant , depending only on these four numbers, with the following property. Take any batch-time parameters satisfying Assumption 1 and any work-conserving K-FCFS scheduling algorithm. Let requests arrive in arbitrary numbers with sizes and , into a system that starts empty, with requests labelled in arrival order. Then for all labels with
if request is in the system at the beginning of slot and departs at the end of slot , then request departed before slot .
In words: a request cannot leave the system before every request that arrived at least positions earlier has left. Bounded overtaking couples the cumulative token counts with the cumulative completed requests (eq. (44)), which is what the fluid-limit argument needs.
Formalization Note "Departed" means the label has been issued and is no longer in the state. The claim holds for every deterministic sequence of arrival counts and sizes within the bounds, and so for every sample path of the random model. The constant is chosen before the batch-time parameters, the algorithm and the sample path.
Differences from the source:
- correction: for each phase → only (departure order); reason: the prefill clause is false. Take , , , and all sizes , with requests arriving in the first slot. The policy "one prefill token of the newest request still in prefill, otherwise one decode token of the oldest request" is a work-conserving K-FCFS scheduling algorithm, and it completes prefill in the order , so for every some request completes prefill before one positions older
- reading: "request can complete phase only if every request has already completed phase " → if is present at the start of slot and gone at the start of slot , then is gone at the start of slot ; reason: the strict reading of "already" (before , not in the same batch), which implies the non-strict one
- reading: requests indexed by global arrival time, initial state unspecified → the run starts from the empty system and labels its arrivals ; reason: every state of the paper's state space is reached from the empty system, and a run from such a state continues a run from empty with the arrival sequences concatenated, so the two statements are equivalent. From an arbitrary state with a large gap between the labels of present requests, the conclusion fails
- generalization: random i.i.d. arrival counts and sizes → every deterministic sequence of arrival counts and of sizes within the bounds; reason: the statement is pathwise and specializes to every sample path
- generalization: the policy is a function of the labelled state (5) → a function of the state (5) together with the next arrival label, with the defining conditions required at every admissible state; reason: more policies are covered, and the paper's policies ignore the extra field and extend from the reachable states
- encoding: in the K-FCFS condition and → and on 0-based labels; reason: avoids natural-number subtraction; same instances
- encoding: feasibility (6a)–(6d) → (6a)–(6d) plus ; reason: implicit in "unprocessed decode tokens"
- encoding: real, → and , , ; reason: integer slots force integer , and the other conditions only exclude undefined cases
import Mathlib import Definitions.Def_LLMThroughput_TokenBudget_Model
namespace LLMThroughput.TokenBudget
theorem lemma_11 (K vpmax vdmax bmax : ℕ) :
∃ K' : ℕ, ∀ (P : Params), P.bmax = bmax → P.Valid →
∀ π : Policy, IsScheduler P π → IsWorkConserving P π → IsKFCFS P K π →
∀ (a : ℕ → ℕ) (v : ℕ → ℕ × ℕ),
(∀ i, 1 ≤ (v i).1 ∧ (v i).1 ≤ vpmax ∧ 1 ≤ (v i).2 ∧ (v i).2 ≤ vdmax) →
∀ (n i j : ℕ), i + K' ≤ j →
Present (run P π State.empty a v n) j →
Departed (run P π State.empty a v (n + 1)) j →
Departed (run P π State.empty a v n) i := by sorry
end LLMThroughput.TokenBudget
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.