Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 6.1: uniform deviation of the empirical process over the convex hull

Proved
NeymanPearsonClassification.uniform_deviation_convex_hull

by Xeroth · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

binary-classificationchance-constrained-optimizationconvex-surrogateempirical-processesneyman-pearson

Let h1,…,hM:X→[−1,1]h_1,\dots,h_M:\mathcal X\to[-1,1]h1​,…,hM​:X→[−1,1] be measurable, M≥2M\ge2M≥2, let φ:[−1,1]→R\varphi:[-1,1]\to\mathbb{R}φ:[−1,1]→R be LLL-Lipschitz with L>0L>0L>0, and let δ∈(0,1)\delta\in(0,1)δ∈(0,1). Let X1,…,XnX_1,\dots,X_nX1​,…,Xn​, n≥1n\ge1n≥1, be i.i.d. random variables on X\mathcal XX with law PPP, and write Pnf=1n∑if(Xi)P_nf=\frac1n\sum_if(X_i)Pn​f=n1​∑i​f(Xi​) and Pf=∫f dPPf=\int f\,dPPf=∫fdP. Then, with probability at least 1−δ1-\delta1−δ,

sup⁡λ∈Λ∣(Pn−P)(φ∘hλ)∣≤42 Lnlog⁡(2Mδ).\sup_{\lambda\in\Lambda}\big|(P_n-P)(\varphi\circ\mathsf h_\lambda)\big|\le\frac{4\sqrt2\,L}{\sqrt n}\sqrt{\log\Big(\frac{2M}{\delta}\Big)}.λ∈Λsup​​(Pn​−P)(φ∘hλ​)​≤n​42​L​log(δ2M​)​.

This uniform deviation bound over the convex hull of the base classifiers underlies all the probabilistic statements of the paper.

Formalization Note "With probability at least 1−δ1-\delta1−δ" is stated as: the event on which the bound fails for some λ∈Λ\lambda\in\Lambdaλ∈Λ has (outer) probability at most δ\deltaδ.

Preamble
import Mathlib
import Definitions.Def_NeymanPearsonClassification_Basic

open MeasureTheory ProbabilityTheory
Formal statement
namespace NeymanPearsonClassification

theorem uniform_deviation_convex_hull {d M n : ℕ} (hM : 2 ≤ M) (hn : 1 ≤ n)
    (h : Fin M → EuclideanSpace ℝ (Fin d) → ℝ) (hh : IsBaseFamily h)
    (P : Measure (EuclideanSpace ℝ (Fin d))) [IsProbabilityMeasure P]
    (φ : ℝ → ℝ) (L : ℝ) (hL : 0 < L) (hLip : LipschitzOnWith (Real.toNNReal L) φ (Set.Icc (-1) 1))
    (δ : ℝ) (hδ : δ ∈ Set.Ioo 0 1)
    {Omega : Type*} [MeasurableSpace Omega] (μ : Measure Omega) [IsProbabilityMeasure μ]
    (X : Fin n → Omega → EuclideanSpace ℝ (Fin d)) (hXm : ∀ i, Measurable (X i))
    (hXind : iIndepFun X μ) (hXlaw : ∀ i, μ.map (X i) = P) :
    μ {ω | ¬ ∀ lam ∈ stdSimplex ℝ (Fin M),
      |(∑ i, φ (convComb h lam (X i ω))) / n - ∫ x, φ (convComb h lam x) ∂P| ≤
        4 * Real.sqrt 2 * L / Real.sqrt n * Real.sqrt (Real.log (2 * M / δ))} ≤
      ENNReal.ofReal δ := by sorry

end NeymanPearsonClassification
Source
Rigollet and Tong, Neyman-Pearson classification, convexity and stochastic constraints, arXiv:1102.5750v1 (2011), Section 6.2, Lemma 6.1, p. 15
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Fix natural numbers ddd, MMM, nnn with

M≥2,n≥1.M \ge 2, \qquad n \ge 1 .M≥2,n≥1.

The case d=0d = 0d=0 is not excluded; then R0\mathbb{R}^0R0 is a single point. Let h1,…,hM:Rd→Rh_1, \dots, h_M : \mathbb{R}^d \to \mathbb{R}h1​,…,hM​:Rd→R be a family of base functions. Here Rd\mathbb{R}^dRd is Euclidean space with its Borel σ\sigmaσ-algebra. Each hjh_jhj​ is assumed to be measurable and to take values only in [−1,1][-1,1][−1,1].

For a weight vector λ=(λ1,…,λM)\lambda = (\lambda_1, \dots, \lambda_M)λ=(λ1​,…,λM​), the convex combination is

hλ(x)=∑j=1Mλj hj(x).h_\lambda(x) = \sum_{j=1}^M \lambda_j\, h_j(x).hλ​(x)=j=1∑M​λj​hj​(x).

The standard simplex is

Λ={λ∈RM:λj≥0 for all j, ∑jλj=1}.\Lambda = \Big\{ \lambda \in \mathbb{R}^M : \lambda_j \ge 0 \text{ for all } j,\ \textstyle\sum_{j} \lambda_j = 1 \Big\}.Λ={λ∈RM:λj​≥0 for all j, ∑j​λj​=1}.

The remaining ingredients are as follows.

  • Probability measure PPP. PPP is a probability measure on Rd\mathbb{R}^dRd.
  • Function φ\varphiφ. φ:R→R\varphi : \mathbb{R} \to \mathbb{R}φ:R→R is an arbitrary function. The only assumption is that it is LLL-Lipschitz on [−1,1][-1,1][−1,1], for a real constant L>0L > 0L>0:
∣φ(s)−φ(t)∣≤L ∣s−t∣for all s,t∈[−1,1].|\varphi(s) - \varphi(t)| \le L\,|s-t| \quad \text{for all } s,t \in [-1,1].∣φ(s)−φ(t)∣≤L∣s−t∣for all s,t∈[−1,1].

Nothing else is assumed about φ\varphiφ. In particular, it need not be non-negative, monotone or convex, and it need not satisfy φ(0)=1\varphi(0)=1φ(0)=1. Its values outside [−1,1][-1,1][−1,1] are unconstrained.

  • Confidence level δ\deltaδ. δ\deltaδ is a real number with 0<δ<10 < \delta < 10<δ<1.
  • Random sample. (Ω,μ)(\Omega, \mu)(Ω,μ) is a probability space. X1,…,Xn:Ω→RdX_1, \dots, X_n : \Omega \to \mathbb{R}^dX1​,…,Xn​:Ω→Rd are measurable maps. They are mutually independent under μ\muμ, and each has law PPP; that is, the pushforward of μ\muμ under XiX_iXi​ equals PPP for every iii.

The theorem then asserts the following bound. Let EEE be the set of outcomes ω∈Ω\omega \in \Omegaω∈Ω for which it is not true that, for every λ∈Λ\lambda \in \Lambdaλ∈Λ simultaneously,

∣1n∑i=1nφ(hλ(Xi(ω)))  −  ∫φ(hλ(x)) dP(x)∣  ≤  42 Lnlog⁡ ⁣(2Mδ).\left| \frac{1}{n} \sum_{i=1}^n \varphi\big(h_\lambda(X_i(\omega))\big) \;-\; \int \varphi\big(h_\lambda(x)\big)\, dP(x) \right| \;\le\; \frac{4\sqrt{2}\,L}{\sqrt{n}} \sqrt{\log\!\left(\frac{2M}{\delta}\right)} .​n1​i=1∑n​φ(hλ​(Xi​(ω)))−∫φ(hλ​(x))dP(x)​≤n​42​L​log(δ2M​)​.

Then

μ(E)≤δ.\mu(E) \le \delta .μ(E)≤δ.

A few technical points about how this is stated:

  • Measure of EEE. EEE is not asserted to be measurable. μ(E)\mu(E)μ(E) is μ\muμ applied to an arbitrary subset of Ω\OmegaΩ, i.e. the outer measure of EEE.
  • The integral. It is a Bochner integral, which by convention is taken to be 000 when the integrand is not PPP-integrable.
  • The logarithm. It is the natural logarithm. Because M≥2M \ge 2M≥2 and δ<1\delta < 1δ<1, its argument 2M/δ2M/\delta2M/δ exceeds 444, so the right-hand side is a well-defined positive real number.
  • Scope of λ\lambdaλ. The quantifier over λ\lambdaλ ranges over the uncountable set Λ\LambdaΛ. It is applied pointwise for each fixed ω\omegaω.
Human review
  • Endorsed by Shuze Chen · Nov 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 23, 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