/-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Thomas Read, Andrew Yang
-/
module
public import Mathlib.CategoryTheory.Adjunction.Basic
/-!
# Opposite adjunctions
This file contains constructions to relate adjunctions of functors to adjunctions of their
opposites.
## Tags
adjunction, opposite, uniqueness
-/
@[expose] public section
open CategoryTheory
universe v₁ v₂ u₁ u₂
-- morphism levels before object levels. See note [category theory universes].
variable {C : Type u₁} [Category.{v₁} C] {D : Type u₂} [Category.{v₂} D]
namespace CategoryTheory.Adjunction
attribute [local simp] homEquiv_unit homEquiv_counit
/-- If `G` is adjoint to `F` then `F.unop` is adjoint to `G.unop`. -/
@[simps]
def unop {F : Cᵒᵖ ⥤ Dᵒᵖ} {G : Dᵒᵖ ⥤ Cᵒᵖ} (h : G ⊣ F) : F.unop ⊣ G.unop where
unit.app X := (h.counit.app (Opposite.op X)).unop
unit.naturality {_ _} f := Quiver.Hom.op_inj (by simp)
counit.app X := (h.unit.app (Opposite.op X)).unop
counit.naturality {_ _} f := Quiver.Hom.op_inj (by simp)
left_triangle_components _ := Quiver.Hom.op_inj (h.right_triangle_components _)
right_triangle_components _ := Quiver.Hom.op_inj (h.left_triangle_components _)
/-- If `G` is adjoint to `F` then `F.op` is adjoint to `G.op`. -/
@[simps]
def op {F : C ⥤ D} {G : D ⥤ C} (h : G ⊣ F) : F.op ⊣ G.op where
unit.app X := (h.counit.app X.unop).op
unit.naturality {_ _} f := Quiver.Hom.unop_inj (by simp)
counit.app X := (h.unit.app X.unop).op
counit.naturality {_ _} f := Quiver.Hom.unop_inj (by simp)
left_triangle_components _ := Quiver.Hom.unop_inj (by simp)
right_triangle_components _ := Quiver.Hom.unop_inj (by simp)
/-- If `F` is adjoint to `G.leftOp` then `G` is adjoint to `F.leftOp`. -/
@[simps]
def leftOp {F : C ⥤ Dᵒᵖ} {G : D ⥤ Cᵒᵖ} (a : F ⊣ G.leftOp) : G ⊣ F.leftOp where
unit.app X := (a.counit.app (Opposite.op X)).unop
unit.naturality {_ _} f := Quiver.Hom.op_inj (by simpa using (a.counit.naturality f.op).symm)
counit.app X := (a.unit.app X.unop).op
counit.naturality {_ _} f := Quiver.Hom.unop_inj (by simpa using (a.unit.naturality f.unop).symm)
left_triangle_components X := congr($(a.right_triangle_components (.op X)).op)
right_triangle_components X := congr($(a.left_triangle_components X.unop).unop)
/-- If `F.rightOp` is adjoint to `G` then `G.rightOp` is adjoint to `F`. -/
@[simps]
def rightOp {F : Cᵒᵖ ⥤ D} {G : Dᵒᵖ ⥤ C} (a : F.rightOp ⊣ G) : G.rightOp ⊣ F where
unit.app X := (a.counit.app (Opposite.op X)).unop
unit.naturality {_ _} f := Quiver.Hom.op_inj (by simpa using (a.counit.naturality f.op).symm)
counit.app X := (a.unit.app X.unop).op
counit.naturality {_ _} f := Quiver.Hom.unop_inj (by simpa using (a.unit.naturality f.unop).symm)
left_triangle_components X := congr($(a.right_triangle_components (.op X)).op)
right_triangle_components X := congr($(a.left_triangle_components X.unop).unop)
lemma leftOp_eq {F : C ⥤ Dᵒᵖ} {G : D ⥤ Cᵒᵖ} (a : F ⊣ G.leftOp) :
a.leftOp = (opOpEquivalence D).symm.toAdjunction.comp a.op := by
ext X; simp [Equivalence.unit]
lemma rightOp_eq {F : Cᵒᵖ ⥤ D} {G : Dᵒᵖ ⥤ C} (a : F.rightOp ⊣ G) :
a.rightOp = (opOpEquivalence D).symm.toAdjunction.comp a.op := by
ext X; simp [Equivalence.unit]
end Adjunction
namespace Functor
instance IsLeftAdjoint.op {F : C ⥤ D} [F.IsLeftAdjoint] : F.op.IsRightAdjoint :=
⟨F.rightAdjoint.op, ⟨.op <| .ofIsLeftAdjoint _⟩⟩
instance IsRightAdjoint.op {F : C ⥤ D} [F.IsRightAdjoint] : F.op.IsLeftAdjoint :=
⟨F.leftAdjoint.op, ⟨.op <| .ofIsRightAdjoint _⟩⟩
instance IsLeftAdjoint.leftOp {F : C ⥤ Dᵒᵖ} [F.IsLeftAdjoint] : F.leftOp.IsRightAdjoint :=
⟨F.rightAdjoint.rightOp, ⟨.leftOp <| .ofIsLeftAdjoint _⟩⟩
-- TODO: Do we need to introduce `Adjunction.leftUnop`?
instance IsRightAdjoint.leftOp {F : C ⥤ Dᵒᵖ} [F.IsRightAdjoint] : F.leftOp.IsLeftAdjoint :=
inferInstanceAs (F.op ⋙ (opOpEquivalence D).functor).IsLeftAdjoint
-- TODO: Do we need to introduce `Adjunction.rightUnop`?
instance IsLeftAdjoint.rightOp {F : Cᵒᵖ ⥤ D} [F.IsLeftAdjoint] : F.rightOp.IsRightAdjoint :=
inferInstanceAs ((opOpEquivalence C).inverse ⋙ F.op).IsRightAdjoint
instance IsRightAdjoint.rightOp {F : Cᵒᵖ ⥤ D} [F.IsRightAdjoint] : F.rightOp.IsLeftAdjoint :=
⟨F.leftAdjoint.leftOp, ⟨.rightOp <| .ofIsRightAdjoint _⟩⟩
end Functor
end CategoryTheory
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland