Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 7 — the 3-PARTITION job shop meets 2tB, preemptively or not, iff a 3-partition exists

Proved
FlowJobShop.ThreePartJob.lemma_7

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

job-shopp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1reductionschedulingthree-partition

Let C=(a1,…,a3t,B)C=(a_1,\ldots,a_{3t},B)C=(a1​,…,a3t​,B) be a valid 3-PARTITION instance: B>0B>0B>0, the numbers sum to tBtBtB, and B/4<ai<B/2B/4<a_i<B/2B/4<ai​<B/2 for every iii. Build the two-machine job shop JS(C)JS(C)JS(C) of Lemma 7. The following two equivalences hold:

JS(C) has a preemptive schedule with FT≤2tB⟺C has a 3-partition,JS(C) has a non-preemptive schedule with FT≤2tB⟺C has a 3-partition.\begin{aligned} JS(C)\text{ has a preemptive schedule with }FT\le 2tB &\Longleftrightarrow C\text{ has a 3-partition},\\ JS(C)\text{ has a non-preemptive schedule with }FT\le 2tB &\Longleftrightarrow C\text{ has a 3-partition}. \end{aligned}JS(C) has a preemptive schedule with FT≤2tBJS(C) has a non-preemptive schedule with FT≤2tB​⟺C has a 3-partition,⟺C has a 3-partition.​

The preemptive equivalence is Lemma 7's stated reduction. Its proof also constructs a non-preemptive schedule when the partition exists and excludes every preemptive schedule when it does not, giving the second equivalence.

Formalization Note The paper phrases the result as “3-Partition α\alphaα preemptive JOFT with m=2m=2m=2” and says this strengthens NP-completeness for both schedule types under the sum-of-task-lengths complexity measure. This theorem formalizes the proof's decision equivalences, not the reduction's computational complexity or the separate NP-membership result of Lemma 6. The empty-group case t=0t=0t=0 is included.

Preamble
import Mathlib
import Definitions.Def_ResourceScheduling_Chain_ThreePartition
import Definitions.Def_JobShopLTAS_Core_Instance
import Definitions.Def_FlowJobShop_ThreePartJob_Instance
import Definitions.Def_FlowJobShop_ThreePartJob_Schedules
Formal statement
namespace FlowJobShop.ThreePartJob

open ResourceScheduling.Chain

/-- Lemma 7, p. 44, with the nonpreemptive form established by its
part (a) and the inclusion of nonpreemptive schedules among preemptive
ones. The mathematical content is the reduction equivalence. -/
theorem lemma_7 (C : ThreePartition) (hvalid : C.Valid) :
    ((∃ S : PreemptiveSchedule (reductionInstance C),
      S.FinishesBy (threshold C)) ↔ C.HasSolution) ∧
    ((∃ s : (reductionInstance C).Op → ℝ,
      NonpreemptiveFinishesBy (reductionInstance C) s (threshold C)) ↔
        C.HasSolution) := by sorry

end FlowJobShop.ThreePartJob
Source
Gonzalez, Sahni, Flowshop and Jobshop Schedules: Complexity and Approximation, Operations Research 26(1) (1978), pp. 44–45, Lemma 7 and parts (a)–(b), https://doi.org/10.1287/opre.26.1.36
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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