Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 6.2: the optimal convexified type II error is non-increasing and convex

Proved
NeymanPearsonClassification.gamma_antitone_convex

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

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

Let φ\varphiφ be a convex surrogate, let h1,…,hMh_1,\dots,h_Mh1​,…,hM​, M≥2M\ge2M≥2, be measurable base classifiers with values in [−1,1][-1,1][−1,1], and let P−,P+P^-,P^+P−,P+ be probability measures. Let

γ(a)=inf⁡hλ∈Hφ,aRφ+(hλ).\gamma(a)=\inf_{\mathsf h_\lambda\in\mathcal H^{\varphi,a}}R^+_\varphi(\mathsf h_\lambda).γ(a)=hλ​∈Hφ,ainf​Rφ+​(hλ​).

Then γ\gammaγ is a non-increasing convex function on [0,1][0,1][0,1], where γ=+∞\gamma=+\inftyγ=+∞ wherever Hφ,a=∅\mathcal H^{\varphi,a}=\emptysetHφ,a=∅.

Formalization Note In Lean γ\gammaγ is real-valued, so the statement is made on D={a∈[0,1]:Hφ,a≠∅}D=\{a\in[0,1]:\mathcal H^{\varphi,a}\neq\emptyset\}D={a∈[0,1]:Hφ,a=∅}: γ\gammaγ is non-increasing on DDD, DDD is convex, and γ\gammaγ is convex on DDD. Because a↦Hφ,aa\mapsto\mathcal H^{\varphi,a}a↦Hφ,a is increasing, DDD is an up-closed subinterval of [0,1][0,1][0,1], and the statement is equivalent to the paper's statement with γ=+∞\gamma=+\inftyγ=+∞ off DDD.

Preamble
import Mathlib
import Definitions.Def_NeymanPearsonClassification_Basic

open MeasureTheory ProbabilityTheory
Formal statement
namespace NeymanPearsonClassification

theorem gamma_antitone_convex {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 φ) :
    AntitoneOn (minPhiTypeII h Pm Pp φ)
        {a : ℝ | a ∈ Set.Icc (0 : ℝ) 1 ∧ (Hphi h Pm φ a).Nonempty} ∧
      ConvexOn ℝ {a : ℝ | a ∈ Set.Icc (0 : ℝ) 1 ∧ (Hphi h Pm φ a).Nonempty}
        (minPhiTypeII h Pm Pp φ) := by sorry

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

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

Setting. Fix natural numbers ddd and MMM with M≥2M \ge 2M≥2 (d=0d = 0d=0 is allowed, in which case the space is a single point). Let X=Rd\mathcal X = \mathbb R^dX=Rd (Euclidean space with its Borel σ-algebra). The hypotheses are:

  • Base classifiers. h1,…,hM:X→Rh_1, \dots, h_M : \mathcal X \to \mathbb Rh1​,…,hM​:X→R are measurable functions with hj(x)∈[−1,1]h_j(x) \in [-1,1]hj​(x)∈[−1,1] for every jjj and every xxx.
  • Two probability measures. P−P^-P− and P+P^+P+ are probability measures on X\mathcal XX.
  • Convex surrogate. φ:R→R\varphi : \mathbb R \to \mathbb Rφ:R→R satisfies, on the interval [−1,1][-1,1][−1,1]: φ≥0\varphi \ge 0φ≥0, φ\varphiφ is non-decreasing, continuous and convex, and φ(0)=1\varphi(0) = 1φ(0)=1. Nothing is assumed about φ\varphiφ outside [−1,1][-1,1][−1,1].

Objects involved. Let Λ\LambdaΛ be the standard simplex, {λ∈RM:λj≥0, ∑jλj=1}\{\lambda \in \mathbb R^M : \lambda_j \ge 0,\ \sum_j \lambda_j = 1\}{λ∈RM:λj​≥0, ∑j​λj​=1}. Define:

  • Convex hull. HconvH^{\mathrm{conv}}Hconv is the set of functions hλ(x)=∑j=1Mλjhj(x)h_\lambda(x) = \sum_{j=1}^M \lambda_j h_j(x)hλ​(x)=∑j=1M​λj​hj​(x) with λ∈Λ\lambda \in \Lambdaλ∈Λ.
  • φ\varphiφ-type I and II errors. For a function fff,
Rφ−(f)=∫φ(f(x)) dP−(x),Rφ+(f)=∫φ(−f(x)) dP+(x).R^-_\varphi(f) = \int \varphi(f(x))\, dP^-(x), \qquad R^+_\varphi(f) = \int \varphi(-f(x))\, dP^+(x).Rφ−​(f)=∫φ(f(x))dP−(x),Rφ+​(f)=∫φ(−f(x))dP+(x).

These are Bochner integrals, with the convention that a non-integrable integrand gives the value 000.

  • Constrained class. For a real number aaa, Hφ,a={f∈Hconv:Rφ−(f)≤a}H^{\varphi,a} = \{ f \in H^{\mathrm{conv}} : R^-_\varphi(f) \le a \}Hφ,a={f∈Hconv:Rφ−​(f)≤a}.
  • Optimal value. For every real aaa,
γ(a)=inf⁡{Rφ+(f):f∈Hφ,a}.\gamma(a) = \inf \{ R^+_\varphi(f) : f \in H^{\varphi,a} \}.γ(a)=inf{Rφ+​(f):f∈Hφ,a}.

This is the real-number infimum, with the conventions that the infimum of the empty set is 000, and the infimum of a set that is not bounded below is also 000.

  • Domain. A={a∈[0,1]:Hφ,a≠∅}A = \{ a \in [0,1] : H^{\varphi,a} \neq \varnothing \}A={a∈[0,1]:Hφ,a=∅}.

Assertion. The statement asserts both of the following:

  1. Non-increasing. γ\gammaγ is non-increasing on AAA: for all a,b∈Aa, b \in Aa,b∈A with a≤ba \le ba≤b, we have γ(b)≤γ(a)\gamma(b) \le \gamma(a)γ(b)≤γ(a).
  2. Convex. γ\gammaγ is convex on AAA in the full sense, which includes two claims:
    • the set AAA is itself a convex subset of R\mathbb RR (an interval, possibly empty or a single point);
    • for all a,b∈Aa, b \in Aa,b∈A and all s,t≥0s, t \ge 0s,t≥0 with s+t=1s + t = 1s+t=1,
γ(sa+tb)≤s γ(a)+t γ(b).\gamma(s a + t b) \le s\,\gamma(a) + t\,\gamma(b).γ(sa+tb)≤sγ(a)+tγ(b).

Edge cases.

  • If AAA is empty, both conclusions hold trivially. The statement does not assume that Hφ,aH^{\varphi,a}Hφ,a is nonempty for any particular aaa.
  • The hypothesis M≥2M \ge 2M≥2 appears among the assumptions. The statement places no requirement on how it is used.
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