Theorem 4(a): KNAPSACK is reducible to
ProvedSchedComplexity.TotalCompletion.theorem_4a_knapsack_reducibleBrucker, Lenstra and Rinnooy Kan state (Theorem 4, p. 16):
THEOREM 4. KNAPSACK is reducible to the following problems: (a) ; (b) ; (c) ; (d) ; (e) ; (f) ; (g) ; (h) ; (i) ; (j) .
This item formalizes part (a). Here "reducible" is the paper's notion (Section 2): every instance of KNAPSACK can be transformed in polynomial time into an instance of the scheduling problem with the same answer. Precisely, there is a function on strings, computable in polynomial time, such that for every string ,
where KNAPSACK is the language of binary codes of solvable instances with positive entries, and the target language consists of the codes of pairs (instance, ) such that the instance has unit weights, release date for every job except the last, and a feasible single-machine schedule with .
The target instances are written in the multiplicity encoding of the paper's Remark (p. 23): "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." The last two reductions are (d) and (a).
With the NP-completeness of KNAPSACK (Theorem 2(b)) the result shows that the single-machine total completion time problem becomes NP-complete as soon as one job has a nonzero release date.
Formalization Note Reducibility is CookPvsNP.PolyReducible from the published definition CookPvsNP_defs (polynomial-time many-one reducibility in Cook's machine model); polynomiality is part of the statement. Numbers are coded in binary over the alphabet of ProjSchedTW.Complexity.Encoding. The target language uses the multiplicity encoding: a list of job types (count, processing time, weight, release date) and the threshold , with class membership checked on the expanded job list. Under a one-entry-per-job encoding the construction is not polynomial and the paper does not claim the statement. Starting times are natural numbers (Section 3).
import Mathlib import Definitions.Def_CookPvsNP_defs import Definitions.Def_SchedComplexity_TotalCompletion_Knapsack import Definitions.Def_SchedComplexity_TotalCompletion_SingleMachine
namespace SchedComplexity.TotalCompletion
/-- Theorem 4(a) (p. 16; proof pp. 22–23; Remark p. 23): KNAPSACK is reducible to
`n|1|r_n≥0,w_j=1|Σw_jC_j`, as a polynomial-time many-one reduction (`CookPvsNP.PolyReducible`)
from the binary-coded KNAPSACK language to the language of the scheduling problem in the
multiplicity encoding of the Remark on p. 23. -/
theorem theorem_4a_knapsack_reducible :
CookPvsNP.PolyReducible knapsackLang sumCLangMult := by sorry
end SchedComplexity.TotalCompletion
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.