NLAlib.Krylov.GolubKahan.Band.step_writes_of
Library · theorem
One block step, for any contracts. On the j * b stored columns us of U and the (j + 1) * b stored columns vs of V, in five distinct buffers with room for the blocks of the step, the step writes only the cells of NLAlib.Krylov.GolubKahan.Band.stepFp and leaves block j of U as a stored extension by a block related by Mv to block j of V, and block j + 1 of V as a stored extension by a block related by Rmv to block j of U. A fragment of NLAlib.Krylov.GolubKahan.Band.solveRoutine.
NLAlib.Krylov.GolubKahan.Band.step_writes_of {K Op Tst : Type} [Ops.Has Ops.OrthOp Op]
[Ops.Has Ops.OperatorPairOp Op] [Inhabited K] {dec : K → ℝ} {m n b j : ℕ} {Ext : Ops.ExtendPred ℝ}
{ok : ℕ → ℕ → ℕ → Prop} {Mv : Matrix (Fin n) (Fin b) ℝ → Matrix (Fin m) (Fin b) ℝ → Prop}
{Rmv : Matrix (Fin m) (Fin b) ℝ → Matrix (Fin n) (Fin b) ℝ → Prop} {I : Ops.Interp Op Tst K}
(hMv :
Krylov.GolubKahan.Band.AppliesColumns dec I (Ops.Has.inj Ops.OperatorPairOp.matvec) m n b Mv)
(hRmv :
Krylov.GolubKahan.Band.AppliesColumns dec I (Ops.Has.inj Ops.OperatorPairOp.rmatvec) n m b Rmv)
(hO :
I.Satisfies Ops.Mode.total (Ops.Has.inj Ops.OrthOp.extend)
((Ops.extendRelOf dec ok Ext).spec Ops.ExtendOperands))
(hokU : ok m (j * b) b) (hokV : ok n ((j + 1) * b) b) {τ : Ops.Tape K} {μ : Ops.Mem K}
{U V R S W : ℕ × ℕ} {us vs : List K} (hbuf : [U.1, V.1, R.1, S.1, W.1].Nodup)
(hl : μ.Live [U, V, R, S, W]) (hu : μ.store.readBlock U.1 U.2 (j * b * m) = some us)
(hv : μ.store.readBlock V.1 V.2 ((j + 1) * b * n) = some vs)
(hUr : U.2 + j * b * m + b * m ≤ μ.store.len U.1)
(hVr : V.2 + (j + 1) * b * n + b * n ≤ μ.store.len V.1)
(hRr : R.2 + Krylov.GolubKahan.Band.coefOffsetR b j + (j * b + b) * b ≤ μ.store.len R.1)
(hSr : S.2 + Krylov.GolubKahan.Band.coefOffsetS b j + ((j + 1) * b + b) * b ≤ μ.store.len S.1)
(hWm : W.2 + b * m ≤ μ.store.len W.1) (hWn : W.2 + b * n ≤ μ.store.len W.1) :
Ops.Writes Ops.Mode.total I τ Krylov.GolubKahan.Band.step
(Ops.Env.frame [m, n, b, j] [U, V, R, S, W]) (Krylov.GolubKahan.Band.stepFp m n b j U V R S W)
(fun μ' ↦
μ'.pos = μ.pos ∧
Krylov.GolubKahan.Band.ProductExtAt dec Ext Mv μ'.store (j * b) (V.1, V.2 + j * b * n) U
(R.1, R.2 + Krylov.GolubKahan.Band.coefOffsetR b j) ∧
Krylov.GolubKahan.Band.ProductExtAt dec Ext Rmv μ'.store ((j + 1) * b)
(U.1, U.2 + j * b * m) V (S.1, S.2 + Krylov.GolubKahan.Band.coefOffsetS b j))
μImport NLAlib.Krylov.GolubKahan.Band.Alg.