Goal:
  
  ============================
   (∀ (A : Type) (l : list A), {n : nat | n < #|l|} → [] = l → A)


DEBUG:Going to execute:
Tactics.program_simplify; try typeclasses eauto  10 with program;
            try Tactics.program_solve_wf