Skip to content

Commit c60f516

Browse files
committed
perf(CategoryTheory/Iso): remove low priority on comp_isIso (#37986)
1 parent fa6418a commit c60f516

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Mathlib/CategoryTheory/Iso.lean

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,8 @@ variable {f : X ⟶ Y} {h : Y ⟶ Z}
311311
instance inv_isIso [IsIso f] : IsIso (inv f) :=
312312
(asIso f).isIso_inv
313313

314-
/- The following instance has lower priority for the following reason:
315-
Suppose we are given `f : X ≅ Y` with `X Y : Type u`.
316-
Without the lower priority, typeclass inference cannot deduce `IsIso f.hom`
317-
because `f.hom` is defeq to `(fun x ↦ x) ≫ f.hom`, triggering a loop. -/
318314
@[to_dual self (reorder := X Z, f h, 8 9)]
319-
instance (priority := 900) comp_isIso [IsIso f] [IsIso h] : IsIso (f ≫ h) :=
315+
instance comp_isIso [IsIso f] [IsIso h] : IsIso (f ≫ h) :=
320316
(asIso f ≪≫ asIso h).isIso_hom
321317

322318
/--

0 commit comments

Comments
 (0)