§5, pp. 10–11 — series composition by Steps 1–3 yields a set representing an optimal sequence
ProvedLawlerWCT.SeriesPar.series_composition_procedureThroughout, is a finite set of jobs to be sequenced on a single machine, is an acyclic digraph on (job must precede job when there is a directed path from to ), job has a processing time and a real weight , and the cost of a feasible sequence is , where is the completion time of when the machine starts at time and never idles.
Say that a set of composite jobs represents an optimal sequence for a set of jobs if every composite job of is a nonempty sequence each of whose nonempty proper prefixes has ratio at most its own, the composite jobs of partition , and every arrangement of in nonincreasing ratio order, expanded into a sequence of jobs, is an optimal sequence for (under the constraints of among the jobs of ).
Let be disjoint modules of whose union is also a module (the sons of a node of the decomposition tree and the node itself), with every job of required to precede every job of , and let and represent optimal sequences for and . Let be the result of any run of the series procedure (Steps 1–3, p. 11) on and : Step 1 compares a minimal-ratio with a maximal-ratio and halts with if , and otherwise forms ; Step 2 repeatedly absorbs a minimal-ratio of the rest of as while ; Step 3 halts with if a maximal-ratio of the rest of has , and otherwise absorbs it as and returns to Step 2. Then
This is the heart of the series parallel algorithm: the series step, which forms composite jobs, preserves optimality of the ratio order.
Formalization Note The procedure is the inductive relation SeriesMerge / SeriesLoop; every tie-breaking among minimal or maximal elements is allowed. The dummies of ratio are encoded by vacuous conditions on empty sets. The page's , and are modules (§5, p. 9: "an optimal sequence for a module from previously determined optimal sequences for its sons, and "); the module hypotheses are needed, since otherwise a path through a job would constrain without being visible to feasibility on .
import Mathlib import Definitions.Def_LawlerWCT_SeriesPar_Model
namespace LawlerWCT.SeriesPar
theorem series_composition_procedure {ι : Type*} [DecidableEq ι] (N : Finset ι) (G : ι → ι → Prop)
(hGN : ∀ i j, G i j → i ∈ N ∧ j ∈ N) (hacyc : ∀ j, ¬ Relation.TransGen G j j)
(p w : ι → ℝ) (hp : ∀ j ∈ N, 0 < p j)
(M₁ M₂ : Finset ι) (hdisj : Disjoint M₁ M₂)
(hM₁ : IsModule G N M₁) (hM₂ : IsModule G N M₂) (hM : IsModule G N (M₁ ∪ M₂))
(hser : ∀ i ∈ M₁, ∀ j ∈ M₂, Relation.TransGen G i j)
(F₁ F₂ : List (List ι)) (h₁ : Represents G p w M₁ F₁) (h₂ : Represents G p w M₂ F₂)
(F : List (List ι)) (hmerge : SeriesMerge p w F₁ F₂ F) :
Represents G p w (M₁ ∪ M₂) F := by sorry
end LawlerWCT.SeriesPar
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.