Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 9.2 — 1∥∑CiA:∑CiB1\|\sum C^A_i : \sum C^B_i1∥∑CiA​:∑CiB​ is binary NP-hard (PARTITION reduces to it)

Proved
TwoAgentSched.TotalTotal.theorem_9_2

by mikedeng1 · Oct 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

complexitynp-hardnessp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1reductionschedulingtwo-agent

Theorem 9.2 (Agnetis, Mirchandani, Pacciarelli and Pacifici 2004). The two-agent problem 1∥∑CiA:∑CiB1\|\sum C^A_i : \sum C^B_i1∥∑CiA​:∑CiB​, 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 1∥∑CiA≤QA, ∑CiB≤QB1\|\sum C^A_i\le Q_A,\ \sum C^B_i\le Q_B1∥∑CiA​≤QA​, ∑CiB​≤QB​,

PARTITION ≤p 1∥∑CiA≤QA, ∑CiB≤QB,\text{PARTITION}\ \le_p\ 1\|\textstyle\sum C^A_i\le Q_A,\ \sum C^B_i\le Q_B ,PARTITION ≤p​ 1∥∑CiA​≤QA​, ∑CiB​≤QB​,

where both languages consist of binary codes of yes-instances over a four-letter alphabet. That is, there is a function fff 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 fff of it is the code of a two-agent instance with thresholds QA,QB∈NQ_A,Q_B\in\mathbb NQA​,QB​∈N for which some sequence of all jobs has ∑hChA≤QA\sum_hC^A_h\le Q_A∑h​ChA​≤QA​ and ∑kCkB≤QB\sum_kC^B_k\le Q_B∑k​CkB​≤QB​.

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 000 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 T/2T/2T/2 are half-integers when PPP is odd, while the target language has thresholds in N\mathbb NN. 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.

Preamble
import Mathlib
import Definitions.Def_TwoAgentSched_TotalTotal_Model
Formal statement
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
Source
Agnetis, Mirchandani, Pacciarelli & Pacifici, Scheduling Problems with Two Competing Agents, Oper. Res. 52(2) (2004), p. 237, Theorem 9.2 (Problem 9.1: p. 237; recognition problem: p. 232)
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 8, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me