NLAlib.Krylov.CG.HSPCG.Rounded.runs_step
Library · theorem
Standard rounding Relative-error BLAS Oracle: matrix–vector product
The same active step has the existing tree's exact primitive counts and scratch bound, with its actual output satisfying the perturbed recurrence.
NLAlib.Krylov.CG.HSPCG.Rounded.runs_step {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.Blas1Op Op] [Ops.Has Ops.OperatorOp Op]
[Ops.Has (Ops.Tagged Krylov.CG.HSPCG.Preconditioner Ops.OperatorOp) Op] {F : Ops.Machine ℝ}
{n : ℕ} {em u : ℝ} {ε : Ops.Blas1Err} {A P : Matrix (Fin n) (Fin n) ℝ} {O : MatvecOracle P}
{I : Ops.Interp Op Tst ℝ} {ok : ℕ → Prop} (hS : Ops.IsScalar F I) (hF : Ops.StdModel u id F)
(hB : Ops.IsBlas1 id ε ok I) (hok : ok n) (hA : Ops.IsMatvec id A (em * specNorm A) I)
(hP :
I.IsFn Ops.Mode.total (Ops.Tagged.inj Krylov.CG.HSPCG.Preconditioner Ops.OperatorOp.matvec)
(Ops.matvecFn O.mulVec) (Ops.MatvecOperands n n))
(W : Op → List ℕ → ℕ) {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {x r z p : ℕ × ℕ} {xs rs zs ps : List ℝ}
(hxr : x.1 ≠ r.1) (hxz : x.1 ≠ z.1) (hxp : x.1 ≠ p.1) (hrz : r.1 ≠ z.1) (hrp : r.1 ≠ p.1)
(hzp : z.1 ≠ p.1) (hl : μ.Live [x, r, z, p])
(hread : μ.readBlocks [x, r, z, p] [n, n, n, n] = some [xs, rs, zs, ps])
(hdom :
Krylov.CG.HSPCG.Rounded.Margins em (ε.dot n) A (Krylov.CG.HSPCG.decodedState id n xs rs zs ps))
(hz : μ.Room [x, r, z, p] [n, n, n, n]) :
Ops.ConditionalRuns I W τ Krylov.CG.HSPCG.step (Ops.Env.frame [n] [x, r, z, p, x, r, z, p]) μ
(Krylov.CG.HSPCG.stepCount n) (Krylov.CG.HSPCG.stepPeak W n)
((Krylov.CG.HSPCG.Rounded.stepRel em u ε A O).Post [n] [xs, rs, zs, ps] [x, r, z, p] [] μ)Import NLAlib.Krylov.CG.HSPCG.Rounded.Step.