Lemma 6.1: uniform deviation of the empirical process over the convex hull
ProvedNeymanPearsonClassification.uniform_deviation_convex_hullLet be measurable, , let be -Lipschitz with , and let . Let , , be i.i.d. random variables on with law , and write and . Then, with probability at least ,
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 " is stated as: the event on which the bound fails for some has (outer) probability at most .
import Mathlib import Definitions.Def_NeymanPearsonClassification_Basic open MeasureTheory ProbabilityTheory
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 NeymanPearsonClassificationRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix natural numbers , , with
The case is not excluded; then is a single point. Let be a family of base functions. Here is Euclidean space with its Borel -algebra. Each is assumed to be measurable and to take values only in .
For a weight vector , the convex combination is
The standard simplex is
The remaining ingredients are as follows.
- Probability measure . is a probability measure on .
- Function . is an arbitrary function. The only assumption is that it is -Lipschitz on , for a real constant :
Nothing else is assumed about . In particular, it need not be non-negative, monotone or convex, and it need not satisfy . Its values outside are unconstrained.
- Confidence level . is a real number with .
- Random sample. is a probability space. are measurable maps. They are mutually independent under , and each has law ; that is, the pushforward of under equals for every .
The theorem then asserts the following bound. Let be the set of outcomes for which it is not true that, for every simultaneously,
Then
A few technical points about how this is stated:
- Measure of . is not asserted to be measurable. is applied to an arbitrary subset of , i.e. the outer measure of .
- The integral. It is a Bochner integral, which by convention is taken to be when the integrand is not -integrable.
- The logarithm. It is the natural logarithm. Because and , its argument exceeds , so the right-hand side is a well-defined positive real number.
- Scope of . The quantifier over ranges over the uncountable set . It is applied pointwise for each fixed .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.