NLAlib.Krylov.GolubKahan.Band.applyColumns_writes_error
Library · theorem
A block of rounded products: if the operation o satisfies the normwise contract of the product with \mathbf{A} at the allowance \delta, the loop over the b columns of the readable block xs writes a block whose decoded column c satisfies \|\mathbf{A}\mathbf{x}_c - \mathbf{w}_c\| \le \delta\|\mathbf{x}_c\| in the Euclidean norm, \mathbf{x}_c the decoded column of the input. The output is in another buffer; the position of the tape does not move. A fragment of NLAlib.Krylov.GolubKahan.Band.solveRoutine.
NLAlib.Krylov.GolubKahan.Band.applyColumns_writes_error {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.matvecErrorRel 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 ∧
∀ (c : Fin b),
‖WithLp.toLp 2
(A *ᵥ (Ops.decodeMatrix dec n b xs).col c -
(Ops.decodeMatrix dec m b ys).col c)‖ ≤
δ * ‖WithLp.toLp 2 ((Ops.decodeMatrix dec n b xs).col c)‖)
μImport NLAlib.Krylov.GolubKahan.Band.Alg.