Theorem 9.2 — is binary NP-hard (PARTITION reduces to it)
ProvedTwoAgentSched.TotalTotal.theorem_9_2Theorem 9.2 (Agnetis, Mirchandani, Pacciarelli and Pacifici 2004). The two-agent problem , with one machine and two agents each minimising its own total completion time, is binary NP-hard.
The statement formalised is the reduction the paper gives: PARTITION (Problem 9.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 PARTITION yes-instance (a list of nonnegative integers that can be split into two parts of equal sum) iff of it is the code of a two-agent instance with thresholds for which some sequence of all jobs has and .
Since PARTITION is NP-complete (Karp 1972), this shows that the two-agent problem is NP-hard under binary encoding of the numbers.
Formalization Note Polynomial-time computability and many-one reducibility are the published CookPvsNP.PolyReducible (Cook's Definition 3, one-tape Turing machines); PARTITION and the codes are the published ProjSchedTW.Complexity.partitionLang and encNats, in which sizes are natural numbers and is allowed. Neither the NP-completeness of PARTITION nor the membership of the target problem in NP ("Membership in NP is trivial") is part of the statement. The target language allows any numbers of jobs and any processing times; identical job sets are a feature of the paper's construction only. The paper's thresholds are half-integers when is odd, while the target language has thresholds in . The paper's construction as printed is correct only for PARTITION instances without repeated values (see the equivalence milestone); a reduction for all instances must handle repeated values. Strings that are not codes of PARTITION instances must be mapped outside the target language.
import Mathlib import Definitions.Def_TwoAgentSched_TotalTotal_Model
namespace TwoAgentSched.TotalTotal open CookPvsNP ProjSchedTW.Complexity /-- Theorem 9.2 (Agnetis, Mirchandani, Pacciarelli & Pacifici 2004, p. 237): `1‖∑ C^A_i : ∑ C^B_i` is binary NP-hard, in the form proved there: PARTITION (Problem 9.1) is polynomial-time many-one reducible to the recognition problem `1‖∑ C^A_i ≤ Q_A, ∑ C^B_i ≤ Q_B`, both languages coded in binary over `BSym`. -/ theorem theorem_9_2 : PolyReducible partitionLang targetLang := by sorry end TwoAgentSched.TotalTotal
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.