§II and §VI — least-slack dispatch, due-date window and population envelopes
DefinitionReentrantScheduling_FBFS_Supplement_LeastSlackLet be a finite reentrant flow line and let be a raw run of its parts. A part has release time and due date ; buffer has a fixed real estimate . Its slack there is
At every nonnegative service start, the selected part has no greater slack than any waiting part at the same center. Equal slack allows arbitrary choices. Physical precedence, shared machine capacity and nonidling hold, but there is no FIFO restriction: a part may overtake another in the same buffer. The due-date window is for every part.
The all-time population envelope is and the asymptotic envelope is , where the published includes waiting and in-service parts. These quantities use extended nonnegative reals and preserve infinite counts. This extension provides the statement vocabulary for Theorem 4.
Formalization Note The immutable published Line and raw Run are reused. Buffers are 0-based, times use , and counts use encard. Initial parts may have residual service at time zero. The inherited Line requires strictly positive processing times, a disclosed pin absent from the printed standing assumptions; zero processing times are outside this representation. The initial-count witness in Theorem 4 always exists because raw runs have finitely many releases by each finite time.
import Mathlib
import Definitions.Def_ReentrantScheduling_FBFS_Model
namespace ReentrantScheduling.FBFS.Supplement
/-- The due-date window (16), imposed on every part, including the initial parts. -/
def DueWindow {L : Line} (R : Run L) (δ : R.Part → ℝ) (γ₁ γ₂ : ℝ) : Prop :=
∀ p, -γ₁ ≤ δ p - R.α p ∧ δ p - R.α p ≤ γ₂
/-- Least-slack dispatch (§II, p. 1408), with physical nonpreemptive service.
The raw published Run is reused. No head-of-buffer or line-order constraint is imposed:
LS can overtake within a buffer. Equal slack permits any choice, including simultaneous starts.
The buffers are 0-based. Initial service can have a negative start and positive residual time. -/
structure LSAdmissible {L : Line} (R : Run L) (δ : R.Part → ℝ)
(ζ : Fin L.l → ℝ) : Prop where
precedence : ∀ p i, R.entry p ≤ i →
(R.arrive p i ≤ R.start p i ∨
(R.initial p ∧ i = R.entry p ∧ ((-(L.τ i) : ℝ) : WithTop ℝ) < R.start p i ∧
R.start p i ≤ ((0 : ℝ) : WithTop ℝ)))
capacity : ∀ σ (t : ℝ), 0 ≤ t → (R.busySlots σ t).encard ≤ L.m σ
nonidling : ∀ σ (t : ℝ), 0 ≤ t →
(∃ p i, L.center i = σ ∧ R.Waiting p i t) →
(R.busySlots σ t).encard = L.m σ
leastSlack : ∀ p i (t : ℝ), 0 ≤ t → R.entry p ≤ i →
R.start p i = (t : WithTop ℝ) →
∀ q j, L.center j = L.center i → R.Waiting q j t → δ p - ζ i ≤ δ q - ζ j
/-- All-time population supremum, over nonnegative real time, in a complete order.
The count is the published x(t), including parts in service; infinite values are preserved. -/
noncomputable def populationSup {L : Line} (R : Run L) : ENNReal :=
⨆ t : {t : ℝ // 0 ≤ t}, ((R.x t.1 : ℕ∞) : ENNReal)
/-- Asymptotic population in the same complete order. No real-valued supremum fallback is used. -/
noncomputable def populationLimsup {L : Line} (R : Run L) : ENNReal :=
Filter.limsup (fun t : ℝ => ((R.x t : ℕ∞) : ENNReal)) Filter.atTop
end ReentrantScheduling.FBFS.Supplement