Skip to content

Commit

Permalink
style: avoid using Decidable.em directly
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Miller <[email protected]>
  • Loading branch information
chabulhwi and kmill committed Oct 16, 2024
1 parent 5afa617 commit 7311737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Batteries/Data/List/Lemmas.lean
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ theorem commonPrefix_prefix_left (l₁ l₂ : List α) : commonPrefix l₁ l₂
| _::_, [] => simp [commonPrefix]
| a₁::l₁, a₂::l₂ =>
simp only [commonPrefix]
cases Decidable.em (a₁ = a₂)
split
· next h =>
simp only [h, ↓reduceIte, cons_prefix_cons, true_and]
apply commonPrefix_prefix_left
Expand Down

0 comments on commit 7311737

Please sign in to comment.