Theorem 4(d) — KNAPSACK has a solution iff the constructed instance has
ProvedSchedComplexity.Tardiness.theorem_4d_equivalenceLet be positive integers and an integer with , where and (the paper's standing assumption "we may assume that ", p. 16). Put
let be any integer with , and consider the single-machine instance of Theorem 4(d) with jobs: for , , , ; for the dummy jobs , , , . Setting for , every job has and . The threshold is
For a processing order the jobs are processed without idle time from time , so the job in position completes at , and
Then KNAPSACK has a solution, i.e. for some , if and only if the constructed instance of has a feasible schedule with
Schedules here are arbitrary feasible schedules (start times in , idle time allowed), not only schedules without idle time of processing orders. This is the equivalence of Theorem 4(d) (p. 20, "which proves the equivalence of KNAPSACK and this problem"); the goal theorem adds the polynomial-time computability of the construction.
Formalization Note The paper prints , which is a half-integer when is odd although counts jobs; the Lean takes its ceiling (tPrime), and (yThr, an exact natural-number division since is even) is computed from the same . Jobs are Fin (t + t'), the items of being the indices (aExt is the convention for ). Positions are 0-based in Lean: π i is the paper's , and posCompletion p π k is the paper's for the 1-based position (the total processing time of the first positions). Sums run over the 0-based positions (tailWeighted). is quantified over all naturals with , as in the paper.
import Mathlib import Definitions.Def_SchedComplexity_Tardiness_Construction import Definitions.Def_SchedComplexity_Tardiness_Knapsack
namespace SchedComplexity.Tardiness
/-- The equivalence of Theorem 4(d), p. 20: for positive `a_1, …, a_t`, `0 < b < A` and every
`τ > 2t' + A`, KNAPSACK has a solution iff the constructed instance of `n|1||Σw_jT_j` has a
feasible schedule (arbitrary start times in `ℕ`, idle time allowed) with `Σ w_j T_j ≤ y`. -/
theorem theorem_4d_equivalence {t : ℕ} (a : Fin t → ℕ) (b τ : ℕ)
(ha : ∀ j, 0 < a j) (hb : 0 < b) (hbA : b < bigA a)
(hτ : 2 * tPrime a b + bigA a < τ) :
KnapsackYes a b ↔ HasScheduleLE (wtP a b τ) (wtW a b τ) (wtD a b τ) (yThr a b τ) := by sorry
end SchedComplexity.Tardiness
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.