PROOF, p. 689, relation (2) — in case (b2) the SRPT reassignment strictly reduces min[C(k), C(j)]
ProvedSchrageSRPT.Opt.srpt_reassign_min_ltLet be a schedule of an arrival stream, let , , and let be two jobs in system at time under such that
- job is processed throughout : for (condition (b2));
- has the shorter remaining time at : (condition (a));
- at least one of completes under : .
Let be the SRPT reassignment of the pair after time (from on, the pair's capacity goes to until has received , then to ). Then
This is relation (2) of the letter's PROOF: when the processor serves a job with longer remaining time while a shorter one waits, swapping their service makes the first of the two completions strictly earlier.
Formalization Note. Condition (a) of the letter requires for all ; only is used, which makes the statement stronger. Hypothesis 3 is added: if neither job completes under , both minima can be and the strict inequality fails. That is a schedule follows from the hypotheses and is not assumed. Completion times take values in .
import Mathlib import Definitions.Def_SchrageSRPT_Opt_Model
namespace SchrageSRPT.Opt
theorem srpt_reassign_min_lt (A P : ℕ → ℝ) (δo : ℕ → ℝ → ℝ) (hδo : IsSchedule A δo)
(j k : ℕ) (t v : ℝ) (hv : 0 < v) (hjk : j ≠ k)
(hj : j ∈ inSystem A P δo t) (hk : k ∈ inSystem A P δo t)
(hk_served : ∀ x ∈ Set.Icc t (t + v), δo k x = 1)
(hS : remaining A P δo j t < remaining A P δo k t)
(hfinite : min (completion A P δo k) (completion A P δo j) ≠ ⊤) :
min (completion A P (srptReassign A P δo j k t) k)
(completion A P (srptReassign A P δo j k t) j) <
min (completion A P δo k) (completion A P δo j) := by sorry
end SchrageSRPT.Opt
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.