Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 9 — in the SPT schedule, fi(S)≤∑j≤iLjf_i(S)\le\sum_{j\le i}L_jfi​(S)≤∑j≤i​Lj​

Proved
FlowJobShop.SPT.listSchedule_finishTime_le

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

job-shopmean-flow-timep2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingspt

Let a job shop with mmm processors and nnn jobs be given, LiL_iLi​ the total task time of job iii, and σ\sigmaσ any order of the jobs. In the list schedule SSS that processes the jobs σ(0),σ(1),…\sigma(0),\sigma(1),\dotsσ(0),σ(1),… in turn, the job in position kkk finishes no later than the total task time of the jobs in positions 0,…,k0,\dots,k0,…,k:

fσ(k)(S)≤∑j=0kLσ(j).f_{\sigma(k)}(S)\le\sum_{j=0}^{k} L_{\sigma(j)} .fσ(k)​(S)≤j=0∑k​Lσ(j)​.

With the jobs renumbered so that L1≤⋯≤LnL_1\le\cdots\le L_nL1​≤⋯≤Ln​, this is the step fi(S)≤∑j=1iLjf_i(S)\le\sum_{j=1}^i L_jfi​(S)≤∑j=1i​Lj​ of the proof of Lemma 9, which bounds the mean flow time of the SPT schedule by 1n∑i=1n∑j=1iLj\frac1n\sum_{i=1}^n\sum_{j=1}^i L_jn1​∑i=1n​∑j=1i​Lj​.

Formalization Note Positions are 0-based. The inequality is stated for every order σ\sigmaσ; the paper uses it for an SPT order. The paper assumes m≥1m\ge1m≥1.

Preamble
import Mathlib
import Definitions.Def_JobShopLTAS_Core_Instance
import Definitions.Def_FlowJobShop_SPT_MeanFlowTime
import Definitions.Def_FlowJobShop_SPT_ListSchedule

open JobShopLTAS.Core
Formal statement
namespace FlowJobShop.SPT

/-- In the list schedule that processes the jobs in the order `σ`, the job in position `k`
finishes no later than the total task time of the jobs in positions `0, …, k`:
`f_{σ k}(S) ≤ ∑_{j ≤ k} L_{σ j}` (Gonzalez–Sahni 1978, proof of Lemma 9, p. 47). -/
theorem listSchedule_finishTime_le {m n : ℕ} (inst : Instance m n) (hm : 0 < m)
    (σ : Fin n ≃ Fin n)
    (k : Fin n) :
    finishTime inst (listSchedule inst σ) (σ k) ≤
      ∑ j ∈ Finset.Iic k, inst.jobLength (σ j) := by sorry

end FlowJobShop.SPT
Source
Gonzalez, Sahni, Flowshop and Jobshop Schedules: Complexity and Approximation, Operations Research 26(1) (1978), p. 47, §2, proof of Lemma 9 ('Then f_i(S) ≤ Σ_1^i L_j')
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