Theorem 2.1 — after both deadlines, doing (i) before (j) loses less when
ProvedMcNaughtonSched.SingleProc.pair_interchangeLet and be two tasks with processing times , penalties and deadlines , and write , . Suppose the two tasks occupy the consecutive units of time starting at a time with and . With the loss on task completed at time : if , then
The left side is the loss on and when is done first, the right side when is done first.
This is the adjacent-interchange step on which the ratio rule rests: after both deadlines have passed, swapping two consecutive tasks into order of decreasing strictly lowers their joint loss.
Formalization Note Only the two tasks' own losses are compared; the common loss "computed as far as time " in the paper cancels. No sign condition on the penalties is assumed (the page has none, and none is needed); is the model's standing assumption that tasks take time, needed for to be meaningful. The hypothesis forces .
import Mathlib import Definitions.Def_McNaughtonSched_SingleProc_Model
namespace McNaughtonSched.SingleProc
theorem pair_interchange {m : ℕ} (a p d : Fin m → ℝ) (i j : Fin m)
(hai : 0 < a i) (haj : 0 < a j) (hr : p j / a j < p i / a i)
(t : ℝ) (hdi : d i ≤ t) (hdj : d j ≤ t) :
taskLoss p d i (t + a i) + taskLoss p d j (t + a i + a j) <
taskLoss p d j (t + a j) + taskLoss p d i (t + a j + a i) := by sorry
end McNaughtonSched.SingleProc
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.