Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2.5 — Random-α\alphaα: E[Ciα]≤(1+δ)CiPE[C^\alpha_i]\le(1+\delta)C^P_iE[Ciα​]≤(1+δ)CiP​

Proved
AvgCompletionSched.BestAlpha.random_alpha_bound

by mikedeng1 · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

approximation-algorithmsp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1randomized-algorithmsscheduling

Let PPP be any preemptive one-machine schedule of an instance with processing times pj>0p_j>0pj​>0 and release dates rj≥0r_j\ge0rj​≥0. Let fff be a probability density on (0,1](0,1](0,1]: f≥0f\ge0f≥0 on (0,1](0,1](0,1], fff integrable on [0,1][0,1][0,1], and ∫01f=1\int_0^1 f=1∫01​f=1. Let δ\deltaδ be any real number with

∫0β1+α−ββf(α) dα≤δfor all β∈(0,1].\int_0^\beta\frac{1+\alpha-\beta}{\beta}f(\alpha)\,d\alpha\le\delta\qquad\text{for all }\beta\in(0,1].∫0β​β1+α−β​f(α)dα≤δfor all β∈(0,1].

Draw α\alphaα with density fff and let CiαC^\alpha_iCiα​ be the completion time of JiJ_iJi​ in the α\alphaα-schedule (ties broken by job index). Then for every job JiJ_iJi​ the map α↦f(α)Ciα\alpha\mapsto f(\alpha)C^\alpha_iα↦f(α)Ciα​ is integrable on [0,1][0,1][0,1] and

E[Ciα]=∫01f(α) Ciα dα≤(1+δ) CiP,E[C^\alpha_i]=\int_0^1 f(\alpha)\,C^\alpha_i\,d\alpha\le(1+\delta)\,C^P_i,E[Ciα​]=∫01​f(α)Ciα​dα≤(1+δ)CiP​,

and consequently E[∑iCiα]≤(1+δ)∑iCiPE\bigl[\sum_i C^\alpha_i\bigr]\le(1+\delta)\sum_i C^P_iE[∑i​Ciα​]≤(1+δ)∑i​CiP​.

Choosing different densities in this bound gives the three parts of Theorem 2.6.

Formalization Note The paper's δ=max⁡0<β≤1∫0β1+α−ββf(α) dα\delta=\max_{0<\beta\le1}\int_0^\beta\frac{1+\alpha-\beta}{\beta}f(\alpha)\,d\alphaδ=max0<β≤1​∫0β​β1+α−β​f(α)dα is replaced by an arbitrary upper bound δ\deltaδ of these integrals; the statement for every such δ\deltaδ is equivalent to the paper's statement with δ\deltaδ the supremum, and it avoids assuming that the maximum is attained. Integrability of the expectation is part of the conclusion.

Preamble
import Mathlib
import Definitions.Def_AvgCompletionSched_BestAlpha_Model
Formal statement
namespace AvgCompletionSched.BestAlpha
theorem random_alpha_bound {n : ℕ} {I : Instance n} (P : PreemptiveSchedule I)
    (f : ℝ → ℝ) (hf_nonneg : ∀ α ∈ Set.Ioc (0 : ℝ) 1, 0 ≤ f α)
    (hf_int : IntervalIntegrable f MeasureTheory.volume 0 1)
    (hf_one : ∫ α in (0 : ℝ)..1, f α = 1)
    (δ : ℝ) (hδ : ∀ β ∈ Set.Ioc (0 : ℝ) 1, ∫ α in (0 : ℝ)..β, (1 + α - β) / β * f α ≤ δ) :
    (∀ i, IntervalIntegrable (fun α => f α * P.Calpha α i) MeasureTheory.volume 0 1 ∧
        ∫ α in (0 : ℝ)..1, f α * P.Calpha α i ≤ (1 + δ) * P.CP i) ∧
      ∫ α in (0 : ℝ)..1, f α * ∑ i, P.Calpha α i ≤ (1 + δ) * ∑ i, P.CP i := by sorry
end AvgCompletionSched.BestAlpha
Source
Chekuri, Motwani, Natarajan, Stein, Approximation Techniques for Average Completion Time Scheduling, SIAM J. Comput. 31(1), 2001, p. 153, Lemma 2.5 (proof pp. 153–154)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Take any instance III with nnn jobs (processing times pj>0p_j > 0pj​>0, release dates rj≥0r_j \ge 0rj​≥0) and any preemptive schedule PPP of III; PPP need not be optimal. Take a real function fff satisfying:

  • f(α)≥0f(\alpha)\ge 0f(α)≥0 for α∈(0,1]\alpha\in(0,1]α∈(0,1];
  • fff is integrable on [0,1][0,1][0,1];
  • ∫01f(α) dα=1\displaystyle\int_0^1 f(\alpha)\,d\alpha = 1∫01​f(α)dα=1.

Take a real δ\deltaδ such that for every β∈(0,1]\beta\in(0,1]β∈(0,1]:

∫0β1+α−ββ f(α) dα  ≤  δ.\int_0^\beta \frac{1+\alpha-\beta}{\beta}\, f(\alpha)\,d\alpha \;\le\; \delta.∫0β​β1+α−β​f(α)dα≤δ.

Let CiαC^\alpha_iCiα​ be the completion time of job iii under nonpreemptive list scheduling, with jobs listed in the canonical α\alphaα-order of PPP. In that order jobs are sorted by α\alphaα-point CjP(α)=inf⁡{t:donej(t)≥αpj}C^P_j(\alpha) = \inf\{t : \mathrm{done}_j(t)\ge\alpha p_j\}CjP​(α)=inf{t:donej​(t)≥αpj​}, with ties broken by smaller job index. Each job starts at the later of its release date and the previous job's finish.

The statement asserts two things.

  1. For every job iii, the function α↦f(α) Ciα\alpha\mapsto f(\alpha)\,C^\alpha_iα↦f(α)Ciα​ is integrable on [0,1][0,1][0,1], and
∫01f(α) Ciα dα≤(1+δ) CiP.\int_0^1 f(\alpha)\,C^\alpha_i\,d\alpha \le (1+\delta)\,C^P_i.∫01​f(α)Ciα​dα≤(1+δ)CiP​.
  1. For the total:
∫01f(α)∑iCiα dα≤(1+δ)∑iCiP.\int_0^1 f(\alpha)\sum_i C^\alpha_i\,d\alpha \le (1+\delta)\sum_i C^P_i.∫01​f(α)i∑​Ciα​dα≤(1+δ)i∑​CiP​.

Degenerate cases.

  • fff is unconstrained at α=0\alpha = 0α=0 and outside [0,1][0,1][0,1].
  • At α=0\alpha = 0α=0 every α\alphaα-point is 000 by the infimum convention, so the canonical order is the index order. This is a single point of measure zero.
  • Part 2 does not separately assert integrability. An integral of a non-integrable function would be taken as 000.
  • When n=0n = 0n=0, all quantities are 000.
  • If δ\deltaδ is taken larger than necessary, the hypothesis becomes easier to satisfy and the bound weaker.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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