Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 10.1 — for even PPP, PARTITION yes iff the flow shop instance meets QAQ_AQA​ and QBQ_BQB​

Proved
TwoAgentSched.Shops.theorem_10_1_equivalence

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

flow-shopp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1partitionschedulingtwo-agent

Let p1,…,pkp_1,\dots,p_kp1​,…,pk​ be nonnegative integers with P=∑ipiP=\sum_i p_iP=∑i​pi​ even, and assume moreover P≥2P\ge 2P≥2 or k≤1k\le 1k≤1. Consider the flow shop instance of the proof of Theorem 10.1 (ε=1/(k+1)\varepsilon=1/(k+1)ε=1/(k+1); A-jobs with times ε\varepsilonε on M1M_1M1​ and pip_ipi​ on M2M_2M2​; one B-job with times P/2−(k−1)εP/2-(k-1)\varepsilonP/2−(k−1)ε and P/2P/2P/2) with thresholds QA=3P/2+εQ_A=3P/2+\varepsilonQA​=3P/2+ε and QB=P+εQ_B=P+\varepsilonQB​=P+ε. Then

∃ S⊆{1,…,k}: ∑i∈Spi=∑i∉Spi  ⟺  some feasible flow shop schedule has Cmax⁡A≤QA and Cmax⁡B≤QB.\exists\, S\subseteq\{1,\dots,k\}:\ \sum_{i\in S}p_i=\sum_{i\notin S}p_i \iff \text{some feasible flow shop schedule has } C^A_{\max}\le Q_A \text{ and } C^B_{\max}\le Q_B.∃S⊆{1,…,k}: i∈S∑​pi​=i∈/S∑​pi​⟺some feasible flow shop schedule has CmaxA​≤QA​ and CmaxB​≤QB​.

This equivalence is the correctness of the reduction of PARTITION to F2∥Cmax⁡A≤QA,Cmax⁡B≤QBF2\|C^A_{\max}\le Q_A, C^B_{\max}\le Q_BF2∥CmaxA​≤QA​,CmaxB​≤QB​.

Formalization Note The paper states the equivalence for every instance and uses ⌊P/2+kε⌋=P/2\lfloor P/2+k\varepsilon\rfloor=P/2⌊P/2+kε⌋=P/2, which needs PPP even. For odd PPP it fails: p=(1)p=(1)p=(1) gives ε=1/2\varepsilon=1/2ε=1/2, and the schedule M1M_1M1​: B on [0,1/2][0,1/2][0,1/2], A on [1/2,1][1/2,1][1/2,1]; M2M_2M2​: B on [1/2,1][1/2,1][1/2,1], A on [1,2][1,2][1,2] meets QA=2Q_A=2QA​=2, QB=3/2Q_B=3/2QB​=3/2, while (1)(1)(1) has no partition. For P=0P=0P=0 and k≥2k\ge 2k≥2 it fails too (kkk operations of length ε\varepsilonε cannot all end on M1M_1M1​ by QA=εQ_A=\varepsilonQA​=ε, while all-zero integers partition); the hypothesis "P≥2P\ge 2P≥2 or k≤1k\le 1k≤1" excludes exactly the even cases in which the printed p11Bp^B_{11}p11B​ is negative. Odd PPP is a no-instance of PARTITION, so a reduction can map it to a fixed no-instance.

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

open ProjSchedTW.Complexity

/-- Proof of Theorem 10.1 (Agnetis et al. 2004, p. 238), the equivalence, for an even total
`P = ∑ p_i` with `P ≥ 2` or at most one integer (among even totals these are exactly the cases
with `p^B_{11} = P/2 − (k − 1)ε ≥ 0`): the PARTITION instance `p` is a yes-instance iff the
constructed flow shop instance has a feasible schedule with `C^A_max ≤ 3P/2 + ε` and
`C^B_max ≤ P + ε`. (For odd `P` the printed equivalence fails: `p = [1]`.) -/
theorem theorem_10_1_equivalence (p : List ℕ) (heven : Even p.sum)
    (hrange : 2 ≤ p.sum ∨ p.length ≤ 1) :
    PartitionYes p ↔ (flowInst p).FlowYes (flowQA p) (flowQB p) := by sorry

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