Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

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

Proved
FlowJobShop.PartitionFlow.corollary_1

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

flow-shopnp-completenessp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1reductionscheduling

Let S={a1,…,an}S=\{a_1,\dots,a_n\}S={a1​,…,an​}, T=∑iaiT=\sum_i a_iT=∑i​ai​ and FS be as in the proof of Lemma 1. Then

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

The paper states Corollary 1 as "Partition α\alphaα non-preemptive FOFT with m=3m=3m=3 and at most two nonzero tasks per job"; its proof says that the construction of Lemma 1 yields a flow shop with a non-preemptive schedule of finish time τ=2T\tau=2Tτ=2T iff SSS has a partition. That equivalence, with "finish time ≤τ\le\tau≤τ" as in the definition of FOFT, is what is formalized.

Formalization Note A non-preemptive schedule is a schedule with at most one piece per task. Polynomial-time reducibility is not formalized.

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

/-- Corollary 1 (Gonzalez–Sahni 1978, pp. 39–40), in the form its proof establishes: the flow
shop FS of Lemma 1 has a non-preemptive schedule with finish time `≤ τ = 2T` iff
`S = {a_1, …, a_n}` has a partition. -/
theorem corollary_1 {n : ℕ} (a : Fin n → ℕ) :
    (∃ S : PreemptiveSchedule (FS a), S.IsNonPreemptive ∧ 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. 39, Corollary 1 (proof pp. 39–40)
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