Proof of Theorem 1, p. 703 — interchanging J_j and J_k does not increase total tardiness
ProvedEmmonsTardiness.SPT.interchange_leLet be a finite set of SPT-indexed jobs with nonnegative processing times and due dates . Let with , and let be a set of jobs. Suppose that
Let be a schedule of in which every job of precedes , and precedes . Let be the schedule obtained from by interchanging and . Then
- is a schedule of ;
- every job of precedes in ;
- precedes in ;
- the total tardiness does not increase: .
This is the claim on which Emmons's proof of Theorem 1 rests: in a schedule that satisfies hypothesis (1) and places before , the interchange "must decrease, or possibly leave unchanged, the total tardiness".
Formalization Note The interchange is the list obtained by applying the transposition of and to every entry of . Processing times are assumed nonnegative (they are durations; the page uses that the start time of is at least ). Conclusions 1–3 are the bookkeeping that the interchanged schedule keeps the properties already established. The reduction of p. 703 is not assumed.
import Mathlib import Definitions.Def_MooreLateJobs_Shared_completionTime import Definitions.Def_EmmonsTardiness_SPT_Model
namespace EmmonsTardiness.SPT
open MooreLateJobs
/-- Emmons 1969, proof of Theorem 1, p. 703, first paragraph: in a schedule satisfying
hypothesis (1) (every job of `B` precedes `k`) in which `k` precedes `j`, interchanging `j` and
`k` does not increase total tardiness, provided `j < k` in the SPT indexing and hypothesis (2)
`d_j ≤ max(Σ_{i∈B} p_i + p_k, d_k)` holds. The interchanged sequence `l.map (Equiv.swap j k)` is
again a schedule of `J`, with `j` before `k` and every job of `B` still before `k`; these
companion facts are stated as the first three conjuncts. Processing times are assumed
nonnegative (an added, disclosed hypothesis: they are durations). -/
theorem interchange_le {ι : Type*} [LinearOrder ι] (p d : ι → ℝ) (J : Finset ι)
(hp : ∀ i ∈ J, 0 ≤ p i) (hidx : IsSPTIndexed p d J)
(j k : ι) (hj : j ∈ J) (hk : k ∈ J) (hjk : j < k)
(B : Finset ι) (hB : B ⊆ J)
(h2 : d j ≤ max ((∑ i ∈ B, p i) + p k) (d k))
(l : List ι) (hl : Shared.IsSchedule J l)
(hBl : ∀ i ∈ B, Precedes l i k) (hkj : Precedes l k j) :
Shared.IsSchedule J (l.map (Equiv.swap j k)) ∧
(∀ i ∈ B, Precedes (l.map (Equiv.swap j k)) i k) ∧
Precedes (l.map (Equiv.swap j k)) j k ∧
totalTardiness p d J (l.map (Equiv.swap j k)) ≤ totalTardiness p d J l := by sorry
end EmmonsTardiness.SPT
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.