Lemma 1: FS has a preemptive schedule with finish time iff has a partition
ProvedFlowJobShop.PartitionFlow.lemma_1flow-shopnp-completenessp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1preemptive-schedulingreductionscheduling
Let be a multiset of nonnegative integers, , and FS the three-processor flow shop with at most two nonzero tasks per job built from in the proof of Lemma 1. Then
The paper states Lemma 1 as "Partition preemptive FOFT with and at most two nonzero tasks per job"; its proof establishes the equivalence above for the instance FS and threshold , which is what is formalized. Since FS is clearly computable from in polynomial time, this equivalence is the mathematical content of the reduction.
Formalization Note Polynomial-time reducibility ("") is not formalized; only the equivalence for the constructed instance is.
Preamble
import Mathlib import Definitions.Def_FlowJobShop_PartitionFlow_FlowShop import Definitions.Def_FlowJobShop_PartitionFlow_Partition import Definitions.Def_FlowJobShop_PartitionFlow_Instance open FlowJobShop.PartitionFlow.FlowShop
Formal statement
namespace FlowJobShop.PartitionFlow
/-- Lemma 1 (Gonzalez–Sahni 1978, p. 38; proof p. 39), in the form its proof establishes: the
three-processor flow shop FS built from `S = {a_1, …, a_n}` has a preemptive schedule with
finish time `≤ 2T` iff `S` has a partition. -/
theorem lemma_1 {n : ℕ} (a : Fin n → ℕ) :
(∃ S : PreemptiveSchedule (FS a), S.finishTime ≤ 2 * T a) ↔ HasPartition a := by sorry
end FlowJobShop.PartitionFlow
Source
Gonzalez, Sahni, Flowshop and Jobshop Schedules: Complexity and Approximation, Operations Research 26(1) (1978), p. 38, Lemma 1 (proof p. 39)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.