Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 11 — heuristic H has FT(S)/FT(S∗)≤⌈m/2⌉\mathrm{FT}(S)/\mathrm{FT}(S^*)\le\lceil m/2\rceilFT(S)/FT(S∗)≤⌈m/2⌉

Proved
FlowJobShop.PairGroups.lemma_11

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

approximation-algorithmsflow-shopp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling

Let FFF be a flow shop with mmm processors P1,…,PmP_1,\dots,P_mP1​,…,Pm​ and nnn jobs with task times tj,i≥0t_{j,i}\ge 0tj,i​≥0. Divide the processors into the ⌈m/2⌉\lceil m/2\rceil⌈m/2⌉ groups {P2g−1,P2g}\{P_{2g-1},P_{2g}\}{P2g−1​,P2g​} (the last group being {Pm}\{P_m\}{Pm​} when mmm is odd), and for every group ggg let R(g)R(g)R(g) be an optimal finish time schedule of the flow shop restricted to that group. Let SSS be the schedule generated by algorithm H, which runs the schedules R(1),R(2),…R(1),R(2),\dotsR(1),R(2),… one after another. Then for every feasible non-preemptive schedule τ\tauτ of FFF, in particular for an OFT schedule S∗S^*S∗,

FT(S)≤⌈m2⌉ FT(τ).\mathrm{FT}(S)\le\Big\lceil\frac m2\Big\rceil\,\mathrm{FT}(\tau).FT(S)≤⌈2m​⌉FT(τ).

The paper states this as FT(S)/FT(S∗)≤⌈m/2⌉\mathrm{FT}(S)/\mathrm{FT}(S^*)\le\lceil m/2\rceilFT(S)/FT(S∗)≤⌈m/2⌉. It improves the bound mmm that holds for every busy schedule (Lemma 10), at the cost of solving ⌈m/2⌉\lceil m/2\rceil⌈m/2⌉ two-processor problems, each of which Johnson's algorithm does in time O(nlog⁡n)O(n\log n)O(nlogn).

Formalization Note The ratio is multiplied out, so the statement is meaningful when FT(S∗)=0\mathrm{FT}(S^*)=0FT(S∗)=0 (e.g. m=0m=0m=0 or all times zero). The paper's H computes each R(g)R(g)R(g) by Johnson's algorithm; the statement holds for every choice of optimal group schedules, which is what the paper's proof uses. Johnson's algorithm and the running time O(mnlog⁡n)O(mn\log n)O(mnlogn) are not formalized. ⌈m/2⌉\lceil m/2\rceil⌈m/2⌉ is (m + 1) / 2 in N\mathbb NN.

Preamble
import Mathlib
import Definitions.Def_FlowJobShop_PairGroups_FlowShop
import Definitions.Def_FlowJobShop_PairGroups_AlgorithmH
Formal statement
namespace FlowJobShop.PairGroups

open FlowShop

/-- **Lemma 11** (Gonzalez–Sahni 1978, p. 49). Let `S` be the schedule generated by algorithm H
from optimal schedules `R g` of the `⌈m/2⌉` processor groups, and let `τ` be any feasible
non-preemptive schedule of the `m`-processor flow shop (in particular an OFT schedule `S*`).
Then `FT(S) ≤ ⌈m/2⌉ · FT(τ)`, where `⌈m/2⌉ = (m + 1) / 2` in `ℕ`. -/
theorem lemma_11 {m n : ℕ} (F : FlowShop m n)
    (R : (g : Fin ((m + 1) / 2)) → Fin (groupSize m g) → Fin n → ℝ)
    (hR : ∀ g, (F.group g).IsOptimal (R g))
    (τ : Fin m → Fin n → ℝ) (hτ : F.IsFeasible τ) :
    F.finishTime (F.algorithmH R) ≤ (((m + 1) / 2 : ℕ) : ℝ) * F.finishTime τ := by sorry

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