Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§10.7, p. 39 — D_N²(F₀) ≤ max{1/√N + 3/(2N), √N W_N²(F₀) + 2/√N}

Proved
RobustSAA.Univariate.ks_sq_le_cvm

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

cramer-von-miseskolmogorov-smirnovp2o-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 have order statistics ξ(1)≤⋯≤ξ(N)\xi^{(1)}\le\dots\le\xi^{(N)}ξ(1)≤⋯≤ξ(N), and let F0F_0F0​ be a probability distribution on R\mathbb RR. With DND_NDN​ the Kolmogorov–Smirnov and WNW_NWN​ the Cramér–von Mises statistic (8),

DN2(F0)≤max⁡{1N+32N, N WN2(F0)+2N}.D_N^2(F_0)\le\max\Big\{\frac1{\sqrt N}+\frac3{2N},\ \sqrt N\,W_N^2(F_0)+\frac2{\sqrt N}\Big\}.DN2​(F0​)≤max{N​1​+2N3​, N​WN2​(F0​)+N​2​}.

Hence a CvM threshold of order N−1/2N^{-1/2}N−1/2 forces DN→0D_N\to0DN​→0 uniformly over the CvM region, reducing the CvM test to the KS case.

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. 39: `D_N²(F₀) ≤ max{1/√N + 3/(2N), √N W_N²(F₀) + 2/√N}`. -/
theorem ks_sq_le_cvm {N : ℕ} (hN : 0 < N) (F₀ : ProbabilityMeasure ℝ) (s : Fin N → ℝ) :
    ksStat F₀ s ^ 2 ≤
      max (1 / Real.sqrt N + 3 / (2 * N))
        (Real.sqrt N * cvmStat F₀ s ^ 2 + 2 / Real.sqrt N) := by sorry

end RobustSAA.Univariate
Source
Bertsimas, Gupta, Kallus, Robust Sample Average Approximation, arXiv:1408.4445v3, §10.7, proof of Theorem 5, p. 39, display after "Therefore,"
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