Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 14.11: for λ-strongly convex f, E‖vₜ‖² ≤ ρ² and w⋆ ∈ H, SGD with ηₜ = 1/(λt) and projections onto H has E[f(w̄)] − f(w⋆) ≤ (ρ²/(2λT))(1 + log T)

Proved
UnderstandingML.sgd_strongly_convex

by naimengye · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

projectionstochastic-gradient-descentstrong-convexity

Theorem 14.11. Assume that fff is λ\lambdaλ-strongly convex and that E[∥vt∥2]≤ρ2\mathbb{E}[\|v_t\|^2] \le \rho^2E[∥vt​∥2]≤ρ2. Let w⋆∈argmin⁡w∈Hf(w)w^\star \in \operatorname{argmin}_{w \in H} f(w)w⋆∈argminw∈H​f(w) be an optimal solution. Then SGD with ηt=1/(λt)\eta_t = 1/(\lambda t)ηt​=1/(λt) and a projection onto HHH after each step satisfies

E[f(wˉ)]−f(w⋆)≤ρ22λT(1+log⁡T).\mathbb{E}[f(\bar w)] - f(w^\star) \le \frac{\rho^2}{2\lambda T}(1 + \log T).E[f(wˉ)]−f(w⋆)≤2λTρ2​(1+logT).

Formally: HHH closed and convex, directions vt=g(w(t),zt)v_t = g(w^{(t)}, z_t)vt​=g(w(t),zt​) for i.i.d. zt∼Dz_t \sim Dzt​∼D and a measurable oracle with Ezg(w,z)∈∂f(w)\mathbb{E}_z g(w,z) \in \partial f(w)Ez​g(w,z)∈∂f(w) and Ez∥g(w,z)∥2≤ρ2\mathbb{E}_z\|g(w,z)\|^2 \le \rho^2Ez​∥g(w,z)∥2≤ρ2 for every www; the bound holds for every w⋆∈Hw^\star \in Hw⋆∈H.

Preamble
import Definitions.Def_UnderstandingML_SGD

open MeasureTheory
open scoped InnerProductSpace
Formal statement
namespace UnderstandingML

/-- **Theorem 14.11** (p. 195). Assume that `f` is `λ`-strongly convex and that `E[‖vₜ‖²] ≤ ρ²`.
Let `w⋆ ∈ argmin_{w ∈ H} f(w)` (the bound holds for every `w⋆ ∈ H`). Then SGD with the step
sizes `ηₜ = 1/(λt)` and a projection onto the closed convex set `H` after each step satisfies
`E[f(w̄)] − f(w⋆) ≤ (ρ²/(2λT))(1 + log T)`. Directions `vₜ = g(w⁽ᵗ⁾, zₜ)` for i.i.d. `zₜ ∼ D`, an
oracle `g` with `E_z g(w, z) ∈ ∂f(w)` and `E_z ‖g(w, z)‖² ≤ ρ²` for every `w`. -/
theorem sgd_strongly_convex {d : ℕ} {Z : Type*} [MeasurableSpace Z] (f : Vec d → ℝ) {lam : ℝ}
    (hlam : 0 < lam) (hf : StrongConvexOn Set.univ lam f) (H : Set (Vec d)) (hH : Convex ℝ H)
    (hclosed : IsClosed H) (D : Measure Z) [IsProbabilityMeasure D] (g : Vec d → Z → Vec d)
    (hg : Measurable (Function.uncurry g)) (horacle : IsSubgradientOracle f D g) {ρ : ℝ}
    (hmoment : ∀ w, ∫⁻ z, ENNReal.ofReal (‖g w z‖ ^ 2) ∂D ≤ ENNReal.ofReal (ρ ^ 2))
    (wstar : Vec d) (hw : wstar ∈ H) (T : ℕ) (hT : 0 < T) :
    (∫ S, f (sgdStrongAverage lam H g S) ∂(iidLaw D T)) - f wstar ≤
      ρ ^ 2 / (2 * lam * T) * (1 + Real.log T) := by sorry

end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §14.4.4 pp. 195-196, Theorem 14.11 with its proof
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 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