Theorem 4.1: control of the type I error
ProvedNeymanPearsonClassification.type_I_error_controlLet , , and let be an -Lipschitz convex surrogate. Let , , be measurable base classifiers with values in , and let , , be i.i.d. with law . Put and . Then, with probability at least , every with satisfies
that is, (eq. 4.1).
So a strengthened empirical constraint guarantees the prescribed level for the true type I error, with high probability.
Formalization Note The theorem's "any (random) classifier " is stated in the equivalent uniform form (4.1): on one event of probability at least the bound holds for every classifier satisfying the empirical constraint, so it holds for every data-dependent choice.
import Mathlib import Definitions.Def_NeymanPearsonClassification_Basic open MeasureTheory ProbabilityTheory
namespace NeymanPearsonClassification
theorem type_I_error_control {d M : ℕ} (hM : 2 ≤ M)
(h : Fin M → EuclideanSpace ℝ (Fin d) → ℝ) (hh : IsBaseFamily h)
(Pm Pp : Measure (EuclideanSpace ℝ (Fin d))) [IsProbabilityMeasure Pm] [IsProbabilityMeasure Pp]
(φ : ℝ → ℝ) (hφ : IsConvexSurrogate φ) (L : ℝ) (hL : 0 < L) (hLip : LipschitzOnWith (Real.toNNReal L) φ (Set.Icc (-1) 1))
(δ α : ℝ) (hδ : δ ∈ Set.Ioo 0 1) (hα : α ∈ Set.Ioo 0 1)
{nm : ℕ} (hnm : 1 ≤ nm)
{Omega : Type*} [MeasurableSpace Omega] (μ : Measure Omega) [IsProbabilityMeasure μ]
(Xm : Fin nm → Omega → EuclideanSpace ℝ (Fin d)) (hXm : ∀ i, Measurable (Xm i))
(hXind : iIndepFun Xm μ) (hXlaw : ∀ i, μ.map (Xm i) = Pm) :
μ {ω | ¬ ∀ f ∈ HphiEmp h φ Finset.univ (fun i => Xm i ω) (α - kappa L M δ / Real.sqrt nm),
typeI Pm f ≤ phiTypeI Pm φ f ∧ phiTypeI Pm φ f ≤ α} ≤ ENNReal.ofReal δ := by sorry
end NeymanPearsonClassificationRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let and be natural numbers with , and write for -dimensional Euclidean space with its Borel structure.
Base classifiers. Let be functions such that each is measurable and takes all its values in .
Class-conditional laws. Let and be probability measures on . The measure is assumed to be a probability measure but does not appear anywhere in the conclusion.
Surrogate. Let be a convex surrogate, meaning that on it is:
- non-negative,
- non-decreasing,
- continuous,
- convex,
and . Nothing is assumed about outside . Let be a real number such that is -Lipschitz on :
Parameters. Let and be real numbers with and , and let be a natural number with . Define
where is the natural logarithm. Since and , the argument exceeds , so .
Sample. Let be a probability space. Let be measurable maps that are mutually independent under , each with distribution exactly .
Function classes and errors. For a weight vector in the standard simplex
write . Let ; every such function takes values in . For a function , define:
- the type I error ;
- the -type I error , a Bochner integral, which by convention equals if the integrand is not integrable;
- for each outcome , the empirical -type I error
For each , let
Conclusion. The theorem asserts that
Equivalently, with -probability at least (in the outer-measure sense), every satisfies
The measure is applied to this set directly, as an outer measure; its measurability is not asserted.
Degenerate cases. If , then is empty for every , because on . In that case the bad event is empty and the conclusion holds trivially. This happens, for example, whenever is small relative to .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.