Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.1 (as proved): sampled convexified chance constrained programs

Proved
NeymanPearsonClassification.chance_constrained_bound_as_proved

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

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

Let δ,α∈(0,1/2)\delta,\alpha\in(0,1/2)δ,α∈(0,1/2), L>0L>0L>0, and let φ\varphiφ be an LLL-Lipschitz convex surrogate. Let g1,…,gM:Ξ→[−1,1]g_1,\dots,g_M:\Xi\to[-1,1]g1​,…,gM​:Ξ→[−1,1], M≥2M\ge2M≥2, be measurable, put F(λ,ξ)=∑jλjgj(ξ)F(\lambda,\xi)=\sum_j\lambda_jg_j(\xi)F(λ,ξ)=∑j​λj​gj​(ξ), and let fff be a real-valued convex function on the simplex Λ\LambdaΛ. Let ξ1,…,ξn\xi_1,\dots,\xi_nξ1​,…,ξn​, n≥1n\ge1n≥1, be i.i.d. copies of ξ\xiξ, let κ=42 Llog⁡(2M/δ)\kappa=4\sqrt2\,L\sqrt{\log(2M/\delta)}κ=42​Llog(2M/δ)​, and let λ~\tilde\lambdaλ~ be any solution of

min⁡λ∈Λf(λ)s.t.∑i=1nφ(F(λ,ξi))≤nα−κn.\min_{\lambda\in\Lambda}f(\lambda)\quad\text{s.t.}\quad\sum_{i=1}^n\varphi(F(\lambda,\xi_i))\le n\alpha-\kappa\sqrt n.λ∈Λmin​f(λ)s.t.i=1∑n​φ(F(λ,ξi​))≤nα−κn​.

Let fφ∗f^*_\varphifφ∗​ be the optimal value of min⁡λ∈Λf(λ)\min_{\lambda\in\Lambda}f(\lambda)minλ∈Λ​f(λ) s.t. E[φ(F(λ,ξ))]≤αE[\varphi(F(\lambda,\xi))]\le\alphaE[φ(F(λ,ξ))]≤α. Then, with probability at least 1−2δ1-2\delta1−2δ:

  1. λ~\tilde\lambdaλ~ is feasible for the chance constrained problem (5.1): P{F(λ~,ξ)≤0}≥1−α\mathbb P\{F(\tilde\lambda,\xi)\le0\}\ge1-\alphaP{F(λ~,ξ)≤0}≥1−α.
  2. If ε∈(0,1)\varepsilon\in(0,1)ε∈(0,1) is such that E[φ(F(λ,ξ))]≤εαE[\varphi(F(\lambda,\xi))]\le\varepsilon\alphaE[φ(F(λ,ξ))]≤εα for some λ∈Λ\lambda\in\Lambdaλ∈Λ, and n≥(4κ/((1−ε)α))2n\ge(4\kappa/((1-\varepsilon)\alpha))^2n≥(4κ/((1−ε)α))2, then
f(λ~)−fφ∗≤4 (sup⁡Λf−inf⁡Λf) κ(1−ε)αn.f(\tilde\lambda)-f^*_\varphi\le\frac{4\,(\sup_\Lambda f-\inf_\Lambda f)\,\kappa}{(1-\varepsilon)\alpha\sqrt n}.f(λ~)−fφ∗​≤(1−ε)αn​4(supΛ​f−infΛ​f)κ​.

Formalization Note The paper prints the constant φ(1)\varphi(1)φ(1) in place of sup⁡Λf−inf⁡Λf\sup_\Lambda f-\inf_\Lambda fsupΛ​f−infΛ​f. That version is false for a general convex fff: multiplying fff by c>0c>0c>0 multiplies the left side by ccc and leaves φ(1)\varphi(1)φ(1) unchanged. The proof the paper refers to (that of Theorem 4.2, through Proposition 4.1) bounds γ(εα)−γ(α−ν)\gamma(\varepsilon\alpha)-\gamma(\alpha-\nu)γ(εα)−γ(α−ν) by the range of the objective, which is φ(1)\varphi(1)φ(1) only when the objective takes values in [0,φ(1)][0,\varphi(1)][0,φ(1)], as Rφ+R^+_\varphiRφ+​ does. The statement here is the one that proof establishes. As in the paper, the event in item 2 is uniform in ε\varepsilonε. fφ∗f^*_\varphifφ∗​ is an infimum, and "any solution" is stated uniformly over all solutions.

Preamble
import Mathlib
import Definitions.Def_NeymanPearsonClassification_Basic

open MeasureTheory ProbabilityTheory
Formal statement
namespace NeymanPearsonClassification

theorem chance_constrained_bound_as_proved {Xi : Type*} [MeasurableSpace Xi] {M n : ℕ}
    (hM : 2 ≤ M) (hn : 1 ≤ n) (g : Fin M → Xi → ℝ) (hg : IsBaseFamily g)
    (Pxi : Measure Xi) [IsProbabilityMeasure Pxi]
    (f : (Fin M → ℝ) → ℝ) (hf : ConvexOn ℝ (stdSimplex ℝ (Fin M)) f)
    (φ : ℝ → ℝ) (hφ : IsConvexSurrogate φ) (L : ℝ) (hL : 0 < L) (hLip : LipschitzOnWith (Real.toNNReal L) φ (Set.Icc (-1) 1))
    (δ α : ℝ) (hδ : δ ∈ Set.Ioo 0 (1 / 2)) (hα : α ∈ Set.Ioo 0 (1 / 2))
    {Omega : Type*} [MeasurableSpace Omega] (μ : Measure Omega) [IsProbabilityMeasure μ]
    (xi : Fin n → Omega → Xi) (hxim : ∀ i, Measurable (xi i))
    (hxiind : iIndepFun xi μ) (hxilaw : ∀ i, μ.map (xi i) = Pxi) :
    μ {ω | ¬ ∀ lam, IsScenarioSolution g φ f α (kappa L M δ) (fun i => xi i ω) lam →
      IsChanceFeasible g Pxi α lam ∧
      ∀ ε ∈ Set.Ioo (0 : ℝ) 1,
        (∃ l ∈ stdSimplex ℝ (Fin M), phiTypeI Pxi φ (convComb g l) ≤ ε * α) →
        (4 * kappa L M δ / ((1 - ε) * α)) ^ 2 ≤ n →
        f lam - ccpOptValue g Pxi φ f α ≤
          4 * (sSup (f '' stdSimplex ℝ (Fin M)) - sInf (f '' stdSimplex ℝ (Fin M))) *
            kappa L M δ / ((1 - ε) * α * Real.sqrt n)} ≤ ENNReal.ofReal (2 * δ) := by sorry

end NeymanPearsonClassification
Source
Rigollet and Tong, Neyman-Pearson classification, convexity and stochastic constraints, arXiv:1102.5750v1 (2011), Section 5, Theorem 5.1, eqs. (5.1), (5.7), p. 12 (proof referred to Section 6.4)
Read-back

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

Let M≥2M \ge 2M≥2 and n≥1n \ge 1n≥1 be natural numbers. Let Λ⊂RM\Lambda \subset \mathbb{R}^MΛ⊂RM be the standard simplex

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

Setting and hypotheses.

  • Data space. Ξ\XiΞ is a measurable space with a probability measure PξP_\xiPξ​.
  • Base functions. g1,…,gM:Ξ→Rg_1, \dots, g_M : \Xi \to \mathbb{R}g1​,…,gM​:Ξ→R are measurable, and every value gj(ξ)g_j(\xi)gj​(ξ) lies in [−1,1][-1,1][−1,1]. For λ∈RM\lambda \in \mathbb{R}^Mλ∈RM write
F(λ,ξ)=∑j=1Mλj gj(ξ).F(\lambda, \xi) = \sum_{j=1}^M \lambda_j\, g_j(\xi).F(λ,ξ)=j=1∑M​λj​gj​(ξ).
  • Objective. f:RM→Rf : \mathbb{R}^M \to \mathbb{R}f:RM→R is convex on Λ\LambdaΛ. Nothing is assumed about fff outside Λ\LambdaΛ, and no continuity is assumed.
  • Surrogate. φ:R→R\varphi : \mathbb{R} \to \mathbb{R}φ:R→R satisfies the following on [−1,1][-1,1][−1,1]: it is non-negative, non-decreasing, continuous and convex, and φ(0)=1\varphi(0) = 1φ(0)=1. Its values outside [−1,1][-1,1][−1,1] are unconstrained.
  • Lipschitz constant. L>0L > 0L>0 is a real number with ∣φ(s)−φ(t)∣≤L∣s−t∣|\varphi(s) - \varphi(t)| \le L|s - t|∣φ(s)−φ(t)∣≤L∣s−t∣ for all s,t∈[−1,1]s, t \in [-1,1]s,t∈[−1,1].
  • Parameters. δ\deltaδ and α\alphaα are reals with 0<δ<120 < \delta < \tfrac120<δ<21​ and 0<α<120 < \alpha < \tfrac120<α<21​.
  • Constant. Set
κ=42 Llog⁡(2M/δ).\kappa = 4\sqrt{2}\, L \sqrt{\log(2M/\delta)}.κ=42​Llog(2M/δ)​.

Since M≥2M \ge 2M≥2 and δ<12\delta < \tfrac12δ<21​, we have 2M/δ>82M/\delta > 82M/δ>8, so κ>0\kappa > 0κ>0.

  • Sample. (Ω,μ)(\Omega, \mu)(Ω,μ) is a probability space. ξ1,…,ξn:Ω→Ξ\xi_1, \dots, \xi_n : \Omega \to \Xiξ1​,…,ξn​:Ω→Ξ are measurable, mutually independent under μ\muμ, and each has law PξP_\xiPξ​.

Auxiliary notions.

Scenario solution. For a fixed outcome ω\omegaω, call λ\lambdaλ a scenario solution if all three of the following hold:

  1. λ∈Λ\lambda \in \Lambdaλ∈Λ;
  2. it satisfies the sampled constraint
∑i=1nφ(F(λ,ξi(ω)))≤nα−κn;\sum_{i=1}^n \varphi\big(F(\lambda, \xi_i(\omega))\big) \le n\alpha - \kappa\sqrt{n};i=1∑n​φ(F(λ,ξi​(ω)))≤nα−κn​;
  1. f(λ)≤f(l)f(\lambda) \le f(l)f(λ)≤f(l) for every l∈Λl \in \Lambdal∈Λ satisfying the same sampled constraint.

If nα−κn<0n\alpha - \kappa\sqrt{n} < 0nα−κn​<0, or more generally if no point of Λ\LambdaΛ satisfies the constraint, then no scenario solution exists for that ω\omegaω.

Chance feasibility. Call λ\lambdaλ chance-feasible if λ∈Λ\lambda \in \Lambdaλ∈Λ and

Pξ{ξ:F(λ,ξ)≤0}≥1−α.P_\xi\{\xi : F(\lambda, \xi) \le 0\} \ge 1 - \alpha.Pξ​{ξ:F(λ,ξ)≤0}≥1−α.

Optimal value. Define

fφ∗=inf⁡{f(l):l∈Λ, ∫φ(F(l,ξ)) dPξ(ξ)≤α}.f^*_\varphi = \inf\Big\{ f(l) : l \in \Lambda,\ \int \varphi\big(F(l, \xi)\big)\, dP_\xi(\xi) \le \alpha \Big\}.fφ∗​=inf{f(l):l∈Λ, ∫φ(F(l,ξ))dPξ​(ξ)≤α}.

This is a real-valued infimum, and by convention it equals 000 if the set is empty or unbounded below. Likewise, each integral is taken to be 000 if the integrand is not integrable.

Range of fff. Write

sup⁡Λfandinf⁡Λf\sup_\Lambda f \quad\text{and}\quad \inf_\Lambda fΛsup​fandΛinf​f

for the real supremum and infimum of fff over Λ\LambdaΛ. Each takes the value 000 if the corresponding bound does not exist.

Conclusion. Let BBB be the set of outcomes ω\omegaω for which the following statement fails:

For every scenario solution λ\lambdaλ (with respect to ξ1(ω),…,ξn(ω)\xi_1(\omega), \dots, \xi_n(\omega)ξ1​(ω),…,ξn​(ω) and the constant κ\kappaκ above), both of the following hold:

(a) λ\lambdaλ is chance-feasible; and

(b) for every ε\varepsilonε with 0<ε<10 < \varepsilon < 10<ε<1, if there exists l∈Λl \in \Lambdal∈Λ with ∫φ(F(l,ξ)) dPξ≤εα\int \varphi(F(l, \xi))\, dP_\xi \le \varepsilon\alpha∫φ(F(l,ξ))dPξ​≤εα, and if nnn (as a real number) satisfies (4κ/((1−ε)α))2≤n\big(4\kappa / ((1-\varepsilon)\alpha)\big)^2 \le n(4κ/((1−ε)α))2≤n, then

f(λ)−fφ∗≤4(sup⁡Λf−inf⁡Λf) κ(1−ε) α n.f(\lambda) - f^*_\varphi \le \frac{4\big(\sup_\Lambda f - \inf_\Lambda f\big)\,\kappa}{(1-\varepsilon)\,\alpha\,\sqrt{n}}.f(λ)−fφ∗​≤(1−ε)αn​4(supΛ​f−infΛ​f)κ​.

The theorem asserts

μ(B)≤2δ.\mu(B) \le 2\delta.μ(B)≤2δ.

Measurability of BBB is not asserted, so μ(B)\mu(B)μ(B) is to be read as the outer measure.

Edge cases.

  • An outcome ω\omegaω for which no scenario solution exists lies outside BBB automatically, since the statement holds vacuously.
  • Part (a) is required unconditionally of every scenario solution.
  • Part (b) only constrains ε\varepsilonε values for which both of its premises hold.
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