Theorem 5 (corrected: positive service times) — IFBFS, ULBFS and CFLBFS delay stability
OpenReentrantScheduling.FBFS.Supplement.theorem5_multiple_stabilityConsider finitely many part types sharing finitely many service centers, with machines at center . Each type follows a finite nonempty route. Suppose , type- arrivals satisfy
and the combined load at each center satisfies
For every global buffer ranking in any of the three families IFBFS, ULBFS and CFLBFS, every admissible nonidling nonpreemptive run is stable:
IFBFS preserves each type's forward route globally. ULBFS concatenates whole reverse routes in any type order. CFLBFS permits any partition into forward types and contiguous reverse-route blocks, including empty sides. All three clauses appear in the Lean statement. Capacity counts all types sharing a center, and the bound includes initial parts and may depend on the run and its initial contents. This companion theorem extends the stability conclusion to interacting routes.
Formalization Note Each route uses the published raw Line and Run definitions. Types and buffers are 0-based, and never-served parts have infinite exit. Every rank and every CFLBFS partition is quantified over. The positive-time pin and within-type head-order convention are disclosed below.
Differences from the source:
- correction: Processing times in the printed setting have no explicit strict positivity hypothesis → Every processing time is strictly positive in the required immutable base Line; reason: The brief mandates the published Line and its disclosed positive-time pin; the source busy-period proof divides by a processing time (p. 1409). Zero processing times are excluded, not proved covered here
- encoding: Types, stages and global buffer positions are 1-based finite labels → Types and stages are Fin indices and the global ranking is a bijection onto consecutive 0-based ranks; reason: All finite routes and all global rankings remain represented
- reading: Head-of-buffer dispatch and the line order are implicit within each type → Each type inherits the published initial-first, deeper-initial-first and release-order FIFO convention; reason: This is the immutable base convention; it resolves simultaneous arrivals without imposing any order between different types
- encoding: Stability is (4) for every part of a multitype system → One nonnegative real Γ bounds exits of every type in WithTop ℝ; reason: Finitely many types allow a common maximum of their delay bounds; infinity is preserved until ruled out by the conclusion
import Mathlib import Definitions.Def_ReentrantScheduling_FBFS_Supplement_Policies
namespace ReentrantScheduling.FBFS.Supplement
/-- Theorem 5, p. 1414: all global IFBFS, ULBFS, and CFLBFS rankings are stable. -/
theorem theorem5_multiple_stability (N : MultipleLines) (lam γ : Fin N.P → ℝ)
(hlam : ∀ p, 0 ≤ lam p) (hγ : ∀ p, 0 ≤ γ p) (hload : N.BelowCapacity lam)
(R : MultipleRun N) (harr : R.Arrivals lam γ) (β : N.Ranking) :
(N.IFBFS β → R.Admissible (fun a => (β a).val) → R.Stable) ∧
(N.ULBFS β → R.Admissible (fun a => (β a).val) → R.Stable) ∧
(∀ P_L : Set (Fin N.P), N.CFLBFS β P_L →
R.Admissible (fun a => (β a).val) → R.Stable) := by sorry
end ReentrantScheduling.FBFS.Supplement