Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1.1 (bounds) — fk≤Ck≤Akf_k \le C_k \le A_kfk​≤Ck​≤Ak​

Proved
NonmonotoneLS.Global.cost_bounds

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

line-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 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 either the Wolfe or the Armijo rule). Write fk=f(xk)f_k = f(x_k)fk​=f(xk​), let CkC_kCk​ be the reference values of (1.6) and Ak=1k+1∑i=0kfiA_k = \frac{1}{k+1}\sum_{i=0}^k f_iAk​=k+11​∑i=0k​fi​. If ∇f(xk)dk≤0\nabla f(x_k) d_k \le 0∇f(xk​)dk​≤0 for each kkk, then

fk≤Ck≤Akfor each k.f_k \le C_k \le A_k \qquad \text{for each } k.fk​≤Ck​≤Ak​for each k.

The lower bound says that the nonmonotone reference value never falls below the current function value, so the line search at xkx_kxk​ is well defined; the upper bound places CkC_kCk​ below the running average of all previous function values.

Formalization Note. Only ηk∈[0,1]\eta_k \in [0,1]ηk​∈[0,1] and condition (1.4), which both rules impose, are used.

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

/-- Lemma 1.1, first sentence (p. 1045): if `∇f(x_k) d_k ≤ 0` for each `k`, then along the run
`f(x_k) ≤ C_k ≤ A_k` for each `k`. -/
theorem cost_bounds {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) :
    ∀ k, f (x k) ≤ Shared.costC f x η k ∧ Shared.costC f x η k ≤ Shared.avgA f x k := 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. 1045, Lemma 1.1 (first sentence)
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, and a rule r∈{wolfe,armijo}r \in \{\text{wolfe}, \text{armijo}\}r∈{wolfe,armijo}.
  • The record ppp and the functions costC and avgA are defined elsewhere and are not shown here.
  • Let f:Rn→Rf:\mathbb{R}^n\to\mathbb{R}f:Rn→R be continuously differentiable, with gradient ∇f\nabla f∇f.
  • 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 indexed by k∈Nk\in\mathbb{N}k∈N.

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).
  2. Non-ascent. ⟨∇f(xk),dk⟩≤0\langle\nabla f(x_k), d_k\rangle \le 0⟨∇f(xk​),dk​⟩≤0 for every kkk.

Then for every k∈Nk\in\mathbb{N}k∈N:

f(xk)≤CkandCk≤Ak,f(x_k) \le C_k \quad\text{and}\quad C_k \le A_k,f(xk​)≤Ck​andCk​≤Ak​,

where Ck=costC(f,x,η,k)C_k = \mathrm{costC}(f, x, \eta, k)Ck​=costC(f,x,η,k) and Ak=avgA(f,x,k)A_k = \mathrm{avgA}(f, x, k)Ak​=avgA(f,x,k). Both quantities are given only by definitions that are not shown here. AkA_kAk​ depends only on fff and the iterates, not on η\etaη.

Degenerate cases:

  • Assumptions not made. The statement does not assume that fff is bounded below. It restricts the weights only through the interval [p.ηmin⁡,p.ηmax⁡][p.\eta_{\min}, p.\eta_{\max}][p.ηmin​,p.ηmax​].
  • 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.
  • n=0n=0n=0. Every iterate is the single point, fff is constant along the run, and non-ascent holds automatically. The conclusion then depends entirely on how costC and avgA treat a constant sequence of values.
  • The index k=0k=0k=0 is included.
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