NLAlib.ShiftedQR.rowEntry_writes_word
Library · theorem
One entry of the rounded row product on any scalar machine: with the vector \mathbf{r} stored at V, the order-(n+1) matrix \mathbf{W} at A, the pair oo at O, and the scratch pairs T, Z and the entry pair Y[2i] apart from each other and from the inputs, rowEntry stores at Y[2i] the pair NLAlib.ShiftedQR.rowEntryPair, and writes only that pair and the scratch. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.
NLAlib.ShiftedQR.rowEntry_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 i : ℕ}
{v a o t z y : ℕ × ℕ} {r : Fin (n + 1) → ℂ} {W : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
{oo : ℝ × ℝ} (hi : i < n + 1) (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 * i + 2 ≤ 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 * i) 2).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 * i) 2))
(hzY : Ops.Fp.Disj (Ops.Store.inBlock z.1 z.2 2) (Ops.Store.inBlock y.1 (y.2 + 2 * i) 2)) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.rowEntry (Ops.Env.frame [n + 1, i] [v, a, o, t, z, y])
(Ops.Store.inBlock y.1 (y.2 + 2 * i) 2 ⊔ Ops.Store.inBlock t.1 t.2 2 ⊔
Ops.Store.inBlock z.1 z.2 2)
(fun m' ↦
m'.pos = m.pos ∧
m'.store.get y.1 (y.2 + 2 * i) = some (ShiftedQR.rowEntryPair M oo r W ⟨i, hi⟩).1 ∧
m'.store.get y.1 (y.2 + 2 * i + 1) = some (ShiftedQR.rowEntryPair M oo r W ⟨i, hi⟩).2)
mImport NLAlib.Eigensolvers.ShiftedQR.RoundedRowPoly.