Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§5, p. 10 — parallel composition: the union of the two sets represents an optimal sequence

Proved
LawlerWCT.SeriesPar.parallel_composition

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

algorithm-correctnessp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingseries-parallel

Throughout, NNN is a finite set of jobs to be sequenced on a single machine, G=(N,A)G=(N,A)G=(N,A) is an acyclic digraph on NNN (job iii must precede job jjj when there is a directed path from iii to jjj), job jjj has a processing time pj>0p_j>0pj​>0 and a real weight wjw_jwj​, and the cost of a feasible sequence is ∑jwjCj\sum_{j} w_j C_j∑j​wj​Cj​, where CjC_jCj​ is the completion time of jjj when the machine starts at time 000 and never idles.

Say that a set FFF of composite jobs represents an optimal sequence for a set of jobs MMM if every composite job of FFF is a nonempty sequence each of whose nonempty proper prefixes has ratio at most its own, the composite jobs of FFF partition MMM, and every arrangement of FFF in nonincreasing ratio order, expanded into a sequence of jobs, is an optimal sequence for MMM (under the constraints of GGG among the jobs of MMM).

Let M1,M2⊆NM_1,M_2\subseteq NM1​,M2​⊆N be disjoint modules of GGG whose union M1∪M2M_1\cup M_2M1​∪M2​ is also a module (the sons of a node of the decomposition tree and the node itself), with no job of M1M_1M1​ constrained with respect to any job of M2M_2M2​ (neither must precede the other). If F1F_1F1​ represents an optimal sequence for M1M_1M1​ and F2F_2F2​ one for M2M_2M2​, then

F1∪F2 represents an optimal sequence for M1∪M2.F_1\cup F_2\ \text{represents an optimal sequence for}\ M_1\cup M_2 .F1​∪F2​ represents an optimal sequence for M1​∪M2​.

This is the parallel step of the algorithm: for a PPP-node of the decomposition tree nothing has to be computed.

Formalization Note The composite invariant (every proper prefix has ratio at most the whole) is part of "represents". Without it the claim fails: with a,ba,ba,b unconstrained, (w,p)=(2,1),(0,1)(w,p)=(2,1),(0,1)(w,p)=(2,1),(0,1), the single composite (a,b)(a,b)(a,b) is an optimal sequence for {a,b}\{a,b\}{a,b}, but with an independent xxx of (w,p)=(1.5,1)(w,p)=(1.5,1)(w,p)=(1.5,1) the ratio order x,a,bx,a,bx,a,b costs 5.55.55.5 while a,x,ba,x,ba,x,b costs 555. The page's composite jobs are ρ\rhoρ-maximal initial sets (p. 9), which is this invariant.

Preamble
import Mathlib
import Definitions.Def_LawlerWCT_SeriesPar_Model
Formal statement
namespace LawlerWCT.SeriesPar

theorem parallel_composition {ι : 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₂))
    (hunc : ∀ i ∈ M₁, ∀ j ∈ M₂, ¬ Relation.TransGen G i j ∧ ¬ Relation.TransGen G j i)
    (F₁ F₂ : List (List ι)) (h₁ : Represents G p w M₁ F₁) (h₂ : Represents G p w M₂ F₂) :
    Represents G p w (M₁ ∪ M₂) (F₁ ++ F₂) := by sorry

end LawlerWCT.SeriesPar
Source
Lawler, Sequencing jobs to minimize total weighted completion time subject to precedence constraints, IRIA-LABORIA Rapport de Recherche No. 205 (Dec. 1976), HAL hal-04716371v1, p. 10, §5, paragraph "For parallel composition of M₁ and M₂"
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me