Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 10, p. 22 — E[(X − µ)^+] ≤ µ√∆/2 (∆ ≤ 1) and ≤ µ∆/(∆+1) (∆ ≥ 1)

Proved
GreedWorks.OnlineTime.lemma_10

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

coefficient-of-variationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1positive-partprobability-inequality

Let XXX be a nonnegative random variable with finite second moment and mean μ=E[X]>0\mu=\mathbb E[X]>0μ=E[X]>0, and let Δ=Var⁡[X]/μ2\Delta=\operatorname{Var}[X]/\mu^2Δ=Var[X]/μ2 be its squared coefficient of variation. Then

E[(X−μ)+]≤{μ Δ2,Δ≤1,μ ΔΔ+1,Δ≥1.\mathbb E\big[(X-\mu)^+\big]\le\begin{cases}\mu\,\dfrac{\sqrt\Delta}{2},&\Delta\le1,\\[6pt]\mu\,\dfrac{\Delta}{\Delta+1},&\Delta\ge1.\end{cases}E[(X−μ)+]≤⎩⎨⎧​μ2Δ​​,μΔ+1Δ​,​Δ≤1,Δ≥1.​

Equivalently E[(X−μ)+]≤(h(Δ)−1) μ\mathbb E[(X-\mu)^+]\le(h(\Delta)-1)\,\muE[(X−μ)+]≤(h(Δ)−1)μ; this is how the delay a job can cause beyond its mean is controlled in the stochastic analysis.

Formalization Note The squared coefficient of variation is undefined at μ=0\mu=0μ=0, so μ>0\mu>0μ>0 is assumed. (x)+=max⁡(x,0)(x)^+=\max(x,0)(x)+=max(x,0). A finite second moment makes the variance finite.

Preamble
import Mathlib
Formal statement
namespace GreedWorks.OnlineTime

open MeasureTheory ProbabilityTheory

/-- Lemma 10 (p. 22). Let `X ≥ 0` be a random variable with finite second moment and mean
`μ = 𝔼[X] > 0`, and let `Δ = Var[X]/μ²` be its squared coefficient of variation. Then
`𝔼[(X − μ)⁺] ≤ μ √Δ / 2` if `Δ ≤ 1`, and `𝔼[(X − μ)⁺] ≤ μ Δ / (Δ + 1)` if `Δ ≥ 1`. -/
theorem lemma_10 {Ω : Type*} [MeasurableSpace Ω] (Pr : Measure Ω) [IsProbabilityMeasure Pr]
    (X : Ω → ℝ) (hX0 : ∀ ω, 0 ≤ X ω) (hX : MemLp X 2 Pr) (hμ : 0 < ∫ ω, X ω ∂Pr) :
    (variance X Pr / (∫ ω, X ω ∂Pr) ^ 2 ≤ 1 →
      ∫ ω, max (X ω - ∫ ω', X ω' ∂Pr) 0 ∂Pr ≤
        (∫ ω, X ω ∂Pr) * Real.sqrt (variance X Pr / (∫ ω, X ω ∂Pr) ^ 2) / 2) ∧
    (1 ≤ variance X Pr / (∫ ω, X ω ∂Pr) ^ 2 →
      ∫ ω, max (X ω - ∫ ω', X ω' ∂Pr) 0 ∂Pr ≤
        (∫ ω, X ω ∂Pr) * (variance X Pr / (∫ ω, X ω ∂Pr) ^ 2) /
          (variance X Pr / (∫ ω, X ω ∂Pr) ^ 2 + 1)) := by sorry

end GreedWorks.OnlineTime
Source
Gupta, Moseley, Uetz & Xie, Greed Works – Online Algorithms For Unrelated Machine Stochastic Scheduling, arXiv:1703.01634v4, p. 22, Appendix A, Lemma 10, (20)
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