Lemma 11 — heuristic H has
ProvedFlowJobShop.PairGroups.lemma_11Let be a flow shop with processors and jobs with task times . Divide the processors into the groups (the last group being when is odd), and for every group let be an optimal finish time schedule of the flow shop restricted to that group. Let be the schedule generated by algorithm H, which runs the schedules one after another. Then for every feasible non-preemptive schedule of , in particular for an OFT schedule ,
The paper states this as . It improves the bound that holds for every busy schedule (Lemma 10), at the cost of solving two-processor problems, each of which Johnson's algorithm does in time .
Formalization Note The ratio is multiplied out, so the statement is meaningful when (e.g. or all times zero). The paper's H computes each 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 are not formalized. is (m + 1) / 2 in .
import Mathlib import Definitions.Def_FlowJobShop_PairGroups_FlowShop import Definitions.Def_FlowJobShop_PairGroups_AlgorithmH
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.