Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2 — representation (A9) of t Δˉt\sqrt t\,\bar\Delta_tt​Δˉt​ for the linear recursion

Proved
PolyakJuditsky.Averaging.lemma2_representation

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

matrix-analysisp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-approximation

Let AAA, (γt)t≥0(\gamma_t)_{t\ge0}(γt​)t≥0​ satisfy the hypotheses of Lemma 1, let Δ0∈RN\Delta_0\in\mathbb R^NΔ0​∈RN, and let ξ1,ξ2,⋯∈RN\xi_1,\xi_2,\dots\in\mathbb R^Nξ1​,ξ2​,⋯∈RN be an arbitrary sequence. Define

Δt=Δt−1−γt(AΔt−1+ξt) (t≥1),Δˉt=1t∑i=0t−1Δi,(A8)\Delta_t=\Delta_{t-1}-\gamma_t(A\Delta_{t-1}+\xi_t)\ (t\ge1),\qquad\bar\Delta_t=\frac1t\sum_{i=0}^{t-1}\Delta_i,\tag{A8}Δt​=Δt−1​−γt​(AΔt−1​+ξt​) (t≥1),Δˉt​=t1​i=0∑t−1​Δi​,(A8)

and, with XjtX_j^tXjt​ as in (A1), αjt=γj∑i=jt−1Xj+1i+1\alpha_j^t=\gamma_j\sum_{i=j}^{t-1}X_{j+1}^{i+1}αjt​=γj​∑i=jt−1​Xj+1i+1​, αt=α0t\alpha_t=\alpha_0^tαt​=α0t​, wjt=αjt−A−1w_j^t=\alpha_j^t-A^{-1}wjt​=αjt​−A−1. Then for every t≥1t\ge1t≥1

t Δˉt=1t γ0 αtΔ0−1t∑j=1t−1A−1ξj−1t∑j=1t−1wjtξj,(A9)\sqrt t\,\bar\Delta_t=\frac1{\sqrt t\,\gamma_0}\,\alpha_t\Delta_0-\frac1{\sqrt t}\sum_{j=1}^{t-1}A^{-1}\xi_j-\frac1{\sqrt t}\sum_{j=1}^{t-1}w_j^t\xi_j,\tag{A9}t​Δˉt​=t​γ0​1​αt​Δ0​−t​1​j=1∑t−1​A−1ξj​−t​1​j=1∑t−1​wjt​ξj​,(A9)

and there is K<∞K<\inftyK<∞ with ∥αt∥≤K\|\alpha_t\|\le K∥αt​∥≤K for all ttt, ∥wjt∥≤K\|w_j^t\|\le K∥wjt​∥≤K for 1≤j<t1\le j<t1≤j<t, and 1t∑j=1t−1∥wjt∥→0\frac1t\sum_{j=1}^{t-1}\|w_j^t\|\to0t1​∑j=1t−1​∥wjt​∥→0.

The identity is pathwise: no probability is involved. It isolates the leading term −t−1/2∑jA−1ξj-t^{-1/2}\sum_jA^{-1}\xi_j−t−1/2∑j​A−1ξj​, to which a martingale central limit theorem applies, from remainders that the bounds on αt\alpha_tαt​, wjtw_j^twjt​ make negligible.

Formalization Note The paper prints (A9) with +++ on both noise sums. For the recursion (A8) as printed (−γtξt-\gamma_t\xi_t−γt​ξt​) the signs are −-−: at t=2t=2t=2, (A8) gives 2Δˉ2=((2I−γ1A)Δ0−γ1ξ1)/2\sqrt2\bar\Delta_2=\bigl((2I-\gamma_1A)\Delta_0-\gamma_1\xi_1\bigr)/\sqrt22​Δˉ2​=((2I−γ1​A)Δ0​−γ1​ξ1​)/2​, while A−1+w12=α12=γ1IA^{-1}+w_1^2=\alpha_1^2=\gamma_1IA−1+w12​=α12​=γ1​I. The first display of the proof (p. 847) drops the minus sign of (A8). The sign does not affect the bounds on αt\alpha_tαt​, wjtw_j^twjt​. The matrices αt\alpha_tαt​ and wjtw_j^twjt​ are the ones the proof constructs (p. 847), not arbitrary matrices with the stated bounds.

Preamble
import Mathlib
import Definitions.Def_PolyakJuditsky_Averaging_Model

open Filter Topology
Formal statement
namespace PolyakJuditsky.Averaging

/-- Lemma 2 (p. 846), sign-corrected. For the linear recursion (A8)
`Δ_t = Δ_{t-1} - γ_t (A Δ_{t-1} + ξ_t)` driven by an arbitrary sequence `ξ_1, ξ_2, … ∈ ℝ^N`
from an arbitrary `Δ_0`, with `Δ̄_t = (1/t) ∑_{i=0}^{t-1} Δ_i`, `α_t = α_0^t` and
`w_j^t = α_j^t - A⁻¹`: for every `t ≥ 1`,
`√t Δ̄_t = (1/(√t γ_0)) α_t Δ_0 - (1/√t) ∑_{j=1}^{t-1} A⁻¹ ξ_j - (1/√t) ∑_{j=1}^{t-1} w_j^t ξ_j`;
and under the hypotheses of Lemma 1 there is `K` with `‖α_t‖ ≤ K`, `‖w_j^t‖ ≤ K` for
`1 ≤ j < t`, and `(1/t) ∑_{j=1}^{t-1} ‖w_j^t‖ → 0`. -/
theorem lemma2_representation {N : ℕ} (A : Matrix (Fin N) (Fin N) ℝ) (γ : ℕ → ℝ)
    (hA : EigenRePos A) (hpos : ∀ t, 0 < γ t) (hγ : StepCondition4 γ)
    (Δ₀ : EuclideanSpace ℝ (Fin N)) (ξ : ℕ → EuclideanSpace ℝ (Fin N)) :
    (∀ t : ℕ, 1 ≤ t →
      Real.sqrt t • detAverage Δ₀ γ (matApply A) ξ t =
        (Real.sqrt t * γ 0)⁻¹ • matApply (lemAlpha A γ 0 t) Δ₀
          - (Real.sqrt t)⁻¹ • ∑ j ∈ Finset.Ico 1 t, matApply A⁻¹ (ξ j)
          - (Real.sqrt t)⁻¹ • ∑ j ∈ Finset.Ico 1 t, matApply (lemW A γ j t) (ξ j)) ∧
    ∃ K : ℝ, (∀ t, matNorm (lemAlpha A γ 0 t) ≤ K) ∧
      (∀ j t, 1 ≤ j → j < t → matNorm (lemW A γ j t) ≤ K) ∧
      Tendsto (fun t : ℕ => (t : ℝ)⁻¹ * ∑ j ∈ Finset.Ico 1 t, matNorm (lemW A γ j t))
        atTop (𝓝 0) := by sorry

end PolyakJuditsky.Averaging
Source
Polyak, Juditsky, Acceleration of stochastic approximation by averaging, SIAM J. Control Optim. 30 (1992), p. 846, Lemma 2, Eq. (A8), (A9); p. 847, proof of Lemma 2
Read-back

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

Setting. N∈NN\in\mathbb NN∈N, AAA is a real N×NN\times NN×N matrix, and γ:N→R\gamma:\mathbb N\to\mathbb Rγ:N→R.

Hypotheses.

  • Every complex eigenvalue of AAA has positive real part.
  • γt>0\gamma_t>0γt​>0 for every t≥0t\ge0t≥0.
  • γt→0\gamma_t\to0γt​→0 and (γt−γt+1)/γt=o(γt)(\gamma_t-\gamma_{t+1})/\gamma_t=o(\gamma_t)(γt​−γt+1​)/γt​=o(γt​).

Also given are an arbitrary vector Δ0∈RN\Delta_0\in\mathbb R^NΔ0​∈RN and an arbitrary sequence ξ:N→RN\xi:\mathbb N\to\mathbb R^Nξ:N→RN, with no conditions on either.

Objects. Δt\Delta_tΔt​ is defined by

Δs+1=Δs−γs+1(AΔs+ξs+1),\Delta_{s+1}=\Delta_s-\gamma_{s+1}(A\Delta_s+\xi_{s+1}),Δs+1​=Δs​−γs+1​(AΔs​+ξs+1​),

and Δˉt=t−1∑i=0t−1Δi\bar\Delta_t=t^{-1}\sum_{i=0}^{t-1}\Delta_iΔˉt​=t−1∑i=0t−1​Δi​. The matrices are

αjt=γj∑i=jt−1Xj+1i+1,Xj+1i+1=(I−γiA)⋯(I−γj+1A),\alpha_j^t=\gamma_j\sum_{i=j}^{t-1}X_{j+1}^{i+1},\qquad X_{j+1}^{i+1}=(I-\gamma_iA)\cdots(I-\gamma_{j+1}A),αjt​=γj​i=j∑t−1​Xj+1i+1​,Xj+1i+1​=(I−γi​A)⋯(I−γj+1​A),

with Xj+1j+1=IX_{j+1}^{j+1}=IXj+1j+1​=I, and wjt=αjt−A−1w_j^t=\alpha_j^t-A^{-1}wjt​=αjt​−A−1.

Conclusion. The conclusion has two parts.

(i) For every t≥1t\ge1t≥1:

t Δˉt=1t γ0 α0t Δ0−1t∑j=1t−1A−1ξj−1t∑j=1t−1wjt ξj.\sqrt t\,\bar\Delta_t=\frac{1}{\sqrt t\,\gamma_0}\,\alpha_0^t\,\Delta_0-\frac1{\sqrt t}\sum_{j=1}^{t-1}A^{-1}\xi_j-\frac1{\sqrt t}\sum_{j=1}^{t-1}w_j^t\,\xi_j.t​Δˉt​=t​γ0​1​α0t​Δ0​−t​1​j=1∑t−1​A−1ξj​−t​1​j=1∑t−1​wjt​ξj​.

(ii) There is a real KKK with all of the following:

  • ∥α0t∥≤K\|\alpha_0^t\|\le K∥α0t​∥≤K for all t≥0t\ge0t≥0;
  • ∥wjt∥≤K\|w_j^t\|\le K∥wjt​∥≤K whenever 1≤j<t1\le j<t1≤j<t;
  • 1t∑j=1t−1∥wjt∥→0\displaystyle\frac1t\sum_{j=1}^{t-1}\|w_j^t\|\to0t1​j=1∑t−1​∥wjt​∥→0 as t→∞t\to\inftyt→∞.

Here ∥⋅∥\|\cdot\|∥⋅∥ is the spectral norm. Part (ii) does not involve Δ0\Delta_0Δ0​ or ξ\xiξ.

Degenerate cases.

  • ξ0\xi_0ξ0​ never enters.
  • At t=1t=1t=1 both sums are empty and α01=γ0I\alpha_0^1=\gamma_0 Iα01​=γ0​I, so (i) reads Δ0=Δ0\Delta_0=\Delta_0Δ0​=Δ0​.
  • α00\alpha_0^0α00​ is the zero matrix.
  • γ0>0\gamma_0>0γ0​>0 is assumed, so the factor (t γ0)−1(\sqrt t\,\gamma_0)^{-1}(t​γ0​)−1 never divides by zero for t≥1t\ge1t≥1.
  • A−1A^{-1}A−1 is the true inverse when N≥1N\ge1N≥1, by the eigenvalue hypothesis.
  • When N=0N=0N=0 everything is zero and the statement is trivial.
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