Theorem 2.2 (first clause): SPG1 is well defined
ProvedSpectralProjGrad.SPG1.backtracking_terminatesLet be closed and convex, let have continuous partial derivatives on an open set , with gradient , and let be the orthogonal projection onto . Let , and .
Let be a point at which Step 1 of SPG1 does not stop, i.e. ; let ; and let be any real number with . Let be any sequence of trial steps with and for all . Then some trial point satisfies
Hence the backtracking loop of Step 2 of SPG1 always terminates after finitely many trials, whatever admissible choices are made in (2), so each iteration of the algorithm is well defined.
Formalization Note The statement is for a single iteration. The reference value stands for the paper's , which is at least because is in the range; stating it for every covers every iteration of every run. The remaining parts of the iteration (Step 3, and ) are explicit formulas and need no statement.
import Mathlib import Definitions.Def_SpectralProjGrad_Shared_IsProjOnto
namespace SpectralProjGrad.SPG1
/-- Theorem 2.2, first clause (SPG1 is well defined), in single-iteration form: at a point
`x ∈ Ω` where Step 1 does not stop (`‖P(x - g(x)) - x‖ ≠ 0`), with `α ∈ [α_min, α_max]` and any
reference value `R ≥ f(x)`, every backtracking sequence `μ_0 = α`, `μ_{i+1} ∈ [σ₁ μ_i, σ₂ μ_i]`
reaches a trial point `x₊ = P(x - μ_i g(x))` satisfying the nonmonotone Armijo test (1)
along the projection arc: `f(x₊) ≤ R + γ ⟨x₊ - x, g(x)⟩`. -/
theorem backtracking_terminates {n : ℕ}
{Ω U : Set (EuclideanSpace ℝ (Fin n))} {f : EuclideanSpace ℝ (Fin n) → ℝ}
{P : EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n)} {αmin αmax γ σ₁ σ₂ : ℝ}
(hΩ_closed : IsClosed Ω) (hΩ_convex : Convex ℝ Ω)
(hU_open : IsOpen U) (hΩU : Ω ⊆ U) (hf : ContDiffOn ℝ 1 f U)
(hP : SpectralProjGrad.Shared.IsProjOnto Ω P)
(hαmin : 0 < αmin) (hαmin_lt : αmin < αmax)
(hγ : γ ∈ Set.Ioo 0 1) (hσ₁ : 0 < σ₁) (hσ₁₂ : σ₁ < σ₂) (hσ₂ : σ₂ < 1)
(x : EuclideanSpace ℝ (Fin n)) (hx : x ∈ Ω)
(hstep1 : ‖P (x - gradient f x) - x‖ ≠ 0)
(α : ℝ) (hα : α ∈ Set.Icc αmin αmax)
(R : ℝ) (hR : f x ≤ R)
(μ : ℕ → ℝ) (hμ0 : μ 0 = α)
(hμ : ∀ i, σ₁ * μ i ≤ μ (i + 1) ∧ μ (i + 1) ≤ σ₂ * μ i) :
∃ i, f (P (x - μ i • gradient f x)) ≤
R + γ * inner ℝ (P (x - μ i • gradient f x) - x) (gradient f x) := by sorry
end SpectralProjGrad.SPG1
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix and let:
- (Euclidean inner product and norm);
- ;
- ;
- .
Hypotheses.
- is closed and convex.
- is open with .
- is on .
- holds. This is an imported predicate whose code is not shown; its name suggests is the projection onto .
- .
- .
- .
- with .
- .
- is any real number with .
- is an infinite real sequence with and, for every , . It follows that all and .
Conclusion. There exists an index such that, with :
The claim is only that some such exists. It says nothing about the first such index and gives no bound on . is an arbitrary upper bound on and is not tied to any history of iterates. is the genuine gradient, since and is on the open set .
Degenerate cases.
- If the norm hypothesis cannot hold, so the statement is vacuous.
- It is also vacuous if .
- The sequence must satisfy the bracket at every index, not just up to a stopping index.
- Taking larger only weakens the conclusion.
- No division or subtraction on appears, so no default values enter.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.