Goal:
  
  A : Type
  P : nat → A → Type
  f : nat → A → A
  n : nat
  hd : A
  tl : list A
  p : P n hd
  X : Alli P (S n) tl
  IHX : (∀ (n : nat) (x : A), P n x → f n x = x) → mapi_rec f tl (S n) = tl
  ============================
   ((∀ (n : nat) (x : A), P n x → f n x = x)
    → f n hd :: mapi_rec f tl (S n) = hd :: tl)


DEBUG:Going to execute:
match goal with
           | |- ?X1 → ?X2 => intro
           | |- ¬ _ => unfold not at 1; intro
           end
Level 0: Backtrace:

No matching clauses for match.