Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(4.27) — one-step recursion E[J(wk+1)−J(w∗)]≤(1−λ/(2L))(J(wk)−J(w∗))+ω/(2Lnk)E[J(w_{k+1})-J(w^*)] \le (1-\lambda/(2L))(J(w_k)-J(w^*)) + \omega/(2Ln_k)E[J(wk+1​)−J(w∗)]≤(1−λ/(2L))(J(wk​)−J(w∗))+ω/(2Lnk​)

Proved
DynSampleSize.Stoch.eq_4_27

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

linear-convergencemini-batchp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-optimization

Under the stochastic model of §4.2 and (4.2) with constants 0<λ<L0<\lambda<L0<λ<L, let w∗w^*w∗ minimize JJJ and let ω\omegaω bound the gradient variance uniformly (4.22):

∥Var(∇ℓ(w;⋅))∥1≤ωfor all w.\|\mathrm{Var}(\nabla\ell(w;\cdot))\|_1\le\omega\qquad\text{for all } w .∥Var(∇ℓ(w;⋅))∥1​≤ωfor all w.

Fix a point www and a sample size n≥1n\ge1n≥1, draw a batch of nnn independent points with law PPP, and let ggg be its batch gradient at www. Then J(w−g/L)J(w-g/L)J(w−g/L) is integrable and

E[J(w−1Lg)−J(w∗)]  ≤  (1−λ2L)(J(w)−J(w∗))+ω2Ln.\mathbb E\big[J(w-\tfrac1L g)-J(w^*)\big]\;\le\;\Big(1-\frac{\lambda}{2L}\Big)\big(J(w)-J(w^*)\big)+\frac{\omega}{2Ln}.E[J(w−L1​g)−J(w∗)]≤(1−2Lλ​)(J(w)−J(w∗))+2Lnω​.

With w=wkw=w_kw=wk​ and n=nkn=n_kn=nk​ this is the conditional one-step recursion from which Theorem 4.2 follows by induction on kkk.

Preamble
import Mathlib
import Definitions.Def_DynSampleSize_Stoch_UniformConvexity
import Definitions.Def_DynSampleSize_Stoch_Model

open MeasureTheory
Formal statement
namespace DynSampleSize.Stoch

/-- (4.27), p. 12: under (4.22) (`‖Var(∇ℓ(w; ·))‖₁ ≤ ω` for every `w`), at a point `w`, with the batch
`b` of `n ≥ 1` i.i.d. draws from `P`,
`E[J(w − g/L) − J(w*)] ≤ (1 − λ/(2L)) (J(w) − J(w*)) + ω/(2Ln)`, and the expectation exists. -/
theorem eq_4_27 {m : ℕ} {Z : Type*} [MeasurableSpace Z] (P : Measure Z) [IsProbabilityMeasure P]
    (ℓ : EuclideanSpace ℝ (Fin m) → Z → ℝ)
    (gradℓ : EuclideanSpace ℝ (Fin m) → Z → EuclideanSpace ℝ (Fin m))
    (hmodel : StochModel P ℓ gradℓ) (lam L : ℝ) (hJ : UniformlyConvex (objective P ℓ) lam L)
    (wstar : EuclideanSpace ℝ (Fin m)) (hwstar : ∀ w, objective P ℓ wstar ≤ objective P ℓ w)
    (ω : ℝ) (hω : ∀ w, vecVar P (gradℓ w) ≤ ω)
    (w : EuclideanSpace ℝ (Fin m)) (n : ℕ) (hn : 1 ≤ n) :
    Integrable (fun b => objective P ℓ (w - (1 / L) • batchGrad gradℓ n w b))
        (Measure.pi (fun _ : Fin n => P)) ∧
      ∫ b, (objective P ℓ (w - (1 / L) • batchGrad gradℓ n w b) - objective P ℓ wstar)
          ∂(Measure.pi (fun _ : Fin n => P)) ≤
        (1 - lam / (2 * L)) * (objective P ℓ w - objective P ℓ wstar) + ω / (2 * L * n) := by sorry

end DynSampleSize.Stoch
Source
Byrd, Chin, Nocedal, Wu, Sample size selection in optimization methods for machine learning, Math. Program. (2012), doi:10.1007/s10107-012-0572-5 — authors' version of 18 Oct 2011, p. 12, (4.27); p. 11, (4.22)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

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