Proposition 4.1: strengthening the constraint costs little type II error
ProvedNeymanPearsonClassification.stochastic_constraint_tighteningLet and let be a continuous convex surrogate. Let , , be measurable base classifiers with values in , and let be probability measures. Assume there is such that . Then for every ,
So strengthening the constraint on the -type I error by raises the optimal -type II error by at most .
Formalization Note The minima are written as infima. Both sets are nonempty because they contain , so the infima are the paper's minimal values.
import Mathlib import Definitions.Def_NeymanPearsonClassification_Basic open MeasureTheory ProbabilityTheory
namespace NeymanPearsonClassification
theorem stochastic_constraint_tightening {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 φ)
(α : ℝ) (hα : α ∈ Set.Ioo 0 1) (ν₀ : ℝ) (hν₀ : 0 < ν₀)
(hne : (Hphi h Pm φ (α - ν₀)).Nonempty) (ν : ℝ) (hν : ν ∈ Set.Ioo 0 ν₀) :
minPhiTypeII h Pm Pp φ (α - ν) - minPhiTypeII h Pm Pp φ α ≤ φ 1 * (ν / (ν₀ - ν)) := by sorry
end NeymanPearsonClassificationRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix natural numbers and with , and let (Euclidean space with its Borel -algebra; is allowed, in which case is a single point). The statement assumes the following:
- Base classifiers. are measurable functions, each taking values in at every point.
- Class-conditional laws. and are probability measures on .
- Surrogate. is a convex surrogate. On it is non-negative, non-decreasing, continuous and convex, and . Nothing is assumed about outside .
- Levels. is a real number with , is a real number with , and is a real number with .
- Nonemptiness. The set (defined below) is nonempty.
Definitions. Let be the probability simplex. Let , where
For a function , the -type I and -type II errors are
These are Bochner integrals, so each is taken to be if its integrand is not integrable. For a real level , define
Here is an infimum, which need not be attained. By the real-number convention used, equals if the set of values is empty or unbounded below.
Conclusion. Under these hypotheses,
Edge cases. always holds, because on , every takes values in , and non-integrable integrals are set to . Consequently, the nonemptiness hypothesis on can only be satisfied when . The hypotheses impose no relationship between and . No uniqueness or attainment of the infima is asserted.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.