Theorem 4:5 — from mutually conjugate nonzero vectors
ProvedConjGrad.ErrorDecrease.Supplement.theorem_4_5conjugate-gradientslinear-algebranumerical-analysisp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1
Let be a real symmetric positive definite matrix and let be mutually conjugate ( for ) nonzero vectors, with the -th component of . Then the entry of in row and column is
Any cd-method therefore yields the inverse matrix as a by-product of a full set of conjugate directions.
Formalization Note The vectors are indexed by Fin n and the columns of the formula by j l : Fin n; A⁻¹ is Mathlib's matrix inverse.
Differences from the source: none.
Preamble
import Mathlib open Matrix
Formal statement
namespace ConjGrad.ErrorDecrease.Supplement
/-- Theorem 4:5 (Hestenes–Stiefel 1952, p. 414): from `n` mutually conjugate nonzero vectors,
`(A⁻¹)ⱼₗ = ∑ᵢ pᵢⱼ pᵢₗ / (pᵢ, Apᵢ)`. -/
theorem theorem_4_5 {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (hA : A.PosDef)
(p : Fin n → Fin n → ℝ) (hp : ∀ i, p i ≠ 0)
(hconj : ∀ i j, i ≠ j → p i ⬝ᵥ (A *ᵥ p j) = 0) (j l : Fin n) :
A⁻¹ j l = ∑ i, p i j * p i l / (p i ⬝ᵥ (A *ᵥ p i)) := by sorry
end ConjGrad.ErrorDecrease.Supplement
Source
Hestenes & Stiefel, Methods of Conjugate Gradients for Solving Linear Systems, J. Res. Natl. Bur. Stand. 49(6) (1952), DOI 10.6028/jres.049.044, p. 414, Theorem 4:5 (PDF p. 6)