Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma A.3, p. 35 — (Qin et al. 2019, Lemma 14) uniform deviation bound 2e^{−2nε²/(U−L)²} for bounded functions monotone in the sample

Proved
OfflineCensoredPricing.Identifiability.lemma_A_3

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

concentration-inequalityempirical-processp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1uniform-convergence

Let X1,…,XnX_1, \dots, X_nX1​,…,Xn​ be i.i.d. real random variables with law μ\muμ and values in X⊆R\mathcal X \subseteq \mathbb RX⊆R, and let Y⊆R\mathcal Y \subseteq \mathbb RY⊆R. Suppose f(x,y):X×Y→[L,U]f(x, y) : \mathcal X \times \mathcal Y \to [L, U]f(x,y):X×Y→[L,U] is measurable and monotone in x∈Xx \in \mathcal Xx∈X for any given y∈Yy \in \mathcal Yy∈Y. Then for any ε>0\varepsilon > 0ε>0,

P[sup⁡y∈Y∣1n∑i=1nf(Xi,y)−E[f(X1,y)]∣≤ε]≥1−2e−2nε2(U−L)2.\mathbb P\Big[\sup_{y\in\mathcal Y}\Big|\frac1n\sum_{i=1}^n f(X_i, y) - \mathbb E[f(X_1, y)]\Big| \le \varepsilon\Big] \ge 1 - 2e^{-\frac{2n\varepsilon^2}{(U-L)^2}}.P[y∈Ysup​​n1​i=1∑n​f(Xi​,y)−E[f(X1​,y)]​≤ε]≥1−2e−(U−L)22nε2​.

This generalizes the Dvoretzky–Kiefer–Wolfowitz inequality from indicators of half-lines to bounded monotone functions. The paper uses it to obtain uniform-in-price bounds on the empirical revenue (Lemma D.1).

Formalization Note "Monotone in xxx" means nondecreasing or nonincreasing on X\mathcal XX, possibly depending on yyy. Measurability is required of each section x↦f(x,y)x \mapsto f(x, y)x↦f(x,y), y∈Yy \in \mathcal Yy∈Y, which is what defines E[f(X1,y)]\mathbb E[f(X_1, y)]E[f(X1​,y)]. The XiX_iXi​ lie in X\mathcal XX almost surely. The statement bounds the outer probability of {∃y∈Y, ∣1n∑if(Xi,y)−Ef(X1,y)∣>ε}\{\exists y \in \mathcal Y,\ |\frac1n\sum_i f(X_i,y) - \mathbb E f(X_1,y)| > \varepsilon\}{∃y∈Y, ∣n1​∑i​f(Xi​,y)−Ef(X1​,y)∣>ε}.

Preamble
import Mathlib
Formal statement
namespace OfflineCensoredPricing.Identifiability

open MeasureTheory

/-- **Lemma A.3** (Lemma 14 in Qin et al. 2019; p. 35). Let `X₁, …, Xₙ` be i.i.d. random variables
(law `μ`, values in `𝒳 ⊆ ℝ` almost surely) and `𝒴 ⊆ ℝ`. Suppose `f(x, y) : 𝒳 × 𝒴 → [L, U]` is
measurable and monotone in `x ∈ 𝒳` for any given `y ∈ 𝒴`. Then for any `ε > 0`,
`P[sup_{y ∈ 𝒴} |(1/n) ∑ᵢ f(Xᵢ, y) − E[f(X₁, y)]| ≤ ε] ≥ 1 − 2e^{−2nε²/(U−L)²}`, stated as an upper bound
on the outer probability of the failure event. "Monotone" is nondecreasing or nonincreasing, possibly
depending on `y`. -/
theorem lemma_A_3 (μ : Measure ℝ) [IsProbabilityMeasure μ] (X Y : Set ℝ) (hX : ∀ᵐ x ∂μ, x ∈ X)
    (f : ℝ → ℝ → ℝ) (hfm : ∀ y ∈ Y, Measurable (fun x => f x y)) {L U : ℝ}
    (hf : ∀ x ∈ X, ∀ y ∈ Y, f x y ∈ Set.Icc L U)
    (hmono : ∀ y ∈ Y, MonotoneOn (fun x => f x y) X ∨ AntitoneOn (fun x => f x y) X)
    (n : ℕ) {ε : ℝ} (hε : 0 < ε) :
    Measure.pi (fun _ : Fin n => μ)
        {ω | ∃ y ∈ Y, ε < |(∑ i, f (ω i) y) / (n : ℝ) - ∫ x, f x y ∂μ|} ≤
      ENNReal.ofReal (2 * Real.exp (-(2 * (n : ℝ) * ε ^ 2 / (U - L) ^ 2))) := by sorry

end OfflineCensoredPricing.Identifiability
Source
Bu, Simchi-Levi & Wang, SSRN 3619625 (PDF of 2021-08-23), p. 35, Lemma A.3 (citing Lemma 14 of Qin et al. 2019)
Human review
  • Endorsed by Shuze Chen · Oct 22, 2026

    Confirmed by the moderator at approval.

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