NLAlib.Krylov.GolubKahan.Band.applyColumns_writes
Library · theorem
A block of exact products: if the operation o satisfies the exact contract of the product with \mathbf{A}, the loop over the b columns of the readable block xs writes a block that decodes to \mathbf{A}\mathbf{X}, \mathbf{X} the decoded input block. The output is in another buffer; the position of the tape does not move. Zero dimensions are included. A fragment of NLAlib.Krylov.GolubKahan.Band.solveRoutine.
NLAlib.Krylov.GolubKahan.Band.applyColumns_writes {K Op Tst : Type} [Inhabited K] {dec : K → ℝ}
{m n b : ℕ} {A : Matrix (Fin m) (Fin n) ℝ} {I : Ops.Interp Op Tst K} {o : Op}
(hA : I.Satisfies Ops.Mode.total o ((Ops.matvecRel dec A).spec (Ops.MatvecOperands m n)))
{τ : Ops.Tape K} {μ : Ops.Mem K} {x y : ℕ × ℕ} {xs : List K} (hxy : x.1 ≠ y.1)
(hl : μ.Live [x, y]) (hx : μ.store.readBlock x.1 x.2 (b * n) = some xs)
(hy : y.2 + b * m ≤ μ.store.len y.1) :
Ops.Writes Ops.Mode.total I τ (Krylov.GolubKahan.Band.applyColumns o)
(Ops.Env.frame [m, n, b] [x, y]) (Ops.Store.inBlock y.1 y.2 (b * m))
(fun μ' ↦
μ'.pos = μ.pos ∧
∃ ys,
μ'.store.readBlock y.1 y.2 (b * m) = some ys ∧
Ops.decodeMatrix dec m b ys = A * Ops.decodeMatrix dec n b xs)
μImport NLAlib.Krylov.GolubKahan.Band.Alg.