The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V24. Category theory

Mathlib.CategoryTheory.Adjunction.Basic

183 declarations. Mathlib docs · Source

Adjunctions between functors

F ⊣ G represents the data of an adjunction between two functors F : C ⥤ D and G : D ⥤ C. F is the left adjoint and G is the right adjoint.

We provide various useful constructors:

  • mkOfHomEquiv
  • mk': construct an adjunction from the data of a hom set equivalence, unit and counit natural transformations together with proofs of the equalities homEquiv_unit and homEquiv_counit relating them to each other.
  • leftAdjointOfEquiv / rightAdjointOfEquiv construct a left/right adjoint of a given functor given the action on objects and the relevant equivalence of morphism spaces.
  • adjunctionOfEquivLeft / adjunctionOfEquivRight witness that these constructions give adjunctions.

There are also typeclasses IsLeftAdjoint / IsRightAdjoint, which assert the existence of an adjoint functor. Given [F.IsLeftAdjoint], a chosen right adjoint can be obtained as F.rightAdjoint.

Adjunction.comp composes adjunctions.

toEquivalence upgrades an adjunction to an equivalence, given witnesses that the unit and counit are pointwise isomorphisms. Conversely Equivalence.toAdjunction recovers the underlying adjunction from an equivalence.

Overview of the directory CategoryTheory.Adjunction

  • Adjoint lifting theorems are in the directory Lifting.
  • The file AdjointFunctorTheorems proves the adjoint functor theorems.
  • The file Additive develops adjunctions between additive functors.
  • The file Comma shows that for a functor G : D ⥤ C the data of an initial object in each StructuredArrow category on G is equivalent to a left adjoint to G, as well as the dual.
  • The file CompositionIso derives compatibilities for compositions of left adjoints from the corresponding data on right adjoints.
  • The file Evaluation shows that products and coproducts are adjoint to evaluation of functors.
  • The file FullyFaithful characterizes when adjoints are full or faithful in terms of the unit and counit.
  • The file Limits proves that left adjoints preserve colimits and right adjoints preserve limits.
  • The file Mates establishes the bijection between the 2-cells
            L₁                  R₁
          C --→ D             C ←-- D
        G ↓  ↗  ↓ H         G ↓  ↘  ↓ H
          E --→ F             E ←-- F
            L₂                  R₂
    
    where L₁ ⊣ R₁ and L₂ ⊣ R₂. Specializing to a pair of adjoints L₁ L₂ : C ⥤ D, R₁ R₂ : D ⥤ C, it provides equivalences (L₂ ⟶ L₁) ≃ (R₁ ⟶ R₂) and (L₂ ≅ L₁) ≃ (R₁ ≅ R₂).
  • The file Opposites contains constructions to relate adjunctions of functors to adjunctions of their opposites.
  • The file Parametrized defines adjunctions with a parameter.
  • The file PartialAdjoint studies the domain of definition of partial adjoints (left/right).
  • The file Reflective defines reflective functors, i.e. fully faithful right adjoints. Note that many facts about reflective functors are proved in the earlier file FullyFaithful.
  • The file Restrict defines the restriction of an adjunction along fully faithful functors.
  • The file Triple proves that in an adjoint triple, the left adjoint is fully faithful if and only if the right adjoint is.
  • The file Quadruple bundles adjoint quadruples and compares induced natural transformations.
  • The file Unique proves uniqueness of adjoints.
  • The file Whiskering proves that functors F : D ⥤ E and G : E ⥤ D with an adjunction F ⊣ G, induce adjunctions between the functor categories C ⥤ D and C ⥤ E, and the functor categories E ⥤ C and D ⥤ C.

Other files related to adjunctions

  • The file Mathlib/CategoryTheory/Monad/Adjunction.lean develops the basic relationship between adjunctions and (co)monads. There it is also shown that given an adjunction L ⊣ R and an isomorphism L ⋙ R ≅ 𝟭 C, the unit is an isomorphism, and similarly for the counit.

theorem CategoryTheory.Adjunction.CoreHomEquiv.mk.inj E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  {homEquiv : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y)}
  {homEquiv_naturality_left_symm :
    autoParam
      (∀ {X' X : C} {Y : D} (f : X' ⟶ X) (g : X ⟶ G.obj Y),
        (homEquiv X' Y).symm (CategoryTheory.CategoryStruct.comp f g) =
          CategoryTheory.CategoryStruct.comp (F.map f) ((homEquiv X Y).symm g))
      CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_left_symm._autoParam}
  {homEquiv_naturality_right :
    autoParam
      (∀ {X : C} {Y Y' : D} (f : F.obj X ⟶ Y) (g : Y ⟶ Y'),
        (homEquiv X Y') (CategoryTheory.CategoryStruct.comp f g) =
          CategoryTheory.CategoryStruct.comp ((homEquiv X Y) f) (G.map g))
      CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_right._autoParam}
  {homEquiv_1 : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y)}
  {homEquiv_naturality_left_symm_1 :
    autoParam
      (∀ {X' X : C} {Y : D} (f : X' ⟶ X) (g : X ⟶ G.obj Y),
        (homEquiv_1 X' Y).symm (CategoryTheory.CategoryStruct.comp f g) =
          CategoryTheory.CategoryStruct.comp (F.map f) ((homEquiv_1 X Y).symm g))
      CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_left_symm._autoParam}
  {homEquiv_naturality_right_1 :
    autoParam
      (∀ {X : C} {Y Y' : D} (f : F.obj X ⟶ Y) (g : Y ⟶ Y'),
        (homEquiv_1 X Y') (CategoryTheory.CategoryStruct.comp f g) =
          CategoryTheory.CategoryStruct.comp ((homEquiv_1 X Y) f) (G.map g))
      CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_right._autoParam},
  { homEquiv := homEquiv, homEquiv_naturality_left_symm := homEquiv_naturality_left_symm,
        homEquiv_naturality_right := homEquiv_naturality_right } =
      { homEquiv := homEquiv_1, homEquiv_naturality_left_symm := homEquiv_naturality_left_symm_1,
        homEquiv_naturality_right := homEquiv_naturality_right_1 } →
    homEquiv = homEquiv_1

def CategoryTheory.Adjunction.CoreHomEquiv.ctorIdx E1 #

{C : Type u₁} →
  {inst : CategoryTheory.Category.{v₁, u₁} C} →
    {D : Type u₂} →
      {inst_1 : CategoryTheory.Category.{v₂, u₂} D} →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} → CategoryTheory.Adjunction.CoreHomEquiv F G → ℕ

theorem CategoryTheory.Adjunction.CoreHomEquiv.mk.injEq E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  (homEquiv : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y))
  (homEquiv_naturality_left_symm :
    autoParam
      (∀ {X' X : C} {Y : D} (f : X' ⟶ X) (g : X ⟶ G.obj Y),
        (homEquiv X' Y).symm (CategoryTheory.CategoryStruct.comp f g) =
          CategoryTheory.CategoryStruct.comp (F.map f) ((homEquiv X Y).symm g))
      CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_left_symm._autoParam)
  (homEquiv_naturality_right :
    autoParam
      (∀ {X : C} {Y Y' : D} (f : F.obj X ⟶ Y) (g : Y ⟶ Y'),
        (homEquiv X Y') (CategoryTheory.CategoryStruct.comp f g) =
          CategoryTheory.CategoryStruct.comp ((homEquiv X Y) f) (G.map g))
      CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_right._autoParam)
  (homEquiv_1 : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y))
  (homEquiv_naturality_left_symm_1 :
    autoParam
      (∀ {X' X : C} {Y : D} (f : X' ⟶ X) (g : X ⟶ G.obj Y),
        (homEquiv_1 X' Y).symm (CategoryTheory.CategoryStruct.comp f g) =
          CategoryTheory.CategoryStruct.comp (F.map f) ((homEquiv_1 X Y).symm g))
      CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_left_symm._autoParam)
  (homEquiv_naturality_right_1 :
    autoParam
      (∀ {X : C} {Y Y' : D} (f : F.obj X ⟶ Y) (g : Y ⟶ Y'),
        (homEquiv_1 X Y') (CategoryTheory.CategoryStruct.comp f g) =
          CategoryTheory.CategoryStruct.comp ((homEquiv_1 X Y) f) (G.map g))
      CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_right._autoParam),
  ({ homEquiv := homEquiv, homEquiv_naturality_left_symm := homEquiv_naturality_left_symm,
        homEquiv_naturality_right := homEquiv_naturality_right } =
      { homEquiv := homEquiv_1, homEquiv_naturality_left_symm := homEquiv_naturality_left_symm_1,
        homEquiv_naturality_right := homEquiv_naturality_right_1 }) =
    (homEquiv = homEquiv_1)

theorem CategoryTheory.Adjunction.CoreUnitCounit.mk.injEq E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (unit : CategoryTheory.Functor.id C ⟶ F.comp G)
  (counit : G.comp F ⟶ CategoryTheory.Functor.id D)
  (left_triangle :
    autoParam
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight unit F)
          (CategoryTheory.CategoryStruct.comp (F.associator G F).hom (F.whiskerLeft counit)) =
        CategoryTheory.NatTrans.id ((CategoryTheory.Functor.id C).comp F))
      CategoryTheory.Adjunction.CoreUnitCounit.left_triangle._autoParam)
  (right_triangle :
    autoParam
      (CategoryTheory.CategoryStruct.comp (G.whiskerLeft unit)
          (CategoryTheory.CategoryStruct.comp (G.associator F G).inv (CategoryTheory.Functor.whiskerRight counit G)) =
        CategoryTheory.NatTrans.id (G.comp (CategoryTheory.Functor.id C)))
      CategoryTheory.Adjunction.CoreUnitCounit.right_triangle._autoParam)
  (unit_1 : CategoryTheory.Functor.id C ⟶ F.comp G) (counit_1 : G.comp F ⟶ CategoryTheory.Functor.id D)
  (left_triangle_1 :
    autoParam
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight unit_1 F)
          (CategoryTheory.CategoryStruct.comp (F.associator G F).hom (F.whiskerLeft counit_1)) =
        CategoryTheory.NatTrans.id ((CategoryTheory.Functor.id C).comp F))
      CategoryTheory.Adjunction.CoreUnitCounit.left_triangle._autoParam)
  (right_triangle_1 :
    autoParam
      (CategoryTheory.CategoryStruct.comp (G.whiskerLeft unit_1)
          (CategoryTheory.CategoryStruct.comp (G.associator F G).inv (CategoryTheory.Functor.whiskerRight counit_1 G)) =
        CategoryTheory.NatTrans.id (G.comp (CategoryTheory.Functor.id C)))
      CategoryTheory.Adjunction.CoreUnitCounit.right_triangle._autoParam),
  ({ unit := unit, counit := counit, left_triangle := left_triangle, right_triangle := right_triangle } =
      { unit := unit_1, counit := counit_1, left_triangle := left_triangle_1, right_triangle := right_triangle_1 }) =
    (unit = unit_1 ∧ counit = counit_1)

def CategoryTheory.Adjunction.ctorIdx E1 #

{C : Type u₁} →
  {inst : CategoryTheory.Category.{v₁, u₁} C} →
    {D : Type u₂} →
      {inst_1 : CategoryTheory.Category.{v₂, u₂} D} →
        {F : CategoryTheory.Functor C D} → {G : CategoryTheory.Functor D C} → (F ⊣ G) → ℕ

theorem CategoryTheory.Adjunction.CoreHomEquivUnitCounit.mk.inj E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  {homEquiv : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y)} {unit : CategoryTheory.Functor.id C ⟶ F.comp G}
  {counit : G.comp F ⟶ CategoryTheory.Functor.id D}
  {homEquiv_unit :
    autoParam
      (∀ {X : C} {Y : D} {f : F.obj X ⟶ Y},
        (homEquiv X Y) f = CategoryTheory.CategoryStruct.comp (unit.app X) (G.map f))
      CategoryTheory.Adjunction.CoreHomEquivUnitCounit.homEquiv_unit._autoParam}
  {homEquiv_counit :
    autoParam
      (∀ {X : C} {Y : D} {g : X ⟶ G.obj Y},
        (homEquiv X Y).symm g = CategoryTheory.CategoryStruct.comp (F.map g) (counit.app Y))
      CategoryTheory.Adjunction.CoreHomEquivUnitCounit.homEquiv_counit._autoParam}
  {homEquiv_1 : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y)} {unit_1 : CategoryTheory.Functor.id C ⟶ F.comp G}
  {counit_1 : G.comp F ⟶ CategoryTheory.Functor.id D}
  {homEquiv_unit_1 :
    autoParam
      (∀ {X : C} {Y : D} {f : F.obj X ⟶ Y},
        (homEquiv_1 X Y) f = CategoryTheory.CategoryStruct.comp (unit_1.app X) (G.map f))
      CategoryTheory.Adjunction.CoreHomEquivUnitCounit.homEquiv_unit._autoParam}
  {homEquiv_counit_1 :
    autoParam
      (∀ {X : C} {Y : D} {g : X ⟶ G.obj Y},
        (homEquiv_1 X Y).symm g = CategoryTheory.CategoryStruct.comp (F.map g) (counit_1.app Y))
      CategoryTheory.Adjunction.CoreHomEquivUnitCounit.homEquiv_counit._autoParam},
  { homEquiv := homEquiv, unit := unit, counit := counit, homEquiv_unit := homEquiv_unit,
        homEquiv_counit := homEquiv_counit } =
      { homEquiv := homEquiv_1, unit := unit_1, counit := counit_1, homEquiv_unit := homEquiv_unit_1,
        homEquiv_counit := homEquiv_counit_1 } →
    homEquiv = homEquiv_1 ∧ unit = unit_1 ∧ counit = counit_1

theorem CategoryTheory.Adjunction.CoreUnitCounit.mk.inj E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} {unit : CategoryTheory.Functor.id C ⟶ F.comp G}
  {counit : G.comp F ⟶ CategoryTheory.Functor.id D}
  {left_triangle :
    autoParam
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight unit F)
          (CategoryTheory.CategoryStruct.comp (F.associator G F).hom (F.whiskerLeft counit)) =
        CategoryTheory.NatTrans.id ((CategoryTheory.Functor.id C).comp F))
      CategoryTheory.Adjunction.CoreUnitCounit.left_triangle._autoParam}
  {right_triangle :
    autoParam
      (CategoryTheory.CategoryStruct.comp (G.whiskerLeft unit)
          (CategoryTheory.CategoryStruct.comp (G.associator F G).inv (CategoryTheory.Functor.whiskerRight counit G)) =
        CategoryTheory.NatTrans.id (G.comp (CategoryTheory.Functor.id C)))
      CategoryTheory.Adjunction.CoreUnitCounit.right_triangle._autoParam}
  {unit_1 : CategoryTheory.Functor.id C ⟶ F.comp G} {counit_1 : G.comp F ⟶ CategoryTheory.Functor.id D}
  {left_triangle_1 :
    autoParam
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight unit_1 F)
          (CategoryTheory.CategoryStruct.comp (F.associator G F).hom (F.whiskerLeft counit_1)) =
        CategoryTheory.NatTrans.id ((CategoryTheory.Functor.id C).comp F))
      CategoryTheory.Adjunction.CoreUnitCounit.left_triangle._autoParam}
  {right_triangle_1 :
    autoParam
      (CategoryTheory.CategoryStruct.comp (G.whiskerLeft unit_1)
          (CategoryTheory.CategoryStruct.comp (G.associator F G).inv (CategoryTheory.Functor.whiskerRight counit_1 G)) =
        CategoryTheory.NatTrans.id (G.comp (CategoryTheory.Functor.id C)))
      CategoryTheory.Adjunction.CoreUnitCounit.right_triangle._autoParam},
  { unit := unit, counit := counit, left_triangle := left_triangle, right_triangle := right_triangle } =
      { unit := unit_1, counit := counit_1, left_triangle := left_triangle_1, right_triangle := right_triangle_1 } →
    unit = unit_1 ∧ counit = counit_1

theorem CategoryTheory.Adjunction.mk.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  (unit unit_1 : CategoryTheory.Functor.id C ⟶ F.comp G) (e_unit : unit = unit_1)
  (counit counit_1 : G.comp F ⟶ CategoryTheory.Functor.id D) (e_counit : counit = counit_1)
  (left_triangle_components :
    ∀ (X : C),
      CategoryTheory.CategoryStruct.comp (F.map (unit.app X)) (counit.app (F.obj X)) =
        CategoryTheory.CategoryStruct.id (F.obj X))
  (right_triangle_components :
    ∀ (Y : D),
      CategoryTheory.CategoryStruct.comp (unit.app (G.obj Y)) (G.map (counit.app Y)) =
        CategoryTheory.CategoryStruct.id (G.obj Y)),
  { unit := unit, counit := counit, left_triangle_components := left_triangle_components,
      right_triangle_components := right_triangle_components } =
    { unit := unit_1, counit := counit_1, left_triangle_components := ⋯, right_triangle_components := ⋯ }

theorem CategoryTheory.Adjunction.mk.inj E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} {unit : CategoryTheory.Functor.id C ⟶ F.comp G}
  {counit : G.comp F ⟶ CategoryTheory.Functor.id D}
  {left_triangle_components :
    autoParam
      (∀ (X : C),
        CategoryTheory.CategoryStruct.comp (F.map (unit.app X)) (counit.app (F.obj X)) =
          CategoryTheory.CategoryStruct.id (F.obj X))
      CategoryTheory.Adjunction.left_triangle_components._autoParam}
  {right_triangle_components :
    autoParam
      (∀ (Y : D),
        CategoryTheory.CategoryStruct.comp (unit.app (G.obj Y)) (G.map (counit.app Y)) =
          CategoryTheory.CategoryStruct.id (G.obj Y))
      CategoryTheory.Adjunction.right_triangle_components._autoParam}
  {unit_1 : CategoryTheory.Functor.id C ⟶ F.comp G} {counit_1 : G.comp F ⟶ CategoryTheory.Functor.id D}
  {left_triangle_components_1 :
    autoParam
      (∀ (X : C),
        CategoryTheory.CategoryStruct.comp (F.map (unit_1.app X)) (counit_1.app (F.obj X)) =
          CategoryTheory.CategoryStruct.id (F.obj X))
      CategoryTheory.Adjunction.left_triangle_components._autoParam}
  {right_triangle_components_1 :
    autoParam
      (∀ (Y : D),
        CategoryTheory.CategoryStruct.comp (unit_1.app (G.obj Y)) (G.map (counit_1.app Y)) =
          CategoryTheory.CategoryStruct.id (G.obj Y))
      CategoryTheory.Adjunction.right_triangle_components._autoParam},
  { unit := unit, counit := counit, left_triangle_components := left_triangle_components,
        right_triangle_components := right_triangle_components } =
      { unit := unit_1, counit := counit_1, left_triangle_components := left_triangle_components_1,
        right_triangle_components := right_triangle_components_1 } →
    unit = unit_1 ∧ counit = counit_1

theorem CategoryTheory.Adjunction.mk.injEq E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (unit : CategoryTheory.Functor.id C ⟶ F.comp G)
  (counit : G.comp F ⟶ CategoryTheory.Functor.id D)
  (left_triangle_components :
    autoParam
      (∀ (X : C),
        CategoryTheory.CategoryStruct.comp (F.map (unit.app X)) (counit.app (F.obj X)) =
          CategoryTheory.CategoryStruct.id (F.obj X))
      CategoryTheory.Adjunction.left_triangle_components._autoParam)
  (right_triangle_components :
    autoParam
      (∀ (Y : D),
        CategoryTheory.CategoryStruct.comp (unit.app (G.obj Y)) (G.map (counit.app Y)) =
          CategoryTheory.CategoryStruct.id (G.obj Y))
      CategoryTheory.Adjunction.right_triangle_components._autoParam)
  (unit_1 : CategoryTheory.Functor.id C ⟶ F.comp G) (counit_1 : G.comp F ⟶ CategoryTheory.Functor.id D)
  (left_triangle_components_1 :
    autoParam
      (∀ (X : C),
        CategoryTheory.CategoryStruct.comp (F.map (unit_1.app X)) (counit_1.app (F.obj X)) =
          CategoryTheory.CategoryStruct.id (F.obj X))
      CategoryTheory.Adjunction.left_triangle_components._autoParam)
  (right_triangle_components_1 :
    autoParam
      (∀ (Y : D),
        CategoryTheory.CategoryStruct.comp (unit_1.app (G.obj Y)) (G.map (counit_1.app Y)) =
          CategoryTheory.CategoryStruct.id (G.obj Y))
      CategoryTheory.Adjunction.right_triangle_components._autoParam),
  ({ unit := unit, counit := counit, left_triangle_components := left_triangle_components,
        right_triangle_components := right_triangle_components } =
      { unit := unit_1, counit := counit_1, left_triangle_components := left_triangle_components_1,
        right_triangle_components := right_triangle_components_1 }) =
    (unit = unit_1 ∧ counit = counit_1)

def CategoryTheory.Adjunction.CoreUnitCounit.ctorIdx E1 #

{C : Type u₁} →
  {inst : CategoryTheory.Category.{v₁, u₁} C} →
    {D : Type u₂} →
      {inst_1 : CategoryTheory.Category.{v₂, u₂} D} →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} → CategoryTheory.Adjunction.CoreUnitCounit F G → ℕ

theorem CategoryTheory.Adjunction.CoreHomEquivUnitCounit.mk.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  (homEquiv homEquiv_1 : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y)) (e_homEquiv : homEquiv = homEquiv_1)
  (unit unit_1 : CategoryTheory.Functor.id C ⟶ F.comp G) (e_unit : unit = unit_1)
  (counit counit_1 : G.comp F ⟶ CategoryTheory.Functor.id D) (e_counit : counit = counit_1)
  (homEquiv_unit :
    ∀ {X : C} {Y : D} {f : F.obj X ⟶ Y}, (homEquiv X Y) f = CategoryTheory.CategoryStruct.comp (unit.app X) (G.map f))
  (homEquiv_counit :
    ∀ {X : C} {Y : D} {g : X ⟶ G.obj Y},
      (homEquiv X Y).symm g = CategoryTheory.CategoryStruct.comp (F.map g) (counit.app Y)),
  { homEquiv := homEquiv, unit := unit, counit := counit, homEquiv_unit := homEquiv_unit,
      homEquiv_counit := homEquiv_counit } =
    { homEquiv := homEquiv_1, unit := unit_1, counit := counit_1, homEquiv_unit := ⋯, homEquiv_counit := ⋯ }

theorem CategoryTheory.Adjunction.leftAdjointOfEquiv.congr_simp E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {G : CategoryTheory.Functor D C} {F_obj : C → D} (e e_1 : (X : C) → (Y : D) → (F_obj X ⟶ Y) ≃ (X ⟶ G.obj Y))
  (e_e : e = e_1)
  (he :
    ∀ (X : C) (Y Y' : D) (g : Y ⟶ Y') (h : F_obj X ⟶ Y),
      (e X Y') (CategoryTheory.CategoryStruct.comp h g) = CategoryTheory.CategoryStruct.comp ((e X Y) h) (G.map g)),
  CategoryTheory.Adjunction.leftAdjointOfEquiv e he = CategoryTheory.Adjunction.leftAdjointOfEquiv e_1 ⋯

def CategoryTheory.Adjunction.CoreHomEquivUnitCounit.ctorIdx E1 #

{C : Type u₁} →
  {inst : CategoryTheory.Category.{v₁, u₁} C} →
    {D : Type u₂} →
      {inst_1 : CategoryTheory.Category.{v₂, u₂} D} →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} → CategoryTheory.Adjunction.CoreHomEquivUnitCounit F G → ℕ

theorem CategoryTheory.Adjunction.CoreHomEquivUnitCounit.mk.injEq E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  (homEquiv : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y)) (unit : CategoryTheory.Functor.id C ⟶ F.comp G)
  (counit : G.comp F ⟶ CategoryTheory.Functor.id D)
  (homEquiv_unit :
    autoParam
      (∀ {X : C} {Y : D} {f : F.obj X ⟶ Y},
        (homEquiv X Y) f = CategoryTheory.CategoryStruct.comp (unit.app X) (G.map f))
      CategoryTheory.Adjunction.CoreHomEquivUnitCounit.homEquiv_unit._autoParam)
  (homEquiv_counit :
    autoParam
      (∀ {X : C} {Y : D} {g : X ⟶ G.obj Y},
        (homEquiv X Y).symm g = CategoryTheory.CategoryStruct.comp (F.map g) (counit.app Y))
      CategoryTheory.Adjunction.CoreHomEquivUnitCounit.homEquiv_counit._autoParam)
  (homEquiv_1 : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y)) (unit_1 : CategoryTheory.Functor.id C ⟶ F.comp G)
  (counit_1 : G.comp F ⟶ CategoryTheory.Functor.id D)
  (homEquiv_unit_1 :
    autoParam
      (∀ {X : C} {Y : D} {f : F.obj X ⟶ Y},
        (homEquiv_1 X Y) f = CategoryTheory.CategoryStruct.comp (unit_1.app X) (G.map f))
      CategoryTheory.Adjunction.CoreHomEquivUnitCounit.homEquiv_unit._autoParam)
  (homEquiv_counit_1 :
    autoParam
      (∀ {X : C} {Y : D} {g : X ⟶ G.obj Y},
        (homEquiv_1 X Y).symm g = CategoryTheory.CategoryStruct.comp (F.map g) (counit_1.app Y))
      CategoryTheory.Adjunction.CoreHomEquivUnitCounit.homEquiv_counit._autoParam),
  ({ homEquiv := homEquiv, unit := unit, counit := counit, homEquiv_unit := homEquiv_unit,
        homEquiv_counit := homEquiv_counit } =
      { homEquiv := homEquiv_1, unit := unit_1, counit := counit_1, homEquiv_unit := homEquiv_unit_1,
        homEquiv_counit := homEquiv_counit_1 }) =
    (homEquiv = homEquiv_1 ∧ unit = unit_1 ∧ counit = counit_1)

structure CategoryTheory.Adjunction E3 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        CategoryTheory.Functor C D → CategoryTheory.Functor D C → Type (max (max (max u₁ u₂) v₁) v₂)

F ⊣ G represents the data of an adjunction between two functors F : C ⥤ D and G : D ⥤ C. F is the left adjoint and G is the right adjoint.

We use the unit-counit definition of an adjunction. There is a constructor Adjunction.mk' which constructs an adjunction from the data of a hom set equivalence, a unit, and a counit, together with proofs of the equalities homEquiv_unit and homEquiv_counit relating them to each other.

There is also a constructor Adjunction.mkOfHomEquiv which constructs an adjunction from a natural hom set equivalence.

To construct adjoints to a given functor, there are constructors leftAdjointOfEquiv and adjunctionOfEquivLeft (as well as their duals).

ctor CategoryTheory.Adjunction.mk E0 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            (unit : CategoryTheory.Functor.id C ⟶ F.comp G) →
              (counit : G.comp F ⟶ CategoryTheory.Functor.id D) →
                autoParam
                    (∀ (X : C),
                      CategoryTheory.CategoryStruct.comp (F.map (unit.app X)) (counit.app (F.obj X)) =
                        CategoryTheory.CategoryStruct.id (F.obj X))
                    CategoryTheory.Adjunction.left_triangle_components._autoParam →
                  autoParam
                      (∀ (Y : D),
                        CategoryTheory.CategoryStruct.comp (unit.app (G.obj Y)) (G.map (counit.app Y)) =
                          CategoryTheory.CategoryStruct.id (G.obj Y))
                      CategoryTheory.Adjunction.right_triangle_components._autoParam →
                    (F ⊣ G)

abbrev CategoryTheory.Adjunction.unit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} → (F ⊣ G) → (CategoryTheory.Functor.id C ⟶ F.comp G)

The unit of an adjunction

abbrev CategoryTheory.Adjunction.counit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} → (F ⊣ G) → (G.comp F ⟶ CategoryTheory.Functor.id D)

The counit of an adjunction

theorem CategoryTheory.Adjunction.left_triangle_components E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (self : F ⊣ G) (X : C),
  CategoryTheory.CategoryStruct.comp (F.map (self.unit.app X)) (self.counit.app (F.obj X)) =
    CategoryTheory.CategoryStruct.id (F.obj X)

Equality of the composition of the unit and counit with the identity F ⟶ FGF ⟶ F = 𝟙

theorem CategoryTheory.Adjunction.right_triangle_components E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (self : F ⊣ G) (Y : D),
  CategoryTheory.CategoryStruct.comp (self.unit.app (G.obj Y)) (G.map (self.counit.app Y)) =
    CategoryTheory.CategoryStruct.id (G.obj Y)

Equality of the composition of the unit and counit with the identity G ⟶ GFG ⟶ G = 𝟙

def CategoryTheory.«term_⊣_» E1 #

Lean.TrailingParserDescr

The notation F ⊣ G stands for Adjunction F G representing that F is left adjoint to G

class CategoryTheory.Functor.IsLeftAdjoint E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} → [inst_1 : CategoryTheory.Category.{v₂, u₂} D] → CategoryTheory.Functor C D → Prop

A class asserting the existence of a right adjoint.

ctor CategoryTheory.Functor.IsLeftAdjoint.mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {left : CategoryTheory.Functor C D}, (∃ right, Nonempty (left ⊣ right)) → left.IsLeftAdjoint

theorem CategoryTheory.Functor.IsLeftAdjoint.exists_rightAdjoint E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
  {left : CategoryTheory.Functor C D} [self : left.IsLeftAdjoint], ∃ right, Nonempty (left ⊣ right)

class CategoryTheory.Functor.IsRightAdjoint E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} → [inst_1 : CategoryTheory.Category.{v₂, u₂} D] → CategoryTheory.Functor D C → Prop

A class asserting the existence of a left adjoint.

ctor CategoryTheory.Functor.IsRightAdjoint.mk E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {right : CategoryTheory.Functor D C}, (∃ left, Nonempty (left ⊣ right)) → right.IsRightAdjoint

theorem CategoryTheory.Functor.IsRightAdjoint.exists_leftAdjoint E1 #

∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
  {right : CategoryTheory.Functor D C} [self : right.IsRightAdjoint], ∃ left, Nonempty (left ⊣ right)

def CategoryTheory.Functor.leftAdjoint E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (R : CategoryTheory.Functor D C) → [R.IsRightAdjoint] → CategoryTheory.Functor C D

A chosen left adjoint to a functor that is a right adjoint.

def CategoryTheory.Functor.rightAdjoint E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (R : CategoryTheory.Functor D C) → [R.IsLeftAdjoint] → CategoryTheory.Functor C D

A chosen right adjoint to a functor that is a left adjoint.

def CategoryTheory.Adjunction.ofIsLeftAdjoint E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (left : CategoryTheory.Functor C D) → [inst_2 : left.IsLeftAdjoint] → left ⊣ left.rightAdjoint

The adjunction associated to a functor known to be a left adjoint.

def CategoryTheory.Adjunction.ofIsRightAdjoint E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (right : CategoryTheory.Functor C D) → [inst_2 : right.IsRightAdjoint] → right.leftAdjoint ⊣ right

The adjunction associated to a functor known to be a right adjoint.

theorem CategoryTheory.Adjunction.right_triangle_components_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (self : F ⊣ G) (Y : D) {Z : C} (h : G.obj Y ⟶ Z),
  CategoryTheory.CategoryStruct.comp (self.unit.app (G.obj Y))
      (CategoryTheory.CategoryStruct.comp (G.map (self.counit.app Y)) h) =
    h

Equality of the composition of the unit and counit with the identity G ⟶ GFG ⟶ G = 𝟙

theorem CategoryTheory.Adjunction.left_triangle_components_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (self : F ⊣ G) (X : C) {Z : D} (h : F.obj X ⟶ Z),
  CategoryTheory.CategoryStruct.comp (F.map (self.unit.app X))
      (CategoryTheory.CategoryStruct.comp (self.counit.app (F.obj X)) h) =
    h

Equality of the composition of the unit and counit with the identity F ⟶ FGF ⟶ F = 𝟙

def CategoryTheory.Adjunction.homEquiv E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} → (F ⊣ G) → (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y)

The hom set equivalence associated to an adjunction.

abbrev CategoryTheory.Adjunction.homEquiv' E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} → (G ⊣ F) → (X : C) → (Y : D) → (Y ⟶ F.obj X) ≃ (G.obj Y ⟶ X)

homEquiv' is the dual of homEquiv, which we need for to_dual. Please avoid using this directly.

theorem CategoryTheory.Adjunction.homEquiv_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : C) (Y : D) (f : F.obj X ⟶ Y),
  (adj.homEquiv X Y) f = CategoryTheory.CategoryStruct.comp (adj.unit.app X) (G.map f)

theorem CategoryTheory.Adjunction.homEquiv_symm_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : C) (Y : D) (g : X ⟶ G.obj Y),
  (adj.homEquiv X Y).symm g = CategoryTheory.CategoryStruct.comp (F.map g) (adj.counit.app Y)

theorem CategoryTheory.Adjunction.homEquiv_unit E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : C) (Y : D) (f : F.obj X ⟶ Y),
  (adj.homEquiv X Y) f = CategoryTheory.CategoryStruct.comp (adj.unit.app X) (G.map f)

Alias of CategoryTheory.Adjunction.homEquiv_apply.

theorem CategoryTheory.Adjunction.homEquiv_counit E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : C) (Y : D) (g : X ⟶ G.obj Y),
  (adj.homEquiv X Y).symm g = CategoryTheory.CategoryStruct.comp (F.map g) (adj.counit.app Y)

Alias of CategoryTheory.Adjunction.homEquiv_symm_apply.

theorem CategoryTheory.Adjunction.ext_counit E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} {adj adj' : G ⊣ F},
  adj.counit = adj'.counit → adj = adj'

theorem CategoryTheory.Adjunction.ext_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} {adj adj' : F ⊣ G},
  adj = adj' ↔ adj.unit = adj'.unit

theorem CategoryTheory.Adjunction.ext E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} {adj adj' : F ⊣ G},
  adj.unit = adj'.unit → adj = adj'

theorem CategoryTheory.Adjunction.isRightAdjoint E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : G ⊣ F), F.IsRightAdjoint

theorem CategoryTheory.Adjunction.isLeftAdjoint E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G), F.IsLeftAdjoint

instance CategoryTheory.Adjunction.instIsLeftAdjointLeftAdjoint E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (R : CategoryTheory.Functor D C) [inst_2 : R.IsRightAdjoint], R.leftAdjoint.IsLeftAdjoint

instance CategoryTheory.Adjunction.instIsRightAdjointRightAdjoint E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (R : CategoryTheory.Functor D C) [inst_2 : R.IsLeftAdjoint], R.rightAdjoint.IsRightAdjoint

theorem CategoryTheory.Adjunction.homEquiv_id E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : C),
  (adj.homEquiv X (F.obj X)) (CategoryTheory.CategoryStruct.id (F.obj X)) = adj.unit.app X

theorem CategoryTheory.Adjunction.homEquiv_symm_id E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : D),
  (adj.homEquiv (G.obj X) X).symm (CategoryTheory.CategoryStruct.id (G.obj X)) = adj.counit.app X

theorem CategoryTheory.Adjunction.homEquiv_symm_unit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : C),
  (adj.homEquiv X (F.obj X)).symm (adj.unit.app X) = CategoryTheory.CategoryStruct.id (F.obj X)

theorem CategoryTheory.Adjunction.homEquiv_naturality_left_symm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X' X : C} {Y : D} (f : X' ⟶ X)
  (g : X ⟶ G.obj Y),
  (adj.homEquiv X' Y).symm (CategoryTheory.CategoryStruct.comp f g) =
    CategoryTheory.CategoryStruct.comp (F.map f) ((adj.homEquiv X Y).symm g)

theorem CategoryTheory.Adjunction.homEquiv_naturality_left E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X' X : C} {Y : D} (f : X' ⟶ X)
  (g : F.obj X ⟶ Y),
  (adj.homEquiv X' Y) (CategoryTheory.CategoryStruct.comp (F.map f) g) =
    CategoryTheory.CategoryStruct.comp f ((adj.homEquiv X Y) g)

theorem CategoryTheory.Adjunction.homEquiv_naturality_right E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X : C} {Y Y' : D} (f : F.obj X ⟶ Y)
  (g : Y ⟶ Y'),
  (adj.homEquiv X Y') (CategoryTheory.CategoryStruct.comp f g) =
    CategoryTheory.CategoryStruct.comp ((adj.homEquiv X Y) f) (G.map g)

theorem CategoryTheory.Adjunction.homEquiv_naturality_right_symm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X : C} {Y Y' : D} (f : X ⟶ G.obj Y)
  (g : Y ⟶ Y'),
  (adj.homEquiv X Y').symm (CategoryTheory.CategoryStruct.comp f (G.map g)) =
    CategoryTheory.CategoryStruct.comp ((adj.homEquiv X Y).symm f) g

theorem CategoryTheory.Adjunction.homEquiv_naturality_left_square E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X' X : C} {Y Y' : D} (f : X' ⟶ X)
  (g : F.obj X ⟶ Y') (h : F.obj X' ⟶ Y) (k : Y ⟶ Y'),
  CategoryTheory.CategoryStruct.comp (F.map f) g = CategoryTheory.CategoryStruct.comp h k →
    CategoryTheory.CategoryStruct.comp f ((adj.homEquiv X Y') g) =
      CategoryTheory.CategoryStruct.comp ((adj.homEquiv X' Y) h) (G.map k)

theorem CategoryTheory.Adjunction.homEquiv_naturality_left_square_assoc E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X' X : C} {Y Y' : D} (f : X' ⟶ X)
  (g : F.obj X ⟶ Y') (h : F.obj X' ⟶ Y) (k : Y ⟶ Y'),
  CategoryTheory.CategoryStruct.comp (F.map f) g = CategoryTheory.CategoryStruct.comp h k →
    ∀ {Z : C} (h_1 : G.obj Y' ⟶ Z),
      CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp ((adj.homEquiv X Y') g) h_1) =
        CategoryTheory.CategoryStruct.comp ((adj.homEquiv X' Y) h) (CategoryTheory.CategoryStruct.comp (G.map k) h_1)

theorem CategoryTheory.Adjunction.homEquiv_naturality_right_square E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X' X : C} {Y Y' : D} (f : X' ⟶ X)
  (g : X ⟶ G.obj Y') (h : X' ⟶ G.obj Y) (k : Y ⟶ Y'),
  CategoryTheory.CategoryStruct.comp f g = CategoryTheory.CategoryStruct.comp h (G.map k) →
    CategoryTheory.CategoryStruct.comp (F.map f) ((adj.homEquiv X Y').symm g) =
      CategoryTheory.CategoryStruct.comp ((adj.homEquiv X' Y).symm h) k

theorem CategoryTheory.Adjunction.homEquiv_naturality_right_square_assoc E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X' X : C} {Y Y' : D} (f : X' ⟶ X)
  (g : X ⟶ G.obj Y') (h : X' ⟶ G.obj Y) (k : Y ⟶ Y'),
  CategoryTheory.CategoryStruct.comp f g = CategoryTheory.CategoryStruct.comp h (G.map k) →
    ∀ {Z : D} (h_1 : Y' ⟶ Z),
      CategoryTheory.CategoryStruct.comp (F.map f)
          (CategoryTheory.CategoryStruct.comp ((adj.homEquiv X Y').symm g) h_1) =
        CategoryTheory.CategoryStruct.comp ((adj.homEquiv X' Y).symm h) (CategoryTheory.CategoryStruct.comp k h_1)

theorem CategoryTheory.Adjunction.homEquiv_naturality_left_square_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X' X : C} {Y Y' : D} (f : X' ⟶ X)
  (g : F.obj X ⟶ Y') (h : F.obj X' ⟶ Y) (k : Y ⟶ Y'),
  CategoryTheory.CategoryStruct.comp f ((adj.homEquiv X Y') g) =
      CategoryTheory.CategoryStruct.comp ((adj.homEquiv X' Y) h) (G.map k) ↔
    CategoryTheory.CategoryStruct.comp (F.map f) g = CategoryTheory.CategoryStruct.comp h k

theorem CategoryTheory.Adjunction.homEquiv_naturality_right_square_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X' X : C} {Y Y' : D} (f : X' ⟶ X)
  (g : X ⟶ G.obj Y') (h : X' ⟶ G.obj Y) (k : Y ⟶ Y'),
  CategoryTheory.CategoryStruct.comp (F.map f) ((adj.homEquiv X Y').symm g) =
      CategoryTheory.CategoryStruct.comp ((adj.homEquiv X' Y).symm h) k ↔
    CategoryTheory.CategoryStruct.comp f g = CategoryTheory.CategoryStruct.comp h (G.map k)

theorem CategoryTheory.Adjunction.left_triangle E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight adj.unit F)
      (CategoryTheory.CategoryStruct.comp (F.associator G F).hom (F.whiskerLeft adj.counit)) =
    CategoryTheory.CategoryStruct.comp F.leftUnitor.hom F.rightUnitor.inv

theorem CategoryTheory.Adjunction.right_triangle E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G),
  CategoryTheory.CategoryStruct.comp (G.whiskerLeft adj.unit)
      (CategoryTheory.CategoryStruct.comp (G.associator F G).inv (CategoryTheory.Functor.whiskerRight adj.counit G)) =
    CategoryTheory.CategoryStruct.comp G.rightUnitor.hom G.leftUnitor.inv

theorem CategoryTheory.Adjunction.counit_naturality E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : G ⊣ F) {X Y : C} (f : Y ⟶ X),
  CategoryTheory.CategoryStruct.comp (G.map (F.map f)) (adj.counit.app X) =
    CategoryTheory.CategoryStruct.comp (adj.counit.app Y) f

theorem CategoryTheory.Adjunction.unit_naturality E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X Y : C} (f : X ⟶ Y),
  CategoryTheory.CategoryStruct.comp (adj.unit.app X) (G.map (F.map f)) =
    CategoryTheory.CategoryStruct.comp f (adj.unit.app Y)

theorem CategoryTheory.Adjunction.counit_naturality_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : G ⊣ F) {X Y : C} (f : Y ⟶ X) {Z : C}
  (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp (G.map (F.map f)) (CategoryTheory.CategoryStruct.comp (adj.counit.app X) h) =
    CategoryTheory.CategoryStruct.comp (adj.counit.app Y) (CategoryTheory.CategoryStruct.comp f h)

theorem CategoryTheory.Adjunction.unit_naturality_assoc E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X Y : C} (f : X ⟶ Y) {Z : C}
  (h : G.obj (F.obj Y) ⟶ Z),
  CategoryTheory.CategoryStruct.comp (adj.unit.app X) (CategoryTheory.CategoryStruct.comp (G.map (F.map f)) h) =
    CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp (adj.unit.app Y) h)

theorem CategoryTheory.Adjunction.unit_comp_map_eq_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {A : C} {B : D} (f : F.obj A ⟶ B)
  (g : A ⟶ G.obj B),
  CategoryTheory.CategoryStruct.comp (adj.unit.app A) (G.map f) = g ↔
    f = CategoryTheory.CategoryStruct.comp (F.map g) (adj.counit.app B)

theorem CategoryTheory.Adjunction.homEquiv_apply_eq E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {A : C} {B : D} (f : F.obj A ⟶ B)
  (g : A ⟶ G.obj B), (adj.homEquiv A B) f = g ↔ f = (adj.homEquiv A B).symm g

def CategoryTheory.Adjunction.corepresentableBy E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            (F ⊣ G) → (X : C) → (G.comp (CategoryTheory.coyoneda.obj (Opposite.op X))).CorepresentableBy (F.obj X)

If adj : F ⊣ G, and X : C, then F.obj X corepresents Y ↦ (X ⟶ G.obj Y).

theorem CategoryTheory.Adjunction.corepresentableBy_homEquiv E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : C) {Y : D},
  (adj.corepresentableBy X).homEquiv = adj.homEquiv X Y

def CategoryTheory.Adjunction.representableBy E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            (F ⊣ G) → (Y : D) → (F.op.comp (CategoryTheory.yoneda.obj Y)).RepresentableBy (G.obj Y)

If adj : F ⊣ G, and Y : D, then G.obj Y represents X ↦ (F.obj X ⟶ Y).

theorem CategoryTheory.Adjunction.representableBy_homEquiv E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (Y : D) {X : C},
  (adj.representableBy Y).homEquiv = (adj.homEquiv X Y).symm

structure CategoryTheory.Adjunction.CoreHomEquivUnitCounit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        CategoryTheory.Functor C D → CategoryTheory.Functor D C → Type (max (max (max u₁ u₂) v₁) v₂)

This is an auxiliary data structure useful for constructing adjunctions. See Adjunction.mk'. This structure won't typically be used anywhere else.

ctor CategoryTheory.Adjunction.CoreHomEquivUnitCounit.mk E0 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            (homEquiv : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y)) →
              (unit : CategoryTheory.Functor.id C ⟶ F.comp G) →
                (counit : G.comp F ⟶ CategoryTheory.Functor.id D) →
                  autoParam
                      (∀ {X : C} {Y : D} {f : F.obj X ⟶ Y},
                        (homEquiv X Y) f = CategoryTheory.CategoryStruct.comp (unit.app X) (G.map f))
                      CategoryTheory.Adjunction.CoreHomEquivUnitCounit.homEquiv_unit._autoParam →
                    autoParam
                        (∀ {X : C} {Y : D} {g : X ⟶ G.obj Y},
                          (homEquiv X Y).symm g = CategoryTheory.CategoryStruct.comp (F.map g) (counit.app Y))
                        CategoryTheory.Adjunction.CoreHomEquivUnitCounit.homEquiv_counit._autoParam →
                      CategoryTheory.Adjunction.CoreHomEquivUnitCounit F G

abbrev CategoryTheory.Adjunction.CoreHomEquivUnitCounit.homEquiv E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            CategoryTheory.Adjunction.CoreHomEquivUnitCounit F G → (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y)

The equivalence between Hom (F X) Y and Hom X (G Y) coming from an adjunction

abbrev CategoryTheory.Adjunction.CoreHomEquivUnitCounit.unit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            CategoryTheory.Adjunction.CoreHomEquivUnitCounit F G → (CategoryTheory.Functor.id C ⟶ F.comp G)

The unit of an adjunction

abbrev CategoryTheory.Adjunction.CoreHomEquivUnitCounit.counit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            CategoryTheory.Adjunction.CoreHomEquivUnitCounit F G → (G.comp F ⟶ CategoryTheory.Functor.id D)

The counit of an adjunction

theorem CategoryTheory.Adjunction.CoreHomEquivUnitCounit.homEquiv_unit E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  (self : CategoryTheory.Adjunction.CoreHomEquivUnitCounit F G) {X : C} {Y : D} {f : F.obj X ⟶ Y},
  (self.homEquiv X Y) f = CategoryTheory.CategoryStruct.comp (self.unit.app X) (G.map f)

The relationship between the unit and hom set equivalence of an adjunction

theorem CategoryTheory.Adjunction.CoreHomEquivUnitCounit.homEquiv_counit E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  (self : CategoryTheory.Adjunction.CoreHomEquivUnitCounit F G) {X : C} {Y : D} {g : X ⟶ G.obj Y},
  (self.homEquiv X Y).symm g = CategoryTheory.CategoryStruct.comp (F.map g) (self.counit.app Y)

The relationship between the counit and hom set equivalence of an adjunction

structure CategoryTheory.Adjunction.CoreHomEquiv E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        CategoryTheory.Functor C D → CategoryTheory.Functor D C → Type (max (max (max u₁ u₂) v₁) v₂)

This is an auxiliary data structure useful for constructing adjunctions. See Adjunction.mkOfHomEquiv. This structure won't typically be used anywhere else.

ctor CategoryTheory.Adjunction.CoreHomEquiv.mk E0 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            (homEquiv : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y)) →
              autoParam
                  (∀ {X' X : C} {Y : D} (f : X' ⟶ X) (g : X ⟶ G.obj Y),
                    (homEquiv X' Y).symm (CategoryTheory.CategoryStruct.comp f g) =
                      CategoryTheory.CategoryStruct.comp (F.map f) ((homEquiv X Y).symm g))
                  CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_left_symm._autoParam →
                autoParam
                    (∀ {X : C} {Y Y' : D} (f : F.obj X ⟶ Y) (g : Y ⟶ Y'),
                      (homEquiv X Y') (CategoryTheory.CategoryStruct.comp f g) =
                        CategoryTheory.CategoryStruct.comp ((homEquiv X Y) f) (G.map g))
                    CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_right._autoParam →
                  CategoryTheory.Adjunction.CoreHomEquiv F G

abbrev CategoryTheory.Adjunction.CoreHomEquiv.homEquiv E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            CategoryTheory.Adjunction.CoreHomEquiv F G → (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G.obj Y)

The equivalence between Hom (F X) Y and Hom X (G Y)

theorem CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_left_symm E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (self : CategoryTheory.Adjunction.CoreHomEquiv F G)
  {X' X : C} {Y : D} (f : X' ⟶ X) (g : X ⟶ G.obj Y),
  (self.homEquiv X' Y).symm (CategoryTheory.CategoryStruct.comp f g) =
    CategoryTheory.CategoryStruct.comp (F.map f) ((self.homEquiv X Y).symm g)

The property that describes how homEquiv.symm transforms compositions X' ⟶ X ⟶ G Y

theorem CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_right E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (self : CategoryTheory.Adjunction.CoreHomEquiv F G)
  {X : C} {Y Y' : D} (f : F.obj X ⟶ Y) (g : Y ⟶ Y'),
  (self.homEquiv X Y') (CategoryTheory.CategoryStruct.comp f g) =
    CategoryTheory.CategoryStruct.comp ((self.homEquiv X Y) f) (G.map g)

The property that describes how homEquiv transforms compositions F X ⟶ Y ⟶ Y'

theorem CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_left E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : CategoryTheory.Adjunction.CoreHomEquiv F G)
  {X' X : C} {Y : D} (f : X' ⟶ X) (g : F.obj X ⟶ Y),
  (adj.homEquiv X' Y) (CategoryTheory.CategoryStruct.comp (F.map f) g) =
    CategoryTheory.CategoryStruct.comp f ((adj.homEquiv X Y) g)

theorem CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_right_symm E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : CategoryTheory.Adjunction.CoreHomEquiv F G)
  {X : C} {Y Y' : D} (f : X ⟶ G.obj Y) (g : Y ⟶ Y'),
  (adj.homEquiv X Y').symm (CategoryTheory.CategoryStruct.comp f (G.map g)) =
    CategoryTheory.CategoryStruct.comp ((adj.homEquiv X Y).symm f) g

structure CategoryTheory.Adjunction.CoreUnitCounit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        CategoryTheory.Functor C D → CategoryTheory.Functor D C → Type (max (max (max u₁ u₂) v₁) v₂)

This is an auxiliary data structure useful for constructing adjunctions. See Adjunction.mkOfUnitCounit. This structure won't typically be used anywhere else.

ctor CategoryTheory.Adjunction.CoreUnitCounit.mk E0 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            (unit : CategoryTheory.Functor.id C ⟶ F.comp G) →
              (counit : G.comp F ⟶ CategoryTheory.Functor.id D) →
                autoParam
                    (CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight unit F)
                        (CategoryTheory.CategoryStruct.comp (F.associator G F).hom (F.whiskerLeft counit)) =
                      CategoryTheory.NatTrans.id ((CategoryTheory.Functor.id C).comp F))
                    CategoryTheory.Adjunction.CoreUnitCounit.left_triangle._autoParam →
                  autoParam
                      (CategoryTheory.CategoryStruct.comp (G.whiskerLeft unit)
                          (CategoryTheory.CategoryStruct.comp (G.associator F G).inv
                            (CategoryTheory.Functor.whiskerRight counit G)) =
                        CategoryTheory.NatTrans.id (G.comp (CategoryTheory.Functor.id C)))
                      CategoryTheory.Adjunction.CoreUnitCounit.right_triangle._autoParam →
                    CategoryTheory.Adjunction.CoreUnitCounit F G

abbrev CategoryTheory.Adjunction.CoreUnitCounit.unit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            CategoryTheory.Adjunction.CoreUnitCounit F G → (CategoryTheory.Functor.id C ⟶ F.comp G)

The unit of an adjunction between F and G

abbrev CategoryTheory.Adjunction.CoreUnitCounit.counit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            CategoryTheory.Adjunction.CoreUnitCounit F G → (G.comp F ⟶ CategoryTheory.Functor.id D)

The counit of an adjunction between F and G

theorem CategoryTheory.Adjunction.CoreUnitCounit.left_triangle E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  (self : CategoryTheory.Adjunction.CoreUnitCounit F G),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight self.unit F)
      (CategoryTheory.CategoryStruct.comp (F.associator G F).hom (F.whiskerLeft self.counit)) =
    CategoryTheory.NatTrans.id ((CategoryTheory.Functor.id C).comp F)

Equality of the composition of the unit, associator, and counit with the identity F ⟶ (F G) F ⟶ F (G F) ⟶ F = NatTrans.id F

theorem CategoryTheory.Adjunction.CoreUnitCounit.right_triangle E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  (self : CategoryTheory.Adjunction.CoreUnitCounit F G),
  CategoryTheory.CategoryStruct.comp (G.whiskerLeft self.unit)
      (CategoryTheory.CategoryStruct.comp (G.associator F G).inv (CategoryTheory.Functor.whiskerRight self.counit G)) =
    CategoryTheory.NatTrans.id (G.comp (CategoryTheory.Functor.id C))

Equality of the composition of the unit, associator, and counit with the identity G ⟶ G (F G) ⟶ (F G) F ⟶ G = NatTrans.id G

def CategoryTheory.Adjunction.mk' E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} → CategoryTheory.Adjunction.CoreHomEquivUnitCounit F G → (F ⊣ G)

Construct an adjunction from the data of a CoreHomEquivUnitCounit, i.e. a hom set equivalence, unit and counit natural transformations together with proofs of the equalities homEquiv_unit and homEquiv_counit relating them to each other.

theorem CategoryTheory.Adjunction.mk'_counit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  (adj : CategoryTheory.Adjunction.CoreHomEquivUnitCounit F G), (CategoryTheory.Adjunction.mk' adj).counit = adj.counit

theorem CategoryTheory.Adjunction.mk'_unit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  (adj : CategoryTheory.Adjunction.CoreHomEquivUnitCounit F G), (CategoryTheory.Adjunction.mk' adj).unit = adj.unit

theorem CategoryTheory.Adjunction.mk'_homEquiv E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  (adj : CategoryTheory.Adjunction.CoreHomEquivUnitCounit F G),
  (CategoryTheory.Adjunction.mk' adj).homEquiv = adj.homEquiv

def CategoryTheory.Adjunction.mkOfHomEquiv E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} → CategoryTheory.Adjunction.CoreHomEquiv F G → (F ⊣ G)

Construct an adjunction between F and G out of a natural bijection between each F.obj X ⟶ Y and X ⟶ G.obj Y.

theorem CategoryTheory.Adjunction.mkOfHomEquiv_counit_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : CategoryTheory.Adjunction.CoreHomEquiv F G)
  (Y : D),
  (CategoryTheory.Adjunction.mkOfHomEquiv adj).counit.app Y =
    (adj.homEquiv (G.obj Y) Y).symm (CategoryTheory.CategoryStruct.id (G.obj Y))

theorem CategoryTheory.Adjunction.mkOfHomEquiv_unit_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : CategoryTheory.Adjunction.CoreHomEquiv F G)
  (X : C),
  (CategoryTheory.Adjunction.mkOfHomEquiv adj).unit.app X =
    (adj.homEquiv X (F.obj X)) (CategoryTheory.CategoryStruct.id (F.obj X))

theorem CategoryTheory.Adjunction.mkOfHomEquiv_homEquiv E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : CategoryTheory.Adjunction.CoreHomEquiv F G),
  (CategoryTheory.Adjunction.mkOfHomEquiv adj).homEquiv = adj.homEquiv

def CategoryTheory.Adjunction.mkOfUnitCounit E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} → CategoryTheory.Adjunction.CoreUnitCounit F G → (F ⊣ G)

Construct an adjunction between functors F and G given a unit and counit for the adjunction satisfying the triangle identities.

theorem CategoryTheory.Adjunction.mkOfUnitCounit_unit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  (adj : CategoryTheory.Adjunction.CoreUnitCounit F G), (CategoryTheory.Adjunction.mkOfUnitCounit adj).unit = adj.unit

theorem CategoryTheory.Adjunction.mkOfUnitCounit_counit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C}
  (adj : CategoryTheory.Adjunction.CoreUnitCounit F G),
  (CategoryTheory.Adjunction.mkOfUnitCounit adj).counit = adj.counit

def CategoryTheory.Adjunction.id E1 #

{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → CategoryTheory.Functor.id C ⊣ CategoryTheory.Functor.id C

The adjunction between the identity functor on a category and itself.

theorem CategoryTheory.Adjunction.id_counit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C],
  CategoryTheory.Adjunction.id.counit =
    CategoryTheory.CategoryStruct.id ((CategoryTheory.Functor.id C).comp (CategoryTheory.Functor.id C))

theorem CategoryTheory.Adjunction.id_unit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C],
  CategoryTheory.Adjunction.id.unit = CategoryTheory.CategoryStruct.id (CategoryTheory.Functor.id C)

instance CategoryTheory.Adjunction.instInhabitedId E0 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] → Inhabited (CategoryTheory.Functor.id C ⊣ CategoryTheory.Functor.id C)

def CategoryTheory.Adjunction.equivHomsetLeftOfNatIso E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F F' : CategoryTheory.Functor C D} → (F ≅ F') → {X : C} → {Y : D} → (F.obj X ⟶ Y) ≃ (F'.obj X ⟶ Y)

If F and G are naturally isomorphic functors, establish an equivalence of hom-sets.

theorem CategoryTheory.Adjunction.equivHomsetRightOfNatIso_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F F' : CategoryTheory.Functor C D} (iso : F ≅ F') {X : C} {Y : D} (f : Y ⟶ F.obj X),
  (CategoryTheory.Adjunction.equivHomsetRightOfNatIso iso) f = CategoryTheory.CategoryStruct.comp f (iso.hom.app X)

def CategoryTheory.Adjunction.equivHomsetRightOfNatIso E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F F' : CategoryTheory.Functor C D} → (F ≅ F') → {X : C} → {Y : D} → (Y ⟶ F.obj X) ≃ (Y ⟶ F'.obj X)

If G and H are naturally isomorphic functors, establish an equivalence of hom-sets.

theorem CategoryTheory.Adjunction.equivHomsetLeftOfNatIso_symm_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F F' : CategoryTheory.Functor C D} (iso : F ≅ F') {X : C} {Y : D} (g : F'.obj X ⟶ Y),
  (CategoryTheory.Adjunction.equivHomsetLeftOfNatIso iso).symm g = CategoryTheory.CategoryStruct.comp (iso.hom.app X) g

theorem CategoryTheory.Adjunction.equivHomsetLeftOfNatIso_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F F' : CategoryTheory.Functor C D} (iso : F ≅ F') {X : C} {Y : D} (f : F.obj X ⟶ Y),
  (CategoryTheory.Adjunction.equivHomsetLeftOfNatIso iso) f = CategoryTheory.CategoryStruct.comp (iso.inv.app X) f

theorem CategoryTheory.Adjunction.equivHomsetRightOfNatIso_symm_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F F' : CategoryTheory.Functor C D} (iso : F ≅ F') {X : C} {Y : D} (g : Y ⟶ F'.obj X),
  (CategoryTheory.Adjunction.equivHomsetRightOfNatIso iso).symm g = CategoryTheory.CategoryStruct.comp g (iso.inv.app X)

def CategoryTheory.Adjunction.ofNatIsoLeft E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F G : CategoryTheory.Functor C D} → {H : CategoryTheory.Functor D C} → (F ⊣ H) → (F ≅ G) → (G ⊣ H)

Transport an adjunction along a natural isomorphism on the left.

theorem CategoryTheory.Adjunction.ofNatIsoRight_unit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F G : CategoryTheory.Functor C D} {H : CategoryTheory.Functor D C} (adj : H ⊣ F) (iso : F ≅ G),
  (adj.ofNatIsoRight iso).unit = CategoryTheory.CategoryStruct.comp adj.unit (H.whiskerLeft iso.hom)

theorem CategoryTheory.Adjunction.ofNatIsoLeft_unit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F G : CategoryTheory.Functor C D} {H : CategoryTheory.Functor D C} (adj : F ⊣ H) (iso : F ≅ G),
  (adj.ofNatIsoLeft iso).unit =
    CategoryTheory.CategoryStruct.comp adj.unit (CategoryTheory.Functor.whiskerRight iso.hom H)

theorem CategoryTheory.Adjunction.ofNatIsoRight_counit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F G : CategoryTheory.Functor C D} {H : CategoryTheory.Functor D C} (adj : H ⊣ F) (iso : F ≅ G),
  (adj.ofNatIsoRight iso).counit =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight iso.inv H) adj.counit

theorem CategoryTheory.Adjunction.ofNatIsoLeft_counit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F G : CategoryTheory.Functor C D} {H : CategoryTheory.Functor D C} (adj : F ⊣ H) (iso : F ≅ G),
  (adj.ofNatIsoLeft iso).counit = CategoryTheory.CategoryStruct.comp (H.whiskerLeft iso.inv) adj.counit

def CategoryTheory.Adjunction.ofNatIsoRight E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F G : CategoryTheory.Functor C D} → {H : CategoryTheory.Functor D C} → (H ⊣ F) → (F ≅ G) → (H ⊣ G)

Transport an adjunction along a natural isomorphism on the right.

theorem CategoryTheory.Adjunction.homEquiv_ofNatIsoLeft_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F G : CategoryTheory.Functor C D} {H : CategoryTheory.Functor D C} (adj : F ⊣ H) (iso : F ≅ G) {X : C} {Y : D}
  (f : G.obj X ⟶ Y),
  ((adj.ofNatIsoLeft iso).homEquiv X Y) f = (adj.homEquiv X Y) (CategoryTheory.CategoryStruct.comp (iso.hom.app X) f)

theorem CategoryTheory.Adjunction.homEquiv_ofNatIsoLeft_symm_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F G : CategoryTheory.Functor C D} {H : CategoryTheory.Functor D C} (adj : F ⊣ H) (iso : F ≅ G) {X : C} {Y : D}
  (f : X ⟶ H.obj Y),
  ((adj.ofNatIsoLeft iso).homEquiv X Y).symm f =
    CategoryTheory.CategoryStruct.comp (iso.inv.app X) ((adj.homEquiv X Y).symm f)

theorem CategoryTheory.Adjunction.homEquiv_ofNatIsoRight_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G H : CategoryTheory.Functor D C} (adj : F ⊣ G) (iso : G ≅ H) {X : C} {Y : D}
  (f : F.obj X ⟶ Y),
  ((adj.ofNatIsoRight iso).homEquiv X Y) f = CategoryTheory.CategoryStruct.comp ((adj.homEquiv X Y) f) (iso.hom.app Y)

theorem CategoryTheory.Adjunction.homEquiv_ofNatIsoRight_symm_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G H : CategoryTheory.Functor D C} (adj : F ⊣ G) (iso : G ≅ H) {X : C} {Y : D}
  (f : X ⟶ H.obj Y),
  ((adj.ofNatIsoRight iso).homEquiv X Y).symm f =
    (adj.homEquiv X Y).symm (CategoryTheory.CategoryStruct.comp f (iso.inv.app Y))

def CategoryTheory.Adjunction.compYonedaIso E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₁, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            (F ⊣ G) →
              (G.comp CategoryTheory.yoneda ≅
                CategoryTheory.yoneda.comp ((CategoryTheory.Functor.whiskeringLeft Cᵒᵖ Dᵒᵖ (Type v₁)).obj F.op))

The isomorphism which an adjunction F ⊣ G induces on G ⋙ yoneda. This states that Adjunction.homEquiv is natural in both arguments.

theorem CategoryTheory.Adjunction.compYonedaIso_inv_app_app_hom_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₁, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : D) (X_1 : Cᵒᵖ)
  (x : F.obj (Opposite.unop X_1) ⟶ X),
  (CategoryTheory.ConcreteCategory.hom ((adj.compYonedaIso.inv.app X).app X_1)) x =
    CategoryTheory.CategoryStruct.comp (adj.unit.app (Opposite.unop X_1)) (G.map x)

theorem CategoryTheory.Adjunction.compYonedaIso_hom_app_app_hom_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₁, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : D) (X_1 : Cᵒᵖ)
  (x : Opposite.unop X_1 ⟶ G.obj X),
  (CategoryTheory.ConcreteCategory.hom ((adj.compYonedaIso.hom.app X).app X_1)) x =
    CategoryTheory.CategoryStruct.comp (F.map x) (adj.counit.app X)

def CategoryTheory.Adjunction.compCoyonedaIso E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₁, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            (F ⊣ G) →
              (F.op.comp CategoryTheory.coyoneda ≅
                CategoryTheory.coyoneda.comp ((CategoryTheory.Functor.whiskeringLeft D C (Type v₁)).obj G))

The isomorphism which an adjunction F ⊣ G induces on F.op ⋙ coyoneda. This states that Adjunction.homEquiv is natural in both arguments.

theorem CategoryTheory.Adjunction.compCoyonedaIso_inv_app_app_hom_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₁, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : Cᵒᵖ) (X_1 : D)
  (x : Opposite.unop X ⟶ G.obj X_1),
  (CategoryTheory.ConcreteCategory.hom ((adj.compCoyonedaIso.inv.app X).app X_1)) x =
    CategoryTheory.CategoryStruct.comp (F.map x) (adj.counit.app X_1)

theorem CategoryTheory.Adjunction.compCoyonedaIso_hom_app_app_hom_apply E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₁, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : Cᵒᵖ) (X_1 : D)
  (x : F.obj (Opposite.unop X) ⟶ X_1),
  (CategoryTheory.ConcreteCategory.hom ((adj.compCoyonedaIso.hom.app X).app X_1)) x =
    CategoryTheory.CategoryStruct.comp (adj.unit.app (Opposite.unop X)) (G.map x)

def CategoryTheory.Adjunction.compUliftCoyonedaIso E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            (F ⊣ G) →
              (F.op.comp CategoryTheory.uliftCoyoneda.{max w v₁, v₂, u₂} ≅
                CategoryTheory.uliftCoyoneda.{max w v₂, v₁, u₁}.comp
                  ((CategoryTheory.Functor.whiskeringLeft D C (Type (max (max w v₂) v₁))).obj G))

The isomorphism which an adjunction F ⊣ G induces on F.op ⋙ uliftCoyoneda. This states that Adjunction.homEquiv is natural in both arguments.

theorem CategoryTheory.Adjunction.compUliftCoyonedaIso_hom_app_app_hom_apply_down E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : Cᵒᵖ) (X_1 : D)
  (x : ULift.{max v₁ w, v₂} (F.obj (Opposite.unop X) ⟶ X_1)),
  ((CategoryTheory.ConcreteCategory.hom ((adj.compUliftCoyonedaIso.hom.app X).app X_1)) x).down =
    CategoryTheory.CategoryStruct.comp (adj.unit.app (Opposite.unop X)) (G.map x.down)

theorem CategoryTheory.Adjunction.compUliftCoyonedaIso_inv_app_app_hom_apply_down E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) (X : Cᵒᵖ) (X_1 : D)
  (x : ULift.{max v₂ w, v₁} (Opposite.unop X ⟶ G.obj X_1)),
  ((CategoryTheory.ConcreteCategory.hom ((adj.compUliftCoyonedaIso.inv.app X).app X_1)) x).down =
    CategoryTheory.CategoryStruct.comp (F.map x.down) (adj.counit.app X_1)

def CategoryTheory.Adjunction.comp E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {E : Type u₃} →
          [inst_2 : CategoryTheory.Category.{v₃, u₃} E] →
            {F : CategoryTheory.Functor C D} →
              {G : CategoryTheory.Functor D C} →
                {H : CategoryTheory.Functor D E} →
                  {I : CategoryTheory.Functor E D} → (F ⊣ G) → (H ⊣ I) → (F.comp H ⊣ I.comp G)

Composition of adjunctions.

theorem CategoryTheory.Adjunction.comp_counit E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] {F : CategoryTheory.Functor C D}
  {G : CategoryTheory.Functor D C} {H : CategoryTheory.Functor D E} {I : CategoryTheory.Functor E D} (adj₁ : F ⊣ G)
  (adj₂ : H ⊣ I),
  (adj₁.comp adj₂).counit =
    CategoryTheory.CategoryStruct.comp ((I.comp G).associator F H).inv
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight (I.associator G F).hom H)
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight (I.whiskerLeft adj₁.counit) H)
          (CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight I.rightUnitor.hom H) adj₂.counit)))

theorem CategoryTheory.Adjunction.comp_unit E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] {F : CategoryTheory.Functor C D}
  {G : CategoryTheory.Functor D C} {H : CategoryTheory.Functor D E} {I : CategoryTheory.Functor E D} (adj₁ : F ⊣ G)
  (adj₂ : H ⊣ I),
  (adj₁.comp adj₂).unit =
    CategoryTheory.CategoryStruct.comp adj₁.unit
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight F.rightUnitor.inv G)
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight (F.whiskerLeft adj₂.unit) G)
          (CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.whiskerRight (F.associator H I).inv G)
            ((F.comp H).associator I G).hom)))

theorem CategoryTheory.Adjunction.comp_unit_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] {F : CategoryTheory.Functor C D}
  {G : CategoryTheory.Functor D C} {H : CategoryTheory.Functor D E} {I : CategoryTheory.Functor E D} (adj₁ : F ⊣ G)
  (adj₂ : H ⊣ I) (X : C),
  (adj₁.comp adj₂).unit.app X = CategoryTheory.CategoryStruct.comp (adj₁.unit.app X) (G.map (adj₂.unit.app (F.obj X)))

theorem CategoryTheory.Adjunction.comp_counit_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] {F : CategoryTheory.Functor C D}
  {G : CategoryTheory.Functor D C} {H : CategoryTheory.Functor D E} {I : CategoryTheory.Functor E D} (adj₁ : F ⊣ G)
  (adj₂ : H ⊣ I) (X : E),
  (adj₁.comp adj₂).counit.app X =
    CategoryTheory.CategoryStruct.comp (H.map (adj₁.counit.app (I.obj X))) (adj₂.counit.app X)

theorem CategoryTheory.Adjunction.comp_unit_app_assoc E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] {F : CategoryTheory.Functor C D}
  {G : CategoryTheory.Functor D C} {H : CategoryTheory.Functor D E} {I : CategoryTheory.Functor E D} (adj₁ : F ⊣ G)
  (adj₂ : H ⊣ I) (X : C) {Z : C} (h : G.obj (I.obj (H.obj (F.obj X))) ⟶ Z),
  CategoryTheory.CategoryStruct.comp ((adj₁.comp adj₂).unit.app X) h =
    CategoryTheory.CategoryStruct.comp (adj₁.unit.app X)
      (CategoryTheory.CategoryStruct.comp (G.map (adj₂.unit.app (F.obj X))) h)

theorem CategoryTheory.Adjunction.comp_counit_app_assoc E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] {F : CategoryTheory.Functor C D}
  {G : CategoryTheory.Functor D C} {H : CategoryTheory.Functor D E} {I : CategoryTheory.Functor E D} (adj₁ : F ⊣ G)
  (adj₂ : H ⊣ I) (X : E) {Z : E} (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp ((adj₁.comp adj₂).counit.app X) h =
    CategoryTheory.CategoryStruct.comp (H.map (adj₁.counit.app (I.obj X)))
      (CategoryTheory.CategoryStruct.comp (adj₂.counit.app X) h)

theorem CategoryTheory.Adjunction.comp_homEquiv E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] {F : CategoryTheory.Functor C D}
  {G : CategoryTheory.Functor D C} {H : CategoryTheory.Functor D E} {I : CategoryTheory.Functor E D} (adj₁ : F ⊣ G)
  (adj₂ : H ⊣ I),
  (adj₁.comp adj₂).homEquiv = fun x x_1 ↦ (adj₂.homEquiv (F.obj x) x_1).trans (adj₁.homEquiv x (I.obj x_1))

def CategoryTheory.Adjunction.leftAdjointOfEquiv E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {G : CategoryTheory.Functor D C} →
          {F_obj : C → D} →
            (e : (X : C) → (Y : D) → (F_obj X ⟶ Y) ≃ (X ⟶ G.obj Y)) →
              (∀ (X : C) (Y Y' : D) (g : Y ⟶ Y') (h : F_obj X ⟶ Y),
                  (e X Y') (CategoryTheory.CategoryStruct.comp h g) =
                    CategoryTheory.CategoryStruct.comp ((e X Y) h) (G.map g)) →
                CategoryTheory.Functor C D

Construct a left adjoint functor to G, given the functor's value on objects F_obj and a bijection e between F_obj X ⟶ Y and X ⟶ G.obj Y satisfying a naturality law he : ∀ X Y Y' g h, e X Y' (h ≫ g) = e X Y h ≫ G.map g. Dual to rightAdjointOfEquiv.

theorem CategoryTheory.Adjunction.leftAdjointOfEquiv_obj E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {G : CategoryTheory.Functor D C} {F_obj : C → D} (e : (X : C) → (Y : D) → (F_obj X ⟶ Y) ≃ (X ⟶ G.obj Y))
  (he :
    ∀ (X : C) (Y Y' : D) (g : Y ⟶ Y') (h : F_obj X ⟶ Y),
      (e X Y') (CategoryTheory.CategoryStruct.comp h g) = CategoryTheory.CategoryStruct.comp ((e X Y) h) (G.map g))
  (a : C), (CategoryTheory.Adjunction.leftAdjointOfEquiv e he).obj a = F_obj a

theorem CategoryTheory.Adjunction.leftAdjointOfEquiv_map E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {G : CategoryTheory.Functor D C} {F_obj : C → D} (e : (X : C) → (Y : D) → (F_obj X ⟶ Y) ≃ (X ⟶ G.obj Y))
  (he :
    ∀ (X : C) (Y Y' : D) (g : Y ⟶ Y') (h : F_obj X ⟶ Y),
      (e X Y') (CategoryTheory.CategoryStruct.comp h g) = CategoryTheory.CategoryStruct.comp ((e X Y) h) (G.map g))
  {X X' : C} (f : X ⟶ X'),
  (CategoryTheory.Adjunction.leftAdjointOfEquiv e he).map f =
    (e X (F_obj X')).symm
      (CategoryTheory.CategoryStruct.comp f ((e X' (F_obj X')) (CategoryTheory.CategoryStruct.id (F_obj X'))))

def CategoryTheory.Adjunction.adjunctionOfEquivLeft E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {G : CategoryTheory.Functor D C} →
          {F_obj : C → D} →
            (e : (X : C) → (Y : D) → (F_obj X ⟶ Y) ≃ (X ⟶ G.obj Y)) →
              (he :
                  ∀ (X : C) (Y Y' : D) (g : Y ⟶ Y') (h : F_obj X ⟶ Y),
                    (e X Y') (CategoryTheory.CategoryStruct.comp h g) =
                      CategoryTheory.CategoryStruct.comp ((e X Y) h) (G.map g)) →
                CategoryTheory.Adjunction.leftAdjointOfEquiv e he ⊣ G

Show that the functor given by leftAdjointOfEquiv is indeed left adjoint to G. Dual to adjunctionOfEquivRight.

theorem CategoryTheory.Adjunction.adjunctionOfEquivLeft_counit_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {G : CategoryTheory.Functor D C} {F_obj : C → D} (e : (X : C) → (Y : D) → (F_obj X ⟶ Y) ≃ (X ⟶ G.obj Y))
  (he :
    ∀ (X : C) (Y Y' : D) (g : Y ⟶ Y') (h : F_obj X ⟶ Y),
      (e X Y') (CategoryTheory.CategoryStruct.comp h g) = CategoryTheory.CategoryStruct.comp ((e X Y) h) (G.map g))
  (Y : D),
  (CategoryTheory.Adjunction.adjunctionOfEquivLeft e he).counit.app Y =
    (e (G.obj Y) Y).symm (CategoryTheory.CategoryStruct.id (G.obj Y))

theorem CategoryTheory.Adjunction.adjunctionOfEquivLeft_unit_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {G : CategoryTheory.Functor D C} {F_obj : C → D} (e : (X : C) → (Y : D) → (F_obj X ⟶ Y) ≃ (X ⟶ G.obj Y))
  (he :
    ∀ (X : C) (Y Y' : D) (g : Y ⟶ Y') (h : F_obj X ⟶ Y),
      (e X Y') (CategoryTheory.CategoryStruct.comp h g) = CategoryTheory.CategoryStruct.comp ((e X Y) h) (G.map g))
  (X : C),
  (CategoryTheory.Adjunction.adjunctionOfEquivLeft e he).unit.app X =
    (e X (F_obj X)) (CategoryTheory.CategoryStruct.id (F_obj X))

def CategoryTheory.Adjunction.rightAdjointOfEquiv E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G_obj : D → C} →
            (e : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G_obj Y)) →
              (∀ (X' X : C) (Y : D) (f : X' ⟶ X) (g : F.obj X ⟶ Y),
                  (e X' Y) (CategoryTheory.CategoryStruct.comp (F.map f) g) =
                    CategoryTheory.CategoryStruct.comp f ((e X Y) g)) →
                CategoryTheory.Functor D C

Construct a right adjoint functor to F, given the functor's value on objects G_obj and a bijection e between F.obj X ⟶ Y and X ⟶ G_obj Y satisfying a naturality law he : ∀ X' X Y f g, e X' Y (F.map f ≫ g) = f ≫ e X Y g. Dual to leftAdjointOfEquiv.

theorem CategoryTheory.Adjunction.rightAdjointOfEquiv_obj E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G_obj : D → C} (e : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G_obj Y))
  (he :
    ∀ (X' X : C) (Y : D) (f : X' ⟶ X) (g : F.obj X ⟶ Y),
      (e X' Y) (CategoryTheory.CategoryStruct.comp (F.map f) g) = CategoryTheory.CategoryStruct.comp f ((e X Y) g))
  (a : D), (CategoryTheory.Adjunction.rightAdjointOfEquiv e he).obj a = G_obj a

theorem CategoryTheory.Adjunction.rightAdjointOfEquiv_map E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G_obj : D → C} (e : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G_obj Y))
  (he :
    ∀ (X' X : C) (Y : D) (f : X' ⟶ X) (g : F.obj X ⟶ Y),
      (e X' Y) (CategoryTheory.CategoryStruct.comp (F.map f) g) = CategoryTheory.CategoryStruct.comp f ((e X Y) g))
  {Y Y' : D} (g : Y ⟶ Y'),
  (CategoryTheory.Adjunction.rightAdjointOfEquiv e he).map g =
    (e (G_obj Y) Y')
      (CategoryTheory.CategoryStruct.comp ((e (G_obj Y) Y).symm (CategoryTheory.CategoryStruct.id (G_obj Y))) g)

def CategoryTheory.Adjunction.adjunctionOfEquivRight E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G_obj : D → C} →
            (e : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G_obj Y)) →
              (he :
                  ∀ (X' X : C) (Y : D) (f : X' ⟶ X) (g : F.obj X ⟶ Y),
                    (e X' Y) (CategoryTheory.CategoryStruct.comp (F.map f) g) =
                      CategoryTheory.CategoryStruct.comp f ((e X Y) g)) →
                F ⊣ CategoryTheory.Adjunction.rightAdjointOfEquiv e he

Show that the functor given by rightAdjointOfEquiv is indeed right adjoint to F. Dual to adjunctionOfEquivLeft.

theorem CategoryTheory.Adjunction.adjunctionOfEquivRight_counit_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G_obj : D → C} (e : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G_obj Y))
  (he :
    ∀ (X' X : C) (Y : D) (f : X' ⟶ X) (g : F.obj X ⟶ Y),
      (e X' Y) (CategoryTheory.CategoryStruct.comp (F.map f) g) = CategoryTheory.CategoryStruct.comp f ((e X Y) g))
  (Y : D),
  (CategoryTheory.Adjunction.adjunctionOfEquivRight e he).counit.app Y =
    (e (G_obj Y) Y).symm (CategoryTheory.CategoryStruct.id (G_obj Y))

theorem CategoryTheory.Adjunction.adjunctionOfEquivRight_unit_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G_obj : D → C} (e : (X : C) → (Y : D) → (F.obj X ⟶ Y) ≃ (X ⟶ G_obj Y))
  (he :
    ∀ (X' X : C) (Y : D) (f : X' ⟶ X) (g : F.obj X ⟶ Y),
      (e X' Y) (CategoryTheory.CategoryStruct.comp (F.map f) g) = CategoryTheory.CategoryStruct.comp f ((e X Y) g))
  (X : C),
  (CategoryTheory.Adjunction.adjunctionOfEquivRight e he).unit.app X =
    (e X (F.obj X)) (CategoryTheory.CategoryStruct.id (F.obj X))

def CategoryTheory.Adjunction.toEquivalence E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            (adj : F ⊣ G) →
              [∀ (X : C), CategoryTheory.IsIso (adj.unit.app X)] →
                [∀ (Y : D), CategoryTheory.IsIso (adj.counit.app Y)] → C ≌ D

If the unit and counit of a given adjunction are (pointwise) isomorphisms, then we can upgrade the adjunction to an equivalence.

theorem CategoryTheory.Adjunction.toEquivalence_inverse E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G)
  [inst_2 : ∀ (X : C), CategoryTheory.IsIso (adj.unit.app X)]
  [inst_3 : ∀ (Y : D), CategoryTheory.IsIso (adj.counit.app Y)], adj.toEquivalence.inverse = G

theorem CategoryTheory.Adjunction.toEquivalence_counitIso_hom_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G)
  [inst_2 : ∀ (X : C), CategoryTheory.IsIso (adj.unit.app X)]
  [inst_3 : ∀ (Y : D), CategoryTheory.IsIso (adj.counit.app Y)] (X : D),
  adj.toEquivalence.counitIso.hom.app X = adj.counit.app X

theorem CategoryTheory.Adjunction.toEquivalence_unitIso_hom_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G)
  [inst_2 : ∀ (X : C), CategoryTheory.IsIso (adj.unit.app X)]
  [inst_3 : ∀ (Y : D), CategoryTheory.IsIso (adj.counit.app Y)] (X : C),
  adj.toEquivalence.unitIso.hom.app X = adj.unit.app X

theorem CategoryTheory.Adjunction.toEquivalence_counitIso_inv_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G)
  [inst_2 : ∀ (X : C), CategoryTheory.IsIso (adj.unit.app X)]
  [inst_3 : ∀ (Y : D), CategoryTheory.IsIso (adj.counit.app Y)] (X : D),
  adj.toEquivalence.counitIso.inv.app X = CategoryTheory.inv (adj.counit.app X)

theorem CategoryTheory.Adjunction.toEquivalence_unitIso_inv_app E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G)
  [inst_2 : ∀ (X : C), CategoryTheory.IsIso (adj.unit.app X)]
  [inst_3 : ∀ (Y : D), CategoryTheory.IsIso (adj.counit.app Y)] (X : C),
  adj.toEquivalence.unitIso.inv.app X = CategoryTheory.inv (adj.unit.app X)

theorem CategoryTheory.Adjunction.toEquivalence_functor E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G)
  [inst_2 : ∀ (X : C), CategoryTheory.IsIso (adj.unit.app X)]
  [inst_3 : ∀ (Y : D), CategoryTheory.IsIso (adj.counit.app Y)], adj.toEquivalence.functor = F

theorem CategoryTheory.Adjunction.map_comp_bijective_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X Y : C} (f : X ⟶ Y) (Z : D),
  (Function.Bijective fun g ↦ CategoryTheory.CategoryStruct.comp (F.map f) g) ↔
    Function.Bijective fun g ↦ CategoryTheory.CategoryStruct.comp f g

theorem CategoryTheory.Adjunction.comp_map_bijective_iff E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) {X Y : D} (g : X ⟶ Y) (Z : C),
  (Function.Bijective fun f ↦ CategoryTheory.CategoryStruct.comp f (G.map g)) ↔
    Function.Bijective fun f ↦ CategoryTheory.CategoryStruct.comp f g

theorem CategoryTheory.Functor.isEquivalence_of_isRightAdjoint E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor C D) [inst_2 : G.IsRightAdjoint]
  [∀ (X : D), CategoryTheory.IsIso ((CategoryTheory.Adjunction.ofIsRightAdjoint G).unit.app X)]
  [∀ (Y : C), CategoryTheory.IsIso ((CategoryTheory.Adjunction.ofIsRightAdjoint G).counit.app Y)], G.IsEquivalence

If the unit and counit for the adjunction corresponding to a right adjoint functor are (pointwise) isomorphisms, then the functor is an equivalence of categories.

def CategoryTheory.Equivalence.toAdjunction E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} → [inst_1 : CategoryTheory.Category.{v₂, u₂} D] → (e : C ≌ D) → e.functor ⊣ e.inverse

The adjunction given by an equivalence of categories. (To obtain the opposite adjunction, simply use e.symm.toAdjunction.)

abbrev CategoryTheory.Equivalence.toAdjunction' E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} → [inst_1 : CategoryTheory.Category.{v₂, u₂} D] → (e : C ≌ D) → e.inverse ⊣ e.functor

toAdjunction' is the dual of ToAdjunction, which we need for to_dual. Please avoid using this directly.

theorem CategoryTheory.Equivalence.toAdjunction_counit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (e : C ≌ D), e.toAdjunction.counit = e.counit

theorem CategoryTheory.Equivalence.toAdjunction_unit E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (e : C ≌ D), e.toAdjunction.unit = e.unit

theorem CategoryTheory.Equivalence.isRightAdjoint_functor E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (e : C ≌ D), e.functor.IsRightAdjoint

theorem CategoryTheory.Equivalence.isLeftAdjoint_functor E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (e : C ≌ D), e.functor.IsLeftAdjoint

theorem CategoryTheory.Equivalence.isLeftAdjoint_inverse E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (e : C ≌ D), e.inverse.IsLeftAdjoint

theorem CategoryTheory.Equivalence.isRightAdjoint_inverse E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (e : C ≌ D), e.inverse.IsRightAdjoint

theorem CategoryTheory.Equivalence.refl_toAdjunction E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C],
  CategoryTheory.Equivalence.refl.toAdjunction = CategoryTheory.Adjunction.id

theorem CategoryTheory.Equivalence.trans_toAdjunction E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (e : C ≌ D) {E : Type u_1} [inst_2 : CategoryTheory.Category.{v_1, u_1} E] (e' : D ≌ E),
  (e.trans e').toAdjunction = e.toAdjunction.comp e'.toAdjunction

instance CategoryTheory.Functor.isLeftAdjoint_comp E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] (F : CategoryTheory.Functor C D)
  (G : CategoryTheory.Functor D E) [F.IsLeftAdjoint] [G.IsLeftAdjoint], (F.comp G).IsLeftAdjoint

If F and G are left adjoints then F ⋙ G is a left adjoint too.

instance CategoryTheory.Functor.isRightAdjoint_comp E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] {F : CategoryTheory.Functor C D}
  {G : CategoryTheory.Functor D E} [F.IsRightAdjoint] [G.IsRightAdjoint], (F.comp G).IsRightAdjoint

If F and G are right adjoints then F ⋙ G is a right adjoint too.

theorem CategoryTheory.Functor.isRightAdjoint_of_iso E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F G : CategoryTheory.Functor C D} (h : F ≅ G) [F.IsRightAdjoint], G.IsRightAdjoint

Transport being a right adjoint along a natural isomorphism.

theorem CategoryTheory.Functor.isLeftAdjoint_of_iso E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F G : CategoryTheory.Functor C D} (h : F ≅ G) [F.IsLeftAdjoint], G.IsLeftAdjoint

Transport being a left adjoint along a natural isomorphism.

def CategoryTheory.Functor.adjunction E1 #

{C : Type u₁} →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    {D : Type u₂} →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (E : CategoryTheory.Functor C D) → [inst_2 : E.IsEquivalence] → E ⊣ E.inv

An equivalence E is left adjoint to its inverse.

instance CategoryTheory.Functor.isLeftAdjoint_of_isEquivalence E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} [F.IsEquivalence], F.IsLeftAdjoint

If F is an equivalence, it's a left adjoint.

instance CategoryTheory.Functor.isRightAdjoint_of_isEquivalence E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D} [F.IsEquivalence], F.IsRightAdjoint

If F is an equivalence, it's a right adjoint.

theorem CategoryTheory.Functor.isLeftAdjoint_comp_iff_right E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] (F : CategoryTheory.Functor C D)
  (G : CategoryTheory.Functor D E) [F.IsEquivalence], (F.comp G).IsLeftAdjoint ↔ G.IsLeftAdjoint

theorem CategoryTheory.Functor.isRightAdjoint_comp_iff_right E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] (F : CategoryTheory.Functor C D)
  (G : CategoryTheory.Functor D E) [F.IsEquivalence], (F.comp G).IsRightAdjoint ↔ G.IsRightAdjoint

theorem CategoryTheory.Functor.isLeftAdjoint_comp_iff_left E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] (F : CategoryTheory.Functor C D)
  (G : CategoryTheory.Functor D E) [G.IsEquivalence], (F.comp G).IsLeftAdjoint ↔ F.IsLeftAdjoint

theorem CategoryTheory.Functor.isRightAdjoint_comp_iff_left E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] (F : CategoryTheory.Functor C D)
  (G : CategoryTheory.Functor D E) [G.IsEquivalence], (F.comp G).IsRightAdjoint ↔ F.IsRightAdjoint