NLA-lib Explorer

NLAlib.Ops.Examples.FixedPoint.axpyLoopRoutine_meets

Library · theorem

On actual finite words, the axpy loop stores the admitted mixed-error output. There is no assumed scalar-model witness: the interpretation and numerical model are supplied.

NLAlib.Ops.Examples.FixedPoint.axpyLoopRoutine_meets (bound scale : ℕ) (hs : 0 < scale) :
  Ops.axpyLoopRoutine.Meets (Ops.Interp.ofFns (Ops.Examples.FixedPoint.machine bound scale).fn)
    {
      pre := fun d _ω X ↦
        match d, X with
        | [n], [[a], xs, ys] =>
          Ops.AxpySafe (Ops.Examples.FixedPoint.decode scale)
            (Ops.Examples.FixedPoint.machine bound scale) (fun z ↦ |z| ≤ ↑bound / ↑scale) n a
            (Ops.vec xs) (Ops.vec ys)
        | x, x_1 => False,
      post := fun d _ω X Y ↦
        match d, X, Y with
        | [n], [[a], xs, ys], [zs] =>
          Ops.IsAxpyMixedErr (Ops.Examples.FixedPoint.decode scale) 0 (1 / ↑scale) n a (Ops.vec xs)
            (Ops.vec ys) (Ops.vec zs)
        | x, x_1, x_2 => False }

Full source on GitHub

Import NLAlib.Ops.Examples.FixedPoint.