Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 5 — on-time jobs in deadline order, then the tardy jobs in arbitrary order

Proved
LawlerMoore.WeightedTardy.ontime_edd_then_tardy

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

deadlinesp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingweighted-tardy-jobs

Consider nnn jobs on a single machine with nonnegative integer processing times aj′a'_jaj′​, nonnegative integer deadlines djd_jdj​ and penalties pj≥0p_j \ge 0pj​≥0, and let W(σ)W(\sigma)W(σ) be the weighted number of tardy jobs of a sequence σ\sigmaσ (the sum of pjp_jpj​ over the jobs completed after their deadlines).

Let σ\sigmaσ be any sequence of all the jobs, and let EEE be the set of jobs that are on time in σ\sigmaσ. Then there is an ordering ε\varepsilonε of EEE in nondecreasing order of deadlines such that, for every sequence of the form

σ′=(ε,λ),\sigma' = (\varepsilon, \lambda),σ′=(ε,λ),

in which λ\lambdaλ lists the remaining (tardy) jobs in an arbitrary order,

  1. every job of EEE is on time in σ′\sigma'σ′, and
  2. W(σ′)≤W(σ)W(\sigma') \le W(\sigma)W(σ′)≤W(σ).

This is the structural observation of Section 5: one can assume that the on-time jobs are sequenced in order of their deadlines, with the tardy jobs following them in arbitrary order, so that the problem reduces to choosing the set of on-time jobs.

Formalization Note Jobs are Fin n; sequences are lists, and a schedule is a duplicate-free list of all jobs (IsSchedule Finset.univ). Tardiness is the published lateSet (strictly Cj>djC_j > d_jCj​>dj​). The penalties are assumed nonnegative ("a penalty pjp_jpj​ is exacted"), which the inequality needs. No ordering of the job indices by deadline is assumed here.

Preamble
import Mathlib
import Definitions.Def_MooreLateJobs_Shared_completionTime
import Definitions.Def_MooreLateJobs_NumLate_lateSet
import Definitions.Def_LawlerMoore_WeightedTardy_weightedTardy
Formal statement
namespace LawlerMoore.WeightedTardy

open MooreLateJobs.Shared MooreLateJobs.NumLate

/-- §5 (p. 79): the on-time jobs of any sequence `l`, sequenced in order of their deadlines and
followed by the tardy jobs in arbitrary order, stay on time, and the weighted number of tardy
jobs does not increase (penalties `p j ≥ 0`). -/
theorem ontime_edd_then_tardy {n : ℕ} (a' d : Fin n → ℕ) (p : Fin n → ℝ)
    (hp : ∀ j, 0 ≤ p j) (l : List (Fin n)) (hl : IsSchedule Finset.univ l) :
    ∃ E : List (Fin n),
      E.Nodup ∧
      (∀ j, j ∈ E ↔ j ∉ lateSet (fun i => (a' i : ℝ)) (fun i => (d i : ℝ)) l) ∧
      E.Pairwise (fun i j => d i ≤ d j) ∧
      ∀ L : List (Fin n), IsSchedule Finset.univ (E ++ L) →
        (∀ j ∈ E, j ∉ lateSet (fun i => (a' i : ℝ)) (fun i => (d i : ℝ)) (E ++ L)) ∧
        weightedTardy a' d p (E ++ L) ≤ weightedTardy a' d p l := by sorry

end LawlerMoore.WeightedTardy
Source
Lawler, Moore, A Functional Equation and Its Application to Resource Allocation and Sequencing Problems, Management Sci. 16 (1969), p. 79, Section 5
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