NLA-lib Explorer

NLAlib.Ops.RoundedScalarBlas.nrm2_meets_word

Library · theorem

The scalar-lowered norm completes on any scalar machine and stores a word (the trivial model NLAlib.Ops.stdModel_one_zero): a judgment with no claim on the word.

NLAlib.Ops.RoundedScalarBlas.nrm2_meets_word {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  {M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I) :
  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]] => True
        | x, x_1, x_2 => False }

Full source on GitHub

Import NLAlib.Ops.Profiles.RoundedScalarBlas.