NLAlib.Krylov.Lanczos.Reorth.rounds_writes
Library · theorem
Exact arithmetic Oracle: matrix–vector product
Every cap executes successfully from an initialized state. Exact breakdown returns the recurrence's zero tail, including breakdown before the first round.
A fragment of NLAlib.Krylov.Lanczos.Reorth.solveRoutine: its loop, on the solver's own variables.
NLAlib.Krylov.Lanczos.Reorth.rounds_writes {K Op Tst : Type} [Inhabited K] [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.Blas1Op Op] [Ops.Has Ops.OperatorOp Op] [Ops.Has Ops.CmpTst Tst] {M : Ops.Machine K}
{dec : K → ℝ} {n cap L B V C bo vo co : ℕ} {A : Matrix (Fin n) (Fin n) ℝ} {b : Fin n → ℝ}
{I : Ops.Interp Op Tst K} {ok : ℕ → Prop} (hS : Ops.IsScalar M I) (hM : Ops.ExactModel dec M)
(hB : Ops.IsExactBlas1 dec ok I) (hok : ok n) (hA : Ops.IsExactMatvec dec A I)
(hCmp : Ops.IsCmp dec I) (hAT : A.IsHermitian) {τ : Ops.Tape K} {μ : Ops.Mem K} (hVL : V < L)
(hCL : C < L) (hVC : V ≠ C) (hlen : List.length μ.store = L + 3) (hp : μ.store.len L = n)
(hw : μ.store.len (L + 1) = n) (ht : μ.store.len (L + 2) = 2)
(hv : vo + (cap + 1) * n ≤ μ.store.len V) (hc : co + 3 * cap + 2 ≤ μ.store.len C)
(hs : Krylov.Lanczos.Reorth.State dec A b cap 0 (V, vo) (C, co) L μ.store) :
Ops.Writes Ops.Mode.total I τ Krylov.Lanczos.Reorth.rounds
{ idx := [n, cap, bo, vo, co], buf := [B, V, C, L, L + 1, L + 2] }
(Ops.Fp.blocks [(V, vo), (C, co)] [(cap + 1) * n, 3 * cap + 2] ⊔ Ops.Fp.above L)
(fun μ' ↦
μ'.pos = μ.pos ∧
Krylov.Lanczos.Prefix dec A b cap cap (V, vo) (C, co) μ'.store ∧
∀ j < cap,
Krylov.Lanczos.StoresCell dec (C, co + 2 * cap + 2 + j)
(Krylov.Lanczos.Reorth.nuValue A b cap j) μ'.store)
μImport NLAlib.Krylov.Lanczos.Reorth.Rounds.