Theorem 2.4 — unsplit decreasing- order without idle time, no task early, is minimal
ProvedMcNaughtonSched.SingleProc.ratio_order_minimal_of_no_earlyConsider tasks on a single processor. Task needs units of time, has deadline and penalty rate : completed at time , it incurs the loss . Let order the tasks by decreasing ratio , and let be the schedule that runs the tasks without splitting and without unused time in that order, task occupying . Suppose that in no task finishes before its deadline, i.e. for all . Then is a feasible schedule and it is minimal:
where denotes total loss and the competitors may split tasks and leave the processor idle.
The condition is sufficient but not necessary for minimality. It generalizes Theorem 2.3 (all deadlines ) and underlies the scheduling procedure the paper proposes for general deadlines.
Formalization Note "Decreasing" is non-increasing, with ties in any order. "Minimal" is stated against every feasible schedule; the conclusion also asserts that the sequenced schedule is feasible. (the are penalties) and (tasks take time) are the model's standing assumptions; no sign condition on the deadlines is imposed.
import Mathlib import Definitions.Def_McNaughtonSched_SingleProc_Model
namespace McNaughtonSched.SingleProc
theorem ratio_order_minimal_of_no_early {m : ℕ} (a p d : Fin m → ℝ)
(ha : ∀ i, 0 < a i) (hp : ∀ i, 0 ≤ p i)
(σ : Equiv.Perm (Fin m)) (hσ : InRatioOrder a p σ)
(hlate : ∀ i, d i ≤ completion (seqSchedule a σ) i) :
IsFeasible a (seqSchedule a σ) ∧
∀ S : Schedule m, IsFeasible a S →
totalLoss p d (seqSchedule a σ) ≤ totalLoss p d S := by sorry
end McNaughtonSched.SingleProc
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.