Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§5, p. 10 — composite jobs in nonincreasing ratio order give a minimum-cost arrangement

Proved
LawlerWCT.SeriesPar.ratio_order_optimal

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

p2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1schedulingsmith-ruleweighted-completion-time

Let pj>0p_j>0pj​>0 and wjw_jwj​ be the processing times and real weights of the jobs, and let F={c1,…,cm}F=\{c_1,\dots,c_m\}F={c1​,…,cm​} be a set of composite jobs: nonempty, pairwise disjoint sequences of distinct jobs. Each composite job ccc is treated as a single job with weight ∑j∈cwj\sum_{j\in c}w_j∑j∈c​wj​, processing time ∑j∈cpj\sum_{j\in c}p_j∑j∈c​pj​ and ratio

ρ(c)=∑j∈cwj∑j∈cpj.\rho(c)=\frac{\sum_{j\in c}w_j}{\sum_{j\in c}p_j}.ρ(c)=∑j∈c​pj​∑j∈c​wj​​.

If LLL arranges the composite jobs of FFF in nonincreasing order of ratio and L′L'L′ arranges them in any order, then the sequence obtained by expanding LLL costs no more than the one obtained by expanding L′L'L′:

∑jwjCj(L) ≤ ∑jwjCj(L′).\sum_{j}w_jC_j(L)\ \le\ \sum_j w_jC_j(L').j∑​wj​Cj​(L) ≤ j∑​wj​Cj​(L′).

This is Smith's ratio rule applied to composite jobs, the step "an optimal sequence can be found by simply placing them in nonincreasing order of the ratios".

Formalization Note The statement compares arrangements that keep each composite job together, with no precedence constraints between composite jobs; that the precedence constraints have been absorbed into the composite jobs is the content of the other milestones. Sequences of composite jobs are lists of lists, and "expanding" is List.flatten.

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

theorem ratio_order_optimal {ι : Type*} [DecidableEq ι] (p w : ι → ℝ)
    (F : List (List ι)) (hne : ∀ c ∈ F, c ≠ []) (hnd : F.flatten.Nodup)
    (hp : ∀ j ∈ F.flatten, 0 < p j) :
    ∀ L L' : List (List ι), L.Perm F → IsRatioOrder p w L → L'.Perm F →
      SingleMachinePrec.Biclique.weightedCompletion p w F.flatten.toFinset L.flatten ≤
        SingleMachinePrec.Biclique.weightedCompletion p w F.flatten.toFinset L'.flatten := 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, sentence "For any such set of jobs, an optimal sequence can be found by simply placing them in nonincreasing order of the ratios"
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