Skip to content

Commit 014cece

Browse files
committed
chore(CategoryTheory/Idempotents): remove uses of erw (#32520)
1 parent 1b21a5e commit 014cece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Mathlib/CategoryTheory/Idempotents/Karoubi.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ instance [IsIdempotentComplete C] : (toKaroubi C).EssSurj :=
222222
use Y
223223
exact
224224
Nonempty.intro
225-
{ hom := ⟨i, by erw [id_comp, ← h₂, ← assoc, h₁, id_comp]⟩
226-
inv := ⟨e, by erw [comp_id, ← h₂, assoc, h₁, comp_id]⟩ }⟩
225+
{ hom := ⟨i, by simp [← Category.assoc, h₁, ← h₂]⟩
226+
inv := ⟨e, by simp [Category.assoc, h₁, ← h₂]⟩ }⟩
227227

228228
/-- If `C` is idempotent complete, the functor `toKaroubi : C ⥤ Karoubi C` is an equivalence. -/
229229
instance toKaroubi_isEquivalence [IsIdempotentComplete C] : (toKaroubi C).IsEquivalence where

0 commit comments

Comments
 (0)