NLA-lib Explorer

NLAlib.Ops.decv_ofFn_decode

Library · theorem

Decoding a list made from a word vector commutes with its componentwise decoding.

NLAlib.Ops.decv_ofFn_decode {K : Type} [Inhabited K] {n : ℕ} (dec : K → ℝ) (v : Fin n → K) :
  Ops.decv dec n (List.ofFn v) = fun i ↦ dec (v i)

Full source on GitHub

Import NLAlib.Ops.Catalog.Operator.