Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 9 — the SPT schedule has mean flow time at most mmm times the optimum, MFT(S)/MFT(S∗)≤m\mathrm{MFT}(S)/\mathrm{MFT}(S^*)\le mMFT(S)/MFT(S∗)≤m

Proved
FlowJobShop.SPT.lemma_9

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

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

Let a job shop with mmm processors and nnn jobs be given; job iii is a finite sequence of tasks, each on a prescribed processor with a processing time ≥0\ge 0≥0, and LiL_iLi​ is the sum of the task times of job iii. Let SSS be an SPT schedule: the list schedule that processes the jobs in an order σ\sigmaσ with Lσ(0)≤⋯≤Lσ(n−1)L_{\sigma(0)}\le\cdots\le L_{\sigma(n-1)}Lσ(0)​≤⋯≤Lσ(n−1)​ (ties broken arbitrarily), each task starting as soon as its job's previous task and every task already placed on its processor have completed. Then for every feasible non-preemptive schedule τ\tauτ,

MFT(S) ≤ m⋅MFT(τ).\mathrm{MFT}(S)\ \le\ m\cdot\mathrm{MFT}(\tau).MFT(S) ≤ m⋅MFT(τ).

In particular, for an optimal mean flow time schedule S∗S^*S∗, MFT(S)/MFT(S∗)≤m\mathrm{MFT}(S)/\mathrm{MFT}(S^*)\le mMFT(S)/MFT(S∗)≤m, which is Lemma 9 of Gonzalez and Sahni. Their Example 2 shows that the factor mmm cannot be improved.

The paper states the lemma for "an mmm-processor, nnn-job flow (or job) shop problem"; the job shop contains the flow shop as the special case of mmm tasks per job in processor order, stated separately in this mission.

Formalization Note The ratio is stated multiplied out, so a zero optimal mean flow time causes no division by zero. Comparing with every feasible schedule τ\tauτ implies the comparison with an OMFT schedule and avoids assuming that one exists. Schedules are non-preemptive; the local feasibility predicate treats zero-time tasks as occupying no processor interval. The paper assumes m≥1m\ge1m≥1. Its remark "(it is assumed that m<nm<nm<n)" compares Lemma 9 with Lemma 8 and is not a hypothesis of Lemma 9.

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

/-- **Lemma 9** (Gonzalez–Sahni 1978, p. 47). In an `m`-processor, `n`-job job shop, the SPT
schedule (the list schedule in any order `σ` of nondecreasing total task time) has mean flow time
at most `m` times that of every feasible non-preemptive schedule `τ`, hence at most `m` times the
optimal mean flow time: `MFT(S) ≤ m · MFT(S*)`, the ratio bound `MFT(S)/MFT(S*) ≤ m` multiplied
out. -/
theorem lemma_9 {m n : ℕ} (inst : Instance m n) (hm : 0 < m)
    (σ : Fin n ≃ Fin n) (hσ : IsSPTOrder inst σ)
    (τ : inst.Op → ℝ) (hτ : IsPaperFeasibleSchedule inst τ) :
    meanFlowTime inst (listSchedule inst σ) ≤ (m : ℝ) * meanFlowTime inst τ := by sorry

end FlowJobShop.SPT
Source
Gonzalez, Sahni, Flowshop and Jobshop Schedules: Complexity and Approximation, Operations Research 26(1) (1978), p. 47, Lemma 9 (proof p. 47; SPT defined pp. 46–47)
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