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.Monoidal.Closed.Functor

15 declarations. Mathlib docs · Source

Cartesian closed functors

Define the exponential comparison morphisms for a functor which preserves binary products, and use them to define a Cartesian closed functor: one which (naturally) preserves exponentials.

Define the Frobenius morphism, and show it is an isomorphism iff the exponential comparison is an isomorphism.

TODO

Some of the results here are true more generally for closed objects and for closed monoidal categories, and these could be generalised.

References

https://ncatlab.org/nlab/show/cartesian+closed+functor https://ncatlab.org/nlab/show/Frobenius+reciprocity

Tags

Frobenius reciprocity, Cartesian closed functor

theorem CategoryTheory.CartesianMonoidalCategory.prodComparisonNatIso.congr_simp E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.CartesianMonoidalCategory C]
  {D : Type u₁} [inst_2 : CategoryTheory.Category.{v₁, u₁} D] [inst_3 : CategoryTheory.CartesianMonoidalCategory D]
  (F : CategoryTheory.Functor C D) (A : C)
  [inst_4 : ∀ (B : C), CategoryTheory.Limits.PreservesLimit (CategoryTheory.Limits.pair A B) F],
  CategoryTheory.CartesianMonoidalCategory.prodComparisonNatIso F A =
    CategoryTheory.CartesianMonoidalCategory.prodComparisonNatIso F A

def CategoryTheory.frobeniusMorphism E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {D : Type u'} →
      [inst_1 : CategoryTheory.Category.{v, u'} D] →
        [inst_2 : CategoryTheory.CartesianMonoidalCategory C] →
          [inst_3 : CategoryTheory.CartesianMonoidalCategory D] →
            (F : CategoryTheory.Functor C D) →
              {L : CategoryTheory.Functor D C} →
                (L ⊣ F) →
                  (A : C) →
                    CategoryTheory.TwoSquare (CategoryTheory.MonoidalCategory.tensorLeft (F.obj A)) L L
                      (CategoryTheory.MonoidalCategory.tensorLeft A)

The Frobenius morphism for an adjunction L ⊣ F at A is given by the morphism

L(FA ⨯ B) ⟶ LFA ⨯ LB ⟶ A ⨯ LB

natural in B, where the first morphism is the product comparison and the latter uses the counit of the adjunction.

We will show that if C and D are Cartesian closed, then this morphism is an isomorphism for all A iff F is a Cartesian closed functor, i.e. it preserves exponentials.

instance CategoryTheory.frobeniusMorphism_iso_of_preserves_binary_products E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} D]
  [inst_2 : CategoryTheory.CartesianMonoidalCategory C] [inst_3 : CategoryTheory.CartesianMonoidalCategory D]
  (F : CategoryTheory.Functor C D) {L : CategoryTheory.Functor D C} (h : L ⊣ F) (A : C)
  [CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) L] [F.Full]
  [F.Faithful], CategoryTheory.IsIso (CategoryTheory.frobeniusMorphism F h A)

If F is full and faithful and has a left adjoint L which preserves binary products, then the Frobenius morphism is an isomorphism.

def CategoryTheory.expComparison E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {D : Type u'} →
      [inst_1 : CategoryTheory.Category.{v, u'} D] →
        [inst_2 : CategoryTheory.CartesianMonoidalCategory C] →
          [inst_3 : CategoryTheory.CartesianMonoidalCategory D] →
            (F : CategoryTheory.Functor C D) →
              [inst_4 : CategoryTheory.MonoidalClosed C] →
                [inst_5 : CategoryTheory.MonoidalClosed D] →
                  [CategoryTheory.Limits.PreservesLimitsOfShape
                        (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F] →
                    (A : C) → CategoryTheory.TwoSquare (CategoryTheory.ihom A) F F (CategoryTheory.ihom (F.obj A))

The exponential comparison map. F is a Cartesian closed functor if this is an iso for all A.

theorem CategoryTheory.expComparison_ev E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} D]
  [inst_2 : CategoryTheory.CartesianMonoidalCategory C] [inst_3 : CategoryTheory.CartesianMonoidalCategory D]
  (F : CategoryTheory.Functor C D) [inst_4 : CategoryTheory.MonoidalClosed C] [inst_5 : CategoryTheory.MonoidalClosed D]
  [inst_6 : CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F]
  (A B : C),
  CategoryTheory.CategoryStruct.comp
      (CategoryTheory.MonoidalCategoryStruct.whiskerLeft (F.obj A) ((CategoryTheory.expComparison F A).app B))
      ((CategoryTheory.ihom.ev (F.obj A)).app (F.obj B)) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.inv (CategoryTheory.CartesianMonoidalCategory.prodComparison F A (A ⟹ B)))
      (F.map ((CategoryTheory.ihom.ev A).app B))

theorem CategoryTheory.coev_expComparison E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} D]
  [inst_2 : CategoryTheory.CartesianMonoidalCategory C] [inst_3 : CategoryTheory.CartesianMonoidalCategory D]
  (F : CategoryTheory.Functor C D) [inst_4 : CategoryTheory.MonoidalClosed C] [inst_5 : CategoryTheory.MonoidalClosed D]
  [inst_6 : CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F]
  (A B : C),
  CategoryTheory.CategoryStruct.comp (F.map ((CategoryTheory.ihom.coev A).app B))
      ((CategoryTheory.expComparison F A).app (CategoryTheory.MonoidalCategoryStruct.tensorObj A B)) =
    CategoryTheory.CategoryStruct.comp ((CategoryTheory.ihom.coev (F.obj A)).app (F.obj B))
      ((CategoryTheory.ihom (F.obj A)).map
        (CategoryTheory.inv (CategoryTheory.CartesianMonoidalCategory.prodComparison F A B)))

theorem CategoryTheory.uncurry_expComparison E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} D]
  [inst_2 : CategoryTheory.CartesianMonoidalCategory C] [inst_3 : CategoryTheory.CartesianMonoidalCategory D]
  (F : CategoryTheory.Functor C D) [inst_4 : CategoryTheory.MonoidalClosed C] [inst_5 : CategoryTheory.MonoidalClosed D]
  [inst_6 : CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F]
  (A B : C),
  CategoryTheory.MonoidalClosed.uncurry ((CategoryTheory.expComparison F A).app B) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.inv (CategoryTheory.CartesianMonoidalCategory.prodComparison F A (A ⟹ B)))
      (F.map ((CategoryTheory.ihom.ev A).app B))

theorem CategoryTheory.expComparison_whiskerLeft E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} D]
  [inst_2 : CategoryTheory.CartesianMonoidalCategory C] [inst_3 : CategoryTheory.CartesianMonoidalCategory D]
  (F : CategoryTheory.Functor C D) [inst_4 : CategoryTheory.MonoidalClosed C] [inst_5 : CategoryTheory.MonoidalClosed D]
  [inst_6 : CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F]
  {A A' : C} (f : A' ⟶ A),
  (CategoryTheory.expComparison F A).whiskerBottom (CategoryTheory.MonoidalClosed.pre (F.map f)) =
    (CategoryTheory.expComparison F A').whiskerTop (CategoryTheory.MonoidalClosed.pre f)

The exponential comparison map is natural in A.

class CategoryTheory.MonoidalClosedFunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {D : Type u'} →
      [inst_1 : CategoryTheory.Category.{v, u'} D] →
        [inst_2 : CategoryTheory.CartesianMonoidalCategory C] →
          [inst_3 : CategoryTheory.CartesianMonoidalCategory D] →
            (F : CategoryTheory.Functor C D) →
              [CategoryTheory.MonoidalClosed C] →
                [CategoryTheory.MonoidalClosed D] →
                  [CategoryTheory.Limits.PreservesLimitsOfShape
                        (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F] →
                    Prop

The functor F is Cartesian closed (i.e. preserves exponentials) if each natural transformation expComparison F A is an isomorphism

ctor CategoryTheory.MonoidalClosedFunctor.mk E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} D]
  [inst_2 : CategoryTheory.CartesianMonoidalCategory C] [inst_3 : CategoryTheory.CartesianMonoidalCategory D]
  {F : CategoryTheory.Functor C D} [inst_4 : CategoryTheory.MonoidalClosed C] [inst_5 : CategoryTheory.MonoidalClosed D]
  [inst_6 : CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F],
  (∀ (A : C), CategoryTheory.IsIso (CategoryTheory.expComparison F A)) → CategoryTheory.MonoidalClosedFunctor F

instance CategoryTheory.MonoidalClosedFunctor.comparison_iso E0 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {D : Type u'} {inst_1 : CategoryTheory.Category.{v, u'} D}
  {inst_2 : CategoryTheory.CartesianMonoidalCategory C} {inst_3 : CategoryTheory.CartesianMonoidalCategory D}
  {F : CategoryTheory.Functor C D} {inst_4 : CategoryTheory.MonoidalClosed C} {inst_5 : CategoryTheory.MonoidalClosed D}
  {inst_6 : CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F}
  [self : CategoryTheory.MonoidalClosedFunctor F] (A : C), CategoryTheory.IsIso (CategoryTheory.expComparison F A)

theorem CategoryTheory.frobeniusMorphism_mate E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} D]
  [inst_2 : CategoryTheory.CartesianMonoidalCategory C] [inst_3 : CategoryTheory.CartesianMonoidalCategory D]
  (F : CategoryTheory.Functor C D) {L : CategoryTheory.Functor D C} [inst_4 : CategoryTheory.MonoidalClosed C]
  [inst_5 : CategoryTheory.MonoidalClosed D]
  [inst_6 : CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F]
  (h : L ⊣ F) (A : C),
  (CategoryTheory.conjugateEquiv (h.comp (CategoryTheory.ihom.adjunction A))
        ((CategoryTheory.ihom.adjunction (F.obj A)).comp h))
      (CategoryTheory.frobeniusMorphism F h A) =
    CategoryTheory.expComparison F A

theorem CategoryTheory.frobeniusMorphism_iso_of_expComparison_iso E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} D]
  [inst_2 : CategoryTheory.CartesianMonoidalCategory C] [inst_3 : CategoryTheory.CartesianMonoidalCategory D]
  (F : CategoryTheory.Functor C D) {L : CategoryTheory.Functor D C} [inst_4 : CategoryTheory.MonoidalClosed C]
  [inst_5 : CategoryTheory.MonoidalClosed D]
  [inst_6 : CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F]
  (h : L ⊣ F) (A : C) [i : CategoryTheory.IsIso (CategoryTheory.expComparison F A)],
  CategoryTheory.IsIso (CategoryTheory.frobeniusMorphism F h A)

If the exponential comparison transformation (at A) is an isomorphism, then the Frobenius morphism at A is an isomorphism.

theorem CategoryTheory.expComparison_iso_of_frobeniusMorphism_iso E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} D]
  [inst_2 : CategoryTheory.CartesianMonoidalCategory C] [inst_3 : CategoryTheory.CartesianMonoidalCategory D]
  (F : CategoryTheory.Functor C D) {L : CategoryTheory.Functor D C} [inst_4 : CategoryTheory.MonoidalClosed C]
  [inst_5 : CategoryTheory.MonoidalClosed D]
  [inst_6 : CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F]
  (h : L ⊣ F) (A : C) [i : CategoryTheory.IsIso (CategoryTheory.frobeniusMorphism F h A)],
  CategoryTheory.IsIso (CategoryTheory.expComparison F A)

If the Frobenius morphism at A is an isomorphism, then the exponential comparison transformation (at A) is an isomorphism.

theorem CategoryTheory.cartesianClosedFunctorOfLeftAdjointPreservesBinaryProducts E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} D]
  [inst_2 : CategoryTheory.CartesianMonoidalCategory C] [inst_3 : CategoryTheory.CartesianMonoidalCategory D]
  (F : CategoryTheory.Functor C D) {L : CategoryTheory.Functor D C} [inst_4 : CategoryTheory.MonoidalClosed C]
  [inst_5 : CategoryTheory.MonoidalClosed D]
  [inst_6 : CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) F]
  (h : L ⊣ F) [F.Full] [F.Faithful]
  [CategoryTheory.Limits.PreservesLimitsOfShape (CategoryTheory.Discrete CategoryTheory.Limits.WalkingPair) L],
  CategoryTheory.MonoidalClosedFunctor F

If F is full and faithful, and has a left adjoint which preserves binary products, then it is Cartesian closed.

TODO: Show the converse, that if F is Cartesian closed and its left adjoint preserves binary products, then it is full and faithful.