Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1: FS has a preemptive schedule with finish time ≤2T\le 2T≤2T iff SSS has a partition

Proved
FlowJobShop.PartitionFlow.lemma_1

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

flow-shopnp-completenessp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1preemptive-schedulingreductionscheduling

Let S={a1,…,an}S=\{a_1,\dots,a_n\}S={a1​,…,an​} be a multiset of nonnegative integers, T=∑iaiT=\sum_i a_iT=∑i​ai​, and FS the three-processor flow shop with at most two nonzero tasks per job built from SSS in the proof of Lemma 1. Then

∃ preemptive schedule S′ of FS with FT(S′)≤2T  ⟺  S has a partition.\exists\ \text{preemptive schedule } S' \text{ of FS with } \mathrm{FT}(S')\le 2T\iff S \text{ has a partition}.∃ preemptive schedule S′ of FS with FT(S′)≤2T⟺S has a partition.

The paper states Lemma 1 as "Partition α\alphaα preemptive FOFT with m=3m=3m=3 and at most two nonzero tasks per job"; its proof establishes the equivalence above for the instance FS and threshold τ=2T\tau=2Tτ=2T, which is what is formalized. Since FS is clearly computable from SSS in polynomial time, this equivalence is the mathematical content of the reduction.

Formalization Note Polynomial-time reducibility ("α\alphaα") is not formalized; only the equivalence for the constructed instance is.

Preamble
import Mathlib
import Definitions.Def_FlowJobShop_PartitionFlow_FlowShop
import Definitions.Def_FlowJobShop_PartitionFlow_Partition
import Definitions.Def_FlowJobShop_PartitionFlow_Instance

open FlowJobShop.PartitionFlow.FlowShop
Formal statement
namespace FlowJobShop.PartitionFlow

/-- Lemma 1 (Gonzalez–Sahni 1978, p. 38; proof p. 39), in the form its proof establishes: the
three-processor flow shop FS built from `S = {a_1, …, a_n}` has a preemptive schedule with
finish time `≤ 2T` iff `S` has a partition. -/
theorem lemma_1 {n : ℕ} (a : Fin n → ℕ) :
    (∃ S : PreemptiveSchedule (FS a), S.finishTime ≤ 2 * T a) ↔ HasPartition a := by sorry

end FlowJobShop.PartitionFlow
Source
Gonzalez, Sahni, Flowshop and Jobshop Schedules: Complexity and Approximation, Operations Research 26(1) (1978), p. 38, Lemma 1 (proof p. 39)
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