Goal:
    A : Type  l : list A
  ============================
   (∀ n : nat, (∑ x : A, nth_error l n = Some x) <~> n < #|l|)


DEBUG:Going to execute:
induction l; destruct n