Section 3, p. 778 — on a quadratic with exact line searches, SQN is identical to the PCG with fixed preconditioner
ProvedLimitedBFGS.SQN.sqn_eq_pcgLet on with symmetric positive definite, let be symmetric positive definite, let be the number of stored corrections and let . Run from , with exact line searches:
- the SQN method (17): , , where is the special BFGS matrix (4)–(5) built from and the most recent pairs ;
- the preconditioned conjugate gradient method with fixed preconditioner : , with .
Then for every the two methods produce the same iterate and the same search direction:
The limited-storage BFGS matrix, although it forgets all but the last corrections, acts on the current gradient exactly as the conjugate gradient recurrence does.
Formalization Note The page states only that the algorithms are "identical"; the equality of iterates and of directions at every step is how that is read. Both runs are total: after the minimizer is reached both stay there with zero directions, so the identity is stated for all . is essential: with the SQN matrix is always and SQN is preconditioned steepest descent.
import Mathlib import Definitions.Def_LimitedBFGS_SQN_sqnIter import Definitions.Def_LimitedBFGS_SQN_pcgIter open Matrix
namespace LimitedBFGS.SQN
/-- Section 3, p. 778: on a strictly convex quadratic with exact line searches and `m ≥ 1`, the
SQN (17) is identical to the PCG with fixed preconditioner `H₀`: the iterates and the search
directions coincide at every step. -/
theorem sqn_eq_pcg {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 → ℝ) (i : ℕ) :
(sqnIter A b H₀ m x₀ i).x = (pcgIter A b H₀ x₀ i).x ∧
sqnDir A b H₀ (sqnIter A b H₀ m x₀ i) = (pcgIter A b H₀ x₀ i).d := by sorry
end LimitedBFGS.SQN
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The inputs are:
- ;
- positive definite real matrices and (symmetric, with a positive quadratic form on nonzero vectors);
- ;
- with ;
- an index .
Notation. , and (taken as when the denominator is ).
Iteration 1 (SQN). It has states , where is a list of vector pairs:
- It starts at .
- Its direction is . Here is updated once per pair of , first to last, by
- Then .
- The pair is appended to , and only the last pairs are kept.
Iteration 2 (PCG). It has states :
with .
Claim. For every ,
with no upper bound on .
Degenerate cases:
- : both iterates are and both directions are .
- After the gradient vanishes: once the gradient is , both iterations stop moving and the directions become from the next step on. At that step SQN stores the pair , which leaves unchanged.
- : the claim is trivial.
- : excluded by hypothesis.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.