Documentation

Mathlib.CategoryTheory.Adjunction.Basic

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:

There are also typeclasses IsLeftAdjoint / IsRightAdjoint, carrying data witnessing that a given functor is a left or right adjoint. Given [IsLeftAdjoint F], a right adjoint of F can be constructed as rightAdjoint F.

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.

structure CategoryTheory.Adjunction {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] (F : CategoryTheory.Functor C D) (G : 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.

To construct an adjunction between two functors, it's often easier to instead use the constructors mkOfHomEquiv or mkOfUnitCounit. To construct a left adjoint, there are also constructors leftAdjointOfEquiv and adjunctionOfEquivLeft (as well as their duals) which can be simpler in practice.

Uniqueness of adjoints is shown in CategoryTheory.Adjunction.Opposites.

See .

Instances For

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

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      class CategoryTheory.IsLeftAdjoint {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] (left : CategoryTheory.Functor C D) :
      Type (max (max (max u₁ u₂) v₁) v₂)

      A class giving a chosen right adjoint to the functor left.

      Instances
        class CategoryTheory.IsRightAdjoint {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] (right : CategoryTheory.Functor D C) :
        Type (max (max (max u₁ u₂) v₁) v₂)

        A class giving a chosen left adjoint to the functor right.

        Instances

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

          Equations
          Instances For

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

            Equations
            Instances For
              theorem CategoryTheory.Adjunction.homEquiv_id {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) (X : C) :
              (adj.homEquiv X (F.toPrefunctor.obj X)) (CategoryTheory.CategoryStruct.id (F.toPrefunctor.obj X)) = adj.unit.app X
              theorem CategoryTheory.Adjunction.homEquiv_symm_id {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) (X : D) :
              (adj.homEquiv (G.toPrefunctor.obj X) X).symm (CategoryTheory.CategoryStruct.id (G.toPrefunctor.obj X)) = adj.counit.app X
              @[simp]
              theorem CategoryTheory.Adjunction.homEquiv_naturality_left_symm {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) {X' : C} {X : C} {Y : D} (f : X' X) (g : X G.toPrefunctor.obj Y) :
              (adj.homEquiv X' Y).symm (CategoryTheory.CategoryStruct.comp f g) = CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map f) ((adj.homEquiv X Y).symm g)
              @[simp]
              theorem CategoryTheory.Adjunction.homEquiv_naturality_left {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) {X' : C} {X : C} {Y : D} (f : X' X) (g : F.toPrefunctor.obj X Y) :
              (adj.homEquiv X' Y) (CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map f) g) = CategoryTheory.CategoryStruct.comp f ((adj.homEquiv X Y) g)
              @[simp]
              theorem CategoryTheory.Adjunction.homEquiv_naturality_right {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) {X : C} {Y : D} {Y' : D} (f : F.toPrefunctor.obj X Y) (g : Y Y') :
              (adj.homEquiv X Y') (CategoryTheory.CategoryStruct.comp f g) = CategoryTheory.CategoryStruct.comp ((adj.homEquiv X Y) f) (G.toPrefunctor.map g)
              @[simp]
              theorem CategoryTheory.Adjunction.homEquiv_naturality_right_symm {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) {X : C} {Y : D} {Y' : D} (f : X G.toPrefunctor.obj Y) (g : Y Y') :
              (adj.homEquiv X Y').symm (CategoryTheory.CategoryStruct.comp f (G.toPrefunctor.map g)) = CategoryTheory.CategoryStruct.comp ((adj.homEquiv X Y).symm f) g
              @[simp]
              theorem CategoryTheory.Adjunction.left_triangle_components_assoc {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) (X : C) {Z : D} (h : F.toPrefunctor.obj X Z) :
              CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map (adj.unit.app X)) (CategoryTheory.CategoryStruct.comp (adj.counit.app (F.toPrefunctor.obj X)) h) = h
              @[simp]
              theorem CategoryTheory.Adjunction.left_triangle_components {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) (X : C) :
              CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map (adj.unit.app X)) (adj.counit.app (F.toPrefunctor.obj X)) = CategoryTheory.CategoryStruct.id (F.toPrefunctor.obj X)
              @[simp]
              theorem CategoryTheory.Adjunction.right_triangle_components_assoc {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) (Y : D) {Z : C} (h : G.toPrefunctor.obj Y Z) :
              CategoryTheory.CategoryStruct.comp (adj.unit.app (G.toPrefunctor.obj Y)) (CategoryTheory.CategoryStruct.comp (G.toPrefunctor.map (adj.counit.app Y)) h) = h
              @[simp]
              theorem CategoryTheory.Adjunction.right_triangle_components {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) (Y : D) :
              CategoryTheory.CategoryStruct.comp (adj.unit.app (G.toPrefunctor.obj Y)) (G.toPrefunctor.map (adj.counit.app Y)) = CategoryTheory.CategoryStruct.id (G.toPrefunctor.obj Y)
              @[simp]
              theorem CategoryTheory.Adjunction.counit_naturality_assoc {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) {X : D} {Y : D} (f : X Y) {Z : D} (h : Y Z) :
              CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map (G.toPrefunctor.map f)) (CategoryTheory.CategoryStruct.comp (adj.counit.app Y) h) = CategoryTheory.CategoryStruct.comp (adj.counit.app X) (CategoryTheory.CategoryStruct.comp f h)
              @[simp]
              theorem CategoryTheory.Adjunction.counit_naturality {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) {X : D} {Y : D} (f : X Y) :
              CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map (G.toPrefunctor.map f)) (adj.counit.app Y) = CategoryTheory.CategoryStruct.comp (adj.counit.app X) f
              @[simp]
              theorem CategoryTheory.Adjunction.unit_naturality_assoc {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) {X : C} {Y : C} (f : X Y) {Z : C} (h : G.toPrefunctor.obj (F.toPrefunctor.obj Y) Z) :
              CategoryTheory.CategoryStruct.comp (adj.unit.app X) (CategoryTheory.CategoryStruct.comp (G.toPrefunctor.map (F.toPrefunctor.map f)) h) = CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp (adj.unit.app Y) h)
              @[simp]
              theorem CategoryTheory.Adjunction.unit_naturality {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) {X : C} {Y : C} (f : X Y) :
              CategoryTheory.CategoryStruct.comp (adj.unit.app X) (G.toPrefunctor.map (F.toPrefunctor.map f)) = CategoryTheory.CategoryStruct.comp f (adj.unit.app Y)
              theorem CategoryTheory.Adjunction.homEquiv_apply_eq {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) {A : C} {B : D} (f : F.toPrefunctor.obj A B) (g : A G.toPrefunctor.obj B) :
              (adj.homEquiv A B) f = g f = (adj.homEquiv A B).symm g
              theorem CategoryTheory.Adjunction.eq_homEquiv_apply {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F G) {A : C} {B : D} (f : F.toPrefunctor.obj A B) (g : A G.toPrefunctor.obj B) :
              g = (adj.homEquiv A B) f (adj.homEquiv A B).symm g = f

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

              Instances For
                @[simp]
                theorem CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_left_aux {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : CategoryTheory.Adjunction.CoreHomEquiv F G) {X' : C} {X : C} {Y : D} (f : X' X) (g : F.toPrefunctor.obj X Y) :
                CategoryTheory.CategoryStruct.comp ((adj.homEquiv X' (F.toPrefunctor.obj X)) (F.toPrefunctor.map f)) (G.toPrefunctor.map g) = CategoryTheory.CategoryStruct.comp f ((adj.homEquiv X Y) g)
                theorem CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_left {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : CategoryTheory.Adjunction.CoreHomEquiv F G) {X' : C} {X : C} {Y : D} (f : X' X) (g : F.toPrefunctor.obj X Y) :
                (adj.homEquiv X' Y) (CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map f) g) = CategoryTheory.CategoryStruct.comp f ((adj.homEquiv X Y) g)
                @[simp]
                theorem CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_right_symm_aux {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : CategoryTheory.Adjunction.CoreHomEquiv F G) {X : C} {Y : D} {Y' : D} (f : X G.toPrefunctor.obj Y) (g : Y Y') :
                CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map f) ((adj.homEquiv (G.toPrefunctor.obj Y) Y').symm (G.toPrefunctor.map g)) = CategoryTheory.CategoryStruct.comp ((adj.homEquiv X Y).symm f) g
                theorem CategoryTheory.Adjunction.CoreHomEquiv.homEquiv_naturality_right_symm {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : CategoryTheory.Adjunction.CoreHomEquiv F G) {X : C} {Y : D} {Y' : D} (f : X G.toPrefunctor.obj Y) (g : Y Y') :
                (adj.homEquiv X Y').symm (CategoryTheory.CategoryStruct.comp f (G.toPrefunctor.map g)) = CategoryTheory.CategoryStruct.comp ((adj.homEquiv X Y).symm f) g

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

                Instances For
                  @[simp]

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

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

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

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

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

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        Equations
                        • CategoryTheory.Adjunction.instInhabitedAdjunctionId = { default := CategoryTheory.Adjunction.id }
                        def CategoryTheory.Adjunction.equivHomsetLeftOfNatIso {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {F' : CategoryTheory.Functor C D} (iso : F F') {X : C} {Y : D} :
                        (F.toPrefunctor.obj X Y) (F'.toPrefunctor.obj X Y)

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

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          def CategoryTheory.Adjunction.equivHomsetRightOfNatIso {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {G : CategoryTheory.Functor D C} {G' : CategoryTheory.Functor D C} (iso : G G') {X : C} {Y : D} :
                          (X G.toPrefunctor.obj Y) (X G'.toPrefunctor.obj Y)

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

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For

                            Transport an adjunction along a natural isomorphism on the left.

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For

                              Transport an adjunction along a natural isomorphism on the right.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                Composition of adjunctions.

                                See .

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For

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

                                  Equations
                                  • One or more equations did not get rendered due to their size.

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

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  @[simp]
                                  theorem CategoryTheory.Adjunction.leftAdjointOfEquiv_obj {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {G : CategoryTheory.Functor D C} {F_obj : CD} (e : (X : C) → (Y : D) → (F_obj X Y) (X G.toPrefunctor.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.toPrefunctor.map g)) :
                                  ∀ (a : C), (CategoryTheory.Adjunction.leftAdjointOfEquiv e he).toPrefunctor.obj a = F_obj a
                                  @[simp]
                                  theorem CategoryTheory.Adjunction.leftAdjointOfEquiv_map {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {G : CategoryTheory.Functor D C} {F_obj : CD} (e : (X : C) → (Y : D) → (F_obj X Y) (X G.toPrefunctor.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.toPrefunctor.map g)) {X : C} {X' : C} (f : X X') :
                                  (CategoryTheory.Adjunction.leftAdjointOfEquiv e he).toPrefunctor.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.leftAdjointOfEquiv {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {G : CategoryTheory.Functor D C} {F_obj : CD} (e : (X : C) → (Y : D) → (F_obj X Y) (X G.toPrefunctor.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.toPrefunctor.map g)) :

                                  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.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    @[simp]
                                    theorem CategoryTheory.Adjunction.adjunctionOfEquivLeft_counit_app {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {G : CategoryTheory.Functor D C} {F_obj : CD} (e : (X : C) → (Y : D) → (F_obj X Y) (X G.toPrefunctor.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.toPrefunctor.map g)) (Y : D) :
                                    (CategoryTheory.Adjunction.adjunctionOfEquivLeft e he).counit.app Y = (e (G.toPrefunctor.obj Y) Y).symm (CategoryTheory.CategoryStruct.id (G.toPrefunctor.obj Y))
                                    @[simp]
                                    theorem CategoryTheory.Adjunction.adjunctionOfEquivLeft_unit_app {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {G : CategoryTheory.Functor D C} {F_obj : CD} (e : (X : C) → (Y : D) → (F_obj X Y) (X G.toPrefunctor.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.toPrefunctor.map g)) (X : C) :
                                    @[simp]
                                    theorem CategoryTheory.Adjunction.adjunctionOfEquivLeft_homEquiv {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {G : CategoryTheory.Functor D C} {F_obj : CD} (e : (X : C) → (Y : D) → (F_obj X Y) (X G.toPrefunctor.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.toPrefunctor.map g)) (X : C) (Y : D) :
                                    def CategoryTheory.Adjunction.adjunctionOfEquivLeft {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {G : CategoryTheory.Functor D C} {F_obj : CD} (e : (X : C) → (Y : D) → (F_obj X Y) (X G.toPrefunctor.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.toPrefunctor.map g)) :

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

                                    Equations
                                    Instances For
                                      @[simp]
                                      theorem CategoryTheory.Adjunction.rightAdjointOfEquiv_obj {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G_obj : DC} (e : (X : C) → (Y : D) → (F.toPrefunctor.obj X Y) (X G_obj Y)) (he : ∀ (X' X : C) (Y : D) (f : X' X) (g : F.toPrefunctor.obj X Y), (e X' Y) (CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map f) g) = CategoryTheory.CategoryStruct.comp f ((e X Y) g)) :
                                      ∀ (a : D), (CategoryTheory.Adjunction.rightAdjointOfEquiv e he).toPrefunctor.obj a = G_obj a
                                      @[simp]
                                      theorem CategoryTheory.Adjunction.rightAdjointOfEquiv_map {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G_obj : DC} (e : (X : C) → (Y : D) → (F.toPrefunctor.obj X Y) (X G_obj Y)) (he : ∀ (X' X : C) (Y : D) (f : X' X) (g : F.toPrefunctor.obj X Y), (e X' Y) (CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map f) g) = CategoryTheory.CategoryStruct.comp f ((e X Y) g)) {Y : D} {Y' : D} (g : Y Y') :
                                      (CategoryTheory.Adjunction.rightAdjointOfEquiv e he).toPrefunctor.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.rightAdjointOfEquiv {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G_obj : DC} (e : (X : C) → (Y : D) → (F.toPrefunctor.obj X Y) (X G_obj Y)) (he : ∀ (X' X : C) (Y : D) (f : X' X) (g : F.toPrefunctor.obj X Y), (e X' Y) (CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map f) g) = CategoryTheory.CategoryStruct.comp f ((e X Y) g)) :

                                      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 Y Y' g h, e X' Y (F.map f ≫ g) = f ≫ e X Y g. Dual to leftAdjointOfEquiv.

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For
                                        @[simp]
                                        theorem CategoryTheory.Adjunction.adjunctionOfEquivRight_homEquiv {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G_obj : DC} (e : (X : C) → (Y : D) → (F.toPrefunctor.obj X Y) (X G_obj Y)) (he : ∀ (X' X : C) (Y : D) (f : X' X) (g : F.toPrefunctor.obj X Y), (e X' Y) (CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map f) g) = CategoryTheory.CategoryStruct.comp f ((e X Y) g)) (X : C) (Y : D) :
                                        @[simp]
                                        theorem CategoryTheory.Adjunction.adjunctionOfEquivRight_unit_app {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G_obj : DC} (e : (X : C) → (Y : D) → (F.toPrefunctor.obj X Y) (X G_obj Y)) (he : ∀ (X' X : C) (Y : D) (f : X' X) (g : F.toPrefunctor.obj X Y), (e X' Y) (CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map f) g) = CategoryTheory.CategoryStruct.comp f ((e X Y) g)) (X : C) :
                                        (CategoryTheory.Adjunction.adjunctionOfEquivRight e he).unit.app X = (e X (F.toPrefunctor.obj X)) (CategoryTheory.CategoryStruct.id (F.toPrefunctor.obj X))
                                        @[simp]
                                        theorem CategoryTheory.Adjunction.adjunctionOfEquivRight_counit_app {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G_obj : DC} (e : (X : C) → (Y : D) → (F.toPrefunctor.obj X Y) (X G_obj Y)) (he : ∀ (X' X : C) (Y : D) (f : X' X) (g : F.toPrefunctor.obj X Y), (e X' Y) (CategoryTheory.CategoryStruct.comp (F.toPrefunctor.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))
                                        def CategoryTheory.Adjunction.adjunctionOfEquivRight {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [CategoryTheory.Category.{v₂, u₂} D] {F : CategoryTheory.Functor C D} {G_obj : DC} (e : (X : C) → (Y : D) → (F.toPrefunctor.obj X Y) (X G_obj Y)) (he : ∀ (X' X : C) (Y : D) (f : X' X) (g : F.toPrefunctor.obj X Y), (e X' Y) (CategoryTheory.CategoryStruct.comp (F.toPrefunctor.map f) g) = CategoryTheory.CategoryStruct.comp f ((e X Y) g)) :

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

                                        Equations
                                        Instances For
                                          @[simp]
                                          theorem CategoryTheory.Adjunction.toEquivalence_counitIso_hom_app {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [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)] (X : D) :
                                          (CategoryTheory.Adjunction.toEquivalence adj).counitIso.hom.app X = adj.counit.app X
                                          @[simp]
                                          theorem CategoryTheory.Adjunction.toEquivalence_counitIso_inv_app {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [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)] (X : D) :
                                          (CategoryTheory.Adjunction.toEquivalence adj).counitIso.inv.app X = CategoryTheory.inv (adj.counit.app X)
                                          @[simp]
                                          theorem CategoryTheory.Adjunction.toEquivalence_unitIso_hom_app {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [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)] (X : C) :
                                          (CategoryTheory.Adjunction.toEquivalence adj).unitIso.hom.app X = adj.unit.app X
                                          @[simp]
                                          theorem CategoryTheory.Adjunction.toEquivalence_unitIso_inv_app {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [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)] (X : C) :
                                          (CategoryTheory.Adjunction.toEquivalence adj).unitIso.inv.app X = CategoryTheory.inv (adj.unit.app X)
                                          noncomputable def CategoryTheory.Adjunction.toEquivalence {C : Type u₁} [CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [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.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For

                                            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.

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For
                                              @[simp]
                                              @[simp]

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

                                              Equations
                                              Instances For

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

                                                Equations