Skip to content

Commit c72ae9e

Browse files
committed
chore(CategoryTheory): deprecate adjunction opposite nat iso helpers (leanprover-community#34586)
We deprecate two definitions that have been unused in Mathlib since leanprover-community#10425 (July 2024), which removed `extendAlongYonedaYoneda` - the only code that needed their definitional properties.
1 parent d46874c commit c72ae9e

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

Mathlib/CategoryTheory/Adjunction/Opposites.lean

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,18 @@ def leftAdjointsCoyonedaEquiv {F F' : C ⥤ D} {G : D ⥤ C} (adj1 : F ⊣ G) (a
8383
NatIso.ofComponents fun Y =>
8484
((adj1.homEquiv X.unop Y).trans (adj2.homEquiv X.unop Y).symm).toIso
8585

86-
/-- Given two adjunctions, if the right adjoints are naturally isomorphic, then so are the left
87-
adjoints.
88-
89-
Note: it is generally better to use `Adjunction.natIsoEquiv`, see the file `Adjunction.Unique`.
90-
The reason this definition still exists is that apparently `CategoryTheory.extendAlongYonedaYoneda`
91-
uses its definitional properties (TODO: figure out a way to avoid this).
92-
-/
86+
/-- Deprecated: prefer `(Adjunction.conjugateIsoEquiv adj1 adj2).symm`. -/
87+
@[deprecated "Use `(Adjunction.conjugateIsoEquiv adj1 adj2).symm` \
88+
(requires `import Mathlib.CategoryTheory.Adjunction.Mates`)." (since := "2026-01-31")]
9389
def natIsoOfRightAdjointNatIso {F F' : C ⥤ D} {G G' : D ⥤ C}
9490
(adj1 : F ⊣ G) (adj2 : F' ⊣ G') (r : G ≅ G') : F ≅ F' :=
9591
NatIso.removeOp ((Coyoneda.fullyFaithful.whiskeringRight _).isoEquiv.symm
9692
(leftAdjointsCoyonedaEquiv adj2 (adj1.ofNatIsoRight r)))
9793

98-
/-- Given two adjunctions, if the left adjoints are naturally isomorphic, then so are the right
99-
adjoints.
100-
101-
Note: it is generally better to use `Adjunction.natIsoEquiv`, see the file `Adjunction.Unique`.
102-
-/
94+
set_option linter.deprecated false in
95+
/-- Deprecated: prefer `Adjunction.conjugateIsoEquiv adj1 adj2`. -/
96+
@[deprecated "Use `Adjunction.conjugateIsoEquiv adj1 adj2` \
97+
(requires `import Mathlib.CategoryTheory.Adjunction.Mates`)." (since := "2026-01-31")]
10398
def natIsoOfLeftAdjointNatIso {F F' : C ⥤ D} {G G' : D ⥤ C}
10499
(adj1 : F ⊣ G) (adj2 : F' ⊣ G') (l : F ≅ F') : G ≅ G' :=
105100
NatIso.removeOp (natIsoOfRightAdjointNatIso (op adj2) (op adj1) (NatIso.op l))

0 commit comments

Comments
 (0)