Section 2, Theorem — all jobs can be on time under iff they are on time in order of increasing
ProvedLawlerMoore.PrecDeadline.theorem_modified_deadlinesSuppose jobs are to be processed by a single machine. Job requires units of processing time and has a deadline . Precedence constraints are given by a partial order on the jobs (reflexive, antisymmetric, transitive): if with , job must precede job . The jobs are numbered so that implies . For let
where is a small positive number: and whenever . A sequence lists every job exactly once; the machine starts at time and processes the jobs in that order without idle time, and denotes the completion time of job in sequence .
Theorem (Lawler–Moore, §2). Let be the sequence obtained by ordering the jobs according to increasing values of . Then
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 , which depends only on the deadlines and on , 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 is the paper's job ; the tie-break uses ). Sequences and completion times are the published MooreLateJobs.Shared.IsSchedule and completionTime (start at time , no idle time; idle time never helps meet a deadline); "consistent with the given precedence constraints" is the published LawlerPrec.MinMax.IsFeasible. The sequence is quantified as any duplicate-free list of all jobs along which strictly increases; under the hypotheses the are pairwise distinct, so exactly one such list exists. Explicit readings: " is a small number" as together with 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 observes (that is a separate milestone).
import Mathlib import Definitions.Def_MooreLateJobs_Shared_completionTime import Definitions.Def_LawlerPrec_MinMax_IsFeasible import Definitions.Def_LawlerMoore_PrecDeadline_modifiedDeadline
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.