Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 4 — the mini-batch RSAG method bounds E‖𝒢(x^md_R, ∇Ψ(x^md_R), β_R)‖² on nonconvex stochastic composite problems

Proved
NonconvexAG.StochComposite.theorem_4

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

accelerated-gradientcomposite-optimizationnonconvex-optimizationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-approximation

Consider the stochastic composite problem

min⁡x∈Rn Φ(x):=Ψ(x)+X(x),Ψ=f+h,\min_{x\in\mathbb R^n}\ \Phi(x):=\Psi(x)+\mathcal X(x),\qquad\Psi=f+h,x∈Rnmin​ Φ(x):=Ψ(x)+X(x),Ψ=f+h,

where fff is differentiable with LfL_fLf​-Lipschitz gradient (possibly nonconvex), hhh is convex and differentiable with LhL_hLh​-Lipschitz gradient, LΨ=Lf+LhL_\Psi=L_f+L_hLΨ​=Lf​+Lh​, and X\mathcal XX is convex with domain KKK; let x∗∈Kx^*\in Kx∗∈K be an optimal solution. Let the prox map P\mathcal PP (2.37) satisfy Assumption 2 with constant MMM, and let ∥x0∥≤M\|x_0\|\le M∥x0​∥≤M. The stochastic oracle GGG is jointly measurable and satisfies Assumption 1 with noise level σ\sigmaσ along its query points, in conditional form.

Run Algorithm 4 (mini-batch gradients Gˉk\bar G_kGˉk​ of sizes mk≥1m_k\ge1mk​≥1) for N≥1N\ge1N≥1 iterations with step sizes satisfying, for k=1,…,Nk=1,\dots,Nk=1,…,N,

αkλk≤βk<1LΨ  (2.9),α1λ1Γ1≥α2λ2Γ2≥⋯  (2.10),\alpha_k\lambda_k\le\beta_k<\frac1{L_\Psi}\ \ (2.9),\qquad\frac{\alpha_1}{\lambda_1\Gamma_1}\ge\frac{\alpha_2}{\lambda_2\Gamma_2}\ge\cdots\ \ (2.10),αk​λk​≤βk​<LΨ​1​  (2.9),λ1​Γ1​α1​​≥λ2​Γ2​α2​​≥⋯  (2.10),

and let the output index RRR, independent of the oracle samples, have the mass function (3.7), pk=Γk−1βk(1−LΨβk)/Sp_k=\Gamma_k^{-1}\beta_k(1-L_\Psi\beta_k)/Spk​=Γk−1​βk​(1−LΨ​βk​)/S with S=∑k=1NΓk−1βk(1−LΨβk)S=\sum_{k=1}^N\Gamma_k^{-1}\beta_k(1-L_\Psi\beta_k)S=∑k=1N​Γk−1​βk​(1−LΨ​βk​). Then

E[∥G(xRmd,∇Ψ(xRmd),βR)∥2]≤8S−1[∥x0−x∗∥22λ1+LfΓN(∥x∗∥2+2M2)+σ2∑k=1Nβk(4+(1−LΨβk)2)4Γk(1−LΨβk)mk],(3.30)\mathbb E\Big[\big\|\mathcal G(x^{md}_R,\nabla\Psi(x^{md}_R),\beta_R)\big\|^2\Big]\le8S^{-1}\Big[\frac{\|x_0-x^*\|^2}{2\lambda_1}+\frac{L_f}{\Gamma_N}\big(\|x^*\|^2+2M^2\big)+\sigma^2\sum_{k=1}^N\frac{\beta_k\big(4+(1-L_\Psi\beta_k)^2\big)}{4\Gamma_k(1-L_\Psi\beta_k)m_k}\Big],\qquad(3.30)E[​G(xRmd​,∇Ψ(xRmd​),βR​)​2]≤8S−1[2λ1​∥x0​−x∗∥2​+ΓN​Lf​​(∥x∗∥2+2M2)+σ2k=1∑N​4Γk​(1−LΨ​βk​)mk​βk​(4+(1−LΨ​βk​)2)​],(3.30)

the expectation being over RRR and all samples ξk,i\xi_{k,i}ξk,i​, k≤Nk\le Nk≤N, i≤mki\le m_ki≤mk​. If, in addition, Lf=0L_f=0Lf​=0, then

E[Φ(xRag)−Φ(x∗)]≤S−1∑k=1Nβk(1−LΨβk)(∥x0−x∗∥22λ1+σ2∑j=1kβj(4+(1−LΨβj)2)4Γj(1−LΨβj)mj).(3.31)\mathbb E\big[\Phi(x^{ag}_R)-\Phi(x^*)\big]\le S^{-1}\sum_{k=1}^N\beta_k(1-L_\Psi\beta_k)\Big(\frac{\|x_0-x^*\|^2}{2\lambda_1}+\sigma^2\sum_{j=1}^k\frac{\beta_j\big(4+(1-L_\Psi\beta_j)^2\big)}{4\Gamma_j(1-L_\Psi\beta_j)m_j}\Big).\qquad(3.31)E[Φ(xRag​)−Φ(x∗)]≤S−1k=1∑N​βk​(1−LΨ​βk​)(2λ1​∥x0​−x∗∥2​+σ2j=1∑k​4Γj​(1−LΨ​βj​)mj​βj​(4+(1−LΨ​βj​)2)​).(3.31)

Both random quantities are integrable.

The same step-size policy thus gives a stationarity guarantee when Ψ\PsiΨ is nonconvex and an optimality-gap guarantee when Lf=0L_f=0Lf​=0 (convex Ψ\PsiΨ), with the oracle noise controlled by the batch sizes mkm_kmk​. Corollaries 4 and 5 specialize it to explicit step sizes and batch sizes.

Formalization Note Hypotheses added to the printed statement: existence of an optimal solution x∗x^*x∗ (the statement uses it; Corollaries 4–5 assume it) and ∥x0∥≤M\|x_0\|\le M∥x0​∥≤M (needed for (2.52) at k=1k=1k=1). βk<1/LΨ\beta_k<1/L_\Psiβk​<1/LΨ​ is written LΨβk<1L_\Psi\beta_k<1LΨ​βk​<1. Assumption 1 is the published GhadimiLan.RSG.AssumptionA1, imposed on the oracle calls numbered consecutively, with each call's query point xkmdx^{md}_kxkmd​ of its iteration; this conditional form is what the variance bound (3.28) and the martingale step of the proof use, and it holds in the i.i.d. setting. RRR is measurable with values in {1,…,N}\{1,\dots,N\}{1,…,N} and independent of the whole sample sequence. X\mathcal XX is the pair (domain KKK, real values on KKK), and x∗x^*x∗ is optimal over KKK. Integrability is part of the conclusion.

Preamble
import Mathlib
import Definitions.Def_ConvexOptAlg_SmoothGD_Defs
import Definitions.Def_GhadimiLan_RSG_Model
import Definitions.Def_NonconvexAG_StochComposite_ProxMap
import Definitions.Def_NonconvexAG_StochComposite_RSAG
open MeasureTheory ProbabilityTheory
open scoped InnerProductSpace
Formal statement
namespace NonconvexAG.StochComposite

open GhadimiLan.RSG (E)
open ConvexOptAlg.SmoothGD

/-- Theorem 4 (pp. 21–22): (3.30), and (3.31) when `L_f = 0`. The problem is (1.3):
`Ψ = f + h` with `f ∈ C^{1,1}_{L_f}`, `h ∈ C^{1,1}_{L_h}` convex, `L_Ψ = L_f + L_h`, and `𝒳` convex
with domain `K`; `Φ = Ψ + 𝒳`, with an optimal solution `x*`. Algorithm 4 runs with the prox map
`P` of (2.37) and mini-batches of sizes `mₖ ≥ 1`, under Assumption 1 (conditional form, along the
oracle's query points) and Assumption 2, with `‖x₀‖ ≤ M`, (2.9) (`αₖλₖ ≤ βₖ` and `L_Ψ βₖ < 1`, i.e.
`βₖ < 1/L_Ψ`) and (2.10) for `k = 1, …, N`, and a termination index `R` with mass function (3.7)
on `{1, …, N}`, independent of the oracle noise. The expectations are over `R` and the noise. -/
theorem theorem_4 {n : ℕ} (f h : E n → ℝ) (gf gh : E n → E n) (Lf Lh : ℝ)
    (hf : IsBetaSmooth f gf Lf) (hh : IsBetaSmooth h gh Lh) (hhc : ConvexOn ℝ Set.univ h)
    (Ψ : E n → ℝ) (gΨ : E n → E n) (LΨ : ℝ) (hΨ : Ψ = fun x => f x + h x)
    (hgΨ : gΨ = fun x => gf x + gh x) (hLΨ : LΨ = Lf + Lh)
    (K : Set (E n)) (X : E n → ℝ) (hX : ConvexOn ℝ K X)
    (P : E n → E n → ℝ → E n) (hP : IsProxMap K X P)
    {Ξ : Type*} [MeasurableSpace Ξ] (G : E n → Ξ → E n) (hG : Measurable (Function.uncurry G))
    {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
    (ℱ : Filtration ℕ ‹MeasurableSpace Ω›) (ξ : ℕ → Ω → Ξ) (σ : ℝ)
    (α β lam : ℕ → ℝ) (m : ℕ → ℕ) (hstep : RSAGStepsizes α β lam m) (x0 : E n)
    (hA1 : GhadimiLan.RSG.AssumptionA1 μ ℱ gΨ G ξ (querySeq G P α β lam m x0 ξ) σ)
    (M : ℝ) (hA2 : Assumption2 P M) (hx0 : ‖x0‖ ≤ M)
    (N : ℕ) (hN : 1 ≤ N) (h29 : ∀ k ∈ Finset.Icc 1 N, α k * lam k ≤ β k ∧ LΨ * β k < 1)
    (h210 : ∀ k ∈ Finset.Icc 1 N, 2 ≤ k →
      α k / (lam k * NonconvexAG.Smooth.Gamma α k) ≤ α (k - 1) / (lam (k - 1) * NonconvexAG.Smooth.Gamma α (k - 1)))
    (xstar : E n) (hxstar : xstar ∈ K) (hopt : ∀ u ∈ K, Ψ xstar + X xstar ≤ Ψ u + X u)
    (R : Ω → ℕ) (hR : NonconvexAG.Stoch.IsOutputIndex μ R N (pmf37 LΨ α β N))
    (hRind : IndepFun R (fun ω s => ξ s ω) μ) :
    let Φ : E n → ℝ := fun x => Ψ x + X x
    let xag : ℕ → Ω → E n := xagSeq G P α β lam m x0 ξ
    let xmd : ℕ → Ω → E n := xmdSeq G P α β lam m x0 ξ
    let S : ℝ := ∑ k ∈ Finset.Icc 1 N, (NonconvexAG.Smooth.Gamma α k)⁻¹ * β k * (1 - LΨ * β k)
    let v : ℕ → ℝ := fun j =>
      β j * (4 + (1 - LΨ * β j) ^ 2) / (4 * NonconvexAG.Smooth.Gamma α j * (1 - LΨ * β j) * (m j : ℝ))
    -- (3.30)
    (Integrable (fun ω =>
        ‖gradMap P (xmd (R ω) ω) (gΨ (xmd (R ω) ω)) (β (R ω))‖ ^ 2) μ ∧
      ∫ ω, ‖gradMap P (xmd (R ω) ω) (gΨ (xmd (R ω) ω)) (β (R ω))‖ ^ 2 ∂μ ≤
        8 * S⁻¹ * (‖x0 - xstar‖ ^ 2 / (2 * lam 1) + Lf / NonconvexAG.Smooth.Gamma α N * (‖xstar‖ ^ 2 + 2 * M ^ 2) +
          σ ^ 2 * ∑ k ∈ Finset.Icc 1 N, v k)) ∧
    -- (3.31)
    (Lf = 0 →
      Integrable (fun ω => Φ (xag (R ω) ω) - Φ xstar) μ ∧
        ∫ ω, (Φ (xag (R ω) ω) - Φ xstar) ∂μ ≤
          S⁻¹ * ∑ k ∈ Finset.Icc 1 N, β k * (1 - LΨ * β k) *
            (‖x0 - xstar‖ ^ 2 / (2 * lam 1) + σ ^ 2 * ∑ j ∈ Finset.Icc 1 k, v j)) := by sorry

end NonconvexAG.StochComposite
Source
Ghadimi & Lan, Accelerated Gradient Methods for Nonconvex Nonlinear and Stochastic Programming, arXiv:1310.3787v1, pp. 21–22, Theorem 4, (3.30)–(3.31); p. 5, (2.9)–(2.10); p. 15, (3.7)
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

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