Corollary 1.4, p. 705 — the SPT schedule minimizes total tardiness if d_j + p_j ≤ p_1 + ⋯ + p_{j+1}
ProvedEmmonsTardiness.SPT.corollary_1_4Let be a finite set of jobs on one machine, with nonnegative processing times and due dates , indexed in order of nondecreasing processing times and, in case of equality, of nondecreasing due dates. The SPT schedule processes in this order. If
then the SPT schedule minimizes the total tardiness over all schedules of .
With the SPT completion time of , the condition reads . It contains the classical fact that the SPT schedule is optimal when every job is tardy under it, and it allows a job to be early as long as its due date does not exceed its SPT completion time by more than .
Formalization Note The SPT schedule lists the jobs in index order; the paper's 1-based job is the 0-based entry with , the sum is the completion time of position of , and the range is . Optimality is against every schedule of . Processing times are assumed nonnegative (added: they are durations). The reduction of p. 703 is not assumed, which makes the statement stronger. For or a single job the statement holds trivially.
import Mathlib import Definitions.Def_MooreLateJobs_Shared_completionTime import Definitions.Def_EmmonsTardiness_SPT_Model
namespace EmmonsTardiness.SPT
open MooreLateJobs
/-- Emmons 1969, Corollary 1.4, p. 705: the SPT schedule is optimal if
`d_j + p_j ≤ Σ_{i=1}^{j+1} p_i` for `j = 1, …, n − 1`.
Index translation: `L = sptSchedule J` lists the jobs `J_1, …, J_n` in index order, so the
paper's 1-based job `J_j` is the 0-based entry `L[m]` with `m = j − 1`; the right-hand side
`Σ_{i=1}^{j+1} p_i` is the SPT completion time of `J_{j+1}`, i.e. `completionAt p L (m + 1)` (the
sum of the first `m + 2 = j + 1` processing times); and the range `j = 1, …, n − 1` is
`m + 1 < L.length`. Processing times are assumed nonnegative (added, disclosed). The reduction
`d_i < Σ_J p` of p. 703 is not imposed. -/
theorem corollary_1_4 {ι : Type*} [LinearOrder ι] (p d : ι → ℝ) (J : Finset ι)
(hp : ∀ i ∈ J, 0 ≤ p i) (hidx : IsSPTIndexed p d J)
(hcond : ∀ (m : ℕ) (hm : m + 1 < (sptSchedule J).length),
d ((sptSchedule J)[m]'(by omega)) + p ((sptSchedule J)[m]'(by omega)) ≤
Shared.completionAt p (sptSchedule J) (m + 1)) :
IsOptimal p d J (sptSchedule J) := by sorry
end EmmonsTardiness.SPT
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.