Goal:
    A : Type  B : Type  f : nat → A → B  n : nat  l : list A
  ============================
   (nth_error (mapi_rec f l 0) n = option_map (f n) (nth_error l n))


DEBUG:Going to execute:
rewrite nth_error_mapi_rec