Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 2.5 — if M∗M^*M∗ contains a ball of radius rrr and lim sup⁡hk<2r\limsup h_k < 2rlimsuphk​<2r, the method (2.4) terminates

Proved
ShorNonsmooth.SubgradMethod.normalized_finite_termination_of_ball

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

finite-terminationp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1subgradient-method

Let fff be a convex function on EnE_nEn​ whose set M∗M^*M∗ of minimum points contains a ball SrS_rSr​ of radius r>0r > 0r>0. Let the stepsizes hk>0h_k > 0hk​>0 satisfy

∑k=0∞hk=+∞andlim sup⁡k→∞hk<2r.\sum_{k=0}^{\infty} h_k = +\infty \qquad\text{and}\qquad \limsup_{k \to \infty} h_k < 2r .k=0∑∞​hk​=+∞andk→∞limsup​hk​<2r.

Then for every starting point x0∈Enx_0 \in E_nx0​∈En​ and every choice of subgradients, the normalized subgradient method (2.4), xk+1=xk−hk+1gf(xk)/∥gf(xk)∥x_{k+1} = x_k - h_{k+1} g_f(x_k)/\|g_f(x_k)\|xk+1​=xk​−hk+1​gf​(xk​)/∥gf​(xk​)∥, reaches M∗M^*M∗ after finitely many steps: there is an index k(x0)k(x_0)k(x0​) with xk(x0)∈M∗x_{k(x_0)} \in M^*xk(x0​)​∈M∗.

Stepsizes need not tend to zero here; it suffices that they are eventually shorter than the diameter of a ball of minimizers.

Formalization Note lim sup⁡hk<2r\limsup h_k < 2rlimsuphk​<2r is encoded as "there is q<2rq < 2rq<2r with hk≤qh_k \le qhk​≤q for all large kkk", which is equivalent for real sequences and excludes unbounded sequences (whose Filter.limsup in ℝ is a junk value). The ball is Metric.closedBall c r. The book's sum starts at k=0k = 0k=0; h0h_0h0​ does not enter the iteration and does not affect divergence.

Preamble
import Mathlib
import Definitions.Def_ShorNonsmooth_SubgradMethod_SubgradientMethod

open Filter Topology
Formal statement
namespace ShorNonsmooth.SubgradMethod

/-- Shor (1985), p. 27, Theorem 2.5. Suppose the set `M*` of minimum points of the convex
function `f` contains a ball (the book's "sphere") `S_r` of radius `r > 0`, and the normalized
subgradient method (2.4) uses stepsizes `h_k > 0` with `∑_{k≥0} h_k = +∞` and
`limsup_{k→∞} h_k < 2r` (encoded as: for some `q < 2r`, eventually `h_k ≤ q`). Then for any
`x₀ ∈ E_n` (and any subgradient selection) some iterate `x_{k(x₀)}` lies in `M*`. -/
theorem normalized_finite_termination_of_ball {n : ℕ} (f : EuclideanSpace ℝ (Fin n) → ℝ)
    (hf : ConvexOn ℝ Set.univ f) (c : EuclideanSpace ℝ (Fin n)) (r : ℝ) (hr : 0 < r)
    (hball : Metric.closedBall c r ⊆ MinSet f) (h : ℕ → ℝ) (hpos : ∀ k, 0 < h k)
    (hdiv : Tendsto (fun N => ∑ k ∈ Finset.range N, h k) atTop atTop)
    (hlimsup : ∃ q < 2 * r, ∀ᶠ k in atTop, h k ≤ q)
    (g : EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n))
    (hg : ∀ x, ShorNonsmooth.AlmostDiff.IsSubgradient f x (g x)) (x₀ : EuclideanSpace ℝ (Fin n)) :
    ∃ k : ℕ, normalizedIter g h x₀ k ∈ MinSet f := by sorry

end ShorNonsmooth.SubgradMethod
Source
Shor, Minimization Methods for Non-Differentiable Functions, Springer 1985, p. 27, Theorem 2.5
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

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