NLA-lib Explorer

NLAlib.Ops.EntryCodec.packFinMatrix_fromCols_cast

Library · theorem

The same column assembly allows a supplied proof of the total column count.

NLAlib.Ops.EntryCodec.packFinMatrix_fromCols_cast {K E : Type} (C : Ops.EntryCodec K E)
  {rows n p q : ℕ} (h : n = p + q) (A : Matrix (Fin rows) (Fin p) E)
  (B : Matrix (Fin rows) (Fin q) E) :
  C.packFinMatrix ((A.fromCols B).submatrix id ⇑((finCongr h).trans finSumFinEquiv.symm)) =
    C.packFinMatrix A ++ C.packFinMatrix B

Full source on GitHub

Import NLAlib.Ops.Logic.EntryAppend.