NLAlib.Krylov.CG.HSPCG.Rounded.step_writes_pcgRun_one
Library · theorem
Standard rounding Relative-error BLAS Oracle: matrix–vector product
A first active rounded PCG step executes totally and stores an existing one-step run. Its guards follow from the raw matrix spectral windows, precision inequalities and nonzero right-hand side; the initial state is exactly the preceding oracle initializer's output. Shared by the trees of NLAlib.reduceLastStep, NLAlib.hessenbergReduceLast, NLAlib.ShiftedQR.shiftedStep and 44 more.
NLAlib.Krylov.CG.HSPCG.Rounded.step_writes_pcgRun_one {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 e a a' p p' : ℝ} {ε : Ops.Blas1Err} {A P : Matrix (Fin n) (Fin n) ℝ}
{O : MatvecOracle P} {I : Ops.Interp Op Tst ℝ} {ok : ℕ → Prop} {b : Fin n → ℝ}
(hS : Ops.IsScalar F I) (hF : Ops.StdModel u id F) (hB : Ops.IsBlas1 id ε ok I) (hok : ok n)
(hOp : Ops.IsMatvec id A (em * specNorm A) I)
(hOracle :
I.IsFn Ops.Mode.total (Ops.Tagged.inj Krylov.CG.HSPCG.Preconditioner Ops.OperatorOp.matvec)
(Ops.matvecFn O.mulVec) (Ops.MatvecOperands n n))
(hA : A.IsHermitian) (hP : P.PosDef) (hu : 0 ≤ u) (hd : 0 ≤ ε.dot n) (hv : 0 ≤ ε.axpy)
(hem : em ≤ e) (hue : u ≤ e) (hde : ε.dot n ≤ e) (hve : ε.axpy ≤ e) (he : e ≤ 1 / 100)
(ha : 0 < a) (hp : 0 < p) (hAspec : spectrum ℝ A ⊆ Set.Icc a a')
(hPspec : spectrum ℝ P ⊆ Set.Icc p p') (hAprec : 3 * e * a' ≤ a) (hPprec : 3 * e * p' ≤ p)
(hOe : O.ε ≤ e) (hb : b ≠ 0) {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {x r z v : ℕ × ℕ} (hxr : x.1 ≠ r.1)
(hxz : x.1 ≠ z.1) (hxv : x.1 ≠ v.1) (hrz : r.1 ≠ z.1) (hrv : r.1 ≠ v.1) (hzv : z.1 ≠ v.1)
(hl : μ.Live [x, r, z, v])
(hstate :
Krylov.CG.HSPCG.StoresState id n x r z v { x := 0, r := b, z := O.mulVec b, p := O.mulVec b } μ)
(hroom : μ.Room [x, r, z, v] [n, n, n, n]) :
Ops.Writes Ops.Mode.total I τ Krylov.CG.HSPCG.step (Ops.Env.frame [n] [x, r, z, v, x, r, z, v])
(Ops.Fp.blocks [x, r, z, v] [n, n, n, n])
(fun μ' ↦
μ'.pos = μ.pos ∧
∃ R,
R.A = A ∧
R.M = P ∧
R.preconditioner ≍ O ∧
R.b = b ∧ R.ε = e ∧ Krylov.CG.HSPCG.StoresState id n x r z v (R.state 1) μ')
μImport NLAlib.Krylov.CG.HSPCG.Rounded.Recurrence.