Theorem 4(b),(c),(e),(f) — KNAPSACK reduces to four single-machine problems
ProvedSchedComplexity.OneMachine.theorem_4_bcef_knapsack_reducibleTheorem 4 of Brucker, Lenstra and Rinnooy Kan states that KNAPSACK is reducible to ten scheduling problems. This item formalizes parts (b), (c), (e) and (f), the single-machine problems with due dates:
Here is polynomial-time many-one reducibility of languages (Karp; Cook's Definition 3): a function on strings, computable by a one-tape Turing machine in polynomial time, maps codes of KNAPSACK yes-instances (positive integers with a subset summing to ) into the target language and every other string outside it. The target languages are the recognition versions "is there a feasible schedule of value ?" of the four problems, with instances restricted to the problem class. Together with the NP-completeness of KNAPSACK (Theorem 2(b)) the reductions show that the four problems are NP-hard. Parts (a), (d) and (g)–(j) are the subject of other missions in this series.
Formalization Note The paper's "reducible" (Section 2, p. 4: an instance of the target "can be constructed in polynomial time such that solving the instance of P will solve the instance of P' as well") is read as Karp reducibility, CookPvsNP.PolyReducible, over the alphabet BSym with binary number codes. The reduction must handle every string, including codes of KNAPSACK instances with (excluded in the proof by "We may assume that ") and strings that are not codes at all.
import Mathlib import Definitions.Def_SchedComplexity_OneMachine_Knapsack import Definitions.Def_SchedComplexity_OneMachine_Problems
namespace SchedComplexity.OneMachine
open CookPvsNP
/-- Theorem 4(b), (c), (e), (f) (Brucker, Lenstra & Rinnooy Kan, Report BW 43/75, p. 16): KNAPSACK
(over positive integers) is polynomial-time many-one reducible to each of the single-machine
problems `n|1|L_max≤0|∑w_jC_j`, `n|1|r_n≥0|L_max`, `n|1||∑w_jU_j` and
`n|1|r_n≥0,w_j=1|∑w_jU_j`, all languages over the binary alphabet `BSym`. -/
theorem theorem_4_bcef_knapsack_reducible :
PolyReducible knapsackLang langLmaxSumWC ∧
PolyReducible knapsackLang langRnLmax ∧
PolyReducible knapsackLang langSumWU ∧
PolyReducible knapsackLang langRnUnitSumWU := by sorry
end SchedComplexity.OneMachine
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.