Theorem 5.2 — is binary NP-hard (KNAPSACK reduces to it)
ProvedTwoAgentSched.Knapsack.theorem_5_2Theorem 5.2 (Agnetis, Mirchandani, Pacciarelli and Pacifici 2004). The two-agent problem — one machine, agent minimising its total weighted completion time while agent 's makespan must not exceed a bound — is binary NP-hard.
The statement formalised is the reduction the paper gives: KNAPSACK (Problem 5.1) is polynomial-time many-one reducible to the recognition problem ,
where both languages consist of binary codes of yes-instances over a four-letter alphabet. That is, there is a function on strings, computable by a Turing machine in time polynomial in the input length, such that a string is the code of a KNAPSACK yes-instance iff of it is the code of an instance with thresholds for which some sequence of all jobs has and for all -jobs .
Since KNAPSACK is NP-complete under binary encoding of the numbers (Garey and Johnson 1979), this shows that the two-agent problem is NP-hard under binary encoding.
Formalization Note Polynomial-time computability and many-one reducibility are the published CookPvsNP.PolyReducible (Cook's Definition 3, one-tape Turing machines); codes use the published ProjSchedTW.Complexity.Encoding. Neither the NP-completeness of KNAPSACK nor membership of the target problem in NP is part of the statement. The target language allows any numbers of jobs; the paper's construction uses . The construction's thresholds are integers and can be negative (when , or ), while the target language has thresholds in : such KNAPSACK instances are no-instances and must be mapped to a no-instance of the target. KNAPSACK instances with , where the paper's argument for (2) does not apply, are yes-instances iff and , and must likewise be mapped correctly. Strings that are not codes of KNAPSACK instances must be mapped outside the target language.
import Mathlib import Definitions.Def_TwoAgentSched_Knapsack_Problem51 import Definitions.Def_TwoAgentSched_Knapsack_Model
namespace TwoAgentSched.Knapsack open CookPvsNP /-- Theorem 5.2 (Agnetis, Mirchandani, Pacciarelli & Pacifici 2004, p. 233): `1‖∑ w_iC^A_i : C^B_max` is binary NP-hard, in the form proved there: KNAPSACK (Problem 5.1) is polynomial-time many-one reducible to the recognition problem `1‖∑ w_iC^A_i ≤ Q_A, C^B_max ≤ Q_B`, both languages coded in binary over `BSym`. -/ theorem theorem_5_2 : PolyReducible knapsackLang targetLang := by sorry end TwoAgentSched.Knapsack
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.