Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(B.4), App. B.1.1, p. 24 — E‖∇f(X_{s(n)}) − ∇f(X_n)‖₂ ≤ L B̄ Σ_{r=s(n)}^{n−1} α_{r+1}

Proved
LargeDelaySGD.MeanSquare.eq_B4

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

asynchronous-optimizationdelaysp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-gradient-descent

Throughout, d≥0d \ge 0d≥0, X=RdX=\mathbb R^dX=Rd with the Euclidean norm ∥⋅∥2\|\cdot\|_2∥⋅∥2​; the random function F(x;ξ)F(x;\xi)F(x;ξ) lives on a probability space (Ξ,μ)(\Xi,\mu)(Ξ,μ) and f(x)=Eμ[F(x;ξ)]f(x)=\mathbb E_\mu[F(x;\xi)]f(x)=Eμ​[F(x;ξ)]; the noise sequence (ωn)n≥0(\omega_n)_{n\ge0}(ωn​)n≥0​ lives on a second probability space (Ω,P)(\Omega,\mathbb P)(Ω,P), is i.i.d. with law μ\muμ, and XnX_nXn​ are the DASGD iterates X0=x0X_0=x_0X0​=x0​, Xn+1=Xn−αn+1∇F(Xs(n),ωn+1)X_{n+1}=X_n-\alpha_{n+1}\nabla F(X_{s(n)},\omega_{n+1})Xn+1​=Xn​−αn+1​∇F(Xs(n)​,ωn+1​) with a deterministic delay schedule s(n)≤ns(n)\le ns(n)≤n. Assumption 1 is taken with a bound B≥sup⁡xE∥∇F(x;ξ)∥22B\ge\sup_x\mathbb E\|\nabla F(x;\xi)\|_2^2B≥supx​E∥∇F(x;ξ)∥22​ and a Lipschitz constant LLL of x↦E[∇F(x;ξ)]x\mapsto\mathbb E[\nabla F(x;\xi)]x↦E[∇F(x;ξ)]. Assume only s(n)≤ns(n)\le ns(n)≤n and αn>0\alpha_n>0αn​>0 for all nnn from Assumption 2, and let Bˉ\bar BBˉ be any bound with E∥∇F(x;ξ)∥2≤Bˉ\mathbb E\|\nabla F(x;\xi)\|_2\le\bar BE∥∇F(x;ξ)∥2​≤Bˉ for all xxx. Then for every nnn, the random variable ∥∇f(Xs(n))−∇f(Xn)∥2\|\nabla f(X_{s(n)})-\nabla f(X_n)\|_2∥∇f(Xs(n)​)−∇f(Xn​)∥2​ is integrable and

E[∥∇f(Xs(n))−∇f(Xn)∥2]≤LBˉ∑r=s(n)n−1αr+1.\mathbb E\big[\|\nabla f(X_{s(n)})-\nabla f(X_n)\|_2\big]\le L\bar B\sum_{r=s(n)}^{n-1}\alpha_{r+1}.E[∥∇f(Xs(n)​)−∇f(Xn​)∥2​]≤LBˉr=s(n)∑n−1​αr+1​.

This controls the staleness of the delayed gradient: the error from evaluating at Xs(n)X_{s(n)}Xs(n)​ instead of XnX_nXn​ is at most the step sizes accumulated during the delay.

Formalization Note. The integrability conjunct guards against Lean's convention that the integral of a non-integrable function is 000. The empty sum (s(n)=ns(n)=ns(n)=n, no delay) is 000.

Preamble
import Mathlib
import Definitions.Def_LargeDelaySGD_MeanSquare_Model
Formal statement
namespace LargeDelaySGD.MeanSquare

open MeasureTheory ProbabilityTheory

theorem eq_B4 {d : ℕ} {Ξ Ω : Type*} [MeasurableSpace Ξ] [MeasurableSpace Ω]
    (μ : Measure Ξ) [IsProbabilityMeasure μ] (P : Measure Ω) [IsProbabilityMeasure P]
    (F : EuclideanSpace ℝ (Fin d) → Ξ → ℝ) (B : ℝ) (L : NNReal) (hA1 : Assumption1 F μ B L)
    (α : ℕ → ℝ) (s : ℕ → ℕ)
    (hs : ∀ n, s n ≤ n) (hα : ∀ n, 0 < α n)
    (ω : ℕ → Ω → Ξ) (hω : IIDNoise P μ ω) (x₀ : EuclideanSpace ℝ (Fin d))
    (X : ℕ → Ω → EuclideanSpace ℝ (Fin d)) (hX : IsDASGD F α s ω x₀ X)
    (Bbar : ℝ) (hBbar : ∀ x, ∫ ξ, ‖stochGrad F x ξ‖ ∂μ ≤ Bbar) :
    ∀ n, Integrable (fun a => ‖gradient (objective F μ) (X (s n) a) -
        gradient (objective F μ) (X n a)‖) P ∧
      ∫ a, ‖gradient (objective F μ) (X (s n) a) - gradient (objective F μ) (X n a)‖ ∂P ≤
        L * Bbar * ∑ r ∈ Finset.Ico (s n) n, α (r + 1) := by sorry

end LargeDelaySGD.MeanSquare
Source
Z. Zhou, P. Mertikopoulos, N. Bambos, P. W. Glynn, Y. Ye, Distributed Stochastic Optimization with Large Delays, arXiv:2107.02919v1, App. B.1.1, p. 24, (B.3)–(B.4)
Human review
  • Endorsed by Shuze Chen · Oct 22, 2026

    Confirmed by the moderator at approval.

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