Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4(a) — a 3-partition gives a non-preemptive schedule of FS with finish time ≤ 2tB

Proved
FlowJobShop.ThreePartFlow.lemma_4a

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

3-partitionflow-shopnp-completenessp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1reductionscheduling

Let C=(a1,…,as,B)C=(a_1,\dots,a_s,B)C=(a1​,…,as​,B), s=3ts=3ts=3t, t≥2t\ge 2t≥2, be an instance of 3-Partition (so B>0B>0B>0, ∑iai=tB\sum_i a_i=tB∑i​ai​=tB and B/4<ai<B/2B/4<a_i<B/2B/4<ai​<B/2), and let FSFSFS be the three-processor flow shop built from CCC in the proof of Lemma 4. If CCC has a 3-partition, that is, {1,…,s}\{1,\dots,s\}{1,…,s} splits into disjoint sets L1,…,LtL_1,\dots,L_tL1​,…,Lt​ with ∣Li∣=3|L_i|=3∣Li​∣=3 and ∑j∈Liaj=B\sum_{j\in L_i}a_j=B∑j∈Li​​aj​=B, then FSFSFS has a non-preemptive schedule SSS with

FT(S)≤2tB.FT(S)\le 2tB .FT(S)≤2tB.

This is the "if" half of the reduction from 3-Partition; the paper exhibits the schedule in its Figure 2.

Formalization Note A non-preemptive schedule is a preemptive schedule in which every task is processed in at most one piece; in particular it is itself a preemptive schedule.

Preamble
import Mathlib
import Definitions.Def_FlowJobShop_ThreePartFlow_FlowShop
import Definitions.Def_ResourceScheduling_Chain_ThreePartition
import Definitions.Def_FlowJobShop_ThreePartFlow_Instance

open ResourceScheduling.Chain
open FlowJobShop.ThreePartFlow.FlowShop
Formal statement
namespace FlowJobShop.ThreePartFlow

/-- Lemma 4(a) (Gonzalez–Sahni 1978, proof of Lemma 4, p. 41): if the 3-Partition instance
`C = (a_1, …, a_s, B)`, `s = 3t`, `t ≥ 2`, has a solution, then the flow shop `FS` built from
it has a non-preemptive schedule with finish time `≤ 2tB`. -/
theorem lemma_4a (C : ThreePartition) (hC : C.Valid) (ht : 2 ≤ C.t) (hsol : C.HasSolution) :
    ∃ S : PreemptiveSchedule (FS C), S.IsNonPreemptive ∧ S.finishTime ≤ tau C := by sorry

end FlowJobShop.ThreePartFlow
Source
Gonzalez, Sahni, Flowshop and Jobshop Schedules: Complexity and Approximation, Operations Research 26(1) (1978), p. 41, proof of Lemma 4, part (a), and Figure 2 (p. 42)
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