Goal:
  
  A : Type
  p : A → bool
  a : A
  l : list A
  n : nat
  x : A
  Hnth : nth_error (a :: l) (S n) = Some x
  IHl : ∀ n : nat, nth_error l n = Some x → forallb p l → p x
  ============================
   (p a
    ∧ (fix forallb (l : list A) : bool :=
         match l with
         | [] => true
         | a :: l0 => p a && forallb l0
         end) l → forallb p l)


DEBUG:Going to execute:
solve [ inversion H ]
Level 3: Backtrace:

The type of a is not inductive.
Level 3: Backtrace:

No applicable tactic.