NLAlib.ShiftedQR.pairVecNormWithScratch_writes_word
Library · theorem
The rounded Euclidean norm on any scalar machine: with the vector \mathbf{r} stored at D and the three scratch words and the output word apart from it and from each other, pairVecNormWithScratch stores NLAlib.ShiftedQR.pairVecNormWord and writes only the output and the scratch. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.
NLAlib.ShiftedQR.pairVecNormWithScratch_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 : ℕ} {r : Fin N → ℂ} {d t p : ℕ × ℕ}
(hD : HoldsMatrix d (replicateCol (Fin 1) r) m.store) (ht : t.2 + 3 ≤ m.store.len t.1)
(hp : p.2 < m.store.len p.1)
(hdt : Ops.Fp.Disj (Ops.Store.inBlock d.1 d.2 (2 * (1 * N))) (Ops.Store.inBlock t.1 t.2 3))
(hdp : Ops.Fp.Disj (Ops.Store.inBlock d.1 d.2 (2 * (1 * N))) (Ops.Store.inBlock p.1 p.2 1))
(htp : Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 3) (Ops.Store.inBlock p.1 p.2 1)) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.pairVecNormWithScratch (Ops.Env.frame [N] [d, t, p])
(Ops.Store.inBlock p.1 p.2 1 ⊔ Ops.Store.inBlock t.1 t.2 3)
(fun m' ↦ m'.pos = m.pos ∧ m'.store.get p.1 p.2 = some (ShiftedQR.pairVecNormWord M r)) mImport NLAlib.Eigensolvers.ShiftedQR.RoundedModuli.