NLAlib.Ops.PairScalar.normSq_writes_word
Library · theorem
The judgment of NLAlib.Ops.PairScalar.normSqRoutine read at cells: output cell two holds the machine word fl(fl(xr·xr) + fl(xi·xi)). A corollary of NLAlib.Ops.PairScalar.normSqRoutine_meets, kept because its callers hold the two input words as cells of a matrix entry inside a loop rule, and read only the third output cell.
NLAlib.Ops.PairScalar.normSq_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 ℝ} {x t : ℕ × ℕ} {xr xi : ℝ} (hxr : m.store.get x.1 x.2 = some xr)
(hxi : m.store.get x.1 (x.2 + 1) = some xi) (hroom : t.2 + 3 ≤ m.store.len t.1)
(hsep : Ops.Fp.Disj (Ops.Store.inBlock x.1 x.2 2) (Ops.Store.inBlock t.1 t.2 3)) :
Ops.Writes Ops.Mode.total I τ Ops.PairScalar.normSq (Ops.Env.frame [] [x, t])
(Ops.Store.inBlock t.1 t.2 3)
(fun m' ↦
m'.pos = m.pos ∧ m'.store.get t.1 (t.2 + 2) = some (M.add (M.mul xr xr) (M.mul xi xi)))
mImport NLAlib.Ops.Blas.NormSq.