NLA-lib Explorer

List.ofFn_sumElim_cast

Library · theorem

Enumerating a sum function in the standard finite order concatenates its two lists.

List.ofFn_sumElim_cast.{u_1} {α : Type u_1} {n p q : ℕ} (h : n = p + q) (a : Fin p → α)
  (b : Fin q → α) :
  (List.ofFn fun i ↦ (a ⊕ᵥ b) (((finCongr h).trans finSumFinEquiv.symm) i)) =
    List.ofFn a ++ List.ofFn b

Full source on GitHub

Import NLAlib.ForMathlib.Data.List.OfFn.