Theorem 4(d) — KNAPSACK is polynomially reducible to
ProvedSchedComplexity.Tardiness.theorem_4d_knapsack_reducibleTheorem 4 of the paper (p. 16) reads: "KNAPSACK is reducible to the following problems: (a) ; (b) ; (c) ; (d) ; (e) ; (f) ; (g) ; (h) ; (i) ; (j) ." Only part (d) is formalized here:
Reducibility (Section 2, p. 4) is polynomial-time many-one reducibility of the recognition problems: there is a function on words, computable by a Turing machine in polynomial time, such that a word is the code of a KNAPSACK yes-instance (positive integers with for some ) if and only if of it is the code of a yes-instance of : a single-machine instance with processing times, weights and due dates, together with a threshold , that has a feasible schedule with .
The instances of are encoded as in the paper's Remark (p. 23): each class of jobs with identical data is written once, with its cardinality. "In the last two reductions the size of the scheduling problem depends on and . It can be questioned if these reductions are truly polynomial-bounded: in some encodings the length of the scheduling input string is polynomial in and and thus exponential in the length of the KNAPSACK input string, the latter one being proportional to . We may settle this question, however, by characterizing a subset of jobs with identical data by its cardinality and a single copy of the data."
Since KNAPSACK is NP-complete (Karp), the theorem shows that minimizing total weighted tardiness on a single machine is NP-hard.
Formalization Note Reducibility is CookPvsNP.PolyReducible from the published CookPvsNP_defs (Turing machines with an explicit polynomial time bound), over the alphabet BSym of the published ProjSchedTW.Complexity.Encoding. The source language SchedComplexity.OneMachine.knapsackLang (the shared KNAPSACK language) codes in binary and requires all of them positive; the target language wtLangMult uses the multiplicity encoding (MultLang). Under the one-copy-per-job encoding the paper does not claim polynomiality. The paper's "we may assume that " is not an assumption here: the reduction must handle all KNAPSACK instances.
import Mathlib import Definitions.Def_SchedComplexity_Tardiness_Knapsack import Definitions.Def_SchedComplexity_Tardiness_MultLang
namespace SchedComplexity.Tardiness open CookPvsNP in /-- Theorem 4(d), p. 16 (proof pp. 20–21, Remark p. 23): KNAPSACK is polynomial-time many-one reducible to `n|1||Σw_jT_j`, the latter encoded with job multiplicities as in the Remark. -/ theorem theorem_4d_knapsack_reducible : PolyReducible SchedComplexity.OneMachine.knapsackLang wtLangMult := by sorry end SchedComplexity.Tardiness
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.