Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4, p. 7 — the leaves of every subtree of a decomposition tree form a module

Proved
LawlerWCT.SeriesPar.subtree_isModule

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

modulesp2o-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.

Let TTT be a decomposition tree of GGG: its leaves are exactly the jobs of NNN, each occurring once, and for all i,j∈Ni,j\in Ni,j∈N, job iii must precede job jjj in GGG if and only if (i,j)(i,j)(i,j) is an arc of the transitive series parallel digraph built by TTT (that is, the transitive closure of GGG is the digraph TTT builds; GGG is series parallel).

Then for every subtree SSS of TTT (the subtree rooted at any node of TTT), the set of leaves of SSS is a module of GGG:

leaves⁡(S) is a job module of G=(N,A).\operatorname{leaves}(S)\ \text{is a job module of } G=(N,A).leaves(S) is a job module of G=(N,A).

This is what lets the series parallel algorithm treat each node of the decomposition tree as an independent subproblem, to which Sidney's Theorems 1 and 2 apply.

Formalization Note The processing times and weights play no role and are omitted. Modules use the disjunction of (4.1)–(4.3), which is "exactly one" for acyclic GGG.

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

theorem subtree_isModule {ι : Type*} [DecidableEq ι] (N : Finset ι) (G : ι → ι → Prop)
    (hGN : ∀ i j, G i j → i ∈ N ∧ j ∈ N) (hacyc : ∀ j, ¬ Relation.TransGen G j j)
    (T : SPTree ι) (hT : T.leaves.Nodup) (hTN : ∀ j, j ∈ T.leaves ↔ j ∈ N)
    (hTG : ∀ i ∈ N, ∀ j ∈ N, Relation.TransGen G i j ↔ T.prec i j)
    (S : SPTree ι) (hS : S.IsSubtree T) :
    IsModule G N S.leaves.toFinset := 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. 7, §4, paragraph "What is important for our purposes"
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