PROOF, p. 689 — reassigning jobs j and k over σ leaves max{C(k), C(j)} unchanged
ProvedSchrageSRPT.Opt.max_completion_eqLet and be two schedules of the same arrival stream, let , and let be two jobs in system at time under . Suppose that
- agrees with on and on before time ;
- gives the pair the same capacity as : for all ;
- neither schedule processes or once that job has no remaining processing time: implies for and .
Then the later of the two completion times is the same under both schedules:
In the letter's words, "regardless of how and are scheduled over , the last job will always finish at the same time". It is relation (3) of the letter's PROOF.
Formalization Note. The statement holds for every reassignment of the pair's capacity, not only the SRPT one, as the letter says. Hypothesis 3 is added: the letter's identity fails if a schedule spends capacity on a job that has already completed. The letter does not require other jobs to be unchanged for this identity, and neither does the statement. Completion times take values in .
import Mathlib import Definitions.Def_SchrageSRPT_Opt_Model
namespace SchrageSRPT.Opt
theorem max_completion_eq (A P : ℕ → ℝ) (δo δr : ℕ → ℝ → ℝ)
(hδo : IsSchedule A δo) (hδr : IsSchedule A δr) (j k : ℕ) (t : ℝ) (hjk : j ≠ k)
(hj : j ∈ inSystem A P δo t) (hk : k ∈ inSystem A P δo t)
(hbefore : ∀ x, x < t → δr j x = δo j x ∧ δr k x = δo k x)
(hsum : ∀ x, δr j x + δr k x = δo j x + δo k x)
(hwaste_o : ∀ i, (i = j ∨ i = k) → ∀ x, remaining A P δo i x ≤ 0 → δo i x = 0)
(hwaste_r : ∀ i, (i = j ∨ i = k) → ∀ x, remaining A P δr i x ≤ 0 → δr i x = 0) :
max (completion A P δo k) (completion A P δo j) =
max (completion A P δr k) (completion A P δr j) := by sorry
end SchrageSRPT.Opt
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.