Goal:
    A : Type  l : list A  n : nat  a : A  Heq : nth_error l n = Some a
  ============================
   (n < #|l|)


DEBUG:Going to execute:
apply nth_error_Some_length in Heq