Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Eq. (34): the two-update direction without stored matrices

Proved
ShannoCG.SCONB.bfgsUpdate_mulVec_expansion

by mikedeng1 · Sep 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

bfgsconjugate-gradientp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1quasi-newton

Let H^k\hat H_kH^k​ be any real n×nn\times nn×n matrix and pk,yk,gk+1∈Rnp_k, y_k, g_{k+1} \in \mathbb R^npk​,yk​,gk+1​∈Rn, and let H^k+1\hat H_{k+1}H^k+1​ be the BFGS update of H^k\hat H_kH^k​ with (pk,yk)(p_k, y_k)(pk​,yk​). Then the direction dk+1=−H^k+1gk+1d_{k+1} = -\hat H_{k+1} g_{k+1}dk+1​=−H^k+1​gk+1​ satisfies

dk+1=−H^kgk+1+pk′gk+1pk′yk H^kyk−((1+yk′H^kykpk′yk)pk′gk+1pk′yk−yk′H^kgk+1pk′yk)pk.d_{k+1} = -\hat H_k g_{k+1} + \frac{p_k' g_{k+1}}{p_k' y_k}\, \hat H_k y_k - \left(\left(1 + \frac{y_k' \hat H_k y_k}{p_k' y_k}\right)\frac{p_k' g_{k+1}}{p_k' y_k} - \frac{y_k' \hat H_k g_{k+1}}{p_k' y_k}\right) p_k.dk+1​=−H^k​gk+1​+pk′​yk​pk′​gk+1​​H^k​yk​−((1+pk′​yk​yk′​H^k​yk​​)pk′​yk​pk′​gk+1​​−pk′​yk​yk′​H^k​gk+1​​)pk​.

The identity shows that the direction only requires the vectors H^kgk+1\hat H_k g_{k+1}H^k​gk+1​ and H^kyk\hat H_k y_kH^k​yk​ and a few inner products, so no matrix needs to be stored. It is the starting point of the proof that the double-update methods reduce to Beale's method on a quadratic.

Formalization Note Stated for an arbitrary matrix and arbitrary vectors, with no hypothesis on pk′ykp_k'y_kpk′​yk​: both sides use the same (total) quotients.

Preamble
import Mathlib
import Definitions.Def_ShannoCG_SCONB_bfgsUpdate

open Matrix
Formal statement
namespace ShannoCG.SCONB

/-- Shanno, *Conjugate Gradient Methods with Inexact Searches*, Math. Oper. Res. 3(3) (1978), §IV, p. 250 (PDF 7), eq. (34): for every matrix `Ĥ_k` and vectors `p_k, y_k, g_{k+1}`,
the direction `d_{k+1} = −Ĥ_{k+1} g_{k+1}` with `Ĥ_{k+1}` the update (32) expands as
`d_{k+1} = −Ĥ_k g_{k+1} + (p_k' g_{k+1} / p_k' y_k) Ĥ_k y_k
  − ((1 + y_k' Ĥ_k y_k / p_k' y_k)(p_k' g_{k+1} / p_k' y_k) − y_k' Ĥ_k g_{k+1} / p_k' y_k) p_k`.

**Formalization Note.** Stated generically (no quadratic, no symmetry of `H`), as the paper uses
it. No hypothesis on `p ⬝ᵥ y` is needed: both sides use the same (total) quotients. -/
theorem bfgsUpdate_mulVec_expansion {n : ℕ} (H : Matrix (Fin n) (Fin n) ℝ) (p y g : Fin n → ℝ) :
    -(bfgsUpdate H p y *ᵥ g) =
      -(H *ᵥ g) + ((p ⬝ᵥ g) / (p ⬝ᵥ y)) • (H *ᵥ y)
        - ((1 + (y ⬝ᵥ (H *ᵥ y)) / (p ⬝ᵥ y)) * ((p ⬝ᵥ g) / (p ⬝ᵥ y))
            - (y ⬝ᵥ (H *ᵥ g)) / (p ⬝ᵥ y)) • p := by sorry

end ShannoCG.SCONB
Source
Shanno, Conjugate Gradient Methods with Inexact Searches, Math. Oper. Res. 3(3) (1978) 244–256, DOI 10.1287/moor.3.3.244, p. 250 (PDF p. 7), §IV, eq. (34)
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 1, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

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, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me