NLAlib.ShiftedQR.rowMul_writes_word
Library · theorem
The rounded row product on any scalar machine: with the vector \mathbf{r} at V, the matrix \mathbf{W} at A, the pair oo at O, and the output vector and the two scratch pairs apart from each other and from the inputs, rowMul stores at Y the vector NLAlib.ShiftedQR.rowMulVec, and writes only Y and the scratch. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.
NLAlib.ShiftedQR.rowMul_writes_word {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] {M : Ops.Machine ℝ}
{I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {n : ℕ}
{v a o t z y : ℕ × ℕ} {r : Fin (n + 1) → ℂ} {W : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
{oo : ℝ × ℝ} (hV : HoldsMatrix v (replicateCol (Fin 1) r) m.store) (hA : HoldsMatrix a W m.store)
(ho : m.store.readBlock o.1 o.2 2 = some [oo.1, oo.2]) (ht : t.2 + 2 ≤ m.store.len t.1)
(hz : z.2 + 2 ≤ m.store.len z.1) (hy : y.2 + 2 * (1 * (n + 1)) ≤ m.store.len y.1)
(hl : m.Live [v, a, o, t, z, y])
(hsep :
(Ops.Store.inBlock t.1 t.2 2 ⊔ Ops.Store.inBlock z.1 z.2 2 ⊔
Ops.Store.inBlock y.1 y.2 (2 * (1 * (n + 1)))).Disj
(Ops.Store.inBlock v.1 v.2 (2 * (1 * (n + 1))) ⊔
Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔
Ops.Store.inBlock o.1 o.2 2))
(htz : Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 2) (Ops.Store.inBlock z.1 z.2 2))
(htY : Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 2) (Ops.Store.inBlock y.1 y.2 (2 * (1 * (n + 1)))))
(hzY :
Ops.Fp.Disj (Ops.Store.inBlock z.1 z.2 2) (Ops.Store.inBlock y.1 y.2 (2 * (1 * (n + 1))))) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.rowMul (Ops.Env.frame [n + 1] [v, a, o, t, z, y])
(Ops.Store.inBlock y.1 y.2 (2 * (1 * (n + 1))) ⊔ Ops.Store.inBlock t.1 t.2 2 ⊔
Ops.Store.inBlock z.1 z.2 2)
(fun m' ↦
m'.pos = m.pos ∧ HoldsMatrix y (replicateCol (Fin 1) (ShiftedQR.rowMulVec M oo r W)) m'.store)
mImport NLAlib.Eigensolvers.ShiftedQR.RoundedRowPoly.