NLAlib.Ops.RoundedScalarBlas.nrm2_meets
Library · theorem
Exact arithmetic
The sequential Euclidean norm meets its specification under exact scalar arithmetic: the written cell is the Euclidean norm of the block read. Only scalar contracts and exact arithmetic are assumed; no vector operation remains primitive.
NLAlib.Ops.RoundedScalarBlas.nrm2_meets {Tst Op : Type} [Ops.Has Ops.ScalarOp Op]
{M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I) (hE : Ops.ExactModel id M) :
Ops.RoundedScalarBlas.nrm2.Meets I
{ pre := fun x x_1 x_2 ↦ True,
post := fun d _ω X Y ↦
match d, X, Y with
| [n], [xs], [[v]] => v = √(∑ i ∈ Finset.range n, Ops.vec xs i ^ 2)
| x, x_1, x_2 => False }Import NLAlib.Ops.Profiles.RoundedScalarBlas.