NLAlib.Krylov.Lanczos.Reorth.runs_cgs2
Library · theorem
Readable inputs and output room suffice for total execution and the declared budget: the counted form of cgs2Routine_meets.
NLAlib.Krylov.Lanczos.Reorth.runs_cgs2 {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.Blas1Op Op] [Inhabited K] {M : Ops.Machine K} {dec : K → ℝ} {ed : ℕ → ℝ} {ea : ℝ}
{ok : ℕ → Prop} {I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I)
(hD :
I.Satisfies Ops.Mode.total (Ops.Has.inj Ops.Blas1Op.dot)
((Ops.dotRel dec ed).spec (Ops.OutApart ok)))
(hA :
I.Satisfies Ops.Mode.total (Ops.Has.inj Ops.Blas1Op.axpy)
((Ops.axpyRel dec ea).spec (Ops.InPlace ok)))
(hneg : ∀ (a : K), dec (M.neg a) = -dec a) (W : Op → List ℕ → ℕ) {n k : ℕ} {τ : Ops.Tape K}
{μ : Ops.Mem K} {Q w : ℕ × ℕ} {qs ws : List K} (hok : ok n) (hQw : Q.1 ≠ w.1) (hl : μ.Live [Q, w])
(hqs : μ.store.readBlock Q.1 Q.2 (k * n) = some qs) (hws : μ.store.readBlock w.1 w.2 n = some ws)
(hz : μ.Room [w] [n]) :
Ops.ConditionalRuns I W τ Krylov.Lanczos.Reorth.cgs2 (Ops.Env.frame [n, k] [Q, w, w]) μ
(Krylov.Lanczos.Reorth.cgs2Count n k) (Krylov.Lanczos.Reorth.cgs2Peak W n k) fun μ' ↦
∃ ws',
ws'.length = n ∧
Krylov.Lanczos.Reorth.TwoPassOut dec (ed n) ea n k qs ws ws' ∧ μ' = μ.updBlocks [w] [ws']Import NLAlib.Krylov.Lanczos.Reorth.TwoPass.