Section 3, p. 778 — the SQN (limited-storage BFGS) method terminates on a strictly convex quadratic in at most steps
ProvedLimitedBFGS.SQN.sqn_quadratic_terminationLet be a strictly convex quadratic on ( symmetric positive definite), let be a symmetric positive definite matrix, let be the number of stored correction pairs, and let . Run the SQN method (17) from with exact line searches:
where , minimizes , , , and is the special BFGS update (4)–(5), which rebuilds from and the most recent pairs. Then there is with
that is, is the minimizer of : the SQN method has quadratic termination.
This is the paper's main theoretical claim about the SQN (L-BFGS) method, stated on p. 778 ("Hence, it has quadratic termination") and repeated in the Conclusion (p. 781): the limited-storage update preserves the quadratic termination property of BFGS and conjugate gradients, for every number of stored corrections.
Formalization Note "Quadratic termination" is read as the standard property of the PCG with which the paper identifies SQN: the minimizer is reached in at most steps. Indices are 0-based. The SQN matrix is rebuilt from and the stored pairs at every step, as in (4)–(5), not obtained by one BFGS update of the previous matrix. There is no stopping rule; after the minimizer is reached the iteration stays there. need not be diagonal (the paper's "diagonal" on p. 774 is a storage convenience not used in Section 3).
import Mathlib import Definitions.Def_LimitedBFGS_SQN_sqnIter open Matrix
namespace LimitedBFGS.SQN
/-- Section 3, p. 778 ("Hence, it has quadratic termination"): the SQN method (17) with `m ≥ 1`
stored corrections, a positive definite initial matrix `H₀` and exact line searches, applied to
the strictly convex quadratic `f(x) = ½ xᵀAx + bᵀx` on `ℝⁿ`, reaches the minimizer, i.e. an
iterate with `A x_k + b = 0`, after at most `n` steps. -/
theorem sqn_quadratic_termination {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (hA : A.PosDef)
(b : Fin n → ℝ) (H₀ : Matrix (Fin n) (Fin n) ℝ) (hH₀ : H₀.PosDef) (m : ℕ) (hm : 1 ≤ m)
(x₀ : Fin n → ℝ) :
∃ k ≤ n, grad A b (sqnIter A b H₀ m x₀ k).x = 0 := by sorry
end LimitedBFGS.SQN
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a natural number (possibly ), and let vectors be real -tuples indexed by . The statement quantifies over the following:
- a real matrix , assumed positive definite in Mathlib's sense: is Hermitian (for real matrices, symmetric, ) and for every nonzero ;
- an arbitrary vector ;
- a real matrix , also assumed positive definite in the same sense (symmetric, and for all );
- a natural number with ;
- an arbitrary starting vector .
The statement uses two objects defined in the imported module Definitions.Def_LimitedBFGS_SQN_sqnIter. Their definitions are not reproduced in the code given here, so this read-back can only describe how they are used.
- takes the data above and a step index and returns an object that has a component . Write that component as .
- is applied to and gives something that is compared with the zero element. Write this as .
What computes, and how gets from one step to the next (the update formula, how the parameter is used, and any step-size or line-search rule), is fixed entirely by those external definitions. In particular, the statement has no separate argument for a line search or step length.
The conclusion states:
where is the -component of . In words: for every such , , , and , at least one of the first iterates (indices through inclusive) has equal to zero. The claim is existence only. It does not say that is unique, that later iterates also have zero , or that is a minimizer of any function, beyond whatever means under the imported definition.
Degenerate cases.
- : vectors and matrices are empty, and has exactly one element. Both positive-definiteness hypotheses hold vacuously. If returns a vector in , it is automatically , so the statement holds trivially with .
- : the witness can only be or .
- and : both are unrestricted. This includes and a starting point that is already stationary, in which case may serve as the witness.
- : there is no upper bound, and may exceed .
- Division by zero: the conclusion does not guard against any division by zero, or other default values of total functions, that might happen inside , for example a zero denominator in an update or step-length formula. Whatever value the imported definition produces in such a case is the value used for , and the claim is asserted for it as well.
- Hypotheses: all hypotheses ( and positive definite, ) can be satisfied together for every , for instance with and , so the statement is not vacuous.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.