Theorem 6:1, eq. (6:2) —
ProvedConjGrad.ErrorDecrease.error_diff_6_2Let be a real symmetric positive definite matrix, let , and let solve . Let , and be the estimates, residuals and step lengths of the cg-method (5:1) started at , and let be the error function (4:5). Then for all indices ,
The identity gives the total decrease of the error function over several steps of the method. With and , it expresses itself as a sum of computable quantities, which is how it enters the proof of Theorem 6:3.
import Mathlib import Definitions.Def_ConjGrad_ErrorDecrease_cgIter import Definitions.Def_ConjGrad_ErrorDecrease_errorFun open Matrix
namespace ConjGrad.ErrorDecrease
theorem error_diff_6_2 {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (hA : A.PosDef)
(k x₀ h : Fin n → ℝ) (hh : A *ᵥ h = k) (i j : ℕ) (hij : i < j) :
errorFun A h (cgIter A k x₀ i).x - errorFun A h (cgIter A k x₀ j).x =
∑ l ∈ Finset.Ico i j,
cgAlpha A (cgIter A k x₀ l) * ((cgIter A k x₀ l).r ⬝ᵥ (cgIter A k x₀ l).r) := 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 .
- are natural numbers, with strict inequality.
The sequence. is generated from , and as follows:
- Start with .
- Set , then and .
- Set and .
- Division by zero yields .
Function used. The error function is .
Conclusion. The statement asserts
where the sum runs over and .
Degenerate cases.
- : excluded by the hypothesis. The statement says nothing about it.
- or : the corresponding summand is , because either or by the division convention.
- : both sides are .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.