Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 6.2 — the stochastic quasigradient projection method converges a.s. to a point of X*

Proved
NumStochOpt.QuasiFejer.theorem_6_2_projection_method_converges

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

martingalesp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1projection-methodstochastic-optimizationstochastic-quasigradient

Consider minimizing F:Rn→RF:\mathbb R^n\to\mathbb RF:Rn→R over X⊆RnX\subseteq\mathbb R^nX⊆Rn, with optimal set X∗X^*X∗. On a probability space let x0,x1,…x^0,x^1,\dotsx0,x1,… be measurable random vectors with x0∈Xx^0\in Xx0∈X, let ξ0(s)\xi^0(s)ξ0(s) be integrable random directions, and let ρs\rho_sρs​ (step sizes) and γ0(s)\gamma_0(s)γ0​(s) be random variables that depend only on the history, i.e. are measurable with respect to σ(x0,…,xs)\sigma(x^0,\dots,x^s)σ(x0,…,xs). The method is

xs+1=πX[xs−ρsξ0(s)],s=0,1,…(6.11)x^{s+1}=\pi_X\big[x^s-\rho_s\xi^0(s)\big],\qquad s=0,1,\dots\qquad(6.11)xs+1=πX​[xs−ρs​ξ0(s)],s=0,1,…(6.11)

with directions satisfying, for every x∗∈X∗x^*\in X^*x∗∈X∗ and every sss, almost surely

F(x∗)−F(xs)≥⟨E{ξ0(s)∣x0,…,xs},x∗−xs⟩+γ0(s).(6.12)F(x^*)-F(x^s)\ge\big\langle E\{\xi^0(s)\mid x^0,\dots,x^s\},x^*-x^s\big\rangle+\gamma_0(s).\qquad(6.12)F(x∗)−F(xs)≥⟨E{ξ0(s)∣x0,…,xs},x∗−xs⟩+γ0​(s).(6.12)

Assume

  1. FFF is convex and continuous on XXX;
  2. XXX is a nonempty convex compact set;
  3. with probability 1, ρs≥0\rho_s\ge0ρs​≥0 for all sss and ∑s=0∞ρs=∞\sum_{s=0}^\infty\rho_s=\infty∑s=0∞​ρs​=∞, and
∑s=0∞E{ρs∣γ0(s)∣+ρs2∥ξ0(s)∥2}<∞.(6.15)\sum_{s=0}^\infty E\{\rho_s|\gamma_0(s)|+\rho_s^2\|\xi^0(s)\|^2\}<\infty.\qquad(6.15)s=0∑∞​E{ρs​∣γ0​(s)∣+ρs2​∥ξ0(s)∥2}<∞.(6.15)

Then with probability 1 the sequence xsx^sxs converges and lim⁡sxs∈X∗\lim_s x^s\in X^*lims​xs∈X∗.

This is the basic convergence theorem for stochastic quasigradient methods: it covers biased and unbiased stochastic subgradients and finite-difference estimates with random step sizes, and it asserts convergence of the iterates themselves, not only of the function values or of the distance to X∗X^*X∗.

Formalization Note The book writes "γ0(s)\gamma_0(s)γ0​(s) may depend on (x0,…,xs)(x^0,\dots,x^s)(x0,…,xs), x∗∈X∗x^*\in X^*x∗∈X∗"; this is read as: γ0(s)\gamma_0(s)γ0​(s) is a function of the history, and (6.12) holds for all x∗∈X∗x^*\in X^*x∗∈X∗ with the same γ0(s)\gamma_0(s)γ0​(s). The x∗x^*x∗-dependent error of (6.13) is covered on a bounded XXX by ∥b0(s)∥diam⁡X\|b^0(s)\|\operatorname{diam}X∥b0(s)∥diamX. X≠∅X\ne\emptysetX=∅ is implicit in the book (X∗X^*X∗ would be empty otherwise) and is stated. x0∈Xx^0\in Xx0∈X is assumed because FFF is only given on XXX and (6.12) at s=0s=0s=0 evaluates F(x0)F(x^0)F(x0). The last condition of (6.15) is a deterministic sum of expectations (lower Lebesgue integrals); the first two hold almost surely.

Preamble
import Mathlib
import Definitions.Def_NumStochOpt_QuasiFejer_ProjectionMethod
import Definitions.Def_NumStochOpt_QuasiFejer_StochQuasiFejer

open MeasureTheory Filter Topology
open scoped InnerProductSpace ENNReal
Formal statement
namespace NumStochOpt.QuasiFejer

/-- **Theorem 6.2** (Ermoliev, Ch. 6 of Ermoliev & Wets (1988), p. 144): convergence with
probability 1 of the stochastic quasigradient projection method.
Minimize `F` over `X ⊆ ℝⁿ`, with optimal set `X*`. The random iterates satisfy (6.11)
`x^{s+1} = π_X[x^s - ρ_s ξ⁰(s)]`, `s = 0, 1, …`, and the random directions satisfy (6.12)
`F(x*) - F(x^s) ≥ ⟨E{ξ⁰(s) | x⁰, …, x^s}, x* - x^s⟩ + γ₀(s)` for every `x* ∈ X*`, where `ρ_s` and
`γ₀(s)` depend on `(x⁰, …, x^s)`. Assume
(a) `F` is convex and continuous on `X`,
(b) `X` is a (nonempty) convex compact set,
(c) with probability 1, `ρ_s ≥ 0` and `∑ ρ_s = ∞`, and `∑_s E{ρ_s|γ₀(s)| + ρ_s²‖ξ⁰(s)‖²} < ∞` (6.15).
Then with probability 1 the sequence `x^s` converges and its limit lies in `X*`. -/
theorem theorem_6_2_projection_method_converges {Ω : Type*} [MeasurableSpace Ω] {n : ℕ}
    (μ : Measure Ω) [IsProbabilityMeasure μ]
    (F : EuclideanSpace ℝ (Fin n) → ℝ) (X : Set (EuclideanSpace ℝ (Fin n)))
    (x ξ : ℕ → Ω → EuclideanSpace ℝ (Fin n)) (ρ γ₀ : ℕ → Ω → ℝ)
    (hFconv : ConvexOn ℝ X F) (hFcont : ContinuousOn F X)
    (hXconv : Convex ℝ X) (hXcpt : IsCompact X) (hXne : X.Nonempty)
    (hx_meas : ∀ s, Measurable (x s)) (hx0 : ∀ ω, x 0 ω ∈ X)
    (hξ_int : ∀ s, Integrable (ξ s) μ)
    (hρ_adapt : ∀ s, StronglyMeasurable[historySigma x s] (ρ s))
    (hγ_adapt : ∀ s, StronglyMeasurable[historySigma x s] (γ₀ s))
    (hrec : ∀ s ω, x (s + 1) ω = projX X (x s ω - ρ s ω • ξ s ω))
    (hqg : ∀ xstar ∈ optimalSet F X, ∀ s, ∀ᵐ ω ∂μ,
      F xstar - F (x s ω) ≥ ⟪(condExp (historySigma x s) μ (ξ s)) ω, xstar - x s ω⟫_ℝ + γ₀ s ω)
    (hρ_nonneg : ∀ᵐ ω ∂μ, ∀ s, 0 ≤ ρ s ω)
    (hρ_div : ∀ᵐ ω ∂μ, Tendsto (fun N => ∑ s ∈ Finset.range N, ρ s ω) atTop atTop)
    (hsum : ∑' s, ∫⁻ ω, ENNReal.ofReal (ρ s ω * |γ₀ s ω| + ρ s ω ^ 2 * ‖ξ s ω‖ ^ 2) ∂μ < ⊤) :
    ∀ᵐ ω ∂μ, ∃ xstar ∈ optimalSet F X, Tendsto (fun s => x s ω) atTop (𝓝 xstar) := by sorry

end NumStochOpt.QuasiFejer
Source
Yu. Ermoliev, "Stochastic Quasigradient Methods", in Ermoliev & Wets (eds.), Numerical Techniques for Stochastic Optimization, Springer 1988, Ch. 6, p. 144, Theorem 6.2 (with Eqs. (6.11), (6.12), p. 143, and (6.15), p. 144)
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

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