NLAlib.Krylov.GolubKahan.Band.steps_writes
Library · theorem
The loop of block steps, for any contracts. From the stored start block, on five distinct output buffers with room for the output lengths and a scratch buffer above them with room for a block of either side, the q framed block steps write only cells of a footprint that contains the cells of every step, do not move the tape, and leave the stored prefix of q steps. The loop is given by its evaluated bound, dimensions and operands. A fragment of NLAlib.Krylov.GolubKahan.Band.solveRoutine.
NLAlib.Krylov.GolubKahan.Band.steps_writes {K Op Tst : Type} [Ops.Has Ops.OrthOp Op]
[Ops.Has Ops.OperatorPairOp Op] [Inhabited K] {dec : K → ℝ} {m n b q : ℕ} {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 : ∀ j < q, ok m (j * b) b) (hokV : ∀ j < q, ok n ((j + 1) * b) b) {τ : Ops.Tape K}
{ρ : Ops.Env} {N : Ops.IExp} {ds : List Ops.IExp} {args : List Ops.Operand} {μ : Ops.Mem K}
{U V G R S W : ℕ × ℕ} {Ω : Matrix (Fin n) (Fin b) ℝ} {F : Ops.Fp}
(hN : Ops.IExp.eval ρ.idx N = some q)
(hd : ∀ (j : ℕ), Ops.IExp.evalList (ρ.pushIdx j).idx ds = some [m, n, b, j])
(ha : ∀ (j : ℕ), Ops.Operand.evalList (ρ.pushIdx j) args = some [U, V, R, S, W])
(hbuf : [U.1, V.1, G.1, R.1, S.1].Nodup) (hlt : ∀ z ∈ [U, V, G, R, S], z.1 < W.1)
(hl : μ.Live [U, V, R, S, W])
(hz : μ.Room [U, V, G, R, S] (Krylov.GolubKahan.Band.outLens m n b q))
(hWm : W.2 + b * m ≤ μ.store.len W.1) (hWn : W.2 + b * n ≤ μ.store.len W.1)
(h0 : Krylov.GolubKahan.Band.StoredPrefix dec Ext Mv Rmv Ω U V G R S 0 μ.store)
(hF : ∀ j < q, Krylov.GolubKahan.Band.stepFp m n b j U V R S W ≤ F) :
Ops.Writes Ops.Mode.total I τ
(Ops.Stmt.loop N (Ops.Stmt.frame ds args Krylov.GolubKahan.Band.step)) ρ F
(fun μ' ↦
μ'.pos = μ.pos ∧ Krylov.GolubKahan.Band.StoredPrefix dec Ext Mv Rmv Ω U V G R S q μ'.store)
μImport NLAlib.Krylov.GolubKahan.Band.Alg.