α : Type u_1
inst✝ : DecidableEq α
a b : α
l : List α
ab : ¬a = b
⊢ List.erase (List.erase l a) b = List.erase (List.erase l b) a
α : Type u_1
inst✝ : DecidableEq α
a b : α
l : List α
⊢ List.erase (List.erase l a) b = List.erase (List.erase l b) a
if ab : a = b then rw [ab] else ?_
α : Type u_1
inst✝ : DecidableEq α
a b : α
l : List α
ab : ¬a = b
ha : a ∈ l
⊢ List.erase (List.erase l a) b = List.erase (List.erase l b) a
α : Type u_1
inst✝ : DecidableEq α
a b : α
l : List α
ab : ¬a = b
⊢ List.erase (List.erase l a) b = List.erase (List.erase l b) a
if ha : a ∈ l then ?_ else
  simp only [erase_of_not_mem ha, erase_of_not_mem (mt mem_of_mem_erase ha)]
α : Type u_1
inst✝ : DecidableEq α
a b : α
l : List α
ab : ¬a = b
ha : a ∈ l
hb : b ∈ l
⊢ List.erase (List.erase l a) b = List.erase (List.erase l b) a
α : Type u_1
inst✝ : DecidableEq α
a b : α
l : List α
ab : ¬a = b
ha : a ∈ l
⊢ List.erase (List.erase l a) b = List.erase (List.erase l b) a
if hb : b ∈ l then ?_ else
  simp only [erase_of_not_mem hb, erase_of_not_mem (mt mem_of_mem_erase hb)]
no goals
α : Type u_1
inst✝ : DecidableEq α
a b : α
l : List α
ab : ¬a = b
ha : a ∈ l
hb : b ∈ l
⊢ List.erase (List.erase l a) b = List.erase (List.erase l b) a
match l, l.erase a, exists_erase_eq ha with
| _, _, ⟨l₁, l₂, ha', rfl, rfl⟩ =>
  if h₁ : b ∈ l₁ then
    rw [erase_append_left _ h₁, erase_append_left _ h₁,
        erase_append_right _ (mt mem_of_mem_erase ha'), erase_cons_head]
  else
    rw [erase_append_right _ h₁, erase_append_right _ h₁, erase_append_right _ ha',
        erase_cons_tail _ ab, erase_cons_head]
no goals
α : Type u_1
inst✝ : DecidableEq α
a b : α
l : List α
ab : a = b
⊢ List.erase (List.erase l a) b = List.erase (List.erase l b) a
rw [ab]
no goals
α : Type u_1
inst✝ : DecidableEq α
a b : α
l : List α
ab : ¬a = b
ha : ¬a ∈ l
⊢ List.erase (List.erase l a) b = List.erase (List.erase l b) a
simp only [erase_of_not_mem ha, erase_of_not_mem (mt mem_of_mem_erase ha)]
no goals
α : Type u_1
inst✝ : DecidableEq α
a b : α
l : List α
ab : ¬a = b
ha : a ∈ l
hb : ¬b ∈ l
⊢ List.erase (List.erase l a) b = List.erase (List.erase l b) a
simp only [erase_of_not_mem hb, erase_of_not_mem (mt mem_of_mem_erase hb)]
no goals
α : Type u_1
inst✝ : DecidableEq α
a b : α
l : List α
ab : ¬a = b
l₁ l₂ : List α
ha' : ¬a ∈ l₁
ha : a ∈ l₁ ++ a :: l₂
hb : b ∈ l₁ ++ a :: l₂
⊢ List.erase (l₁ ++ l₂) b = List.erase (List.erase (l₁ ++ a :: l₂) b) a
if h₁ : b ∈ l₁ then
  rw [erase_append_left _ h₁, erase_append_left _ h₁,
      erase_append_right _ (mt mem_of_mem_erase ha'), erase_cons_head]
else
  rw [erase_append_right _ h₁, erase_append_right _ h₁, erase_append_right _ ha',
      erase_cons_tail _ ab, erase_cons_head]
no goals
α : Type u_1
inst✝ : DecidableEq α
a b : α
l : List α
ab : ¬a = b
l₁ l₂ : List α
ha' : ¬a ∈ l₁
ha : a ∈ l₁ ++ a :: l₂
hb : b ∈ l₁ ++ a :: l₂
h₁ : b ∈ l₁
⊢ List.erase (l₁ ++ l₂) b = List.erase (List.erase (l₁ ++ a :: l₂) b) a
rw [erase_append_left _ h₁, erase_append_left _ h₁,
    erase_append_right _ (mt mem_of_mem_erase ha'), erase_cons_head]
no goals
α : Type u_1
inst✝ : DecidableEq α
a b : α
l : List α
ab : ¬a = b
l₁ l₂ : List α
ha' : ¬a ∈ l₁
ha : a ∈ l₁ ++ a :: l₂
hb : b ∈ l₁ ++ a :: l₂
h₁ : ¬b ∈ l₁
⊢ List.erase (l₁ ++ l₂) b = List.erase (List.erase (l₁ ++ a :: l₂) b) a
rw [erase_append_right _ h₁, erase_append_right _ h₁, erase_append_right _ ha',
    erase_cons_tail _ ab, erase_cons_head]