Goal:
    A : Type  l : list A  x : A
  ============================
   (firstn (#|l ++ [x]| - 1) (l ++ [x]) = l)


DEBUG:Going to execute:
<coq-core.plugins.ltac::autorewrite@0> $1 $2