Prove2Me
Navigate
MissionsFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Conjugate-gradient convergence

Proved
VectorSpaceOpt.conjugate_gradient_converges

by wenxinzhang · Aug 25, 2026 · Mathlib c5ea003 (Lean v4.30.0)

conjugate-gradienthilbert-spacenorm-convergencestop-stutter

Let HHH be a real Hilbert space and let Q:H→L[R]HQ : H →L[ℝ] HQ:H→L[R]H be self-adjoint with constants 0<m≤M0 < m ≤ M0<m≤M satisfying

m∥x∥2≤⟨x,Qx⟩≤M∥x∥2m\|x\|^2 ≤ ⟨x,Qx⟩ ≤ M\|x\|^2m∥x∥2≤⟨x,Qx⟩≤M∥x∥2

for every xxx. For any right-hand side bbb and initial point x0x₀x0​, there is a unique solution x∗x^\astx∗ of Q(x∗)=bQ(x^\ast) = bQ(x∗)=b, and the iterate component of the guarded conjugate-gradient sequence satisfies

xn→x∗.x_n → x^*.xn​→x∗.

The convergence is in the norm topology of HHH. The sequence performs Luenberger's recurrence while its direction is nonzero and stutters once a zero direction certifies exact solution. This capstone is §10.8, Theorem 1 with all inherited coercivity hypotheses repeated and its undefined post-termination boundary repaired.

Preamble
import Definitions.Def_VectorSpaceOpt_conjugate_gradient

open Filter
Formal statement
namespace VectorSpaceOpt

/-- Luenberger, Chapter 10, §10.8, Theorem 1, with total stop/stutter semantics. -/
theorem conjugate_gradient_converges
    {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H]
    (Q : H →L[ℝ] H) (b x₀ : H) (m M : ℝ)
    (hm : 0 < m) (hmM : m ≤ M)
    (hself : IsRealSelfAdjoint Q) (hbounds : IsCoerciveBetween Q m M) :
    ∃ xStar : H, Q xStar = b ∧
      (∀ y : H, Q y = b → y = xStar) ∧
      Tendsto (fun n => (conjugateGradientIterate Q b x₀ n).x) atTop (nhds xStar) := by
  sorry

end VectorSpaceOpt
Source
David G. Luenberger, Optimization by Vector Space Methods (Wiley, 1969), Chapter 10, §10.8, Theorem 1, printed pp. 294–296 (physical PDF pp. 312–314), with explicit stop/stutter semantics at zero direction. Scan: https://sites.science.oregonstate.edu/~show/old/142_Luenberger.pdf
Read-back

What the Lean code literally says, in plain math · gpt-5

Let HHH be a complete real inner-product space, let Q:H→HQ:H→HQ:H→H be continuous and real-linear, let b,x0∈Hb,x₀∈Hb,x0​∈H, and let m,M∈Rm,M∈ℝm,M∈R. Assume m>0m>0m>0, m≤Mm≤Mm≤M, QQQ is self-adjoint, and m‖x‖2≤⟨x,Qx⟩≤M‖x‖2m‖x‖²≤⟨x,Qx⟩≤M‖x‖²m‖x‖2≤⟨x,Qx⟩≤M‖x‖2 for every xxx. Then there exists x∗∈Hx^*∈Hx∗∈H such that Qx∗=bQx^*=bQx∗=b, every y∈Hy∈Hy∈H satisfying Qy=bQy=bQy=b equals x∗x^*x∗, and the xxx-component of the total conjugate-gradient iterate from x0x₀x0​ tends to x∗x^*x∗ along the natural-number at-top filter. The iterate uses real divisions as total operations and, whenever its direction is zero, returns the same entire state forever; thus an initially solved system is included. The conclusion gives existence, uniqueness, and convergence, but no explicit rate.

Human review
  • Endorsed by Shuze Chen · Aug 26, 2026

  • Endorsed by wenxinzhang · Aug 26, 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.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me