Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 3.1 — box-robust sample average optimization is consistent

Proved
DistInterpRO.Consistency.theorem_3_1

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

consistencydistributionally-robust-optimizationkernel-density-estimationp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1robust-optimization

Let VVV be a set of decisions, F⊆V\mathcal F\subseteq VF⊆V a nonempty feasible set, and f:V×Rm→Rf:V\times\mathbb R^m\to\mathbb Rf:V×Rm→R a utility with f(v,⋅)f(v,\cdot)f(v,⋅) Borel measurable for every vvv, satisfying

  1. Boundedness: ∣f(v,x)∣≤C|f(v,x)|\le C∣f(v,x)∣≤C for all v,xv,xv,x;
  2. Equicontinuity: d(ϵ)→0d(\epsilon)\to0d(ϵ)→0 as ϵ↓0\epsilon\downarrow0ϵ↓0, where d(ϵ)=sup⁡v,x,∥δ∥∞≤ϵ∣f(v,x)−f(v,x+δ)∣d(\epsilon)=\sup_{v,x,\|\delta\|_\infty\le\epsilon}|f(v,x)-f(v,x+\delta)|d(ϵ)=supv,x,∥δ∥∞​≤ϵ​∣f(v,x)−f(v,x+δ)∣.

Let h∗h^*h∗ be a probability density on Rm\mathbb R^mRm and x1,x2,…x_1,x_2,\dotsx1​,x2​,… i.i.d. samples from h∗h^*h∗ on a probability space. Let ϵ(n)>0\epsilon(n)>0ϵ(n)>0 satisfy

ϵ(n)↓0,n ϵ(n)m↑∞.\epsilon(n)\downarrow0,\qquad n\,\epsilon(n)^m\uparrow\infty .ϵ(n)↓0,nϵ(n)m↑∞.

For each nnn and each sample, let v(n)v(n)v(n) be any maximiser over F\mathcal FF of the box-robust objective

v ↦ 1n∑i=1n inf⁡∥δi∥∞≤ϵ(n)f(v,xi+δi).v\ \mapsto\ \frac1n\sum_{i=1}^n\ \inf_{\|\delta_i\|_\infty\le\epsilon(n)} f(v,x_i+\delta_i).v ↦ n1​i=1∑n​ ∥δi​∥∞​≤ϵ(n)inf​f(v,xi​+δi​).

Then, with probability one,

lim⁡n→∞∫Rmf(v(n),x) h∗(x) dx = sup⁡v∈F∫Rmf(v,x) h∗(x) dx;\lim_{n\to\infty}\int_{\mathbb R^m}f(v(n),x)\,h^*(x)\,dx\ =\ \sup_{v\in\mathcal F}\int_{\mathbb R^m}f(v,x)\,h^*(x)\,dx;n→∞lim​∫Rm​f(v(n),x)h∗(x)dx = v∈Fsup​∫Rm​f(v,x)h∗(x)dx;

that is, the robust optimization formulation is consistent.

The theorem says that robustifying a sampled stochastic program with ℓ∞\ell_\inftyℓ∞​ boxes whose radius shrinks at the stated rate recovers the optimal expected utility, under boundedness and equicontinuity alone.

Formalization Note Rm\mathbb R^mRm is Fin m → ℝ with the sup norm. The samples x1,x2,…x_1,x_2,\dotsx1​,x2​,… are X 0, X 1, … (independent via iIndepFun, each with law volume.withDensity h*), and the nnn-th problem uses the first nnn. The maximisers form an arbitrary selection v n ω of the argmax — no measurability is assumed and the statement holds for every such selection; the paper's "arg max" presupposes that a maximiser exists, which is taken as a hypothesis. Implicit hypotheses made explicit: F≠∅\mathcal F\neq\emptysetF=∅, ϵ(n)>0\epsilon(n)>0ϵ(n)>0 (the kernel divides by ϵ(n)\epsilon(n)ϵ(n)), measurability of each f(v,⋅)f(v,\cdot)f(v,⋅), and that h∗h^*h∗ is a Lebesgue density (the paper integrates h∗(x) dxh^*(x)\,dxh∗(x)dx). "max⁡v,x∣f∣≤C\max_{v,x}|f|\le Cmaxv,x​∣f∣≤C" is read as the uniform bound ∣f∣≤C|f|\le C∣f∣≤C, the "max" in ddd as a supremum, and "d(ϵ)↓0d(\epsilon)\downarrow0d(ϵ)↓0" as d(ϵ)→0d(\epsilon)\to0d(ϵ)→0 as ϵ↓0\epsilon\downarrow0ϵ↓0 (ddd is automatically nondecreasing). The monotonicity in "ϵ(n)↓0\epsilon(n)\downarrow0ϵ(n)↓0" and "nϵ(n)m↑∞n\epsilon(n)^m\uparrow\inftynϵ(n)m↑∞" is kept as printed. The supremum on the right is a real supremum over the nonempty set F\mathcal FF of values bounded by CCC. Hypotheses range over all v∈Vv\in Vv∈V; instantiating V=FV=\mathcal FV=F gives the version with hypotheses on F\mathcal FF only.

Preamble
import Mathlib
import Definitions.Def_DistInterpRO_Consistency_Model

open MeasureTheory Filter Topology ProbabilityTheory
Formal statement
namespace DistInterpRO.Consistency

theorem theorem_3_1 {V : Type*} {m : ℕ} (F : Set V) (hF : F.Nonempty)
    (f : V → (Fin m → ℝ) → ℝ) (hfm : ∀ v, Measurable (f v))
    (C : ℝ) (hfC : ∀ v x, |f v x| ≤ C)
    (hd : Tendsto (modulus f) (𝓝[>] 0) (𝓝 0))
    (hstar : (Fin m → ℝ) → ℝ) (hstar_nonneg : ∀ x, 0 ≤ hstar x)
    (hstar_int : Integrable hstar) (hstar_one : ∫ x, hstar x = 1)
    {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
    (X : ℕ → Ω → Fin m → ℝ) (hXm : ∀ i, Measurable (X i)) (hind : iIndepFun X P)
    (hlaw : ∀ i, P.map (X i) = volume.withDensity (fun x => ENNReal.ofReal (hstar x)))
    (ε : ℕ → ℝ) (hε_pos : ∀ n, 0 < ε n)
    (hε_anti : Antitone ε) (hε_lim : Tendsto ε atTop (𝓝 0))
    (hnε_mono : Monotone (fun n : ℕ => (n : ℝ) * ε n ^ m))
    (hnε_lim : Tendsto (fun n : ℕ => (n : ℝ) * ε n ^ m) atTop atTop)
    (v : ℕ → Ω → V)
    (hv : ∀ n ω, v n ω ∈ F ∧ ∀ w ∈ F,
      roObjective f (ε n) (fun i : Fin n => X i ω) w ≤
        roObjective f (ε n) (fun i : Fin n => X i ω) (v n ω)) :
    ∀ᵐ ω ∂P, Tendsto (fun n : ℕ => ∫ x, f (v n ω) x * hstar x) atTop
      (𝓝 (⨆ w : F, ∫ x, f w x * hstar x)) := by sorry

end DistInterpRO.Consistency
Source
Xu, Caramanis and Mannor, A Distributional Interpretation of Robust Optimization, Math. Oper. Res. 37(1) (2012), p. 98, Theorem 3.1
Read-back

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

Let VVV be an arbitrary type, m∈Nm \in \mathbb{N}m∈N, and F⊆VF \subseteq VF⊆V a nonempty set. For each v∈Vv \in Vv∈V, let fv:Rm→Rf_v : \mathbb{R}^m \to \mathbb{R}fv​:Rm→R be a function, written f(v,x)f(v, x)f(v,x), that is Borel-measurable in xxx. Assume fff is uniformly bounded by a real constant CCC:

∣f(v,x)∣≤Cfor all v∈V, x∈Rm.|f(v,x)| \le C \quad \text{for all } v \in V,\ x \in \mathbb{R}^m.∣f(v,x)∣≤Cfor all v∈V, x∈Rm.

This forces C≥0C \ge 0C≥0, because VVV is nonempty. Assume also

modulus⁡(f)(t)⟶0as t→0+.\operatorname{modulus}(f)(t) \longrightarrow 0 \quad \text{as } t \to 0^{+}.modulus(f)(t)⟶0as t→0+.

Here modulus⁡(f)\operatorname{modulus}(f)modulus(f) is a real-valued function of a real argument. It comes from the imported definitions file, whose code is not shown here, so what it measures cannot be stated. The only thing this hypothesis says is that its right-hand limit at 000 is 000. The limit is taken over t>0t > 0t>0 only.

Let h∗:Rm→Rh^\ast : \mathbb{R}^m \to \mathbb{R}h∗:Rm→R satisfy these conditions:

  • h∗(x)≥0h^\ast(x) \ge 0h∗(x)≥0 for every xxx;
  • h∗h^\asth∗ is Lebesgue-integrable;
  • ∫Rmh∗(x) dx=1\int_{\mathbb{R}^m} h^\ast(x)\,dx = 1∫Rm​h∗(x)dx=1.

Let (Ω,P)(\Omega, P)(Ω,P) be a probability space. Let X0,X1,X2,⋯:Ω→RmX_0, X_1, X_2, \dots : \Omega \to \mathbb{R}^mX0​,X1​,X2​,⋯:Ω→Rm be measurable random vectors that are mutually independent under PPP. Assume every XiX_iXi​ has the law

P∘Xi−1=h∗(x) dx,P \circ X_i^{-1} = h^\ast(x)\,dx,P∘Xi−1​=h∗(x)dx,

meaning Lebesgue measure with density h∗h^\asth∗.

Let (εn)n∈N(\varepsilon_n)_{n \in \mathbb{N}}(εn​)n∈N​ be a real sequence with these properties:

  • εn>0\varepsilon_n > 0εn​>0 for every nnn;
  • it is non-increasing;
  • εn→0\varepsilon_n \to 0εn​→0;
  • the sequence n εnmn\,\varepsilon_n^{m}nεnm​ is non-decreasing in nnn and tends to +∞+\infty+∞.

Let vn:Ω→Vv_n : \Omega \to Vvn​:Ω→V be any maps, for n∈Nn \in \mathbb{N}n∈N. No measurability in ω\omegaω is required. The hypothesis on them is: for every nnn and every ω\omegaω, vn(ω)∈Fv_n(\omega) \in Fvn​(ω)∈F, and for every w∈Fw \in Fw∈F,

roObjective⁡(f,εn,(X0(ω),…,Xn−1(ω)),w)  ≤  roObjective⁡(f,εn,(X0(ω),…,Xn−1(ω)),vn(ω)).\operatorname{roObjective}\big(f, \varepsilon_n, (X_0(\omega), \dots, X_{n-1}(\omega)), w\big) \;\le\; \operatorname{roObjective}\big(f, \varepsilon_n, (X_0(\omega), \dots, X_{n-1}(\omega)), v_n(\omega)\big).roObjective(f,εn​,(X0​(ω),…,Xn−1​(ω)),w)≤roObjective(f,εn​,(X0​(ω),…,Xn−1​(ω)),vn​(ω)).

In words, vn(ω)v_n(\omega)vn​(ω) maximizes roObjective⁡\operatorname{roObjective}roObjective over FFF. That objective is built from fff, the radius εn\varepsilon_nεn​ and the first nnn samples. It is another imported definition whose code is not shown, so its formula cannot be described here. The hypothesis requires an exact maximizer to exist for every nnn and every ω\omegaω, not just almost surely. If for some nnn and ω\omegaω the maximum over FFF is not attained, no such vvv exists and the theorem holds vacuously.

Conclusion. For PPP-almost every ω\omegaω,

lim⁡n→∞∫Rmf(vn(ω),x) h∗(x) dx  =  sup⁡w∈F∫Rmf(w,x) h∗(x) dx.\lim_{n \to \infty} \int_{\mathbb{R}^m} f\big(v_n(\omega), x\big)\, h^\ast(x)\,dx \;=\; \sup_{w \in F} \int_{\mathbb{R}^m} f(w, x)\, h^\ast(x)\,dx.n→∞lim​∫Rm​f(vn​(ω),x)h∗(x)dx=w∈Fsup​∫Rm​f(w,x)h∗(x)dx.

Both integrals are Lebesgue integrals. Each integrand is a measurable function bounded by CCC multiplied by an integrable function, so it is integrable. Every integral in the family therefore lies in [−C,C][-C, C][−C,C], and the supremum is an ordinary finite real supremum over a nonempty, bounded-above set. It is not a default value.

Degenerate cases.

  • n=0n = 0n=0: the sample tuple is empty, and v0(ω)v_0(\omega)v0​(ω) must maximize roObjective⁡(f,ε0,empty sample,⋅)\operatorname{roObjective}(f, \varepsilon_0, \text{empty sample}, \cdot)roObjective(f,ε0​,empty sample,⋅) over FFF. Also 0⋅ε0m=00 \cdot \varepsilon_0^m = 00⋅ε0m​=0. This case affects nothing in the limit.
  • m=0m = 0m=0: R0\mathbb{R}^0R0 is a single point, and Lebesgue measure on it is the unit point mass. Then h∗h^\asth∗ must equal 111 at that point, and every XiX_iXi​ is constant. Since εn0=1\varepsilon_n^0 = 1εn0​=1, the conditions on n εnmn\,\varepsilon_n^mnεnm​ reduce to "nnn is non-decreasing and tends to ∞\infty∞", which always holds. The conclusion becomes: almost surely, f(vn(ω),pt)→sup⁡w∈Ff(w,pt)f(v_n(\omega), \mathrm{pt}) \to \sup_{w \in F} f(w, \mathrm{pt})f(vn​(ω),pt)→supw∈F​f(w,pt).
  • FFF a single point w0w_0w0​: every vn(ω)=w0v_n(\omega) = w_0vn​(ω)=w0​, and the conclusion holds trivially.
  • VVV or FFF empty: excluded by the nonemptiness of FFF.
  • Ω\OmegaΩ: it cannot be empty, because it carries a probability measure.
  • Division, subtraction in N\mathbb{N}N, or non-integrable integrals: none of these defaults appear in the statement itself. Whether any occur inside modulus⁡\operatorname{modulus}modulus or roObjective⁡\operatorname{roObjective}roObjective cannot be determined from the code shown.
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me