Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2, p. 9 — for 0 < ε ≤ 1, Q̂_N is ε-optimal with probability ≥ 1 − 2exp(−Nε²/(18+8ε) · min{b,h}/(b+h))

Proved
DataDrivenNV.LRS.theorem2_improved_lrs_bound

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

concentration-inequalitynewsvendorp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1sample-average-approximation

Improved LRS bound. Consider the newsvendor problem with underage cost b>0b>0b>0 and overage cost h>0h>0h>0 and a real-valued demand DDD with law μ\muμ and E∣D∣<∞\mathbb E|D|<\inftyE∣D∣<∞. Let C(q)=E[b(D−q)++h(q−D)+]C(q)=\mathbb E[b(D-q)^+ + h(q-D)^+]C(q)=E[b(D−q)++h(q−D)+], let q∗=inf⁡{q:F(q)≥b/(b+h)}q^*=\inf\{q:F(q)\ge b/(b+h)\}q∗=inf{q:F(q)≥b/(b+h)} be the critical quantile, and let Q^N\hat Q_NQ^​N​ be the SAA solution, the b/(b+h)b/(b+h)b/(b+h) quantile of an i.i.d. sample of size N≥1N\ge1N≥1 from μ\muμ. Then for every 0<ϵ≤10<\epsilon\le10<ϵ≤1, Q^N\hat Q_NQ^​N​ is ϵ\epsilonϵ-optimal, i.e. C(Q^N)≤(1+ϵ)C(q∗)C(\hat Q_N)\le(1+\epsilon)C(q^*)C(Q^​N​)≤(1+ϵ)C(q∗), with probability at least

1−2exp⁡(−Nϵ218+8ϵ⋅min⁡{b,h}b+h).1-2\exp\Big(-\frac{N\epsilon^2}{18+8\epsilon}\cdot\frac{\min\{b,h\}}{b+h}\Big).1−2exp(−18+8ϵNϵ2​⋅b+hmin{b,h}​).

The bound holds for every demand distribution. Compared with the bound of Levi, Roundy and Shmoys (2007), the exponent depends on min⁡{b,h}/(b+h)\min\{b,h\}/(b+h)min{b,h}/(b+h) rather than on its square, so the required sample size grows much more slowly when the critical ratio b/(b+h)b/(b+h)b/(b+h) is close to 000 or 111.

Formalization Note The statement bounds the probability, under the product measure μ⊗N\mu^{\otimes N}μ⊗N, of the event that Q^N\hat Q_NQ^​N​ is not ϵ\epsilonϵ-optimal. The paper states the theorem "for any ϵ>0\epsilon>0ϵ>0"; it is restricted here to 0<ϵ≤10<\epsilon\le10<ϵ≤1, because it is false for large ϵ\epsilonϵ. Counterexample: b=h=1b=h=1b=h=1, N=1N=1N=1, D∈{0,M}D\in\{0,M\}D∈{0,M} with Pr⁡(D=M)=0.005\Pr(D=M)=0.005Pr(D=M)=0.005. Then q∗=0q^*=0q∗=0, C(0)=0.005MC(0)=0.005MC(0)=0.005M, Q^1=D1\hat Q_1=D^1Q^​1​=D1 and C(M)=0.995MC(M)=0.995MC(M)=0.995M, so Q^1\hat Q_1Q^​1​ has relative regret 198198198 with probability 0.0050.0050.005, while at ϵ=150\epsilon=150ϵ=150 the bound promises a failure probability of about 2exp⁡(−22500/2436)≈1.9⋅10−42\exp(-22500/2436)\approx1.9\cdot10^{-4}2exp(−22500/2436)≈1.9⋅10−4. The hypothesis E∣D∣<∞\mathbb E|D|<\inftyE∣D∣<∞ makes CCC a genuine expectation; without it the Lean integral is 000 and the statement would be trivial.

Preamble
import Mathlib
import Definitions.Def_DataDrivenNV_LRS_Setting

open MeasureTheory ProbabilityTheory
Formal statement
namespace DataDrivenNV.LRS

/-- Theorem 2 (Improved LRS bound), p. 9, display (5). For a demand law `μ` with `E|D| < ∞`, an
i.i.d. sample of size `N ≥ 1` and `0 < ε ≤ 1`, the SAA quantile `Q̂_N` fails to be `ε`-optimal
with probability at most `2 exp(-(Nε²/(18 + 8ε)) · min{b,h}/(b + h))`. The restriction `ε ≤ 1`
is needed: the printed statement "for any ε > 0" fails for large `ε`. -/
theorem theorem2_improved_lrs_bound (b h : ℝ) (hb : 0 < b) (hh : 0 < h)
    (μ : Measure ℝ) [IsProbabilityMeasure μ] (hμ : Integrable id μ)
    (N : ℕ) (hN : 1 ≤ N) (ε : ℝ) (hε : 0 < ε) (hε1 : ε ≤ 1) :
    (Measure.pi fun _ : Fin N => μ)
        {x : Fin N → ℝ | ¬ IsEpsOptimal μ b h ε (saaQuantile b h x)} ≤
      ENNReal.ofReal
        (2 * Real.exp (-((N : ℝ) * ε ^ 2 / (18 + 8 * ε) * (min b h / (b + h))))) := by sorry

end DataDrivenNV.LRS
Source
Levi, Perakis & Uichanco, The Data-Driven Newsvendor Problem: New Bounds and Insights, authors' accepted manuscript (MIT DSpace), p. 9, Theorem 2 and display (5); proof in EC.1, pp. ec5–ec6
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