Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5, p. 14 — the KS, Kuiper, CvM, Watson and AD tests with O(N^(−1/2)) thresholds are uniformly consistent

Proved
RobustSAA.Univariate.theorem_5

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

anderson-darlinggoodness-of-fitkolmogorov-smirnovp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1uniform-consistency

Let the data ξ1,ξ2,…\xi^1,\xi^2,\dotsξ1,ξ2,… be iid from a continuous (atomless) distribution FFF on R\mathbb RR. For thresholds τN\tau_NτN​ with τN≤q/N\tau_N\le q/\sqrt NτN​≤q/N​ for some constant qqq and all N≥1N\ge1N≥1, consider the confidence regions

FNS={F0: SN(F0;ξ1,…,ξN)≤τN},SN∈{DN,VN,WN,UN,AN},\mathcal F^{S}_N=\{F_0:\ S_N(F_0;\xi^1,\dots,\xi^N)\le\tau_N\},\qquad S_N\in\{D_N,V_N,W_N,U_N,A_N\},FNS​={F0​: SN​(F0​;ξ1,…,ξN)≤τN​},SN​∈{DN​,VN​,WN​,UN​,AN​},

of the Kolmogorov–Smirnov, Kuiper, Cramér–von Mises, Watson and Anderson–Darling statistics (8). Then each of the five tests is uniformly consistent: almost surely, every sequence of distributions FNF_NFN​ that does not converge weakly to FFF satisfies

FN∉FNSfor infinitely many N.F_N\notin\mathcal F^{S}_N\quad\text{for infinitely many }N.FN​∈/FNS​for infinitely many N.

By Theorem 2 of the paper, uniform consistency is exactly what makes Robust SAA built on these confidence regions converge in objective, optimal value and optimal solutions for every admissible cost.

Formalization Note The paper's threshold QSN(α)Q_{S_N}(\alpha)QSN​​(α) enters only through its rate O(N−1/2)O(N^{-1/2})O(N−1/2) (pp. 9, 38–39), which is the hypothesis here; one sequence τ\tauτ is quantified universally, so each test may use its own threshold. Distributions range over all of R\mathbb RR; a support [ξ‾,ξ‾][\underline\xi,\overline\xi][ξ​,ξ​] with infinite endpoints is this case, and finite endpoints are a special case. The data law is required to be atomless, the standing assumption of §3.2 ("ξ is a univariate continuous random variable"); the paper's proof does not use it. ANA_NAN​ is +∞+\infty+∞ when some F0(ξ(i))∈{0,1}F_0(\xi^{(i)})\in\{0,1\}F0​(ξ(i))∈{0,1}. The paper's argument for the Watson test (p. 39) asserts an O(1/N)O(1/N)O(1/N) bound that fails when DN′(F0)D'_N(F_0)DN′​(F0​) is large; the Watson clause is believed true but its proof needs a different argument.

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

open Filter MeasureTheory

/-- Theorem 5, p. 14: for univariate data from a continuous law, the KS, Kuiper, CvM, Watson and
AD tests with thresholds `τ_N = O(N^{−1/2})` are uniformly consistent. -/
theorem theorem_5 (τ : ℕ → ℝ) (hτ : ThresholdRate τ) :
    IsUniformlyConsistent IsContinuousLaw (ksRegion τ) ∧
    IsUniformlyConsistent IsContinuousLaw (kuiperRegion τ) ∧
    IsUniformlyConsistent IsContinuousLaw (cvmRegion τ) ∧
    IsUniformlyConsistent IsContinuousLaw (watsonRegion τ) ∧
    IsUniformlyConsistent IsContinuousLaw (adRegion τ) := by sorry

end RobustSAA.Univariate
Source
Bertsimas, Gupta, Kallus, Robust Sample Average Approximation, arXiv:1408.4445v3, Theorem 5, p. 14; proof §10.7, pp. 38–39
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