NLAlib.Krylov.CG.HSCG.Carried.Rounded.stableValues_of_solve
Library · theorem
The stable output claim from the claim of the rounded solver: a successful rounded prefix of length at most the cap, stopping early only at a zero residual, held by the four output blocks, gives the stable output claim on those blocks, under the spectral and precision bounds. Both zero-start routines (matrix-free here, on a stored matrix in StoredRoutine.lean) state their claim in this form.
NLAlib.Krylov.CG.HSCG.Carried.Rounded.stableValues_of_solve {K : Type} [Inhabited K] {dec : K → ℝ}
{n cap : ℕ} {A : Matrix (Fin n) (Fin n) ℝ} {e a a' : ℝ} (ha : 0 < a)
(hspec : spectrum ℝ A ⊆ Set.Icc a a') (hwindow : ↑cap ^ 2 * √↑cap * e * (a' / a) ^ 2 ≤ 1 / 10 ^ 5)
{bs xs rs ps : List K} {rr : K}
(hpost :
∃ m ≤ cap,
Krylov.CG.HSCG.Carried.Rounded.IsPrefix A (Ops.decv dec n bs) e m
(Krylov.CG.HSCG.decodedState dec n xs rs ps) (dec rr) ∧
(m < cap → (Krylov.CG.HSCG.decodedState dec n xs rs ps).r = 0)) :
Krylov.CG.HSCG.Carried.Rounded.StableValues dec A (Ops.decv dec n bs) e a a' cap
[xs, rs, ps, [rr]]Import NLAlib.Krylov.CG.HSCG.Carried.Rounded.ZeroStart.