Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma (Jackson) — a schedule with no late jobs exists iff every due-date ordering has none

Proved
MooreLateJobs.MaxDeferral.jackson

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

earliest-due-datep2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingsingle-machine

Let JJJ be a finite set of jobs with processing times tj≥0t_j\ge0tj​≥0 and due-dates Dj∈R∪{±∞}D_j\in\mathbb R\cup\{\pm\infty\}Dj​∈R∪{±∞}, processed on one machine starting at time 000. Then

∃ S schedule of J with no late jobs  ⟺  every schedule of J ordered by non-decreasing D has no late jobs.\exists\, S \text{ schedule of } J \text{ with no late jobs} \iff \text{every schedule of } J \text{ ordered by non-decreasing } D \text{ has no late jobs}.∃S schedule of J with no late jobs⟺every schedule of J ordered by non-decreasing D has no late jobs.

This is Jackson's lemma as used by Moore: the due-date (earliest-due-date) schedule decides feasibility. In the section on maximum deferral cost it is applied with the due-dates Di=Pi∗(y)D_i=P_i^*(y)Di​=Pi∗​(y), some of which are 000 or +∞+\infty+∞.

Formalization Note Two changes relative to the page, both generalizations. (i) Due-dates are extended reals; real due-dates, the page's setting, embed. (ii) The paper's standing assumption ti≤Dit_i\le D_iti​≤Di​ (p. 102) is not assumed: the deferral-cost problem has no given due-dates, and the lemma holds without it. The hypothesis tj≥0t_j\ge 0tj​≥0 (processing times are durations) is added; the page never writes it, and the lemma is false for negative times. Ties among equal due-dates are arbitrary: the right-hand side quantifies over every due-date ordering.

Preamble
import Mathlib
import Definitions.Def_MooreLateJobs_Shared_completionTime
import Definitions.Def_MooreLateJobs_MaxDeferral_NoLateAt
Formal statement
namespace MooreLateJobs.MaxDeferral

theorem jackson {ι : Type*} [DecidableEq ι] (J : Finset ι) (t : ι → ℝ) (D : ι → EReal)
    (ht : ∀ i ∈ J, 0 ≤ t i) :
    (∃ S : List ι, Shared.IsSchedule J S ∧ NoLate t D S) ↔
      ∀ S : List ι, Shared.IsSchedule J S → S.Pairwise (fun a b => D a ≤ D b) → NoLate t D S := by sorry

end MooreLateJobs.MaxDeferral
Source
Moore, An n Job, One Machine Sequencing Algorithm for Minimizing the Number of Late Jobs, Management Science 15(1), 1968, p. 105, Lemma (Jackson); used on p. 108 ("Jackson's lemma can now be used to find an optimal schedule")
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me