Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorems 10.1 and 10.2 — F2∥Cmax⁡A:Cmax⁡BF2\|C^A_{\max}:C^B_{\max}F2∥CmaxA​:CmaxB​ and O2∥Cmax⁡A:Cmax⁡BO2\|C^A_{\max}:C^B_{\max}O2∥CmaxA​:CmaxB​ are NP-hard

Proved
TwoAgentSched.Shops.theorems_10_1_10_2

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

flow-shopnp-hardnessopen-shopp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingtwo-agent

Theorems 10.1 and 10.2 of Agnetis, Mirchandani, Pacciarelli and Pacifici: the two-agent problems in which both agents minimize their own makespan, in the two-machine flow shop and in the two-machine open shop, are NP-hard, in the form proved in the paper:

PARTITION ≤p F2 ∥ Cmax⁡A≤QA, Cmax⁡B≤QBandPARTITION ≤p O2 ∥ Cmax⁡A≤QA, Cmax⁡B≤QB.\text{PARTITION}\ \le_p\ F2\,\|\,C^A_{\max}\le Q_A,\ C^B_{\max}\le Q_B\qquad\text{and}\qquad \text{PARTITION}\ \le_p\ O2\,\|\,C^A_{\max}\le Q_A,\ C^B_{\max}\le Q_B.PARTITION ≤p​ F2∥CmaxA​≤QA​, CmaxB​≤QB​andPARTITION ≤p​ O2∥CmaxA​≤QA​, CmaxB​≤QB​.

Here PARTITION asks whether a list of nonnegative integers splits into two parts of equal sum, the targets are the recognition problems "is there a feasible schedule in which every A-job completes by QAQ_AQA​ and every B-job by QBQ_BQB​?", every number is written in binary, and ≤p\le_p≤p​ is polynomial-time many-one reducibility (a polynomial-time computable map of codes that sends yes-instances to yes-instances and no-instances to no-instances).

Since the source problem is NP-complete in the ordinary sense, the two shop problems are NP-hard already when each agent only wants to finish its own jobs early, and the B-agent owns a single job.

Formalization Note NP-membership is not formalized. The target languages hold codes of instances with natural-number processing times and thresholds; start times are real. The paper's constructions have rational data (ε=1/(k+1)\varepsilon=1/(k+1)ε=1/(k+1), P/2P/2P/2); a reduction scales them to integers. Theorem 10.1's printed equivalence holds only for even PPP (and P≥2P\ge2P≥2 or k≤1k\le1k≤1), so a reduction treats the remaining cases separately.

Preamble
import Mathlib
import Definitions.Def_TwoAgentSched_Shops_Model
Formal statement
namespace TwoAgentSched.Shops

open CookPvsNP ProjSchedTW.Complexity

/-- Theorems 10.1 and 10.2 (Agnetis, Mirchandani, Pacciarelli & Pacifici 2004, pp. 238–239):
`F2‖C^A_max : C^B_max` and `O2‖C^A_max : C^B_max` are NP-hard, in the form proved there: PARTITION
is polynomial-time many-one reducible to the recognition problem
`F2‖C^A_max ≤ Q_A, C^B_max ≤ Q_B` and to `O2‖C^A_max ≤ Q_A, C^B_max ≤ Q_B`, all languages coded
in binary over `BSym`. -/
theorem theorems_10_1_10_2 :
    PolyReducible partitionLang flowLang ∧ PolyReducible partitionLang openLang := by sorry

end TwoAgentSched.Shops
Source
Agnetis, Mirchandani, Pacciarelli & Pacifici, Scheduling Problems with Two Competing Agents, Oper. Res. 52(2) (2004), p. 238, Theorem 10.1; p. 239, Theorem 10.2
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