(******************************)
(******************************)
(* Custom lemmas about arrays *)
(******************************)
(******************************)
Definition indx {I : finType} (x : I) := index x (enum I).
Prenex Implicits indx.
(***********************************)
(* Arrays indexed by a finite type *)
(***********************************)
Section Array.
Variables (p : ptr) (I : finType).
(* helper lemmas *)

Lemma size_fgraph T1 T2 (r1 : {ffun I -> T1}) (r2 : {ffun I -> T2}) :
size (fgraph r1) = size (fgraph r2).