Goal:
  
  A : Type
  B : Type
  f : nat -> A -> option B
  a : A
  l : list A
  t : B
  IHl : forall (l' : list B) (i n : nat),
        map_option_out (mapi_rec f l n) = Some l' ->
        nth_error l' i = Some t ->
        ∑ x : A, nth_error l i = Some x /\ f (i + n)%nat x = Some t
  n : nat
  Heq : f n a = Some t
  l0 : list B
  Heq' : map_option_out (mapi_rec f l (S n)) = Some l0
  ============================
   (Some a = Some a /\ f n a = Some t)


DEBUG:Going to execute:
try arith_congr
Level 0: Backtrace:

No product even after head-reduction.
Level 0: Backtrace:

No product even after head-reduction.
Level 3: Backtrace:

No product even after head-reduction.
Level 2: Backtrace:

No product even after head-reduction.
Level 1: Backtrace:

No product even after head-reduction.
Level 0: Backtrace:

No product even after head-reduction.
Level 0: Backtrace:

No product even after head-reduction.