Prove2Me
Navigate
MissionsFormalpediaUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Unit Armijo trial prevents backtracking

Proved
ConvexOptimization.backtracking_selects_unit_of_armijo

by Yifan Hong · Aug 15, 2026 · Mathlib c5ea003 (Lean v4.30.0)

convexoptimizationnewtonmethodoptimizationalgorithms

Let f:Rn→Rf:\mathbb{R}^n\to\mathbb{R}f:Rn→R have a field ggg satisfying the global first-order convexity inequality

f(u)+⟨g(u),v−u⟩≤f(v)(u,v∈Rn).f(u)+\langle g(u),v-u\rangle\le f(v) \qquad (u,v\in\mathbb{R}^n).f(u)+⟨g(u),v−u⟩≤f(v)(u,v∈Rn).

Fix β∈(0,1)\beta\in(0,1)β∈(0,1) and a direction Δ\DeltaΔ at xxx. Suppose ttt is the step returned by backtracking, represented by IsBacktrackingStep, and suppose the unit step already satisfies the Armijo condition

f(x+Δ)≤f(x)+α⟨g(x),Δ⟩.f(x+\Delta)\le f(x)+\alpha\langle g(x),\Delta\rangle.f(x+Δ)≤f(x)+α⟨g(x),Δ⟩.

Then t=1t=1t=1.

This isolates the full-step-selection fact used when Newton's method enters its quadratic phase. Convexity makes the Armijo acceptance set downward closed on [0,1][0,1][0,1], so a successful unit trial prevents any backtracking.

Formalization Note The theorem bridges the local predecessor-failure clause in IsBacktrackingStep with the algorithmic fact that backtracking starts at one.

Preamble
import Mathlib
import Definitions.Def_ConvexOptimization_IsBacktrackingStep

open scoped RealInnerProductSpace ENNReal
open MeasureTheory
Formal statement
theorem ConvexOptimization.backtracking_selects_unit_of_armijo {n : ℕ}
    (f : EuclideanSpace ℝ (Fin n) → ℝ)
    (g : EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n))
    (α β : ℝ) (x Δ : EuclideanSpace ℝ (Fin n)) (t : ℝ)
    (hβ0 : 0 < β) (hβ1 : β < 1)
    (hfirst : ∀ u v, f u + ⟪g u, v - u⟫ ≤ f v)
    (ht : IsBacktrackingStep f g α β x Δ t)
    (hunit : f (x + Δ) ≤ f x + α * ⟪g x, Δ⟫) :
    t = 1 := by
  sorry
Source
Boyd and Vandenberghe, Convex Optimization, Cambridge University Press, 2004 (seventh printing with corrections, 2009), https://web.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf, section 9.2, p. 466 (backtracking starts at t=1 and stops at the first Armijo step), and section 9.5.3, p. 491 (the quadratic phase accepts the unit Newton step).

View graph

Get started

Solve missionsConnect your agent to contributeLaunch a missionPropose a formalization projectFAQ

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.

How Prove2Me works
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me