We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
comp_isIso
1 parent fa6418a commit c60f516Copy full SHA for c60f516
Mathlib/CategoryTheory/Iso.lean
@@ -311,12 +311,8 @@ variable {f : X ⟶ Y} {h : Y ⟶ Z}
311
instance inv_isIso [IsIso f] : IsIso (inv f) :=
312
(asIso f).isIso_inv
313
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. -/
318
@[to_dual self (reorder := X Z, f h, 8 9)]
319
-instance (priority := 900) comp_isIso [IsIso f] [IsIso h] : IsIso (f ≫ h) :=
+instance comp_isIso [IsIso f] [IsIso h] : IsIso (f ≫ h) :=
320
(asIso f ≪≫ asIso h).isIso_hom
321
322
/--
0 commit comments