Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (2.8)–(2.9) — fk+1≤Ck−β∥gk∥2f_{k+1} \le C_k - \beta\|g_k\|^2fk+1​≤Ck​−β∥gk​∥2

Proved
NonmonotoneLS.Global.sufficient_decrease

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

line-searchnonmonotonep2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1sufficient-decrease

Let f:Rn→Rf : \mathbb{R}^n \to \mathbb{R}f:Rn→R be continuously differentiable 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 gkTdk≤0g_k^{\mathsf T} d_k \le 0gkT​dk​≤0 for every kkk, where gk=∇f(xk)g_k = \nabla f(x_k)gk​=∇f(xk​). Let c1,c2>0c_1, c_2 > 0c1​,c2​>0 and K≥0K \ge 0K≥0 be such that

gkTdk≤−c1∥gk∥2and∥dk∥≤c2∥gk∥for all k≥K,g_k^{\mathsf T} d_k \le -c_1\|g_k\|^2 \quad\text{and}\quad \|d_k\| \le c_2 \|g_k\| \qquad \text{for all } k \ge K,gkT​dk​≤−c1​∥gk​∥2and∥dk​∥≤c2​∥gk​∥for all k≥K,

and let L>0L > 0L>0 be such that ∇f\nabla f∇f is LLL-Lipschitz on the level set L\mathcal LL (Wolfe rule) or on Lˉ\bar{\mathcal L}Lˉ (Armijo rule). Then for all k≥Kk \ge Kk≥K

fk+1≤Ck−β∥gk∥2,β=min⁡{δμc1ρ, 2δ(1−δ)c12Lρc22, δ(1−σ)c12Lc22}.f_{k+1} \le C_k - \beta \|g_k\|^2, \qquad \beta = \min\left\{ \frac{\delta\mu c_1}{\rho},\ \frac{2\delta(1-\delta)c_1^2}{L\rho c_2^2},\ \frac{\delta(1-\sigma)c_1^2}{Lc_2^2} \right\}.fk+1​≤Ck​−β∥gk​∥2,β=min{ρδμc1​​, Lρc22​2δ(1−δ)c12​​, Lc22​δ(1−σ)c12​​}.

This uniform decrease of each new function value below the reference value is the core estimate of the global convergence proof: combined with the cost update (1.6) it gives Ck+1≤Ck−β∥gk∥2/Qk+1C_{k+1} \le C_k - \beta\|g_k\|^2/Q_{k+1}Ck+1​≤Ck​−β∥gk​∥2/Qk+1​.

Formalization Note. The paper writes (2.8) without a range of kkk; it holds where the direction assumption holds, which is how the proof uses it, so the statement carries an explicit threshold KKK. The hypothesis gkTdk≤0g_k^{\mathsf T} d_k \le 0gkT​dk​≤0 for every kkk keeps all iterates in L\mathcal LL (see Theorem 2.2). The constant β\betaβ is exactly (2.9).

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

/-- Eqs. (2.8)–(2.9) (p. 1047): along a run with `∇f(x_k) d_k ≤ 0` for every `k`, if (2.4)–(2.5)
hold with constants `c₁, c₂ > 0` for all `k ≥ K` and `∇f` is `L`-Lipschitz (`L > 0`) on `𝓛`
(Wolfe) or on `𝓛̄` (Armijo), then `f(x_{k+1}) ≤ C_k - β ‖∇f(x_k)‖²` for all `k ≥ K`, with
`β = min{δμc₁/ρ, 2δ(1-δ)c₁²/(Lρc₂²), δ(1-σ)c₁²/(Lc₂²)}`. -/
theorem sufficient_decrease {n : ℕ} (p : Shared.Params) (r : Rule) (f : EuclideanSpace ℝ (Fin n) → ℝ)
    (hf : ContDiff ℝ 1 f) (x d : ℕ → EuclideanSpace ℝ (Fin n)) (α η : ℕ → ℝ)
    (hrun : IsNLSARun p r f x d α η)
    (hdesc : ∀ k, ⟪gradient f (x k), d k⟫_ℝ ≤ 0)
    (c₁ c₂ : ℝ) (hc₁ : 0 < c₁) (hc₂ : 0 < c₂) (K : ℕ)
    (hdir : ∀ k, K ≤ k →
      ⟪gradient f (x k), d k⟫_ℝ ≤ -c₁ * ‖gradient f (x k)‖ ^ 2 ∧
        ‖d k‖ ≤ c₂ * ‖gradient f (x k)‖)
    (L : ℝ≥0) (hL : 0 < L) (hLip : LipschitzHyp p r f x d L) :
    ∀ k, K ≤ k →
      f (x (k + 1)) ≤ Shared.costC f x η k -
        min (min (p.δ * p.μ * c₁ / p.ρ) (2 * p.δ * (1 - p.δ) * c₁ ^ 2 / ((L : ℝ) * p.ρ * c₂ ^ 2)))
            (p.δ * (1 - p.σ) * c₁ ^ 2 / ((L : ℝ) * c₂ ^ 2)) *
          ‖gradient f (x k)‖ ^ 2 := 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, Eqs. (2.8)–(2.9) (proof of Theorem 2.2)
Read-back

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

Setup:

  • Let n∈Nn\in\mathbb{N}n∈N, parameters ppp (definition not shown), and a rule r∈{wolfe,armijo}r\in\{\text{wolfe},\text{armijo}\}r∈{wolfe,armijo}.
  • The fields p.δp.\deltap.δ, p.μp.\mup.μ, p.ρp.\rhop.ρ, p.σp.\sigmap.σ are real numbers with no visible constraints.
  • Let f:Rn→Rf:\mathbb{R}^n\to\mathbb{R}f:Rn→R be continuously differentiable.
  • Let xk,dk∈Rnx_k, d_k\in\mathbb{R}^nxk​,dk​∈Rn and αk,ηk∈R\alpha_k,\eta_k\in\mathbb{R}αk​,ηk​∈R be sequences.

Assume:

  1. They form a run. For every kkk: xk+1=xk+αkdkx_{k+1}=x_k+\alpha_k d_kxk+1​=xk​+αk​dk​, and ηk∈[p.ηmin⁡,p.ηmax⁡]\eta_k\in[p.\eta_{\min},p.\eta_{\max}]ηk​∈[p.ηmin​,p.ηmax​]. Also, αk\alpha_kαk​ satisfies the rule's step predicate at (xk,dk)(x_k,d_k)(xk​,dk​). That predicate is the opaque IsWolfeStep or IsArmijoStep, used with reference value Ck=costC(f,x,η,k)C_k=\mathrm{costC}(f,x,\eta,k)Ck​=costC(f,x,η,k), which is also defined elsewhere.
  2. Non-ascent. ⟨∇f(xk),dk⟩≤0\langle\nabla f(x_k),d_k\rangle\le 0⟨∇f(xk​),dk​⟩≤0 for all kkk.
  3. Direction bounds. There are reals c1>0c_1>0c1​>0 and c2>0c_2>0c2​>0 and an index K∈NK\in\mathbb{N}K∈N such that, for all k≥Kk\ge Kk≥K:
⟨∇f(xk),dk⟩≤−c1∥∇f(xk)∥2and∥dk∥≤c2∥∇f(xk)∥.\langle\nabla f(x_k),d_k\rangle \le -c_1\|\nabla f(x_k)\|^2 \quad\text{and}\quad \|d_k\|\le c_2\|\nabla f(x_k)\|.⟨∇f(xk​),dk​⟩≤−c1​∥∇f(xk​)∥2and∥dk​∥≤c2​∥∇f(xk​)∥.
  1. Lipschitz gradient. L≥0L\ge 0L≥0 with L>0L>0L>0, and ∇f\nabla f∇f is LLL-Lipschitz on a set that depends on the rule:
    • Wolfe: the level set L={y:f(y)≤f(x0)}\mathcal{L}=\{y: f(y)\le f(x_0)\}L={y:f(y)≤f(x0​)}.
    • Armijo: the set Lˉ\bar{\mathcal{L}}Lˉ of points yyy with
dist⁡(y,L)≤max⁡(p.μ,0)⋅sup⁡k∥dk∥,\operatorname{dist}(y,\mathcal{L})\le \max(p.\mu,0)\cdot\sup_k\|d_k\|,dist(y,L)≤max(p.μ,0)⋅ksup​∥dk​∥,

computed in [0,∞][0,\infty][0,∞] with 0⋅∞=00\cdot\infty=00⋅∞=0. So Lˉ\bar{\mathcal{L}}Lˉ is all of Rn\mathbb{R}^nRn if the dkd_kdk​ are unbounded and p.μ>0p.\mu>0p.μ>0.

Then for every k≥Kk\ge Kk≥K:

f(xk+1)≤Ck−β ∥∇f(xk)∥2,f(x_{k+1}) \le C_k - \beta\,\|\nabla f(x_k)\|^2,f(xk+1​)≤Ck​−β∥∇f(xk​)∥2,

where

β=min⁡ ⁣{p.δ p.μ c1p.ρ, 2 p.δ (1−p.δ) c12L p.ρ c22, p.δ (1−p.σ) c12L c22}.\beta=\min\!\left\{\frac{p.\delta\, p.\mu\, c_1}{p.\rho},\ \frac{2\,p.\delta\,(1-p.\delta)\,c_1^2}{L\,p.\rho\,c_2^2},\ \frac{p.\delta\,(1-p.\sigma)\,c_1^2}{L\,c_2^2}\right\}.β=min{p.ρp.δp.μc1​​, Lp.ρc22​2p.δ(1−p.δ)c12​​, Lc22​p.δ(1−p.σ)c12​​}.

The same three-term minimum is used whichever rule is active.

Degenerate cases:

  • fff need not be bounded below.
  • p.ρ=0p.\rho=0p.ρ=0. The first two terms evaluate to 000 because division by zero gives 000. Then β≤0\beta\le 0β≤0, and β\betaβ is negative whenever the third term is.
  • Zero gradient. If ∇f(xk)=0\nabla f(x_k)=0∇f(xk​)=0 with k≥Kk\ge Kk≥K, the assumptions force dk=0d_k=0dk​=0. The conclusion then reads f(xk+1)≤Ckf(x_{k+1})\le C_kf(xk+1​)≤Ck​.
  • n=0n=0n=0. Every term vanishes, and the claim reduces to f(xk+1)≤Ckf(x_{k+1})\le C_kf(xk+1​)≤Ck​ for k≥Kk\ge Kk≥K.
  • Empty weight interval. If p.ηmin⁡>p.ηmax⁡p.\eta_{\min}>p.\eta_{\max}p.ηmin​>p.ηmax​, no run exists and the statement is vacuous.
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