Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2 — BSMD with SG or RT-MLMC subgradients finds a δ-optimal solution of (12), with the explicit hyper-parameters of p. ec20

Proved
SinkhornDRO.BSMD.theorem_2

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

distributionally-robust-optimizationmirror-descentmultilevel-monte-carlop2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1sample-complexity

Setting. Θ⊆Rdθ\Theta\subseteq\mathbb R^{d_\theta}Θ⊆Rdθ​ is closed and convex. ∥⋅∥\|\cdot\|∥⋅∥ is a norm with Assumption EC.1, c∥⋅∥2≤∥⋅∥≤d∥⋅∥2\mathfrak c\|\cdot\|_2\le\|\cdot\|\le\mathfrak d\|\cdot\|_2c∥⋅∥2​≤∥⋅∥≤d∥⋅∥2​ with c>0\mathfrak c>0c>0. ω\omegaω is a distance generating function on Θ\ThetaΘ, κ\kappaκ-strongly convex with respect to ∥⋅∥\|\cdot\|∥⋅∥, with Bregman divergence DωD_\omegaDω​ and prox-mapping Prox\mathrm{Prox}Prox (measurable). P^\widehat{\mathbb P}P is a probability measure and Q\mathbb QQ a Markov kernel on Z\mathcal ZZ. λ,ϵ>0\lambda,\epsilon>0λ,ϵ>0 are fixed. The loss fθ(z)f_\theta(z)fθ​(z) is measurable in zzz and satisfies Assumption 2 with constants LfL_fLf​ and BBB, and (θ,z)↦∇θfθ(z)(\theta,z)\mapsto\nabla_\theta f_\theta(z)(θ,z)↦∇θ​fθ​(z) is a jointly measurable subgradient selector. FFF is the objective (11) and FℓF^\ellFℓ its approximation (14).

Parameters. Let δ>0\delta>0δ>0 and θ0∈Θ\theta_0\in\Thetaθ0​∈Θ, and put

K=Bλϵ,L=max⁡(1,⌈1log⁡2log⁡2λϵe2Kδ⌉).K=\frac{B}{\lambda\epsilon},\qquad L=\max\Big(1,\Big\lceil\frac{1}{\log2}\log\frac{2\lambda\epsilon e^{2K}}{\delta}\Big\rceil\Big).K=λϵB​,L=max(1,⌈log21​logδ2λϵe2K​⌉).

Let θ∗∈arg⁡min⁡ΘF\theta^*\in\arg\min_\Theta Fθ∗∈argminΘ​F and θˉ∗∈arg⁡min⁡ΘFL\bar\theta^*\in\arg\min_\Theta F^Lθˉ∗∈argminΘ​FL, and D=Dω(θ0,θˉ∗)D=D_\omega(\theta_0,\bar\theta^*)D=Dω​(θ0​,θˉ∗). Run BSMD (Algorithm 1) from θ0\theta_0θ0​ with a fresh independent sample at every iteration, and let θ^=1T∑t=0T−1θt\hat\theta=\frac1T\sum_{t=0}^{T-1}\theta_tθ^=T1​∑t=0T−1​θt​.

Claim. θ^\hat\thetaθ^ is a δ\deltaδ-optimal solution of (12), E[F(θ^)]−F(θ∗)≤δ\mathbb E[F(\hat\theta)]-F(\theta^*)\le\deltaE[F(θ^)]−F(θ∗)≤δ, in both of the following cases (and F(θ^)F(\hat\theta)F(θ^) is integrable):

  1. SG estimator (15), with
T=max⁡(1,⌈8Lf2Dκc2δ2⌉),h=2κc2DTLf2;T=\max\Big(1,\Big\lceil\frac{8L_f^2D}{\kappa\mathfrak c^2\delta^2}\Big\rceil\Big),\qquad h=\sqrt{\frac{2\kappa\mathfrak c^2D}{TL_f^2}};T=max(1,⌈κc2δ28Lf2​D​⌉),h=TLf2​2κc2D​​;
  1. RT-MLMC estimator (17), with M2=2(L+1)Lf2e4K/c2M^2=2(L+1)L_f^2e^{4K}/\mathfrak c^2M2=2(L+1)Lf2​e4K/c2 and
T=max⁡(1,⌈16(L+1)Lf2De4Kκc2δ2⌉),h=2κDTM2.T=\max\Big(1,\Big\lceil\frac{16(L+1)L_f^2De^{4K}}{\kappa\mathfrak c^2\delta^2}\Big\rceil\Big),\qquad h=\sqrt{\frac{2\kappa D}{TM^2}} .T=max(1,⌈κc2δ216(L+1)Lf2​De4K​⌉),h=TM22κD​​.

The paper states the result as sample complexities: (I) O(δ−2)O(\delta^{-2})O(δ−2) samples from P^\widehat{\mathbb P}P and O(λϵe2Kδ−3)O(\lambda\epsilon e^{2K}\delta^{-3})O(λϵe2Kδ−3) from Qx,ϵ\mathbb Q_{x,\epsilon}Qx,ϵ​ for SG; (II) O~(Ke4Kδ−2)\tilde O(Ke^{4K}\delta^{-2})O~(Ke4Kδ−2) and O~(K2e4Kδ−2)\tilde O(K^2e^{4K}\delta^{-2})O~(K2e4Kδ−2) for RT-MLMC. Its proof yields the hyper-parameters above. The counts follow by construction: one sample from P^\widehat{\mathbb P}P per iteration, and 2L2^L2L draws from Qx\mathbb Q_xQx​ per SG iteration or (L+1)/(2−2−L)(L+1)/(2-2^{-L})(L+1)/(2−2−L) per RT-MLMC iteration in expectation.

Formalization Note The paper writes O(⋅)O(\cdot)O(⋅) and O~(⋅)\tilde O(\cdot)O~(⋅); its proof (p. ec20) yields the explicit L,T,hL,T,hL,T,h above, which are fixed here rather than existentially quantified. The max 1 guards keep L∈N+L\in\mathbb N_+L∈N+​ and T≥1T\ge1T≥1. Two corrections are made, both recorded in the items they come from. First, θ^\hat\thetaθ^ averages θ0,…,θT−1\theta_0,\dots,\theta_{T-1}θ0​,…,θT−1​ instead of the printed θ1,…,θT\theta_1,\dots,\theta_Tθ1​,…,θT​ (see Lemma EC.7). Second, M2M^2M2 carries c−2\mathfrak c^{-2}c−2 (see the RT-MLMC second-moment item). Q\mathbb QQ is any Markov kernel, which includes the paper's Gibbs kernel Qx,ϵ\mathbb Q_{x,\epsilon}Qx,ϵ​. The per-iteration sampling laws are probability measures; they are supplied as instance arguments because Lean's finite product measure needs them. Measurability of Prox\mathrm{Prox}Prox and of the subgradient selector is the standing convention that makes E[F(θ^)]\mathbb E[F(\hat\theta)]E[F(θ^)] meaningful.

Preamble
import Mathlib
import Definitions.Def_SinkhornDRO_BSMD_MirrorSetup
import Definitions.Def_SinkhornDRO_BSMD_Objective
import Definitions.Def_SinkhornDRO_BSMD_Estimators

open MeasureTheory ProbabilityTheory
Formal statement
namespace SinkhornDRO.BSMD

/-- Theorem 2 (Wang–Gao–Xie, arXiv:2109.11926v5, p. 18), in the explicit form of its proof
(App. EC.6.1, p. ec20). Fix `λ, ε, δ > 0`, put `K = B/(λε)`,
`L = max 1 ⌈log(2λε e^{2K}/δ) / log 2⌉`, let `θ̄*` minimize `F^L` and `θ*` minimize `F` over `Θ`,
and `D = D_ω(θ0, θ̄*)`. Under Assumption 2, BSMD (Algorithm 1) from `θ0 ∈ Θ` returns a δ-optimal
solution, `E[F(θ̂)] − F(θ*) ≤ δ`:
(I) with the SG estimator (15), `T = max 1 ⌈8 L_f² D/(κ𝔠²δ²)⌉` and `h = √(2κ𝔠²D/(T L_f²))`;
(II) with the RT-MLMC estimator (17), `T = max 1 ⌈16(L+1) L_f² D e^{4K}/(κ𝔠²δ²)⌉` and
`h = √(2κD/(T M²))`, `M² = 2(L+1) L_f² e^{4K}/𝔠²`.
Each iteration draws a fresh, independent sample; `θ̂` averages the query points
`θ_0, …, θ_{T−1}`. -/
theorem theorem_2 {d : ℕ} {Z : Type*} [MeasurableSpace Z]
    (Θ : Set (Param d)) (hΘc : IsClosed Θ) (hΘv : Convex ℝ Θ)
    (𝒩 : MirrorNorm d) (κ : ℝ) (ω : Param d → ℝ) (ω' : Param d → Param d)
    (hω : IsDistGen Θ 𝒩 κ ω ω')
    (prox : Param d → Param d → Param d) (hprox : IsProxMap Θ ω ω' prox)
    (hprox_meas : Measurable (Function.uncurry prox))
    (P : Measure Z) [IsProbabilityMeasure P] (Q : Kernel Z Z) [IsMarkovKernel Q]
    (lam eps : ℝ) (hlam : 0 < lam) (heps : 0 < eps)
    (f : Param d → Z → ℝ) (hf_meas : ∀ θ, Measurable (f θ))
    (Lf B : ℝ) (hA2I : Asm2Convex f) (hA2II : Asm2Lipschitz f Lf) (hA2III : Asm2Bounded Θ f B)
    (sg : Param d → Z → Param d) (hsg : IsSubgradSel f sg)
    (hsg_meas : Measurable (Function.uncurry sg))
    (δ : ℝ) (hδ : 0 < δ)
    (θ0 : Param d) (hθ0 : θ0 ∈ Θ)
    (θstar : Param d)
    (hθstar : θstar ∈ Θ ∧ ∀ θ ∈ Θ, objF P Q lam eps f θstar ≤ objF P Q lam eps f θ)
    (θbar : Param d)
    (hθbar : θbar ∈ Θ ∧ ∀ θ ∈ Θ,
      objFℓ P Q lam eps f (levelL lam eps B δ) θbar ≤ objFℓ P Q lam eps f (levelL lam eps B δ) θ)
    [IsProbabilityMeasure (levelLaw P Q (2 ^ levelL lam eps B δ))]
    [IsProbabilityMeasure (rtLaw P Q (levelL lam eps B δ))] :
    let K := B / (lam * eps)
    let L := levelL lam eps B δ
    let D := bregman ω ω' θ0 θbar
    -- (I) SG estimator
    (let T := iterSG Lf κ 𝒩.c D δ
     let h := stepSG Lf κ 𝒩.c D T
     Integrable (fun ξ : Fin T → Z × (Fin (2 ^ L) → Z) =>
         objF P Q lam eps f (bsmdAvg prox (vSG lam eps f sg L) h θ0 ξ))
         (Measure.pi fun _ => levelLaw P Q (2 ^ L)) ∧
       ∫ ξ, objF P Q lam eps f (bsmdAvg prox (vSG lam eps f sg L) h θ0 ξ)
           ∂(Measure.pi fun _ : Fin T => levelLaw P Q (2 ^ L))
         - objF P Q lam eps f θstar ≤ δ) ∧
    -- (II) RT-MLMC estimator
    (let T := iterRT L Lf K κ 𝒩.c D δ
     let h := stepRT L Lf K κ 𝒩.c D T
     Integrable (fun ξ : Fin T → Fin (L + 1) × Z × (Fin (2 ^ L) → Z) =>
         objF P Q lam eps f (bsmdAvg prox (vRT lam eps f sg L) h θ0 ξ))
         (Measure.pi fun _ => rtLaw P Q L) ∧
       ∫ ξ, objF P Q lam eps f (bsmdAvg prox (vRT lam eps f sg L) h θ0 ξ)
           ∂(Measure.pi fun _ : Fin T => rtLaw P Q L)
         - objF P Q lam eps f θstar ≤ δ) := by sorry

end SinkhornDRO.BSMD
Source
Wang, Gao, Xie, Sinkhorn Distributionally Robust Optimization, arXiv:2109.11926v5, p. 18, Theorem 2; explicit hyper-parameters from App. EC.6.1, p. ec20
Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

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