Skip to content

Commit 7b8f8de

Browse files
committed
Revert "fix"
This reverts commit a26d7cc.
1 parent a26d7cc commit 7b8f8de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Batteries/Data/List/Lemmas.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ theorem diff_erase (l₁ l₂ : List α) (a : α) : (l₁.diff l₂).erase a = (
282282
@[simp] theorem nil_diff (l : List α) : [].diff l = [] := by
283283
induction l <;> simp [*, erase_of_not_mem]
284284

285-
theorem cons_diff [DecidableEq α] (a : α) (l₁ l₂ : List α) :
285+
theorem cons_diff (a : α) (l₁ l₂ : List α) :
286286
(a :: l₁).diff l₂ = if a ∈ l₂ then l₁.diff (l₂.erase a) else a :: l₁.diff l₂ := by
287287
induction l₂ generalizing l₁ with
288288
| nil => rfl

0 commit comments

Comments
 (0)