Goal:
  
  A : Type
  l1 : list A
  x : A
  y : A
  IHl1 : ∀ l2 : list A, l1 ++ [x] = l2 ++ [y] → l1 = l2 ∧ x = y
  H2 : l1 ++ [x] = []
  ============================
   (y :: l1 = l1 ++ [x] ∧ x = y)


DEBUG:Going to execute:
destruct l1

Goals:
  
  A : Type
  x : A
  y : A
  IHl1 : ∀ l2 : list A, [] ++ [x] = l2 ++ [y] → [] = l2 ∧ x = y
  H2 : [] ++ [x] = []
  ============================
   ([y] = [] ++ [x] ∧ x = y)

  
  A : Type
  a : A
  l1 : list A
  x : A
  y : A
  IHl1 : ∀ l2 : list A, (a :: l1) ++ [x] = l2 ++ [y] → a :: l1 = l2 ∧ x = y
  H2 : (a :: l1) ++ [x] = []
  ============================
   (y :: a :: l1 = (a :: l1) ++ [x] ∧ x = y)


DEBUG:Going to execute:
invs H2
DEBUG LTAC Evaluated term: l1

Goals:
  
  A : Type
  x : A
  y : A
  IHl1 : ∀ l2 : list A, [] ++ [x] = l2 ++ [y] → [] = l2 ∧ x = y
  H2 : [] ++ [x] = []
  ============================
   ([y] = [] ++ [x] ∧ x = y)

  
  A : Type
  a : A
  l1 : list A
  x : A
  y : A
  IHl1 : ∀ l2 : list A, (a :: l1) ++ [x] = l2 ++ [y] → a :: l1 = l2 ∧ x = y
  H2 : (a :: l1) ++ [x] = []
  ============================
   (y :: a :: l1 = (a :: l1) ++ [x] ∧ x = y)


DEBUG:Going to execute:
fun H => inversion H; subst; clear H