Lemma 5 and Corollary 2 (pp. 43–44) — the Partition job shop JS has a schedule of finish time , preemptive or not, iff a partition exists
ProvedFlowJobShop.PartitionJob.lemma_5_corollary_2Let be nonnegative integers and . Let be the job shop with two processors and jobs in which job has tasks , job has tasks , and job has tasks . Then the following are equivalent:
- has a preemptive schedule with finish time ;
- has a non-preemptive schedule with finish time ;
- has a partition, for some index set .
The paper states these as Lemma 5, "Partition preemptive JOFT", and Corollary 2, "Partition nonpreemptive JOFT", and summarizes: finding optimal finish time preemptive schedules when is NP-complete even when the job mix contains only two jobs with three nonzero tasks. Their proofs establish the two equivalences above for the constructed instance, which is what is formalized.
Formalization Note NP-completeness, the reduction's polynomial running time and Lemma 6 (JOFT is in NP) are not formalized. Schedules are finite sets of pieces (task, start, end) as in the paper's footnote 1, p. 40.
import Mathlib import Definitions.Def_JobShopLTAS_Core_Instance import Definitions.Def_FlowJobShop_PartitionFlow_Partition import Definitions.Def_FlowJobShop_PartitionJob_Schedule import Definitions.Def_FlowJobShop_PartitionJob_JS
namespace FlowJobShop.PartitionJob
open JobShopLTAS.Core
/-- Lemma 5 and Corollary 2 (Gonzalez–Sahni 1978, pp. 43–44): for every PARTITION instance `a`,
the two-processor job shop `JS(a)` (`n` jobs with two tasks, two jobs with three tasks) has a
preemptive schedule with finish time `≤ 5T` iff `a` has a partition, and has a non-preemptive
schedule with finish time `≤ 5T` iff `a` has a partition. -/
theorem lemma_5_corollary_2 {n : ℕ} (a : Fin n → ℕ) :
((∃ S : Schedule (JS a), S.IsPreemptive ∧ S.FinishedBy (5 * FlowJobShop.PartitionFlow.T a)) ↔ FlowJobShop.PartitionFlow.HasPartition a) ∧
((∃ S : Schedule (JS a), S.IsNonPreemptive ∧ S.FinishedBy (5 * FlowJobShop.PartitionFlow.T a)) ↔ FlowJobShop.PartitionFlow.HasPartition a) := by sorry
end FlowJobShop.PartitionJob
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.