Row-major finite arrays as lists #
Main results #
List.flatMap_ofFn_prod: nested row-major enumeration agrees with the existing product equivalence on finite indices.List.getD_flatMap_ofFn: read a cell at its ordinary flat row-major index.List.getElem?_flatMap_mul_add: read entryjof blockiof a flattened list whose blocks all have lengthM.List.take_succ_finRange: extend a prefix(finRange n).take kby one element⟨k, hk⟩.List.mul_add_lt_sq: row-major indexa * n + b < n * nfora < nandb < n.List.fin_mul_add_inj: row-major flat-index injectivity forFin M × Fin N.