NLA-lib Explorer

NLAlib.Ops.Examples.VectorSum.vaddF_ofFn

Library · theorem

The words written, at two supplied vectors, are the encoding of their entrywise machine sum.

NLAlib.Ops.Examples.VectorSum.vaddF_ofFn (M : Ops.Machine ℝ) {n : ℕ} (x y : Fin n → ℝ) :
  Ops.Examples.VectorSum.vaddF M (Ops.vec (List.ofFn x)) (Ops.vec (List.ofFn y)) n =
    List.ofFn fun i ↦ M.add (x i) (y i)

Full source on GitHub

Import NLAlib.Ops.Examples.VectorSum.