Goal:
  
  A : Type
  P : A → bool
  a : A
  l : list A
  n : nat
  IHl : ∀ n : nat,
          forallb P l → on_Some_or_None (λ x : A, P x) (nth_error l n)
  H0 : is_true (P a)
  H1 : Forall (λ x : A, P x) l
  ============================
   (on_Some_or_None (λ x : A, P x) (nth_error (a :: l) n))


DEBUG:Going to execute:
destruct n; cbn
Level 1: evaluation returns
inversion_clear H
where
H := H
of type
constr of type tacvalue