Lemma 9 — the SPT schedule has mean flow time at most times the optimum,
ProvedFlowJobShop.SPT.lemma_9Let a job shop with processors and jobs be given; job is a finite sequence of tasks, each on a prescribed processor with a processing time , and is the sum of the task times of job . Let be an SPT schedule: the list schedule that processes the jobs in an order with (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 ,
In particular, for an optimal mean flow time schedule , , which is Lemma 9 of Gonzalez and Sahni. Their Example 2 shows that the factor cannot be improved.
The paper states the lemma for "an -processor, -job flow (or job) shop problem"; the job shop contains the flow shop as the special case of 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 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 . Its remark "(it is assumed that )" compares Lemma 9 with Lemma 8 and is not a hypothesis of Lemma 9.
import Mathlib import Definitions.Def_JobShopLTAS_Core_Instance import Definitions.Def_FlowJobShop_SPT_MeanFlowTime import Definitions.Def_FlowJobShop_SPT_ListSchedule open JobShopLTAS.Core
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.