Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2, algorithm H — every flow shop on a group of at most two processors has an OFT schedule

Proved
FlowJobShop.PairGroups.optimal_group_schedules_exist

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

flow-shopp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling

Let FFF be a flow shop with mmm processors and nnn jobs, and let g∈{1,…,⌈m/2⌉}g\in\{1,\dots,\lceil m/2\rceil\}g∈{1,…,⌈m/2⌉}. Then the flow shop FgF_gFg​ on the processor group {P2g−1,P2g}\{P_{2g-1},P_{2g}\}{P2g−1​,P2g​} (just {Pm}\{P_m\}{Pm​} for the last group when mmm is odd) has an optimal finish time schedule: there is a feasible non-preemptive schedule ρ\rhoρ of FgF_gFg​ with

FT(ρ)≤FT(ρ′)for every feasible schedule ρ′ of Fg.\mathrm{FT}(\rho)\le \mathrm{FT}(\rho')\quad\text{for every feasible schedule }\rho'\text{ of }F_g.FT(ρ)≤FT(ρ′)for every feasible schedule ρ′ of Fg​.

The paper obtains such a schedule with Johnson's O(nlog⁡n)O(n\log n)O(nlogn) algorithm. This statement guarantees that the optimal group schedules assumed in Lemma 11 exist, so that heuristic H is well defined on every instance.

Formalization Note Johnson's algorithm and its running time are not formalized; only the existence of an optimal schedule, which is what heuristic H uses, is stated.

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

open FlowShop

/-- §2, description of algorithm H (p. 48): for every group `g` of at most two processors, the
flow shop on that group has an optimal finish time schedule (the paper obtains it with
Johnson's algorithm). -/
theorem optimal_group_schedules_exist {m n : ℕ} (F : FlowShop m n) (g : Fin ((m + 1) / 2)) :
    ∃ ρ : Fin (groupSize m g) → Fin n → ℝ, (F.group g).IsOptimal ρ := by sorry

end FlowJobShop.PairGroups
Source
Gonzalez, Sahni, Flowshop and Jobshop Schedules: Complexity and Approximation, Operations Research 26(1) (1978), p. 48, §2, description of algorithm H (Johnson's algorithm)
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