PROOF, p. 689, case (b1) — processing an idle-waiting job j over an idle interval reduces C(j) and leaves every other C(i) unchanged
ProvedSchrageSRPT.Opt.idle_fill_improvesLet be a schedule of an arrival stream , let and , and let be a job in system at time under . Suppose that over the interval
- job is not processed: for ;
- the processor is idle with respect to the jobs in system (condition (b1)): for every and ;
and that completes under , i.e. . Let be the revised schedule that processes throughout and agrees with elsewhere. Then
This is the first case of the letter's interchange argument: a schedule that leaves the processor idle while a job is waiting can be improved.
Formalization Note. The letter's condition (a) also requires for the jobs in system; that clause is not needed in case (b1) and is omitted, which makes the statement stronger. The hypothesis is added: if never completes under it need not complete under either, and " can be reduced" has no content. The revised schedule switches every other job off on so that it is again a schedule; this only removes service from jobs that have already completed, so it does not change their completion times. That the revision is a schedule follows from the hypotheses and is not assumed.
import Mathlib import Definitions.Def_SchrageSRPT_Opt_Model
namespace SchrageSRPT.Opt
theorem idle_fill_improves (A P : ℕ → ℝ) (δo : ℕ → ℝ → ℝ) (hδo : IsSchedule A δo)
(j : ℕ) (t v : ℝ) (hv : 0 < v) (hj : j ∈ inSystem A P δo t)
(hj_idle : ∀ x ∈ Set.Icc t (t + v), δo j x = 0)
(hb1 : ∀ x ∈ Set.Icc t (t + v), ∀ k ∈ inSystem A P δo x, δo k x = 0)
(hCj : completion A P δo j ≠ ⊤) :
completion A P (idleFill δo j t v) j < completion A P δo j ∧
∀ i, i ≠ j → completion A P (idleFill δo j t v) i = completion A P δo i := by sorry
end SchrageSRPT.Opt
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.