Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 1, p. 703 — interchanging J_j and J_k does not increase total tardiness

Proved
EmmonsTardiness.SPT.interchange_le

by mikedeng1 · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

interchangep2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingtardiness

Let JJJ be a finite set of SPT-indexed jobs with nonnegative processing times pip_ipi​ and due dates did_idi​. Let Jj,Jk∈JJ_j, J_k \in JJj​,Jk​∈J with j<kj<kj<k, and let B⊆JB\subseteq JB⊆J be a set of jobs. Suppose that

dj≤max⁡(∑i∈Bpi+pk, dk).d_j \le \max\Big(\sum_{i\in B} p_i + p_k,\ d_k\Big).dj​≤max(i∈B∑​pi​+pk​, dk​).

Let lll be a schedule of JJJ in which every job of BBB precedes JkJ_kJk​, and JkJ_kJk​ precedes JjJ_jJj​. Let l∗l^{\ast}l∗ be the schedule obtained from lll by interchanging JjJ_jJj​ and JkJ_kJk​. Then

  1. l∗l^{\ast}l∗ is a schedule of JJJ;
  2. every job of BBB precedes JkJ_kJk​ in l∗l^{\ast}l∗;
  3. JjJ_jJj​ precedes JkJ_kJk​ in l∗l^{\ast}l∗;
  4. the total tardiness does not increase: T(l∗)≤T(l)T(l^{\ast}) \le T(l)T(l∗)≤T(l).

This is the claim on which Emmons's proof of Theorem 1 rests: in a schedule that satisfies hypothesis (1) and places JkJ_kJk​ before JjJ_jJj​, the interchange "must decrease, or possibly leave unchanged, the total tardiness".

Formalization Note The interchange is the list obtained by applying the transposition of jjj and kkk to every entry of lll. Processing times are assumed nonnegative (they are durations; the page uses that the start time of JkJ_kJk​ is at least ∑Bpi\sum_{B} p_i∑B​pi​). Conclusions 1–3 are the bookkeeping that the interchanged schedule keeps the properties already established. The reduction di<∑Jpid_i < \sum_J p_idi​<∑J​pi​ of p. 703 is not assumed.

Preamble
import Mathlib
import Definitions.Def_MooreLateJobs_Shared_completionTime
import Definitions.Def_EmmonsTardiness_SPT_Model
Formal statement
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
Source
Emmons, One-Machine Sequencing to Minimize Certain Functions of Job Tardiness, Operations Research 17(4), 1969, https://doi.org/10.1287/opre.17.4.701, p. 703, proof of Theorem 1, first paragraph (argued through cases (a), (b) and Fig. 1, pp. 703–704)
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 4, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me