Goal:
    A : Type  l : list A  n : nat  H : n < #|l|  Heq_l : [] = l
  ============================
   A


DEBUG:Going to execute:
match goal with
           | H:?X = ?Y |- _ => subst X || subst Y
           end