NLAlib.Krylov.Lanczos.runs_solve_seq
Library · theorem
Exact arithmetic Oracle: matrix–vector product
Sequential scalar BLAS implements the complete capped Lanczos solver. Its numerical output, safe early breakdown and total success follow from ordinary input and model assumptions; the cap affects the budget and output storage but not its scratch bound.
NLAlib.Krylov.Lanczos.runs_solve_seq {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]
[Ops.Apart Ops.Blas1Op Ops.ScalarOp Op] [Ops.Apart Ops.Blas1Op Ops.OperatorOp Op]
{M : Ops.Machine K} {dec : K → ℝ} {n cap : ℕ} {A : Matrix (Fin n) (Fin n) ℝ}
{I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I) (hM : Ops.ExactModel dec M)
(hA : Ops.IsExactMatvec dec A I) (hCmp : Ops.IsCmp dec I) {τ : Ops.Tape K} {μ : Ops.Mem K}
{B V C : ℕ × ℕ} {bs : List K} (hBV : B.1 ≠ V.1) (hBC : B.1 ≠ C.1) (hVC : V.1 ≠ C.1)
(hl : μ.Live [B, V, C]) (hb : μ.store.readBlock B.1 B.2 n = some bs)
(hz : μ.Room [V, C] [(cap + 1) * n, 2 * cap + 2]) :
Ops.ConditionalRuns I (Ops.Blas.ws 0) τ (Ops.Stmt.link Ops.Blas.seq.table Krylov.Lanczos.solve)
(Ops.Env.frame [n, cap] [B, V, C]) μ (Krylov.Lanczos.seqSolveCount n cap) (3 * n + 3) fun μ' ↦
μ'.pos = μ.pos ∧
∃ vs cs,
μ'.store.readBlock V.1 V.2 ((cap + 1) * n) = some vs ∧
μ'.store.readBlock C.1 C.2 (2 * cap + 2) = some cs ∧
Krylov.Lanczos.Output dec A (Ops.decv dec n bs) cap vs csImport NLAlib.Krylov.Lanczos.Linked.