Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 9, p. 21 — expected completion time from processing-slot probabilities

Proved
GreedWorks.OnlineList.lemma_9

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

online-algorithmsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-schedulingtime-indexed-lpunrelated-machines

Consider one job with integer start time TTT and strictly positive integer processing time PPP. Assume TTT and PPP are measurable and independent, TTT has finite mean, and PPP has finite second moment. Write μ=E[P]\mu=\mathbb E[P]μ=E[P], CV[P]2=Var⁡(P)/μ2\mathrm{CV}[P]^2=\operatorname{Var}(P)/\mu^2CV[P]2=Var(P)/μ2, and ys=P(T≤s<T+P)y_s=\mathbb P(T\le s<T+P)ys​=P(T≤s<T+P), the probability of occupying slot sss. Then the series has sum

E[T+P]=∑s≥0[ysμ(s+12)+1−CV[P]22 ys].\mathbb E[T+P]=\sum_{s\ge0}\left[\frac{y_s}{\mu}\left(s+\frac12\right)+\frac{1-\mathrm{CV}[P]^2}{2}\,y_s\right].E[T+P]=s≥0∑​[μys​​(s+21​)+21−CV[P]2​ys​].

This supplies the completion-time formula (4) of the stochastic LP. Formalization Note Independence is the single-job content of the paper's nonanticipation explanation: the start decision cannot depend on the job's own processing time.

Preamble
import Mathlib
Formal statement
namespace GreedWorks.OnlineList

open MeasureTheory ProbabilityTheory

/-- Gupta et al., Lemma 9, p. 21: formula (4) for the expected completion
time of one nonanticipatorily started job.  Independence states that the start
decision does not depend on this job's own processing time. -/
theorem lemma_9 {Ω : Type*} [MeasurableSpace Ω]
    (Pr : Measure Ω) [IsProbabilityMeasure Pr]
    (T P : Ω → ℕ) (hT : Measurable T) (hP : Measurable P)
    (hPpos : ∀ ω, 1 ≤ P ω)
    (hP2 : MemLp (fun ω => (P ω : ℝ)) 2 Pr)
    (hTint : Integrable (fun ω => (T ω : ℝ)) Pr)
    (hIndep : IndepFun T P Pr) :
    let μ : ℝ := ∫ ω, (P ω : ℝ) ∂Pr
    let cv2 : ℝ := variance (fun ω => (P ω : ℝ)) Pr / μ ^ 2
    let y : ℕ → ℝ := fun s => (Pr {ω | T ω ≤ s ∧ s < T ω + P ω}).toReal
    HasSum (fun s : ℕ =>
      y s / μ * ((s : ℝ) + 1 / 2) + (1 - cv2) / 2 * y s)
      (∫ ω, ((T ω + P ω : ℕ) : ℝ) ∂Pr) := by sorry

end GreedWorks.OnlineList
Source
Gupta, Moseley, Uetz & Xie, Greed Works – Online Algorithms For Unrelated Machine Stochastic Scheduling, arXiv:1703.01634v4, p. 21, Appendix A, Lemma 9
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 9, 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