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

16 declarations. Mathlib docs · Source

def CategoryTheory.leftAdjointOfStructuredArrowInitialsAux E0 #

{C : Type u₁} →
  {D : Type u₂} →
    [inst : CategoryTheory.Category.{v₁, u₁} C] →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor D C) →
          [inst_2 : ∀ (A : C), CategoryTheory.Limits.HasInitial (CategoryTheory.StructuredArrow A G)] →
            (A : C) → (B : D) → ((⊥_ CategoryTheory.StructuredArrow A G).right ⟶ B) ≃ (A ⟶ G.obj B)

Implementation: If each structured arrow category on G has an initial object, an equivalence which is helpful for constructing a left adjoint to G.

theorem CategoryTheory.leftAdjointOfStructuredArrowInitialsAux_apply E0 #

∀ {C : Type u₁} {D : Type u₂} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor D C)
  [inst_2 : ∀ (A : C), CategoryTheory.Limits.HasInitial (CategoryTheory.StructuredArrow A G)] (A : C) (B : D)
  (g : (⊥_ CategoryTheory.StructuredArrow A G).right ⟶ B),
  (CategoryTheory.leftAdjointOfStructuredArrowInitialsAux G A B) g =
    CategoryTheory.CategoryStruct.comp (⊥_ CategoryTheory.StructuredArrow A G).hom (G.map g)

theorem CategoryTheory.leftAdjointOfStructuredArrowInitialsAux_symm_apply E0 #

∀ {C : Type u₁} {D : Type u₂} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor D C)
  [inst_2 : ∀ (A : C), CategoryTheory.Limits.HasInitial (CategoryTheory.StructuredArrow A G)] (A : C) (B : D)
  (f : A ⟶ G.obj B),
  (CategoryTheory.leftAdjointOfStructuredArrowInitialsAux G A B).symm f =
    (CategoryTheory.Limits.initial.to (CategoryTheory.StructuredArrow.mk f)).right

def CategoryTheory.leftAdjointOfStructuredArrowInitials E1 #

{C : Type u₁} →
  {D : Type u₂} →
    [inst : CategoryTheory.Category.{v₁, u₁} C] →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor D C) →
          [∀ (A : C), CategoryTheory.Limits.HasInitial (CategoryTheory.StructuredArrow A G)] →
            CategoryTheory.Functor C D

If each structured arrow category on G has an initial object, construct a left adjoint to G. It is shown that it is a left adjoint in adjunctionOfStructuredArrowInitials.

def CategoryTheory.adjunctionOfStructuredArrowInitials E1 #

{C : Type u₁} →
  {D : Type u₂} →
    [inst : CategoryTheory.Category.{v₁, u₁} C] →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor D C) →
          [inst_2 : ∀ (A : C), CategoryTheory.Limits.HasInitial (CategoryTheory.StructuredArrow A G)] →
            CategoryTheory.leftAdjointOfStructuredArrowInitials G ⊣ G

If each structured arrow category on G has an initial object, we have a constructed left adjoint to G.

theorem CategoryTheory.isRightAdjointOfStructuredArrowInitials E1 #

∀ {C : Type u₁} {D : Type u₂} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor D C) [∀ (A : C), CategoryTheory.Limits.HasInitial (CategoryTheory.StructuredArrow A G)],
  G.IsRightAdjoint

If each structured arrow category on G has an initial object, G is a right adjoint.

def CategoryTheory.rightAdjointOfCostructuredArrowTerminalsAux E0 #

{C : Type u₁} →
  {D : Type u₂} →
    [inst : CategoryTheory.Category.{v₁, u₁} C] →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor D C) →
          [inst_2 : ∀ (A : C), CategoryTheory.Limits.HasTerminal (CategoryTheory.CostructuredArrow G A)] →
            (B : D) → (A : C) → (G.obj B ⟶ A) ≃ (B ⟶ (⊤_ CategoryTheory.CostructuredArrow G A).left)

Implementation: If each costructured arrow category on G has a terminal object, an equivalence which is helpful for constructing a right adjoint to G.

theorem CategoryTheory.rightAdjointOfCostructuredArrowTerminalsAux_apply E0 #

∀ {C : Type u₁} {D : Type u₂} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor D C)
  [inst_2 : ∀ (A : C), CategoryTheory.Limits.HasTerminal (CategoryTheory.CostructuredArrow G A)] (B : D) (A : C)
  (g : G.obj B ⟶ A),
  (CategoryTheory.rightAdjointOfCostructuredArrowTerminalsAux G B A) g =
    (CategoryTheory.Limits.terminal.from (CategoryTheory.CostructuredArrow.mk g)).left

theorem CategoryTheory.rightAdjointOfCostructuredArrowTerminalsAux_symm_apply E0 #

∀ {C : Type u₁} {D : Type u₂} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor D C)
  [inst_2 : ∀ (A : C), CategoryTheory.Limits.HasTerminal (CategoryTheory.CostructuredArrow G A)] (B : D) (A : C)
  (g : B ⟶ (⊤_ CategoryTheory.CostructuredArrow G A).left),
  (CategoryTheory.rightAdjointOfCostructuredArrowTerminalsAux G B A).symm g =
    CategoryTheory.CategoryStruct.comp (G.map g) (⊤_ CategoryTheory.CostructuredArrow G A).hom

def CategoryTheory.rightAdjointOfCostructuredArrowTerminals E1 #

{C : Type u₁} →
  {D : Type u₂} →
    [inst : CategoryTheory.Category.{v₁, u₁} C] →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor D C) →
          [∀ (A : C), CategoryTheory.Limits.HasTerminal (CategoryTheory.CostructuredArrow G A)] →
            CategoryTheory.Functor C D

If each costructured arrow category on G has a terminal object, construct a right adjoint to G. It is shown that it is a right adjoint in adjunctionOfCostructuredArrowTerminals.

def CategoryTheory.adjunctionOfCostructuredArrowTerminals E1 #

{C : Type u₁} →
  {D : Type u₂} →
    [inst : CategoryTheory.Category.{v₁, u₁} C] →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor D C) →
          [inst_2 : ∀ (A : C), CategoryTheory.Limits.HasTerminal (CategoryTheory.CostructuredArrow G A)] →
            G ⊣ CategoryTheory.rightAdjointOfCostructuredArrowTerminals G

If each costructured arrow category on G has a terminal object, we have a constructed right adjoint to G.

theorem CategoryTheory.isLeftAdjoint_of_costructuredArrowTerminals E1 #

∀ {C : Type u₁} {D : Type u₂} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  (G : CategoryTheory.Functor D C)
  [∀ (A : C), CategoryTheory.Limits.HasTerminal (CategoryTheory.CostructuredArrow G A)], G.IsLeftAdjoint

If each costructured arrow category on G has a terminal object, G is a left adjoint.

def CategoryTheory.mkInitialOfLeftAdjoint E1 #

{C : Type u₁} →
  {D : Type u₂} →
    [inst : CategoryTheory.Category.{v₁, u₁} C] →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor D C) →
          {F : CategoryTheory.Functor C D} →
            (h : F ⊣ G) → (A : C) → CategoryTheory.Limits.IsInitial (CategoryTheory.StructuredArrow.mk (h.unit.app A))

Given a left adjoint to G, we can construct an initial object in each structured arrow category on G.

def CategoryTheory.mkTerminalOfRightAdjoint E1 #

{C : Type u₁} →
  {D : Type u₂} →
    [inst : CategoryTheory.Category.{v₁, u₁} C] →
      [inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
        (G : CategoryTheory.Functor D C) →
          {F : CategoryTheory.Functor C D} →
            (h : F ⊣ G) →
              (A : D) → CategoryTheory.Limits.IsTerminal (CategoryTheory.CostructuredArrow.mk (h.counit.app A))

Given a right adjoint to F, we can construct a terminal object in each costructured arrow category on F.

theorem CategoryTheory.isRightAdjoint_iff_hasInitial_structuredArrow E1 #

∀ {C : Type u₁} {D : Type u₂} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {G : CategoryTheory.Functor D C},
  G.IsRightAdjoint ↔ ∀ (A : C), CategoryTheory.Limits.HasInitial (CategoryTheory.StructuredArrow A G)

theorem CategoryTheory.isLeftAdjoint_iff_hasTerminal_costructuredArrow E1 #

∀ {C : Type u₁} {D : Type u₂} [inst : CategoryTheory.Category.{v₁, u₁} C] [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
  {F : CategoryTheory.Functor C D},
  F.IsLeftAdjoint ↔ ∀ (A : D), CategoryTheory.Limits.HasTerminal (CategoryTheory.CostructuredArrow F A)