Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (50): 1n∑i=1n[Ui+1(f,T)−E(Ui+1(f,T)∣F(i−1)T)]→0\frac1n\sum_{i=1}^n[U_{i+1}(f,T)-E(U_{i+1}(f,T)\mid\mathcal F_{(i-1)T})]\to0n1​∑i=1n​[Ui+1​(f,T)−E(Ui+1​(f,T)∣F(i−1)T​)]→0 a.s.

Proved
StochApproxDyn.WeakAPT.shifted_martingale_slln_eq50

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

law-of-large-numbersmartingalesp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-approximation

Let (Ω,F,P)(\Omega,\mathcal F,P)(Ω,F,P) be a probability space with a filtration {Ft}t≥0\{\mathcal F_t\}_{t\ge0}{Ft​}t≥0​, let (M,d)(M,d)(M,d) be a separable metric space with its Borel σ\sigmaσ-algebra, and let X:R+×Ω→MX:\mathbb R_+\times\Omega\to MX:R+​×Ω→M be progressively measurable. Let f:M→[0,1]f:M\to[0,1]f:M→[0,1] be uniformly continuous, let T>0T>0T>0, and let Un(f,T)=∫(n−1)TnTf(X(s)) dsU_n(f,T)=\int_{(n-1)T}^{nT}f(X(s))\,dsUn​(f,T)=∫(n−1)TnT​f(X(s))ds for n≥1n\ge1n≥1. Then, almost surely,

lim⁡n→∞1n∑i=1n[Ui+1(f,T)−E(Ui+1(f,T)∣F(i−1)T)]=0.(50)\lim_{n\to\infty}\frac1n\sum_{i=1}^n\Big[U_{i+1}(f,T)-E\big(U_{i+1}(f,T)\mid\mathcal F_{(i-1)T}\big)\Big]=0. \tag{50}n→∞lim​n1​i=1∑n​[Ui+1​(f,T)−E(Ui+1​(f,T)∣F(i−1)T​)]=0.(50)

This is the analogue of (47) with conditioning two windows back instead of one; together with (51) it lets one compare the block integrals of fff in window i+1i+1i+1 with those of f∘ΦTf\circ\Phi_Tf∘ΦT​ in window iii.

Formalization Note Only progressive measurability of XXX is assumed; condition (ii) of a weak asymptotic pseudotrajectory is not needed. Conditional expectations are Mathlib's condExp; the index iii runs over 1,…,n1,\dots,n1,…,n and F(i−1)T\mathcal F_{(i-1)T}F(i−1)T​ is evaluated at i≥1i\ge1i≥1 only.

Preamble
import Mathlib
import Definitions.Def_StochApproxDyn_WeakAPT_WeakAsymptoticPseudotrajectory
import Definitions.Def_StochApproxDyn_WeakAPT_BlockIntegral
Formal statement
namespace StochApproxDyn.WeakAPT

open MeasureTheory Filter Topology
open scoped NNReal

/-- Benaïm (1999), §10, proof of Theorem 10.1, Eq. (50), p. 62: for a progressively measurable
process `X`, a uniformly continuous `f : M → [0, 1]` and `T > 0`, almost surely
`(1/n) ∑_{i=1}^n [U_{i+1}(f,T) - E(U_{i+1}(f,T) | 𝓕_{(i-1)T})] → 0`. -/
theorem shifted_martingale_slln_eq50
    {Ω M : Type*} {m0 : MeasurableSpace Ω} [MetricSpace M] [TopologicalSpace.SeparableSpace M]
    [MeasurableSpace M] [BorelSpace M]
    (P : Measure Ω) [IsProbabilityMeasure P] (ℱ : Filtration ℝ≥0 m0) (X : ℝ≥0 → Ω → M)
    (hX : IsProgressivelyMeasurable ℱ X)
    (f : M → ℝ) (hf : UniformContinuous f) (hf01 : ∀ y, f y ∈ Set.Icc (0 : ℝ) 1)
    (T : ℝ≥0) (hT : 0 < T) :
    ∀ᵐ ω ∂P, Tendsto
      (fun n : ℕ => (1 / (n : ℝ)) * ∑ i ∈ Finset.Icc 1 n,
        (blockIntegral X f T (i + 1) ω -
          (P[blockIntegral X f T (i + 1) | ℱ (((i - 1 : ℕ) : ℝ≥0) * T)]) ω))
      atTop (𝓝 0) := by sorry

end StochApproxDyn.WeakAPT
Source
Benaïm, Dynamics of Stochastic Approximation Algorithms, Séminaire de Probabilités XXXIII, LNM 1709 (1999), DOI 10.1007/BFb0096509, Section 10, proof of Theorem 10.1, p. 62 (PDF p. 63), Eq. (50)
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

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