Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1(b), observations (i)–(ii): in a schedule of FS with finish time ≤2T\le 2T≤2T, t1,n+1t_{1,n+1}t1,n+1​ ends by TTT and t3,n+2t_{3,n+2}t3,n+2​ starts after TTT

Proved
FlowJobShop.PartitionFlow.observations_i_ii

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

flow-shopp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1preemptive-schedulingscheduling

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. Let S′S'S′ be any preemptive schedule of FS with FT(S′)≤2T\mathrm{FT}(S')\le 2TFT(S′)≤2T. Then

  1. task t1,n+1t_{1,n+1}t1,n+1​ finishes by time TTT: every piece of it ends at or before TTT;
  2. task t3,n+2t_{3,n+2}t3,n+2​ does not start before time TTT: every piece of it starts at or after TTT.

These two observations are the first step of the paper's proof of Lemma 1(b): they fix the window [0,T][0,T][0,T] in which the other jobs can use processor P1P_1P1​, and the window [T,2T][T,2T][T,2T] that job n+2n+2n+2 needs on P3P_3P3​.

Formalization Note "Finishes by TTT" and "does not start before TTT" are stated piecewise; when T=0T=0T=0 both tasks have time 000, have no piece, and the statement holds trivially, as in the paper.

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

/-- Observations (i)–(ii) in the proof of Lemma 1(b) (Gonzalez–Sahni 1978, p. 39): in every
preemptive schedule of FS with finish time `≤ 2T`, (i) task `t_{1,n+1}` finishes by time `T`
(every piece of it ends by `T`), and (ii) task `t_{3,n+2}` does not start before time `T`
(every piece of it starts at or after `T`). Job `n + 1` is `Sum.inr 0`, job `n + 2` is
`Sum.inr 1`; processors `P_1, P_3` are `0, 2`. -/
theorem observations_i_ii {n : ℕ} (a : Fin n → ℕ) (S : PreemptiveSchedule (FS a))
    (hS : S.finishTime ≤ 2 * T a) :
    (∀ p ∈ S.pieces 0 (Sum.inr 0), p.2 ≤ T a) ∧
      (∀ p ∈ S.pieces 2 (Sum.inr 1), T a ≤ p.1) := by sorry

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