Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 2, Theorem — all jobs can be on time under ρ\rhoρ iff they are on time in order of increasing dˉj\bar d_jdˉj​

Proved
LawlerMoore.PrecDeadline.theorem_modified_deadlines

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

deadlinesp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1precedence-constraintsscheduling

Suppose nnn jobs are to be processed by a single machine. Job jjj requires aj≥0a_j \ge 0aj​≥0 units of processing time and has a deadline dj∈Rd_j \in \mathbb Rdj​∈R. Precedence constraints are given by a partial order ρ\rhoρ on the jobs (reflexive, antisymmetric, transitive): if iρji\rho jiρj with i≠ji \ne ji=j, job iii must precede job jjj. The jobs are numbered so that iρji\rho jiρj implies i≤ji \le ji≤j. For j=1,…,nj = 1,\dots,nj=1,…,n let

dˉj=min⁡{dk∣jρk}+jε,\bar d_j = \min\{d_k \mid j\rho k\} + j\varepsilon ,dˉj​=min{dk​∣jρk}+jε,

where ε\varepsilonε is a small positive number: ε>0\varepsilon > 0ε>0 and nε<dl−dkn\varepsilon < d_l - d_knε<dl​−dk​ whenever dk<dld_k < d_ldk​<dl​. A sequence lists every job exactly once; the machine starts at time 000 and processes the jobs in that order without idle time, and Cj(σ)C_j(\sigma)Cj​(σ) denotes the completion time of job jjj in sequence σ\sigmaσ.

Theorem (Lawler–Moore, §2). Let σ∗\sigma^*σ∗ be the sequence obtained by ordering the jobs according to increasing values of dˉj\bar d_jdˉj​. Then

(∃ σ consistent with ρ: Cj(σ)≤dj  ∀j)  ⟺  Cj(σ∗)≤dj  ∀j.\Big(\exists\, \sigma \text{ consistent with } \rho:\ C_j(\sigma) \le d_j \ \ \forall j\Big) \iff C_j(\sigma^*) \le d_j \ \ \forall j .(∃σ consistent with ρ: Cj​(σ)≤dj​  ∀j)⟺Cj​(σ∗)≤dj​  ∀j.

Each job can be completed on time, consistent with the precedence constraints, if and only if each job is on time in the single sequence σ∗\sigma^*σ∗, which depends only on the deadlines and on ρ\rhoρ, not on the processing times. Without precedence constraints this is Jackson's earliest-deadline rule. The feasibility question is thereby answered by evaluating one sequence.

Formalization Note Jobs are Fin n, 0-based (the Lean job jjj is the paper's job j+1j+1j+1; the tie-break uses j+1j+1j+1). Sequences and completion times are the published MooreLateJobs.Shared.IsSchedule and completionTime (start at time 000, no idle time; idle time never helps meet a deadline); "consistent with the given precedence constraints" is the published LawlerPrec.MinMax.IsFeasible. The sequence σ∗\sigma^*σ∗ is quantified as any duplicate-free list of all jobs along which dˉj\bar d_jdˉj​ strictly increases; under the hypotheses the dˉj\bar d_jdˉj​ are pairwise distinct, so exactly one such list exists. Explicit readings: "ε\varepsilonε is a small number" as ε>0\varepsilon > 0ε>0 together with nεn\varepsilonnε below every positive gap between deadlines; the processing times are assumed nonnegative, which the paper uses tacitly and which is necessary. As printed, the right-hand side does not itself assert that σ∗\sigma^*σ∗ observes ρ\rhoρ (that is a separate milestone).

Preamble
import Mathlib
import Definitions.Def_MooreLateJobs_Shared_completionTime
import Definitions.Def_LawlerPrec_MinMax_IsFeasible
import Definitions.Def_LawlerMoore_PrecDeadline_modifiedDeadline
Formal statement
namespace LawlerMoore.PrecDeadline

theorem theorem_modified_deadlines (n : ℕ) (a d : Fin n → ℝ) (ha : ∀ j, 0 ≤ a j)
    (ρ : Fin n → Fin n → Prop) [DecidableRel ρ]
    (hrefl : ∀ j, ρ j j)
    (hantisymm : ∀ i j, ρ i j → ρ j i → i = j)
    (htrans : ∀ i j k, ρ i j → ρ j k → ρ i k)
    (hnum : ∀ i j, ρ i j → i ≤ j)
    (ε : ℝ) (hε : 0 < ε) (hgap : ∀ k k', d k < d k' → (n : ℝ) * ε < d k' - d k)
    (l : List (Fin n)) (hl : MooreLateJobs.Shared.IsSchedule Finset.univ l)
    (hsorted : l.Pairwise (fun x y => modifiedDeadline ρ d ε x < modifiedDeadline ρ d ε y)) :
    (∃ l' : List (Fin n), LawlerPrec.MinMax.IsFeasible ρ Finset.univ l' ∧
        ∀ j, MooreLateJobs.Shared.completionTime a l' j ≤ d j) ↔
      ∀ j, MooreLateJobs.Shared.completionTime a l j ≤ d j := by sorry

end LawlerMoore.PrecDeadline
Source
Lawler, Moore, A Functional Equation and Its Application to Resource Allocation and Sequencing Problems, Management Sci. 16 (1969), p. 78, Section 2, Theorem
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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