Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 11 — FT(S)≤∑gf(R(g))≤⌈m/2⌉max⁡gf(R(g))\mathrm{FT}(S)\le\sum_g f(R(g))\le\lceil m/2\rceil\max_g f(R(g))FT(S)≤∑g​f(R(g))≤⌈m/2⌉maxg​f(R(g))

Proved
FlowJobShop.PairGroups.algorithmH_finishTime_le

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 and nnn jobs, and for every group g=1,…,⌈m/2⌉g=1,\dots,\lceil m/2\rceilg=1,…,⌈m/2⌉ let R(g)R(g)R(g) be a feasible schedule of the flow shop FgF_gFg​ on the processors P2g−1,P2gP_{2g-1},P_{2g}P2g−1​,P2g​, with finish time f(R(g))f(R(g))f(R(g)). Let SSS be the schedule generated by algorithm H from these group schedules. Then

FT(S)≤∑g=1⌈m/2⌉f(R(g))≤⌈m2⌉ max⁡(0, max⁡gf(R(g))).\mathrm{FT}(S)\le\sum_{g=1}^{\lceil m/2\rceil} f(R(g))\le \Big\lceil \frac m2\Big\rceil\,\max\Big(0,\ \max_g f(R(g))\Big).FT(S)≤g=1∑⌈m/2⌉​f(R(g))≤⌈2m​⌉max(0, gmax​f(R(g))).

This is the upper bound on the heuristic's finish time used in the proof of Lemma 11.

Formalization Note ⌈m/2⌉\lceil m/2\rceil⌈m/2⌉ is written (m + 1) / 2 in N\mathbb NN, which equals ⌈m/2⌉\lceil m/2\rceil⌈m/2⌉ for every m≥0m\ge 0m≥0, and is cast to R\mathbb RR. The maximum has baseline 000, as in the lower bound.

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

open FlowShop

/-- Proof of Lemma 11 (p. 49): the schedule generated by algorithm H from feasible group
schedules `R g` satisfies `FT(S) ≤ Σ_g f(R(g)) ≤ ⌈m/2⌉ · max_g f(R(g))`, where `⌈m/2⌉` is
`(m + 1) / 2` in `ℕ`. -/
theorem algorithmH_finishTime_le {m n : ℕ} (F : FlowShop m n)
    (R : (g : Fin ((m + 1) / 2)) → Fin (groupSize m g) → Fin n → ℝ)
    (hR : ∀ g, (F.group g).IsFeasible (R g)) :
    F.finishTime (F.algorithmH R) ≤ ∑ g, (F.group g).finishTime (R g) ∧
    ∑ g, (F.group g).finishTime (R g) ≤
      (((m + 1) / 2 : ℕ) : ℝ) * (Finset.univ : Finset (Fin ((m + 1) / 2))).fold max 0
        (fun g => (F.group g).finishTime (R g)) := by sorry

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