Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 2, Part 1 — V(Δt)V(\Delta_t)V(Δt​) converges almost surely

Proved
PolyakJuditsky.Averaging.lyapunov_value_converges

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

almost-sure-convergencelyapunov-functionp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-approximation

Assume Assumptions 3.1–3.4 (in the form of the definition file) for the map RRR, its root x∗x^*x∗, the Lyapunov function VVV, the matrices GGG, SSS, the exponent λ\lambdaλ, the steps γt\gamma_tγt​ and the noise ξt=ξt(0)+ζt\xi_t=\xi_t(0)+\zeta_tξt​=ξt​(0)+ζt​, and let RRR be continuous. Let xtx_txt​ be the iterate of algorithm (7) from a nonrandom x0x_0x0​ and Δt=xt−x∗\Delta_t=x_t-x^*Δt​=xt​−x∗. Then almost surely there is a finite V(ω)V(\omega)V(ω) with

V(Δt)→V(ω)(t→∞).V(\Delta_t)\to V(\omega)\qquad(t\to\infty).V(Δt​)→V(ω)(t→∞).

This is the first step of the proof of Theorem 2. Together with V(x)≥α∣x∣2V(x)\ge\alpha|x|^2V(x)≥α∣x∣2 it shows that the iterates stay bounded almost surely.

Formalization Note "V(ω)V(\omega)V(ω) is bounded" is read as: the limit is a finite real number for almost every ω\omegaω. The hypotheses are those of Theorem 2, with the corrections listed in the definition file. RRR is assumed continuous. The paper states no regularity of RRR, but its proof needs ∇V(x−x∗)TR(x)\nabla V(x-x^*)^TR(x)∇V(x−x∗)TR(x) to be bounded away from 000 on every annulus ε≤∣x−x∗∣≤ρ\varepsilon\le|x-x^*|\le\rhoε≤∣x−x∗∣≤ρ (the constant α\alphaα of (A13) on the ball ∣Δ∣≤R|\Delta|\le R∣Δ∣≤R, and the step "almost sure convergence of the algorithm follows from Parts 1 and 2", pp. 849–850). Continuity together with Assumption 3.1 gives this; with RRR only measurable, a root-free RRR whose drift degenerates at one point off x∗x^*x∗ can trap the iterates there with positive probability.

Preamble
import Mathlib
import Definitions.Def_PolyakJuditsky_Averaging_Model
import Definitions.Def_PolyakJuditsky_Averaging_Assumptions

open MeasureTheory ProbabilityTheory Filter Topology
Formal statement
namespace PolyakJuditsky.Averaging

/-- Proof of Theorem 2, Part 1 (p. 849): under Assumptions 3.1–3.4, with `Δ_t = x_t - x*` the
error of the iterate of Eq. (7), `V(Δ_t)` converges almost surely to a finite limit.
`R` is assumed continuous (the paper states no regularity of `R`; its proof needs
`⟪∇V(x - x*), R x⟫` bounded away from `0` on every annulus `ε ≤ |x - x*| ≤ ρ`, p. 849–850,
which continuity and Assumption 3.1 give). -/
theorem lyapunov_value_converges {N : ℕ} {Ω : Type*} {m0 : MeasurableSpace Ω}
    (P : Measure Ω) [IsProbabilityMeasure P] (ℱ : Filtration ℕ m0)
    (x₀ xstar : EuclideanSpace ℝ (Fin N)) (γ : ℕ → ℝ)
    (R : EuclideanSpace ℝ (Fin N) → EuclideanSpace ℝ (Fin N))
    (ξ ξ0 : ℕ → Ω → EuclideanSpace ℝ (Fin N)) (V : EuclideanSpace ℝ (Fin N) → ℝ)
    (G S : Matrix (Fin N) (Fin N) ℝ) (lam : ℝ)
    (hR : Continuous R) (h31 : LyapunovAssumption R xstar V)
    (h32 : LinearizationAssumption R xstar G lam)
    (h33 : NoiseAssumption P ℱ x₀ γ R ξ ξ0 xstar S) (h34 : StepAssumption γ lam) :
    ∀ᵐ ω ∂P, ∃ c : ℝ, Tendsto (fun t => V (saIterate x₀ γ R ξ t ω - xstar)) atTop (𝓝 c) := by sorry

end PolyakJuditsky.Averaging
Source
Polyak, Juditsky, Acceleration of stochastic approximation by averaging, SIAM J. Control Optim. 30 (1992), p. 849, proof of Theorem 2, Part 1
Read-back

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

Setting. Fix a natural number NNN (the dimension) and write RN\mathbb{R}^NRN for NNN-dimensional Euclidean space. Let (Ω,F)(\Omega, \mathcal{F})(Ω,F) be a measurable space with a probability measure PPP, and let (Ft)t∈N(\mathcal{F}_t)_{t \in \mathbb{N}}(Ft​)t∈N​ be a filtration of sub-σ-algebras of F\mathcal{F}F. The remaining data are:

  • two points x0,x∗∈RNx_0, x^* \in \mathbb{R}^Nx0​,x∗∈RN;
  • a real sequence (γt)t∈N(\gamma_t)_{t \in \mathbb{N}}(γt​)t∈N​;
  • a map R:RN→RNR : \mathbb{R}^N \to \mathbb{R}^NR:RN→RN;
  • two sequences of RN\mathbb{R}^NRN-valued functions on Ω\OmegaΩ, ξt(ω)\xi_t(\omega)ξt​(ω) and ξt0(ω)\xi^0_t(\omega)ξt0​(ω). No measurability is assumed at this point; any such requirement would have to come from the hypotheses below.
  • a function V:RN→RV : \mathbb{R}^N \to \mathbb{R}V:RN→R;
  • two real N×NN \times NN×N matrices GGG and SSS;
  • a real number λ\lambdaλ.

Hypotheses.

  1. RRR is continuous.
  2. LyapunovAssumption(R,x∗,V)\mathrm{LyapunovAssumption}(R, x^*, V)LyapunovAssumption(R,x∗,V) holds.
  3. LinearizationAssumption(R,x∗,G,λ)\mathrm{LinearizationAssumption}(R, x^*, G, \lambda)LinearizationAssumption(R,x∗,G,λ) holds.
  4. NoiseAssumption(P,F∙,x0,γ,R,ξ,ξ0,x∗,S)\mathrm{NoiseAssumption}(P, \mathcal{F}_\bullet, x_0, \gamma, R, \xi, \xi^0, x^*, S)NoiseAssumption(P,F∙​,x0​,γ,R,ξ,ξ0,x∗,S) holds.
  5. StepAssumption(γ,λ)\mathrm{StepAssumption}(\gamma, \lambda)StepAssumption(γ,λ) holds.

These four named predicates come from project definition files that are not reproduced here. This read-back cannot expand them, so their content (and whether they can be satisfied together) is unknown from this text. Likewise, xt(ω):=saIterate(x0,γ,R,ξ,t,ω)x_t(\omega) := \mathrm{saIterate}(x_0, \gamma, R, \xi, t, \omega)xt​(ω):=saIterate(x0​,γ,R,ξ,t,ω) is a project-defined RN\mathbb{R}^NRN-valued sequence, built from x0x_0x0​, γ\gammaγ, RRR and ξ\xiξ. Its exact recursion, including signs and indexing, is not visible here.

Conclusion. For PPP-almost every ω∈Ω\omega \in \Omegaω∈Ω there is a real number ccc, which may depend on ω\omegaω, such that

lim⁡t→∞V(xt(ω)−x∗)=c.\lim_{t \to \infty} V\bigl(x_t(\omega) - x^*\bigr) = c .t→∞lim​V(xt​(ω)−x∗)=c.

Nothing is said about the value of ccc: it need not be V(0)V(0)V(0), and it need not be the same for different ω\omegaω. The claim is only that the limit exists and is finite, almost surely.

Degenerate cases. If N=0N = 0N=0, then R0\mathbb{R}^0R0 is a single point, so V(xt(ω)−x∗)V(x_t(\omega) - x^*)V(xt​(ω)−x∗) is constant in ttt and the conclusion holds trivially. Because the conclusion concerns only a limit, what happens at t=0t = 0t=0 or any finite ttt does not matter. The data ξ0\xi^0ξ0 and SSS appear only inside the noise hypothesis, GGG only inside the linearization hypothesis, and λ\lambdaλ only in the linearization and step hypotheses. If the unseen hypotheses cannot be satisfied together for some or all data, the statement is vacuous there; this cannot be decided from the code shown.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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