Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.2 — global convergence of the nonmonotone line search algorithm

Proved
NonmonotoneLS.Global.global_convergence

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

global-convergenceline-searchnonmonotonep2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let f:Rn→Rf : \mathbb{R}^n \to \mathbb{R}f:Rn→R be continuously differentiable and bounded from below, fix NLSA parameters 0≤ηmin⁡≤ηmax⁡≤10 \le \eta_{\min} \le \eta_{\max} \le 10≤ηmin​≤ηmax​≤1, 0<δ<σ<1<ρ0 < \delta < \sigma < 1 < \rho0<δ<σ<1<ρ, μ>0\mu > 0μ>0, and let (xk,dk,αk,ηk)(x_k, d_k, \alpha_k, \eta_k)(xk​,dk​,αk​,ηk​) be a run of the nonmonotone line search algorithm with the Wolfe rule or with the Armijo rule. Suppose

  1. ∇f(xk)dk≤0\nabla f(x_k) d_k \le 0∇f(xk​)dk​≤0 for every kkk;
  2. the direction assumption (2.4)–(2.5) holds: for some c1,c2>0c_1, c_2 > 0c1​,c2​>0, ∇f(xk)dk≤−c1∥∇f(xk)∥2\nabla f(x_k) d_k \le -c_1\|\nabla f(x_k)\|^2∇f(xk​)dk​≤−c1​∥∇f(xk​)∥2 and ∥dk∥≤c2∥∇f(xk)∥\|d_k\| \le c_2\|\nabla f(x_k)\|∥dk​∥≤c2​∥∇f(xk​)∥ for all sufficiently large kkk;
  3. for some LLL, ∇f\nabla f∇f is LLL-Lipschitz on the level set L={x:f(x)≤f(x0)}\mathcal L = \{x : f(x) \le f(x_0)\}L={x:f(x)≤f(x0​)} if the Wolfe conditions are used, and on Lˉ\bar{\mathcal L}Lˉ, the set of points at distance at most μdmax⁡\mu d_{\max}μdmax​ from L\mathcal LL with dmax⁡=sup⁡k∥dk∥d_{\max} = \sup_k\|d_k\|dmax​=supk​∥dk​∥, if the Armijo conditions are used.

Then

lim inf⁡k→∞∥∇f(xk)∥=0.(2.6)\liminf_{k\to\infty} \|\nabla f(x_k)\| = 0. \qquad (2.6)k→∞liminf​∥∇f(xk​)∥=0.(2.6)

Moreover, if ηmax⁡<1\eta_{\max} < 1ηmax​<1, then

lim⁡k→∞∇f(xk)=0,(2.7)\lim_{k\to\infty} \nabla f(x_k) = 0, \qquad (2.7)k→∞lim​∇f(xk​)=0,(2.7)

and hence every limit point x∗x^*x∗ of a convergent subsequence of the iterates satisfies ∇f(x∗)=0\nabla f(x^*) = 0∇f(x∗)=0.

This is the global convergence theorem for the averaged nonmonotone line search: it holds for nonconvex fff and for every choice of the weights ηk\eta_kηk​, the case ηk≡0\eta_k \equiv 0ηk​≡0 being the classical monotone line search.

Formalization Note. (a) Hypothesis 1 is not in the printed theorem. The proof needs f(xk+1)≤Ckf(x_{k+1}) \le C_kf(xk+1​)≤Ck​ at every kkk, both to keep every iterate in L\mathcal LL (where the Wolfe case assumes the Lipschitz condition) and to bound CkC_kCk​ below by f(xk)f(x_k)f(xk​); that is the hypothesis of Lemma 1.1, which the algorithm's line search presupposes. Without it an early ascent step could leave L\mathcal LL. The direction assumption itself stays "for all sufficiently large kkk", as printed. (b) (2.6) is stated as "for every ε>0\varepsilon > 0ε>0, ∥∇f(xk)∥<ε\|\nabla f(x_k)\| < \varepsilon∥∇f(xk​)∥<ε for infinitely many kkk", equivalent for a nonnegative sequence; Lean's real lim inf⁡\liminfliminf would return 000 for a divergent sequence. (c) The final "Hence" sentence is derived from (2.7), so it is stated under ηmax⁡<1\eta_{\max} < 1ηmax​<1. (d) dmax⁡d_{\max}dmax​ and distances are taken in [0,∞][0,\infty][0,∞], so an unbounded direction sequence gives Lˉ=Rn\bar{\mathcal L} = \mathbb{R}^nLˉ=Rn. (e) The Lipschitz condition is assumed only on the set the theorem names, never globally.


Retired 2026-10-27: a Lean-vs-paper fidelity audit found this statement weaker than, or narrower than, the cited result. A corrected statement will be resubmitted.

Preamble
import Mathlib
import Definitions.Def_NonmonotoneLS_Shared_Params
import Definitions.Def_NonmonotoneLS_Shared_Cost
import Definitions.Def_NonmonotoneLS_Shared_Steps
import Definitions.Def_NonmonotoneLS_Global_Run
import Definitions.Def_NonmonotoneLS_Global_Regions

open scoped InnerProductSpace NNReal Topology
open Filter
Formal statement
namespace NonmonotoneLS.Global

/-- Theorem 2.2 (p. 1047). Let `f` be continuously differentiable and bounded from below, and let
`(x_k, d_k, α_k, η_k)` be a run of the NLSA with `∇f(x_k) d_k ≤ 0` for every `k`, satisfying the
direction assumption (2.4)–(2.5), where `∇f` is Lipschitz on `𝓛` if the Wolfe conditions are used
and on `𝓛̄` if the Armijo conditions are used. Then
(2.6) `liminf_k ‖∇f(x_k)‖ = 0` (stated as: for every `ε > 0`, `‖∇f(x_k)‖ < ε` for infinitely
many `k`); and if `η_max < 1`, (2.7) `∇f(x_k) → 0` and every limit of a convergent subsequence
of `(x_k)` is a stationary point. -/
theorem global_convergence {n : ℕ} (p : Shared.Params) (r : Rule)
    (f : EuclideanSpace ℝ (Fin n) → ℝ) (hf : ContDiff ℝ 1 f) (hbdd : BddBelow (Set.range f))
    (x d : ℕ → EuclideanSpace ℝ (Fin n)) (α η : ℕ → ℝ)
    (hrun : IsNLSARun p r f x d α η)
    (hdesc : ∀ k, ⟪gradient f (x k), d k⟫_ℝ ≤ 0)
    (hdir : DirectionAssumption f x d)
    (hLip : ∃ L : ℝ≥0, LipschitzHyp p r f x d L) :
    (∀ ε : ℝ, 0 < ε → ∃ᶠ k in atTop, ‖gradient f (x k)‖ < ε) ∧
      (p.ηmax < 1 → Tendsto (fun k => gradient f (x k)) atTop (𝓝 0)) ∧
      (p.ηmax < 1 → ∀ xstar : EuclideanSpace ℝ (Fin n),
        (∃ φ : ℕ → ℕ, StrictMono φ ∧ Tendsto (x ∘ φ) atTop (𝓝 xstar)) →
          gradient f xstar = 0) := by sorry

end NonmonotoneLS.Global
Source
Zhang, Hager, A Nonmonotone Line Search Technique and Its Application to Unconstrained Optimization, SIAM J. Optim. 14 (2004), p. 1047, Theorem 2.2
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Throughout, nnn is a natural number and Rn\mathbb{R}^nRn is nnn-dimensional Euclidean space, with its standard inner product ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle⟨⋅,⋅⟩ and Euclidean norm ∥⋅∥\|\cdot\|∥⋅∥. The statement relies on five names from imported definition files that are not reproduced here: Params (in the Shared namespace), Rule, IsNLSARun, DirectionAssumption and LipschitzHyp. Their contents are not visible, so they cannot be unfolded. Below they are treated as named conditions whose meaning is fixed only by those definitions. The one thing visible about ppp is that it has a real-comparable field, written ηmax⁡\eta_{\max}ηmax​ here. The docstring above the theorem is a comment and does not form part of what is asserted.

Data. The theorem takes:

  • a parameter record ppp of the type Params, with a field ηmax⁡\eta_{\max}ηmax​;
  • a value rrr of the type Rule;
  • a function f:Rn→Rf : \mathbb{R}^n \to \mathbb{R}f:Rn→R;
  • two sequences (xk)k∈N(x_k)_{k \in \mathbb{N}}(xk​)k∈N​ and (dk)k∈N(d_k)_{k \in \mathbb{N}}(dk​)k∈N​ in Rn\mathbb{R}^nRn;
  • two real sequences (αk)k∈N(\alpha_k)_{k \in \mathbb{N}}(αk​)k∈N​ and (ηk)k∈N(\eta_k)_{k \in \mathbb{N}}(ηk​)k∈N​.

Here ∇f(y)\nabla f(y)∇f(y) denotes the gradient of fff at yyy: the vector in Rn\mathbb{R}^nRn that represents the Fréchet derivative of fff at yyy through the inner product. By the convention used here, ∇f(y)\nabla f(y)∇f(y) is the zero vector at any point where fff is not differentiable. Under hypothesis 1 below, fff is differentiable everywhere, so ∇f\nabla f∇f is always the genuine gradient.

Hypotheses. Assume all of the following:

  1. fff is continuously differentiable (C1C^1C1) on all of Rn\mathbb{R}^nRn.
  2. fff is bounded below on all of Rn\mathbb{R}^nRn: some real mmm satisfies f(y)≥mf(y) \ge mf(y)≥m for every y∈Rny \in \mathbb{R}^ny∈Rn.
  3. The condition IsNLSARun holds for (p,r,f,x,d,α,η)(p, r, f, x, d, \alpha, \eta)(p,r,f,x,d,α,η). This is the only hypothesis that mentions α\alphaα and η\etaη at all, and together with hypothesis 6 it is the only place rrr appears.
  4. For every k∈Nk \in \mathbb{N}k∈N:
⟨∇f(xk), dk⟩≤0.\langle \nabla f(x_k),\, d_k \rangle \le 0.⟨∇f(xk​),dk​⟩≤0.

This is a non-strict inequality, so dk=0d_k = 0dk​=0 or ∇f(xk)=0\nabla f(x_k) = 0∇f(xk​)=0 is allowed. 5. The condition DirectionAssumption holds for (f,x,d)(f, x, d)(f,x,d). 6. There is a nonnegative real L≥0L \ge 0L≥0 for which the condition LipschitzHyp holds for (p,r,f,x,d,L)(p, r, f, x, d, L)(p,r,f,x,d,L). The value L=0L = 0L=0 is not excluded by the statement itself.

Conclusions. Under these hypotheses, all three of the following hold:

  • (i) For every real ε>0\varepsilon > 0ε>0, there are infinitely many indices kkk with
∥∇f(xk)∥<ε.\|\nabla f(x_k)\| < \varepsilon.∥∇f(xk​)∥<ε.

Since norms are nonnegative, this is the same as lim inf⁡k→∞∥∇f(xk)∥=0\liminf_{k\to\infty} \|\nabla f(x_k)\| = 0liminfk→∞​∥∇f(xk​)∥=0.

  • (ii) If ηmax⁡<1\eta_{\max} < 1ηmax​<1, then ∇f(xk)→0\nabla f(x_k) \to 0∇f(xk​)→0 in Rn\mathbb{R}^nRn as k→∞k \to \inftyk→∞.
  • (iii) If ηmax⁡<1\eta_{\max} < 1ηmax​<1, then every cluster point of the sequence is stationary. Precisely: take any point x⋆∈Rnx^\star \in \mathbb{R}^nx⋆∈Rn and any strictly increasing map φ:N→N\varphi : \mathbb{N} \to \mathbb{N}φ:N→N with xφ(k)→x⋆x_{\varphi(k)} \to x^\starxφ(k)​→x⋆. Then ∇f(x⋆)=0\nabla f(x^\star) = 0∇f(x⋆)=0.

The condition in (ii) and (iii) is the strict inequality ηmax⁡<1\eta_{\max} < 1ηmax​<1. Conclusion (i) is asserted with no condition on ηmax⁡\eta_{\max}ηmax​.

Degenerate cases.

  • n=0n = 0n=0: R0\mathbb{R}^0R0 has exactly one point, the zero vector. Then every gradient is the zero vector, and (i), (ii) and (iii) all hold outright, whatever the hypotheses say.
  • ηmax⁡≥1\eta_{\max} \ge 1ηmax​≥1: Conclusions (ii) and (iii) hold vacuously, and only (i) says anything.
  • No subsequence converges to x⋆x^\starx⋆: Conclusion (iii) says nothing about that x⋆x^\starx⋆.
  • Hypotheses that cannot be satisfied: If IsNLSARun, DirectionAssumption or LipschitzHyp can never hold together with the other hypotheses (for some or all choices of ppp and rrr), the theorem is vacuous in those cases. Whether that happens cannot be read off from this code, because those definitions are not shown.
  • Constant fff: Such an fff is permitted, since it is C1C^1C1 and bounded below. Then ∇f≡0\nabla f \equiv 0∇f≡0 and all three conclusions hold trivially.
  • Division and default values: The statement itself uses no division, no natural-number subtraction, no integrals and no suprema. Any such operations inside the imported definitions are not visible here.
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

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