NLA-lib Explorer

NLAlib.Ops.matrixMulFn_fn

Library · theorem

A multiplication call packs exactly the result of its actual decoded input blocks.

NLAlib.Ops.matrixMulFn_fn {K E : Type} [Inhabited K] (C : Ops.EntryCodec K E)
  (mm :
    {l m n : ℕ} → Matrix (Fin l) (Fin m) E → Matrix (Fin m) (Fin n) E → Matrix (Fin l) (Fin n) E)
  (l m n : ℕ) (as bs w : List K) :
  (Ops.matrixMulFn C fun {l m n} ↦ mm).fn [l, m, n] w [as, bs] =
    some [C.packFinMatrix (mm (C.matrix l m as) (C.matrix m n bs))]

Full source on GitHub

Import NLAlib.Ops.Catalog.Matrix.