Proof of Theorem 2.4 — when no task of finishes early
ProvedMcNaughtonSched.SingleProc.loss_diff_ge_zero_deadline_diffConsider tasks on a single processor with processing times , penalties and deadlines . For a schedule let be its total loss, and let be the total loss of computed on the assumption that . Let be the schedule that processes the tasks without splits and without unused time in some order , and suppose no task finishes before its deadline in : for every . Then for every feasible schedule ,
This is the comparison in the proof of Theorem 2.4 that transfers the zero-deadline optimality of Theorem 2.3 to arbitrary deadlines.
Formalization Note The order is arbitrary here: the display needs only that no task of is early, not the ratio order. is the total loss with the zero deadline vector. and are the standing assumptions; ranges over all feasible schedules, not only unsplit ones.
import Mathlib import Definitions.Def_McNaughtonSched_SingleProc_Model
namespace McNaughtonSched.SingleProc
theorem loss_diff_ge_zero_deadline_diff {m : ℕ} (a p d : Fin m → ℝ)
(ha : ∀ i, 0 < a i) (hp : ∀ i, 0 ≤ p i)
(σ : Equiv.Perm (Fin m)) (hlate : ∀ i, d i ≤ completion (seqSchedule a σ) i)
(S' : Schedule m) (hS' : IsFeasible a S') :
totalLoss p 0 S' - totalLoss p 0 (seqSchedule a σ) ≤
totalLoss p d S' - totalLoss p d (seqSchedule a σ) := by sorry
end McNaughtonSched.SingleProc
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.