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.Cartesian

15 declarations. Mathlib docs · Source

Cartesian closed categories

A cartesian closed category is a category with CartesianMonoidalCategory and MonoidalClosed instances. There used to be a separate definition CartesianClosed, with its own API, but over time this ended up as a duplicate of the former. Now, CartesianClosed and the surrounding API has been deprecated, and the API for MonoidalClosed should be used instead. This file now contains a few basic constructions for cartesian closed categories.

instance CategoryTheory.CartesianMonoidalCategory.isLeftAdjoint_prod_functor E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.CartesianMonoidalCategory C] (A : C)
  [CategoryTheory.Closed A], (CategoryTheory.Limits.prod.functor.obj A).IsLeftAdjoint

def CategoryTheory.CartesianClosed.«term_⟹_» E1 #

Lean.TrailingParserDescr

Morphisms obtained using an exponentiable object.

def CategoryTheory.CartesianClosed.delabFunctorObjExp E1 #

Lean.PrettyPrinter.Delaborator.Delab

Delaborator for Functor.obj

def CategoryTheory.CartesianClosed.«term_^^_» E1 #

Lean.TrailingParserDescr

Morphisms from an exponentiable object.

def CategoryTheory.internalizeHom E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.CartesianMonoidalCategory C] →
      {A Y : C} →
        [inst_2 : CategoryTheory.Closed A] → (A ⟶ Y) → (CategoryTheory.MonoidalCategoryStruct.tensorUnit C ⟶ A ⟹ Y)

The internal element which points at the given morphism.

def CategoryTheory.zeroMul E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.CartesianMonoidalCategory C] →
      {A : C} →
        [CategoryTheory.Closed A] →
          {I : C} → CategoryTheory.Limits.IsInitial I → (CategoryTheory.MonoidalCategoryStruct.tensorObj A I ≅ I)

If an initial object I exists in a CCC, then A ⨯ I ≅ I.

theorem CategoryTheory.zeroMul_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.CartesianMonoidalCategory C] {A : C}
  [inst_2 : CategoryTheory.Closed A] {I : C} (t : CategoryTheory.Limits.IsInitial I),
  (CategoryTheory.zeroMul t).hom = CategoryTheory.SemiCartesianMonoidalCategory.snd A I

theorem CategoryTheory.zeroMul_inv E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.CartesianMonoidalCategory C] {A : C}
  [inst_2 : CategoryTheory.Closed A] {I : C} (t : CategoryTheory.Limits.IsInitial I),
  (CategoryTheory.zeroMul t).inv = t.to (CategoryTheory.MonoidalCategoryStruct.tensorObj A I)

def CategoryTheory.mulZero E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.CartesianMonoidalCategory C] →
      {A : C} →
        [CategoryTheory.Closed A] →
          [CategoryTheory.BraidedCategory C] →
            {I : C} → CategoryTheory.Limits.IsInitial I → (CategoryTheory.MonoidalCategoryStruct.tensorObj I A ≅ I)

If an initial object 0 exists in a CCC, then 0 ⨯ A ≅ 0.

def CategoryTheory.powZero E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.CartesianMonoidalCategory C] →
      {B : C} →
        [CategoryTheory.BraidedCategory C] →
          {I : C} →
            CategoryTheory.Limits.IsInitial I →
              [inst_3 : CategoryTheory.MonoidalClosed C] → I ⟹ B ≅ CategoryTheory.MonoidalCategoryStruct.tensorUnit C

If an initial object 0 exists in a CCC then 0^B ≅ 1 for any B.

theorem CategoryTheory.strict_initial E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.CartesianMonoidalCategory C] {A : C}
  [CategoryTheory.Closed A] {I : C} (t : CategoryTheory.Limits.IsInitial I) (f : A ⟶ I), CategoryTheory.IsIso f

If an initial object I exists in a CCC then it is a strict initial object, i.e. any morphism to I is an iso. This actually shows a slightly stronger version: any morphism to an initial object from an exponentiable object is an isomorphism.

instance CategoryTheory.to_initial_isIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.CartesianMonoidalCategory C] {A : C}
  [CategoryTheory.Closed A] [inst_3 : CategoryTheory.Limits.HasInitial C] (f : A ⟶ ⊥_ C), CategoryTheory.IsIso f

theorem CategoryTheory.initial_mono E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.CartesianMonoidalCategory C] {I : C}
  (B : C) (t : CategoryTheory.Limits.IsInitial I) [CategoryTheory.MonoidalClosed C], CategoryTheory.Mono (t.to B)

If an initial object 0 exists in a CCC then every morphism from it is monic.

instance CategoryTheory.Initial.mono_to E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.CartesianMonoidalCategory C]
  [inst_2 : CategoryTheory.Limits.HasInitial C] (B : C) [CategoryTheory.MonoidalClosed C],
  CategoryTheory.Mono (CategoryTheory.Limits.initial.to B)

def CategoryTheory.cartesianClosedOfEquiv 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] →
            (C ≌ D) → [CategoryTheory.MonoidalClosed C] → CategoryTheory.MonoidalClosed D

Transport the property of being Cartesian closed across an equivalence of categories.

Note we didn't require any coherence between the choice of finite products here, since we transport along the prodComparison isomorphism.