Monadic sequencing of Fin-indexed families #
Fin.mOfFn n f runs f 0, …, f (n - 1) in order and collects the results as a function
Fin n → α. It is the function-valued counterpart of Mathlib's List.Vector.mOfFn; the pinned
core, Batteries and Mathlib define no monadic Fin.ofFn. The body is exposed so that its two
equations, Fin.mOfFn_zero and Fin.mOfFn_succ, hold by rfl for every importer.
The collected function is a chain of Fin.cons. This module imports the compiler simplifications
of ToCslib.Data.Fin.Cases, so compiled code reads entry i of the chain in time linear in i.