Tabulating a list by defaulted lookup #
Reading every index of a list of length n with List.getD and tabulating the result over
Fin n gives back the list. These are the getD forms of core's List.ofFn_getElem and
Mathlib's List.ofFn_getElem_eq_map, for when the length is only known to be n.
Main results #
List.ofFn_getD_eq_of_length:List.ofFn (fun i : Fin n => l.getD i d) = lwhenl.length = n.List.ofFn_getD_eq_map_of_length: the same after applyingfto every entry.