Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

(4.6) — the optimality gap bounds the squared gradient: J(w)−J(w∗)≥λ2L2∥∇J(w)∥22J(w)-J(w_*) \ge \frac{\lambda}{2L^2}\|\nabla J(w)\|_2^2J(w)−J(w∗​)≥2L2λ​∥∇J(w)∥22​

Proved
DynSampleSize.Det.eq_4_6

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

convex-optimizationgradient-methodsp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let J:Rm→RJ : \mathbb{R}^m \to \mathbb{R}J:Rm→R be twice continuously differentiable with Hessian bounds λ∥d∥2≤dT∇2J(w)d≤L∥d∥2\lambda\|d\|^2 \le d^T\nabla^2J(w)d \le L\|d\|^2λ∥d∥2≤dT∇2J(w)d≤L∥d∥2 for all w,dw, dw,d, where 0<λ<L0<\lambda<L0<λ<L (assumption (4.2)), and let w∗w_*w∗​ be a minimizer of JJJ. Then for every w∈Rmw \in \mathbb{R}^mw∈Rm,

J(w)−J(w∗)  ≥  λ2L2 ∥∇J(w)∥22.J(w) - J(w_*) \;\ge\; \frac{\lambda}{2L^2}\,\|\nabla J(w)\|_2^2 .J(w)−J(w∗​)≥2L2λ​∥∇J(w)∥22​.

Together with (4.5) this shows that J(w)−J(w∗)J(w)-J(w_*)J(w)−J(w∗​) and ∥∇J(w)∥2\|\nabla J(w)\|^2∥∇J(w)∥2 are equivalent up to constants depending on λ\lambdaλ and LLL. In Theorem 4.1 it converts the linear decay of J(wk)J(w_k)J(wk​) into the bound (4.12) on the approximate gradients.

Formalization Note Stated for an arbitrary point www rather than an iterate wkw_kwk​. The minimizer is a point w∗w_*w∗​ with J(w∗)≤J(w)J(w_*) \le J(w)J(w∗​)≤J(w) for all www.

Preamble
import Mathlib
import Definitions.Def_DynSampleSize_Det_Setting

open Filter Topology
Formal statement
namespace DynSampleSize.Det

theorem eq_4_6 {m : ℕ} (J : EuclideanSpace ℝ (Fin m) → ℝ) (lam L : ℝ)
    (hJ : HessianBounds J lam L) (wstar : EuclideanSpace ℝ (Fin m))
    (hmin : ∀ w, J wstar ≤ J w) (w : EuclideanSpace ℝ (Fin m)) :
    lam / (2 * L ^ 2) * ‖gradient J w‖ ^ 2 ≤ J w - J wstar := by sorry

end DynSampleSize.Det
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. 8, (4.6)
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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me