Section 6 — minimizing the weighted number of tardy jobs is equivalent to the prefix-constrained knapsack
ProvedLawlerMoore.WeightedTardy.equivalent_prefix_knapsackLet jobs on a single machine have nonnegative integer processing times , nonnegative integer deadlines numbered so that
and penalties . Let be the weighted number of tardy jobs of a sequence , and call a 0–1 vector prefix-feasible if for . Then
- for every sequence of the jobs there is a prefix-feasible with , and
- for every prefix-feasible there is a sequence with .
Consequently the minimum of over all sequences equals minus the maximum of over prefix-feasible : the weighted-tardy-jobs problem of Section 5 is equivalent to the knapsack-type problem
Formalization Note The paper says the two problems are "equivalent" after "a little manipulation"; this is made explicit as the two inequalities above, which together say the optimal values correspond. The deadline numbering ("ordering the jobs by deadlines", Section 5) is the hypothesis Monotone d on the job index; the penalties are nonnegative. Both are needed: without either, the equivalence fails on small instances.
import Mathlib import Definitions.Def_MooreLateJobs_Shared_completionTime import Definitions.Def_MooreLateJobs_NumLate_lateSet import Definitions.Def_LawlerMoore_WeightedTardy_weightedTardy import Definitions.Def_LawlerMoore_WeightedTardy_PrefixFeasible
namespace LawlerMoore.WeightedTardy
open MooreLateJobs.Shared
/-- §6 (p. 80): with the jobs numbered by deadline (`d` monotone) and penalties `p j ≥ 0`, the
problem of §5 is equivalent to the prefix-constrained knapsack problem: every sequence is matched
by a feasible `x` with `∑ p_j - ∑ p_j x_j` at most its weighted number of tardy jobs, and every
feasible `x` is matched by a sequence whose weighted number of tardy jobs is at most
`∑ p_j - ∑ p_j x_j`. -/
theorem equivalent_prefix_knapsack {n : ℕ} (a' d : Fin n → ℕ) (p : Fin n → ℝ)
(hp : ∀ j, 0 ≤ p j) (hd : Monotone d) :
(∀ l : List (Fin n), IsSchedule Finset.univ l →
∃ x : Fin n → Bool, PrefixFeasible a' d x ∧
(∑ j, p j) - knapValue p x ≤ weightedTardy a' d p l) ∧
(∀ x : Fin n → Bool, PrefixFeasible a' d x →
∃ l : List (Fin n), IsSchedule Finset.univ l ∧
weightedTardy a' d p l ≤ (∑ j, p j) - knapValue p x) := by sorry
end LawlerMoore.WeightedTardy
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.