PROOF, p. 689 — from (1)–(3): N_r(y) = N_o(y) − 1 for C_r(j) ≤ y < min[C_o(k), C_o(j)], and N_r(y) = N_o(y) otherwise
ProvedSchrageSRPT.Opt.num_in_system_of_completionsLet and be two schedules of the same arrival stream, in which only finitely many jobs arrive by any given time. Let be jobs such that
- for every ;
- ;
- ;
and is the first of the two to complete under : . Then for every time ,
This is the counting step of the letter's PROOF: it turns relations (1)–(3) on completion times into a comparison of the numbers of jobs in system, showing that the revised schedule has at most as many jobs in system at every time.
Formalization Note. The letter writes the interval as . At the job completing then under has already left the system (a job is in system on ), so the two counts are equal there; the statement uses the half-open interval. The difference is written in natural numbers. Local finiteness of arrivals is added so that is a genuine count. Completion times take values in .
import Mathlib import Definitions.Def_SchrageSRPT_Opt_Model
namespace SchrageSRPT.Opt
theorem num_in_system_of_completions (A P : ℕ → ℝ) (hfin : ∀ t : ℝ, {n | A n ≤ t}.Finite)
(δo δr : ℕ → ℝ → ℝ) (hδo : IsSchedule A δo) (hδr : IsSchedule A δr)
(j k : ℕ) (hjk : j ≠ k)
(h1 : ∀ i, i ≠ j → i ≠ k → completion A P δo i = completion A P δr i)
(h2 : min (completion A P δr k) (completion A P δr j) <
min (completion A P δo k) (completion A P δo j))
(h3 : max (completion A P δr k) (completion A P δr j) =
max (completion A P δo k) (completion A P δo j))
(hjr : completion A P δr j ≤ completion A P δr k) :
∀ y : ℝ,
(completion A P δr j ≤ (y : WithTop ℝ) ∧
(y : WithTop ℝ) < min (completion A P δo k) (completion A P δo j) →
numInSystem A P δr y + 1 = numInSystem A P δo y) ∧
(¬ (completion A P δr j ≤ (y : WithTop ℝ) ∧
(y : WithTop ℝ) < min (completion A P δo k) (completion A P δo j)) →
numInSystem A P δr y = numInSystem A P δo y) := by sorry
end SchrageSRPT.Opt
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.