Section 6, eq. (6:6) —
ProvedConjGrad.ErrorDecrease.error_vector_inner_6_6Let be a real symmetric positive definite matrix, let , and let solve . Let and be the estimates and direction vectors of the cg-method (5:1) started at , write for the error vector of , let be the error function (4:5), and let be the Rayleigh quotient (4:12). Then for every ,
This is the identity (6:6), displayed in the paper's proof of Theorem 6:3 (with the index shifted by one): the step and the new error vector make a nonnegative inner product, whose value is determined by the error function. It is the ingredient that turns the decrease of into a decrease of the Euclidean length of the error vector.
Formalization Note The statement is for all , including steps after termination; there and both sides are . The index is shifted (step goes from to ) to avoid natural-number subtraction.
import Mathlib import Definitions.Def_ConjGrad_ErrorDecrease_cgIter import Definitions.Def_ConjGrad_ErrorDecrease_errorFun import Definitions.Def_ConjGrad_ErrorDecrease_rayleigh open Matrix
namespace ConjGrad.ErrorDecrease
theorem error_vector_inner_6_6 {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (hA : A.PosDef)
(k x₀ h : Fin n → ℝ) (hh : A *ᵥ h = k) (i : ℕ) :
(h - (cgIter A k x₀ (i + 1)).x) ⬝ᵥ ((cgIter A k x₀ (i + 1)).x - (cgIter A k x₀ i).x) =
errorFun A h (cgIter A k x₀ (i + 1)).x / rayleigh A (cgIter A k x₀ i).p := by sorry
end ConjGrad.ErrorDecrease
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting and hypotheses.
- is a natural number.
- is a positive definite real matrix: symmetric, with for .
- are arbitrary.
- satisfies .
- is arbitrary.
The sequence. is generated from , and as follows:
- Start with .
- Set , then and .
- Set and .
- Division by zero yields .
Functions used.
- The error function is .
- The Rayleigh quotient is , with .
Conclusion. The statement asserts
The left side uses the plain Euclidean dot product, not the one weighted by .
Degenerate cases.
- : under positive definiteness this happens exactly when . The right-hand side is then by the division convention, and gives , so the left-hand side is also .
- : both sides are .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.