NLAlib.Krylov.CG.HSCG.Carried.runs_solve_dim_seq
Library · theorem
Exact arithmetic Oracle: matrix–vector product
The sequential scalar implementation, capped by the dimension, successfully solves the SPD system with its stated scalar/test budget and workspace.
NLAlib.Krylov.CG.HSCG.Carried.runs_solve_dim_seq {K Op Tst : Type} [Inhabited K]
[Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.Blas1Op Op] [Ops.Has Ops.OperatorOp Op]
[Ops.Apart Ops.Blas1Op Ops.ScalarOp Op] [Ops.Apart Ops.Blas1Op Ops.OperatorOp Op]
[Ops.Has Ops.CmpTst Tst] {M : Ops.Machine K} {dec : K → ℝ} {n : ℕ} {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) (hPos : A.PosDef) {τ : Ops.Tape K}
{μ : Ops.Mem K} {b x r p v : ℕ × ℕ} {bs xs : List K} (hbx : b.1 ≠ x.1) (hbr : b.1 ≠ r.1)
(hbp : b.1 ≠ p.1) (hbv : b.1 ≠ v.1) (hxr : x.1 ≠ r.1) (hxp : x.1 ≠ p.1) (hxv : x.1 ≠ v.1)
(hrp : r.1 ≠ p.1) (hrv : r.1 ≠ v.1) (hpv : p.1 ≠ v.1) (hl : μ.Live [b, x, r, p, v])
(hbs : μ.store.readBlock b.1 b.2 n = some bs) (hxs : μ.store.readBlock x.1 x.2 n = some xs)
(hz : μ.Room [x, r, p, v] [n, n, n, 1]) :
Ops.ConditionalRuns I (Ops.Blas.ws 0) τ
(Ops.Stmt.link Ops.Blas.seq.table Krylov.CG.HSCG.Carried.solve)
(Ops.Env.frame [n, n] [b, x, x, r, p, v]) μ (Krylov.CG.HSCG.Carried.seqSolveCount n n)
(2 * n + 4) fun μ' ↦
μ'.pos = μ.pos ∧
∃ ys, μ'.store.readBlock x.1 x.2 n = some ys ∧ A *ᵥ Ops.decv dec n ys = Ops.decv dec n bsImport NLAlib.Krylov.CG.HSCG.Carried.Linked.