Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§7, pp. 16–17 — at the smallest point of an interval of length 1/(np*)² containing the optimal ratio, a maximum-weight initial set is ρ-maximal

Proved
LawlerWCT.RhoMax.max_weight_initial_set_rhoMaximal

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

algorithm-correctnessbinary-searchinitial-setsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1precedence-constraintsscheduling

Let G=(N,A)G=(N,A)G=(N,A) be an acyclic digraph on a finite set NNN of n=∣N∣n=|N|n=∣N∣ jobs, where job iii must precede job jjj when GGG has a directed path from iii to jjj. Let the weights and processing times be integers with

−w∗≤wj≤w∗,1≤pj≤p∗(j∈N),-w^*\le w_j\le w^*,\qquad 1\le p_j\le p^*\qquad(j\in N),−w∗≤wj​≤w∗,1≤pj​≤p∗(j∈N),

and let ρ∗=ρ(I∗)\rho^*=\rho(I^*)ρ∗=ρ(I∗) be the optimal ratio, the ratio of a ρ-maximal initial set I∗I^*I∗ of NNN. Let ρ\rhoρ be a real number with

ρ≤ρ∗≤ρ+ε,ε=1(n p∗)2,\rho\le\rho^*\le\rho+\varepsilon,\qquad\varepsilon=\frac{1}{(n\,p^*)^2},ρ≤ρ∗≤ρ+ε,ε=(np∗)21​,

i.e. the smallest value of an interval of length ε\varepsilonε known to contain the optimal ratio. Let III be a nonempty initial set of NNN of maximum weight with respect to wˉj=wj−ρpj\bar w_j=w_j-\rho p_jwˉj​=wj​−ρpj​ among all initial sets of NNN:

∑j∈I′(wj−ρpj)≤∑j∈I(wj−ρpj)for every initial set I′ of N.\sum_{j\in I'}(w_j-\rho p_j)\le\sum_{j\in I}(w_j-\rho p_j)\qquad\text{for every initial set } I' \text{ of } N .j∈I′∑​(wj​−ρpj​)≤j∈I∑​(wj​−ρpj​)for every initial set I′ of N.

Then III is a ρ-maximal initial set of NNN.

This is the correctness of the last step of Lawler's binary search for a ρ-maximal initial set: after the search has narrowed the optimal ratio to an interval of length ε\varepsilonε, one maximum-weight initial set computation (a minimum cut) at the left end of the interval returns a ρ-maximal initial set, which is what Sidney's decomposition of the sequencing problem requires.

Formalization Note. The maximum is over all initial sets, the empty one included, as a minimum cut delivers it. The hypothesis that III is nonempty is added: when ρ=ρ∗\rho=\rho^*ρ=ρ∗ the empty set is a maximizer of trial weight 000 but is not ρ-maximal, so the paper's sentence needs I≠∅I\neq\emptysetI=∅; when ρ<ρ∗\rho<\rho^*ρ<ρ∗ every maximizer is nonempty anyway. The optimal ratio is given through a ρ-maximal initial set I∗I^*I∗; integer data are cast to reals, and nnn and p∗p^*p∗ are cast to reals before dividing. The closed interval ρ≤ρ∗≤ρ+ε\rho\le\rho^*\le\rho+\varepsilonρ≤ρ∗≤ρ+ε is the paper's "interval of length not exceeding ε\varepsilonε" with ρ\rhoρ its smallest value.

Preamble
import Mathlib
import Definitions.Def_LawlerWCT_RhoMax_Model
Formal statement
namespace LawlerWCT.RhoMax

theorem max_weight_initial_set_rhoMaximal {ι : Type*} [DecidableEq ι] (N : Finset ι)
    (G : ι → ι → Prop) (hGN : ∀ i j, G i j → i ∈ N ∧ j ∈ N)
    (hacyc : ∀ j, ¬ Relation.TransGen G j j)
    (w p : ι → ℤ) (wstar pstar : ℤ)
    (hw : ∀ j ∈ N, -wstar ≤ w j ∧ w j ≤ wstar) (hpb : ∀ j ∈ N, 1 ≤ p j ∧ p j ≤ pstar)
    (Istar : Finset ι)
    (hIstar : LawlerWCT.SeriesPar.IsRhoMaximal G (fun j => (p j : ℝ)) (fun j => (w j : ℝ)) N Istar)
    (ρ : ℝ)
    (hlo : ρ ≤ LawlerWCT.SeriesPar.rho (fun j => (p j : ℝ)) (fun j => (w j : ℝ)) Istar)
    (hhi : LawlerWCT.SeriesPar.rho (fun j => (p j : ℝ)) (fun j => (w j : ℝ)) Istar ≤
      ρ + 1 / ((N.card : ℝ) * (pstar : ℝ)) ^ 2) :
    ∀ I, LawlerWCT.SeriesPar.IsInitialSet G N I → I.Nonempty →
      (∀ I', LawlerWCT.SeriesPar.IsInitialSet G N I' →
        trialWeight (fun j => (p j : ℝ)) (fun j => (w j : ℝ)) ρ I' ≤
          trialWeight (fun j => (p j : ℝ)) (fun j => (w j : ℝ)) ρ I) →
      LawlerWCT.SeriesPar.IsRhoMaximal G (fun j => (p j : ℝ)) (fun j => (w j : ℝ)) N I := by sorry

end LawlerWCT.RhoMax
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, pp. 16–17, §7, paragraph "It is sufficient to carry out a binary search ... In either case, the maximum weight initial set I which is determined is ρ-maximal."
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