Section 5 — on-time jobs in deadline order, then the tardy jobs in arbitrary order
ProvedLawlerMoore.WeightedTardy.ontime_edd_then_tardyConsider jobs on a single machine with nonnegative integer processing times , nonnegative integer deadlines and penalties , and let be the weighted number of tardy jobs of a sequence (the sum of over the jobs completed after their deadlines).
Let be any sequence of all the jobs, and let be the set of jobs that are on time in . Then there is an ordering of in nondecreasing order of deadlines such that, for every sequence of the form
in which lists the remaining (tardy) jobs in an arbitrary order,
- every job of is on time in , and
- .
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 ). The penalties are assumed nonnegative ("a penalty is exacted"), which the inequality needs. No ordering of the job indices by deadline is assumed here.
import Mathlib import Definitions.Def_MooreLateJobs_Shared_completionTime import Definitions.Def_MooreLateJobs_NumLate_lateSet import Definitions.Def_LawlerMoore_WeightedTardy_weightedTardy
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.