Theorem 4(g)–(j) — KNAPSACK reduces to two flow-shop and two job-shop makespan problems
ProvedSchedComplexity.Shops.theorem_4_ghij_knapsack_reducibleTheorem 4 of the report reads: KNAPSACK is reducible to the following problems: (a) ; (b) ; (c) ; (d) ; (e) ; (f) ; (g) ; (h) ; (i) ; (j) . Only parts (g)–(j) are formalized here.
Write for the language of binary codes of KNAPSACK yes-instances with positive data, and for the languages of the four recognition problems (instance in the class and a feasible schedule with ). The theorem states
where is polynomial-time many-one reducibility: a function computable in polynomial time by a Turing machine maps every string to a string with .
Together with the NP-completeness of KNAPSACK, this shows that minimizing the makespan is NP-hard already in the two-machine flow shop with one nonzero release date or with tree-like precedence constraints, and in job shops with two machines and at most three operations per job or three machines and at most two operations per job.
Formalization Note "Reducible" (Section 2, p. 4) is read as Karp reducibility, CookPvsNP.PolyReducible from the published definitions CookPvsNP_defs. Strings are over the four-letter alphabet of ProjSchedTW.Complexity.Encoding, with every number in binary. Membership in NP is not part of the statement.
import Mathlib import Definitions.Def_SchedComplexity_OneMachine_Knapsack import Definitions.Def_SchedComplexity_Shops_Problems
namespace SchedComplexity.Shops
open CookPvsNP
/-- Theorem 4(g), (h), (i), (j), Brucker, Lenstra & Rinnooy Kan, Report BW 43/75, p. 16: KNAPSACK
is polynomial-time many-one reducible to each of `n|2|F,r_n≥0|C_max`, `n|2|F,tree|C_max`,
`n|2|G,m_j≤3|C_max` and `n|3|G,m_j≤2|C_max`. -/
theorem theorem_4_ghij_knapsack_reducible :
PolyReducible SchedComplexity.OneMachine.knapsackLang langFlowRn ∧ PolyReducible SchedComplexity.OneMachine.knapsackLang langFlowTree ∧
PolyReducible SchedComplexity.OneMachine.knapsackLang langJob2Ops3 ∧ PolyReducible SchedComplexity.OneMachine.knapsackLang langJob3Ops2 := by sorry
end SchedComplexity.Shops
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.