NLAlib.Krylov.Lanczos.Reorth.preNorm_writes
Library · theorem
Standard rounding
The guarded preorthogonalization norm is total, including zero residuals. The stored norm has the standard norm contract, so its positivity follows from the shared norm guard theorem.
A fragment of NLAlib.Krylov.Lanczos.Reorth.solveRoutine: the guard-norm refresh of one round, on the scratch the solver allocates.
NLAlib.Krylov.Lanczos.Reorth.preNorm_writes {K Op Tst : Type} [Inhabited K]
[Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.Blas1Op Op] [Ops.Has Ops.CmpTst Tst] {M : Ops.Machine K}
{dec : K → ℝ} {u : ℝ} {ed : ℕ → ℝ} {n cap j L B V C bo vo co : ℕ} {I : Ops.Interp Op Tst K}
{ok : ℕ → Prop} (hS : Ops.IsScalar M I) (hM : Ops.StdModel u dec M) (hd : ed n < 1)
(hD :
I.Satisfies Ops.Mode.total (Ops.Has.inj Ops.Blas1Op.dot)
((Ops.dotRel dec ed).spec (Ops.OutApart ok)))
(hok : ok n) (hCmp : Ops.IsCmp dec I) {τ : Ops.Tape K} {μ : Ops.Mem K} {ws : List K} {ν₀ : K}
(hCL : C < L) (hlen : List.length μ.store = L + 3) (ht : μ.store.len (L + 2) = 2)
(hroom : co + 2 * cap + 2 + j < μ.store.len C) (hws : μ.store.readBlock (L + 1) 0 n = some ws)
(hν : μ.store.get C (co + 2 * cap + 2 + j) = some ν₀) (hν₀ : dec ν₀ = 0) :
Ops.Writes Ops.Mode.total I τ Krylov.Lanczos.Reorth.preNorm
{ idx := [n, cap, bo, vo, co, j], buf := [B, V, C, L, L + 1, L + 2] }
(Ops.Fp.blocks [(L + 2, 0), (C, co + 2 * cap + 2 + j)] [1, 1])
(fun μ' ↦
μ'.pos = μ.pos ∧
∃ σ ν,
μ'.store.get (L + 2) 0 = some σ ∧
μ'.store.get C (co + 2 * cap + 2 + j) = some ν ∧
Ops.IsDotErr dec (ed n) n (Ops.vec ws) (Ops.vec ws) σ ∧
Ops.IsNrm2Err dec (ed n) u n (Ops.vec ws) ν)
μImport NLAlib.Krylov.Lanczos.Reorth.PreNorm.