Splitting a list to chunks of specified lengths #
This file defines splitting a list to chunks of given lengths, and some proofs about that.
theorem
List.map_splitLengths_length
{α : Type u_1}
(l : List α)
(sz : List ℕ)
(h : sz.sum ≤ l.length)
:
List.map List.length (sz.splitLengths l) = sz