Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 4.4 — Expected Descent

Proved
BCN.ExpectedDescent

by Minghui · Sep 25, 2026 · Mathlib c5ea003 (Lean v4.30.0)

optimizationprobabilitystochastic-gradient

Mathematical statement

Under the common model assumptions, for every k≥0k\ge0k≥0, both inequalities hold almost surely:

E[F(wk+1)∣Fk]−F(wk)≤−μαkqk+αk2L2E[∥gk∥2∣Fk]≤−(μ−αkLMG2)αkqk+αk2LM2.\begin{aligned} \mathbb E[F(w_{k+1})\mid\mathcal F_k]-F(w_k) &\le-\mu\alpha_k q_k+ \frac{\alpha_k^2L}{2}\mathbb E[\|g_k\|^2\mid\mathcal F_k]\\ &\le-\left(\mu-\frac{\alpha_kLM_G}{2}\right)\alpha_k q_k +\frac{\alpha_k^2LM}{2}. \end{aligned}E[F(wk+1​)∣Fk​]−F(wk​)​≤−μαk​qk​+2αk2​L​E[∥gk​∥2∣Fk​]≤−(μ−2αk​LMG​​)αk​qk​+2αk2​LM​.​

Formalization note: direct source theorem with full-history conditioning explicit. No upper bound on the positive step size is needed for this lemma.

Source: Léon Bottou, Frank E. Curtis, Jorge Nocedal, Optimization Methods for Large-Scale Machine Learning, arXiv:1606.04838v3, https://arxiv.org/abs/1606.04838v3; Section 4, PDF p. 24 and PDF p. 25, Lemma 4.4, equations (4.10a)–(4.10b).

Notation and probability model

Let d∈Nd\in\mathbb Nd∈N and F:Rd→RF:\mathbb R^d\to\mathbb RF:Rd→R have an actual gradient ∇F\nabla F∇F at every point, with ∥∇F(x)−∇F(y)∥≤L∥x−y∥\|\nabla F(x)-\nabla F(y)\|\le L\|x-y\|∥∇F(x)−∇F(y)∥≤L∥x−y∥ for all x,yx,yx,y, where L>0L>0L>0. On a probability space (Ω,A,P)(\Omega,\mathcal A,\mathbb P)(Ω,A,P), let (Fk)k≥0(\mathcal F_k)_{k\ge0}(Fk​)k≥0​ be an increasing family of sub-σ\sigmaσ-algebras of A\mathcal AA. The initial vector w0w_0w0​ is deterministic. The iterate wkw_kwk​ is strongly Fk\mathcal F_kFk​-measurable, and the sampled direction gkg_kgk​ is strongly Fk+1\mathcal F_{k+1}Fk+1​-measurable with E∥gk∥2<∞\mathbb E\|g_k\|^2<\inftyE∥gk​∥2<∞. For deterministic real step sizes αk>0\alpha_k>0αk​>0, the algorithm is

wk+1=wk−αkgkalmost surely.w_{k+1}=w_k-\alpha_k g_k\quad\text{almost surely}.wk+1​=wk​−αk​gk​almost surely.

An open set U⊆RdU\subseteq\mathbb R^dU⊆Rd contains every iterate almost surely, and a real number Finf⁡F_{\inf}Finf​ satisfies F(x)≥Finf⁡F(x)\ge F_{\inf}F(x)≥Finf​ for all x∈Ux\in Ux∈U. Put mk=E[gk∣Fk]m_k=\mathbb E[g_k\mid\mathcal F_k]mk​=E[gk​∣Fk​]. Fix real constants 0<μ≤μG0<\mu\le\mu_G0<μ≤μG​, M≥0M\ge0M≥0, MV≥0M_V\ge0MV​≥0, and MG=MV+μG2M_G=M_V+\mu_G^2MG​=MV​+μG2​. The source's first- and second-moment assumptions are, almost surely for every kkk,

∇F(wk)⊤mk≥μ∥∇F(wk)∥2,∥mk∥≤μG∥∇F(wk)∥,\nabla F(w_k)^\top m_k\ge\mu\|\nabla F(w_k)\|^2, \qquad\|m_k\|\le\mu_G\|\nabla F(w_k)\|,∇F(wk​)⊤mk​≥μ∥∇F(wk​)∥2,∥mk​∥≤μG​∥∇F(wk​)∥, E[∥gk∥2∣Fk]−∥mk∥2≤M+MV∥∇F(wk)∥2.\mathbb E[\|g_k\|^2\mid\mathcal F_k]-\|m_k\|^2 \le M+M_V\|\nabla F(w_k)\|^2.E[∥gk​∥2∣Fk​]−∥mk​∥2≤M+MV​∥∇F(wk​)∥2.

Write qk=∥∇F(wk)∥2q_k=\|\nabla F(w_k)\|^2qk​=∥∇F(wk​)∥2, AK=∑k=0K−1αkA_K=\sum_{k=0}^{K-1}\alpha_kAK​=∑k=0K−1​αk​, WK=E[∑k=0K−1αkqk]W_K=\mathbb E[\sum_{k=0}^{K-1}\alpha_k q_k]WK​=E[∑k=0K−1​αk​qk​], and GK=E[∑k=0K−1qk]G_K=\mathbb E[\sum_{k=0}^{K-1}q_k]GK​=E[∑k=0K−1​qk​]; empty sums are zero. Define F∗:=inf⁡x∈RdF(x)F_*:=\inf_{x\in\mathbb R^d}F(x)F∗​:=infx∈Rd​F(x) using the actual objective's range (Lean's real-valued sInf), and Δk=E[F(wk)−F∗]\Delta_k=\mathbb E[F(w_k)-F_*]Δk​=E[F(wk​)−F∗​] when stating the strongly convex targets. Those targets require d≥1d\ge1d≥1, positive strong-convexity modulus, and Finf⁡=F∗F_{\inf}=F_*Finf​=F∗​. The other targets permit d=0d=0d=0 and use the trajectory-region lower bound Finf⁡F_{\inf}Finf​, without assuming a global minimizer.

Formalization note: these are source assumptions with explicit filtration, measurability, and finite-second-moment conventions for genuine Bochner and conditional expectations. The deterministic initialization and square-integrable directions imply finite iterate second moments; objective and gradient moments must be justified from smoothness in the proofs. The model assumes no expected descent inequality, no gradient-gap inequality, and no convergence conclusion. Local index 000 is paper index 111 throughout. Full-history conditioning follows Algorithm 4.1, PDF p. 22, footnote 4; the model assumptions are Assumptions 4.1 and 4.3, PDF p. 23 and PDF p. 24, equations (4.6)–(4.9), in Section 4 of Bottou–Curtis–Nocedal, Optimization Methods for Large-Scale Machine Learning: https://arxiv.org/abs/1606.04838v3.

Preamble
import Definitions.Def_BCN_SG_Model
open MeasureTheory Filter
open scoped Topology
universe u
Formal statement
namespace BCN
theorem ExpectedDescent :
  ∀ (d : ℕ) (P : Objective d) (C : MomentConstants)
    (Ω : Type u) [MeasurableSpace Ω] (prob : Measure Ω) [IsProbabilityMeasure prob]
    (α : ℕ → ℝ) (R : Run P C prob α) (k : ℕ),
    (∀ᵐ ω ∂prob, prob[loss R (k + 1) | R.history k] ω - loss R k ω ≤
      -(C.μ * α k) * gradSq R k ω + α k ^ 2 * P.L / 2 *
        prob[(fun ω ↦ ‖R.g k ω‖ ^ 2) | R.history k] ω) ∧
    (∀ᵐ ω ∂prob,
      -(C.μ * α k) * gradSq R k ω + α k ^ 2 * P.L / 2 *
        prob[(fun ω ↦ ‖R.g k ω‖ ^ 2) | R.history k] ω ≤
      -(C.μ - α k * P.L * C.MG / 2) * α k * gradSq R k ω +
        α k ^ 2 * P.L * C.M / 2) := by sorry
end BCN
Source
Léon Bottou, Frank E. Curtis, Jorge Nocedal, Optimization Methods for Large-Scale Machine Learning, arXiv:1606.04838v3, https://arxiv.org/abs/1606.04838v3; Section 4, PDF p. 24 and PDF p. 25, Lemma 4.4, equations (4.10a)–(4.10b).
Read-back

What the Lean code literally says, in plain math · gpt-6

This declaration is an unproved theorem target. It quantifies universally over every natural ddd, the Euclidean space E=RdE=\mathbb{R}^dE=Rd, every objective f:E→Rf:E\to\mathbb{R}f:E→R with a gradient at every point and a real L>0L>0L>0 satisfying ∥∇f(x)−∇f(y)∥≤L∥x−y∥\|\nabla f(x)-\nabla f(y)\|\le L\|x-y\|∥∇f(x)−∇f(y)∥≤L∥x−y∥ for all x,yx,yx,y, every real μ,μG,M,MV\mu,\mu_G,M,M_Vμ,μG​,M,MV​ satisfying 0<μ≤μG0<\mu\le\mu_G0<μ≤μG​, M≥0M\ge0M≥0, and MV≥0M_V\ge0MV​≥0, every sample type Ω\OmegaΩ in its arbitrary universe with a measurable-space structure and probability measure P\mathbb{P}P, every real step sequence α\alphaα, every run with these data, and every natural kkk. Write MG=MV+μG2M_G=M_V+\mu_G^2MG​=MV​+μG2​. A run supplies an increasing filtration (Hj)(\mathcal{H}_j)(Hj​) of sub-σ\sigmaσ-algebras of the ambient measurable space, functions wj,gj:Ω→Ew_j,g_j:\Omega\to Ewj​,gj​:Ω→E, a deterministic vector winitw_{\mathrm{init}}winit​, an open set UUU, and a real bbb. It requires w0(ω)=winitw_0(\omega)=w_{\mathrm{init}}w0​(ω)=winit​ for every ω\omegaω; for every natural jjj, strong Hj\mathcal{H}_jHj​-measurability of wjw_jwj​, strong Hj+1\mathcal{H}_{j+1}Hj+1​-measurability of gjg_jgj​, gj∈L2(P;E)g_j\in L^2(\mathbb{P};E)gj​∈L2(P;E), αj>0\alpha_j>0αj​>0, wj+1=wj−αjgjw_{j+1}=w_j-\alpha_jg_jwj+1​=wj​−αj​gj​ almost surely, and wj∈Uw_j\in Uwj​∈U almost surely; and b≤f(x)b\le f(x)b≤f(x) for all x∈Ux\in Ux∈U. Put vj=∇f(wj)v_j=\nabla f(w_j)vj​=∇f(wj​), mj=E[gj∣Hj]m_j=\mathbb{E}[g_j\mid\mathcal{H}_j]mj​=E[gj​∣Hj​], and qj=E[∥gj∥2∣Hj]q_j=\mathbb{E}[\|g_j\|^2\mid\mathcal{H}_j]qj​=E[∥gj​∥2∣Hj​]. For every jjj, the run further requires almost surely μ∥vj∥2≤⟨vj,mj⟩\mu\|v_j\|^2\le\langle v_j,m_j\rangleμ∥vj​∥2≤⟨vj​,mj​⟩, ∥mj∥≤μG∥vj∥\|m_j\|\le\mu_G\|v_j\|∥mj​∥≤μG​∥vj​∥, and qj−∥mj∥2≤M+MV∥vj∥2q_j-\|m_j\|^2\le M+M_V\|v_j\|^2qj​−∥mj​∥2≤M+MV​∥vj​∥2. Almost-sure requirements are separate at each index. The conclusion is the conjunction of two almost-sure assertions: E[f(wk+1)∣Hk]−f(wk)≤−μαk∥vk∥2+αk2L2qk\mathbb{E}[f(w_{k+1})\mid\mathcal{H}_k]-f(w_k)\le-\mu\alpha_k\|v_k\|^2+\frac{\alpha_k^2L}{2}q_kE[f(wk+1​)∣Hk​]−f(wk​)≤−μαk​∥vk​∥2+2αk2​L​qk​ and −μαk∥vk∥2+αk2L2qk≤−(μ−αkLMG2)αk∥vk∥2+αk2LM2-\mu\alpha_k\|v_k\|^2+\frac{\alpha_k^2L}{2}q_k\le-\left(\mu-\frac{\alpha_kLM_G}{2}\right)\alpha_k\|v_k\|^2+\frac{\alpha_k^2LM}{2}−μαk​∥vk​∥2+2αk2​L​qk​≤−(μ−2αk​LMG​​)αk​∥vk​∥2+2αk2​LM​. Each assertion has its own almost-everywhere quantifier. There is no extra upper bound on the positive steps. The cases d=0d=0d=0, k=0k=0k=0, M=0M=0M=0, and MV=0M_V=0MV​=0 are included. An empty region, an empty sample type with a probability-measure requirement, or a step sequence with a nonpositive entry cannot furnish a run; universal assertions over such impossible data are vacuous. Expectations use total Bochner integrals, zero on nonintegrable inputs, and conditional expectations use their total mathematical-library definitions, including zero when required integrability fails. No separate loss-integrability or squared-gradient-integrability field is assumed. Division is total with x/0=0x/0=0x/0=0.

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

    Confirmed by the moderator at approval.

  • Endorsed by Minghui · Sep 26, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me