Theorem 2.1 (first clause): SPG2 is well defined — the backtracking terminates
ProvedSpectralProjGrad.SPG2.backtracking_terminatesLet be closed and convex, let have continuous partial derivatives on an open set , with gradient , and let be the orthogonal projection onto . Fix parameters , and .
Let be a point at which Step 1 of SPG2 does not stop, i.e. ; let and ; and let be any real number with . Then for every sequence of trial steps with and there is an index with
Applied at , and (which satisfies , the term ), this is the statement that the backtracking loop of Step 2 of SPG2 terminates after finitely many trials, whatever choices rule (2) makes: Algorithm SPG2 is well defined.
Formalization Note The paper's clause "Algorithm SPG2 is well defined" is formalized in single-iteration form, for an arbitrary reference value ; it implies the paper's clause at every iteration of every run.
import Mathlib import Definitions.Def_SpectralProjGrad_Shared_IsProjOnto import Definitions.Def_SpectralProjGrad_Shared_scaledProjGrad
namespace SpectralProjGrad.SPG2
/-- Theorem 2.1, first clause (SPG2 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]`,
`d = P(x - α g(x)) - x` and any reference value `R ≥ f(x)`, every backtracking sequence
`μ_0 = 1`, `μ_{i+1} ∈ [σ₁ μ_i, σ₂ μ_i]` reaches a trial step satisfying the nonmonotone
Armijo test `f(x + μ_i d) ≤ R + γ μ_i ⟨d, 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 = 1)
(hμ : ∀ i, σ₁ * μ i ≤ μ (i + 1) ∧ μ (i + 1) ≤ σ₂ * μ i) :
∃ i, f (x + μ i • SpectralProjGrad.Shared.scaledProjGrad P f α x) ≤
R + γ * μ i * inner ℝ (SpectralProjGrad.Shared.scaledProjGrad P f α x) (gradient f x) := by sorry
end SpectralProjGrad.SPG2
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix and work in with the standard inner product and Euclidean norm. The inputs are:
- sets ;
- a function ;
- a map ;
- reals ;
- a point , a real , a real ;
- a real sequence .
Hypotheses.
- is closed and convex.
- is open and .
- is on .
- satisfies the imported predicate . Its body is not shown.
- .
- .
- .
- .
- . This uses the unscaled gradient, not .
- .
- .
- .
- for every (an infinite sequence). Together with the conditions on , this gives .
Conclusion. Let . This is an imported definition whose body is not shown; it is presumably . Then there exists some index with
The statement asserts only that such an index exists. It does not claim that is the first such index, give a bound on , or say anything about the size of beyond this inequality. is allowed.
Degenerate cases.
- If , the statement is vacuous.
- If , the hypothesis cannot hold, since every vector is . So the statement is vacuous.
- may be any real at least , including arbitrarily large values.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.