Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3, (15) — the robust risk upper-bounds the population risk uniformly over F

Disproved
VarianceRegularization.Covering.robust_risk_certificate

by mikedeng1 · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

distributionally-robust-optimizationgeneralization-boundsp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1variance-regularization

Let F\mathcal FF be a class of measurable functions f:X→[M0,M1]f : \mathcal X \to [M_0, M_1]f:X→[M0​,M1​], M=M1−M0M = M_1 - M_0M=M1​−M0​, and let X1,…,XnX_1, \dots, X_nX1​,…,Xn​ (n≥1n \ge 1n≥1) be i.i.d. with law PPP, with empirical distribution P^n\widehat P_nPn​. For ρ≥0\rho \ge 0ρ≥0 the robust risk of fff is sup⁡P:Dϕ(P∥P^n)≤ρ/nEP[f(X)]\sup_{P : D_\phi(P\|\widehat P_n) \le \rho/n} \mathbb E_P[f(X)]supP:Dϕ​(P∥Pn​)≤ρ/n​EP​[f(X)], where DϕD_\phiDϕ​ is the χ2\chi^2χ2-type divergence with ϕ(t)=12(t−1)2\phi(t) = \frac12(t-1)^2ϕ(t)=21​(t−1)2. Let N∞(F,ϵ,2n)N_\infty(\mathcal F, \epsilon, 2n)N∞​(F,ϵ,2n) be the empirical ℓ∞\ell_\inftyℓ∞​ covering number. If n≥8M2/tn \ge 8M^2/tn≥8M2/t, t≥log⁡12t \ge \log 12t≥log12, ϵ>0\epsilon > 0ϵ>0 and ρ≥9t\rho \ge 9tρ≥9t, then with probability at least 1−2(3N∞(F,ϵ,2n)+1)e−t1 - 2(3N_\infty(\mathcal F, \epsilon, 2n) + 1)e^{-t}1−2(3N∞​(F,ϵ,2n)+1)e−t,

E[f(X)]≤sup⁡P:Dϕ(P∥P^n)≤ρnEP[f(X)]+113Mρn+(2+42tn)ϵfor all f∈F.\mathbb E[f(X)] \le \sup_{P : D_\phi(P\|\widehat P_n) \le \frac{\rho}{n}} \mathbb E_P[f(X)] + \frac{11}{3}\frac{M\rho}{n} + \left(2 + 4\sqrt{\frac{2t}{n}}\right)\epsilon \qquad \text{for all } f \in \mathcal F.E[f(X)]≤P:Dϕ​(P∥Pn​)≤nρ​sup​EP​[f(X)]+311​nMρ​+(2+4n2t​​)ϵfor all f∈F.

The robust risk is therefore, up to an O(1/n)O(1/n)O(1/n) term, a uniform upper confidence bound on the population risk: it certifies the quality of every element of F\mathcal FF, in particular of the robust minimizer.

Formalization Note The sample is the coordinate process of P⊗nP^{\otimes n}P⊗n, and the robust risk is the maximum of ∑ipif(Xi)\sum_i p_i f(X_i)∑i​pi​f(Xi​) over weight vectors ppp in the χ2\chi^2χ2 ball. The statement bounds the (outer) probability of the event where some f∈Ff \in \mathcal Ff∈F violates the inequality by 2(3N∞+1)e−t2(3N_\infty + 1)e^{-t}2(3N∞​+1)e−t, computed in [0,∞][0, \infty][0,∞].

Preamble
import Mathlib
import Definitions.Def_VarianceRegularization_Covering_robustSup
import Definitions.Def_VarianceRegularization_Covering_empCoveringNumber

open MeasureTheory
Formal statement
namespace VarianceRegularization.Covering

/-- Theorem 3, inequality (15) (Duchi–Namkoong, arXiv:1610.02581v3, p. 11): let `F` be a class
of measurable functions `X → [M₀, M₁]`, `M = M₁ - M₀`, `X₁,…,Xₙ` i.i.d. with law `P`,
`n ≥ 8M²/t`, `t ≥ log 12`, `ε > 0`, `ρ ≥ 9t`. With probability at least
`1 - 2(3 N∞(F, ε, 2n) + 1) e^{-t}`, for all `f ∈ F`,
`E[f(X)] ≤ sup_{P : D_φ(P‖P̂ₙ) ≤ ρ/n} E_P[f(X)] + (11/3) Mρ/n + (2 + 4√(2t/n)) ε`.
Stated as: the event where some `f ∈ F` violates (15) has (outer) measure at most
`2(3 N∞(F, ε, 2n) + 1) e^{-t}` in `ℝ≥0∞`. -/
theorem robust_risk_certificate {X : Type*} [MeasurableSpace X] (P : Measure X)
    [IsProbabilityMeasure P] (F : Set (X → ℝ)) (M0 M1 : ℝ) (hM : M0 ≤ M1)
    (hF : ∀ f ∈ F, Measurable f ∧ ∀ x, f x ∈ Set.Icc M0 M1) (n : ℕ) (hn : 0 < n) (t ρ ε : ℝ)
    (hnt : 8 * (M1 - M0) ^ 2 / t ≤ n) (ht : Real.log 12 ≤ t) (hε : 0 < ε) (hρ : 9 * t ≤ ρ) :
    Measure.pi (fun _ : Fin n => P)
        {s | ∃ f ∈ F, robustRisk ρ f s + 11 / 3 * ((M1 - M0) * ρ / n)
          + (2 + 4 * Real.sqrt (2 * t / n)) * ε < ∫ x, f x ∂P}
      ≤ 2 * (3 * (empCoveringNumber F ε (2 * n) : ENNReal) + 1)
          * ENNReal.ofReal (Real.exp (-t)) := by sorry

end VarianceRegularization.Covering
Source
Duchi and Namkoong, Variance-based regularization with convex objectives, arXiv:1610.02581v3 (2017), p. 11, Theorem 3, inequality (15)
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 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