Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§10.7, p. 38 — d_Lévy(F̂_N, F₀) ≤ D_N(F₀)

Proved
RobustSAA.Univariate.levy_le_ks

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

kolmogorov-smirnovlevy-metricp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let N≥1N\ge1N≥1, let ξ1,…,ξN∈R\xi^1,\dots,\xi^N\in\mathbb Rξ1,…,ξN∈R be any data with order statistics ξ(1)≤⋯≤ξ(N)\xi^{(1)}\le\dots\le\xi^{(N)}ξ(1)≤⋯≤ξ(N) and empirical cdf F^N\hat F_NF^N​, and let F0F_0F0​ be any probability distribution on R\mathbb RR. With the Kolmogorov–Smirnov statistic DN(F0)=max⁡imax⁡{iN−F0(ξ(i)), F0(ξ(i))−i−1N}D_N(F_0)=\max_{i}\max\{\tfrac iN-F_0(\xi^{(i)}),\,F_0(\xi^{(i)})-\tfrac{i-1}N\}DN​(F0​)=maxi​max{Ni​−F0​(ξ(i)),F0​(ξ(i))−Ni−1​},

dLeˊvy(F^N,F0)≤DN(F0).d_{\text{Lévy}}(\hat F_N,F_0)\le D_N(F_0).dLeˊvy​(F^N​,F0​)≤DN​(F0​).

This bounds the Lévy distance between the empirical cdf and any distribution in the KS confidence region by the KS threshold, which is how uniform consistency of the KS and Kuiper tests is obtained.

Formalization Note Lean indices are 0-based (Lean's i is the paper's i+1i+1i+1), and the order statistics are the sorted sample s ∘ Tuple.sort s. The statement assumes N≥1N\ge1N≥1, which the paper's statistics presuppose.

Preamble
import Mathlib
import Definitions.Def_RobustSAA_Univariate_Setting
Formal statement
namespace RobustSAA.Univariate

open Filter MeasureTheory

/-- §10.7, p. 38: `d_Lévy(F̂_N, F₀) ≤ D_N(F₀)`. -/
theorem levy_le_ks {N : ℕ} (hN : 0 < N) (F₀ : ProbabilityMeasure ℝ) (s : Fin N → ℝ) :
    levyDist (empCdf s) (cdfOf F₀) ≤ ksStat F₀ s := by sorry

end RobustSAA.Univariate
Source
Bertsimas, Gupta, Kallus, Robust Sample Average Approximation, arXiv:1408.4445v3, §10.7, proof of Theorem 5, p. 38, third paragraph
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

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