Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

On a quadratic with exact searches, the self-scaled direction is γt\gamma_tγt​ times Beale's direction

Proved
ShannoCG.SCONB.sconb_direction_eq_gamma_smul_beale

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

conjugate-gradientp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1quadratic-programmingquasi-newton

Let AAA be a symmetric positive definite n×nn\times nn×n matrix and c∈Rnc \in \mathbb R^nc∈Rn, so that g(x)=Ax+cg(x) = Ax + cg(x)=Ax+c is the gradient of a strictly convex quadratic. Consider a conjugate gradient cycle restarted at iteration ttt and a later iteration k>tk > tk>t, with iterates xix_ixi​, directions did_idi​, step lengths αi\alpha_iαi​ and steps pip_ipi​, gradients gi=Axi+cg_i = Ax_i + cgi​=Axi​+c and gradient changes yi=gi+1−giy_i = g_{i+1} - g_iyi​=gi+1​−gi​. Assume, for t≤i≤kt \le i \le kt≤i≤k,

  1. xi+1=xi+pix_{i+1} = x_i + p_ixi+1​=xi​+pi​ and pi=αidip_i = \alpha_i d_ipi​=αi​di​;
  2. the line searches are exact: pi′gi+1=0p_i' g_{i+1} = 0pi′​gi+1​=0;
  3. the restart step is conjugate to the later steps: pt′Api=0p_t' A p_i = 0pt′​Api​=0 for t<i≤kt < i \le kt<i≤k;
  4. pt≠0p_t \ne 0pt​=0 and pk≠0p_k \ne 0pk​=0.

Let dk+1=−H^k+1gk+1d_{k+1} = -\hat H_{k+1} g_{k+1}dk+1​=−H^k+1​gk+1​ be Shanno's self-scaled two-update direction (H^k\hat H_kH^k​ from (37) built from (pt,yt)(p_t, y_t)(pt​,yt​), H^k+1\hat H_{k+1}H^k+1​ its BFGS update with (pk,yk)(p_k, y_k)(pk​,yk​)), and γt=pt′yt/yt′yt\gamma_t = p_t'y_t / y_t'y_tγt​=pt′​yt​/yt′​yt​. Then

dk+1=γt(−gk+1+yk′gk+1dk′yk dk+yt′gk+1dt′yt dt),d_{k+1} = \gamma_t\left(-g_{k+1} + \frac{y_k' g_{k+1}}{d_k' y_k}\, d_k + \frac{y_t' g_{k+1}}{d_t' y_t}\, d_t\right),dk+1​=γt​(−gk+1​+dk′​yk​yk′​gk+1​​dk​+dt′​yt​yt′​gk+1​​dt​),

that is, γt\gamma_tγt​ times Beale's restart direction (28).

So on a quadratic with exact line searches the self-scaled method generates exactly Beale's search directions; only their length is scaled by γt\gamma_tγt​. This connects the method to the classical conjugate gradient theory, while its descent property does not depend on exact searches.

Formalization Note The quadratic enters through its gradient Ax+cAx + cAx+c (the paper's (4) is c=−Ax^c = -A\hat xc=−Ax^). The conjugacy in 3 is a hypothesis, as in the paper's proof; it is not derived from a run of the algorithm. The nonzero-step hypotheses 4 are implicit in the paper; they make every denominator nonzero and force αt,αk≠0\alpha_t, \alpha_k \ne 0αt​,αk​=0. The range k≤t+n−1k \le t+n-1k≤t+n−1 of (28) is not needed and not assumed. Beale's direction is written with dk,dtd_k, d_tdk​,dt​ as in (28); the paper's (44) writes the same vector with pk,ptp_k, p_tpk​,pt​.

Preamble
import Mathlib
import Definitions.Def_ShannoCG_SCONB_gammaScale
import Definitions.Def_ShannoCG_SCONB_sconbDirection
import Definitions.Def_ShannoCG_SCONB_bealeDirection

open Matrix
Formal statement
namespace ShannoCG.SCONB

/-- Shanno, *Conjugate Gradient Methods with Inexact Searches*, Math. Oper. Res. 3(3) (1978), §IV, pp. 250–251 (PDF 7–8), the claim "for f(x) quadratic with exact searches each of
the above methods reduces exactly to Beale's method defined by (28)", for the self-scaled
algorithm (34), (38), (39), with its conclusion (44), p. 251: the search direction
`d_{k+1} = −Ĥ_{k+1} g_{k+1}` (Ĥ_k from (37), Ĥ_{k+1} from (32)) equals `γ_t` times Beale's direction
(28), `γ_t = p_t'y_t / y_t'y_t`.

**Formalization Note.** Vectors are `Fin n → ℝ`, `u'v` is `u ⬝ᵥ v`. The quadratic (4) enters
through its gradient `g i = A *ᵥ x i + c` with `A` symmetric positive definite (`A.PosDef`) and
arbitrary `c` ((4) is `c = −A x̂`). Iterates are indexed by `ℕ`; the restart index is `t` and the
claim is for the non-restart steps `k ≥ t + 1` (at `k = t` the paper uses (26) instead); the upper
limit `k ≤ t + n − 1` of (28) is not used and not assumed. Hypotheses: steps `x_{i+1} = x_i + p_i`
and `p_i = α_i d_i` (9) for `t ≤ i ≤ k`; exact searches `p_i'g_{i+1} = 0` (5) for `t ≤ i ≤ k`; the
conjugacy `p_t' A p_i = 0` for `t < i ≤ k`, which the paper takes as known for exact searches on a
quadratic and which is not derived here; and `p_t ≠ 0`, `p_k ≠ 0`, implicit in the paper
(they make every denominator nonzero and force `α_t, α_k ≠ 0`). Beale's direction is written in
the `d`-form of (28). -/
theorem sconb_direction_eq_gamma_smul_beale {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (hA : A.PosDef) (c : Fin n → ℝ)
    (x p d g y : ℕ → Fin n → ℝ) (α : ℕ → ℝ) (t k : ℕ) (htk : t < k)
    (hg : ∀ i, g i = A *ᵥ x i + c)
    (hy : ∀ i, y i = g (i + 1) - g i)
    (hstep : ∀ i, t ≤ i → i ≤ k → x (i + 1) = x i + p i)
    (hpd : ∀ i, t ≤ i → i ≤ k → p i = α i • d i)
    (hexact : ∀ i, t ≤ i → i ≤ k → p i ⬝ᵥ g (i + 1) = 0)
    (hconj : ∀ i, t < i → i ≤ k → p t ⬝ᵥ (A *ᵥ p i) = 0)
    (hpt : p t ≠ 0) (hpk : p k ≠ 0) :
    sconbDirection (p t) (y t) (p k) (y k) (g (k + 1)) =
      gammaScale (p t) (y t) • bealeDirection (g (k + 1)) (d k) (y k) (d t) (y t) := 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, pp. 250–251 (PDF pp. 7–8), §IV, the claim 'for f(x) quadratic with exact searches each of the above methods reduces exactly to Beale's method defined by (28)' and eq. (44); Beale's direction eq. (28), p. 249
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