Lists from functions #
Theorems and lemmas for dealing with List.ofFn, which converts a function on Fin n to a list
of length n.
Main Statements #
The main statements pertain to lists generated using List.ofFn
List.get?_ofFn, which tells us the nth element of such a listList.equivSigmaTuple, which is anEquivbetween lists and the functions that generate them viaList.ofFn.
Useful if rw [← map_ofFn] complains that g ∘ f is not the same as fun i => g (f i).
This breaks a list of m*n items into m groups each containing n elements.
This breaks a list of m*n items into n groups each containing m elements.
Alias of List.pairwise_ofFn.
Lists are equivalent to the sigma type of tuples of a given length.
Instances For
A recursor for lists that expands a list into a function mapping to its elements.
This can be used with induction l using List.ofFnRec.
Instances For
Fin.sigma_eq_iff_eq_comp_cast may be useful to work with the RHS of this expression.
Note we can only state this when the two functions are indexed by defeq n.
A special case of List.ofFn_inj for when the two functions are indexed by defeq n.