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.Functor.KanExtension.Adjunction

71 declarations. Mathlib docs · Source

The Kan extension functor

Given a functor L : C ⥤ D, we define the left Kan extension functor L.lan : (C ⥤ H) ⥤ (D ⥤ H) which sends a functor F : C ⥤ H to its left Kan extension along L. This is defined if all F have such a left Kan extension. It is shown that L.lan is the left adjoint to the functor (D ⥤ H) ⥤ (C ⥤ H) given by the precomposition with L (see Functor.lanAdjunction).

Similarly, we define the right Kan extension functor L.ran : (C ⥤ H) ⥤ (D ⥤ H) which sends a functor F : C ⥤ H to its right Kan extension along L.

theorem CategoryTheory.Functor.homEquivOfIsLeftKanExtension.congr_simp E1 #

∀ {C : Type u_1} {H : Type u_3} {D : Type u_5} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_3, u_3} H] [inst_2 : CategoryTheory.Category.{v_5, u_5} D]
  (F' : CategoryTheory.Functor D H) {L : CategoryTheory.Functor C D} {F : CategoryTheory.Functor C H}
  (α α_1 : F ⟶ L.comp F') (e_α : α = α_1) [inst_3 : F'.IsLeftKanExtension α] (G : CategoryTheory.Functor D H),
  F'.homEquivOfIsLeftKanExtension α G = F'.homEquivOfIsLeftKanExtension α_1 G

theorem CategoryTheory.Adjunction.CoreHomEquiv.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)
  (homEquiv_naturality_left_symm :
    ∀ {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))
  (homEquiv_naturality_right :
    ∀ {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)),
  { 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_right := ⋯ }

theorem CategoryTheory.Functor.homEquivOfIsRightKanExtension.congr_simp E1 #

∀ {C : Type u_1} {H : Type u_3} {D : Type u_5} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_3, u_3} H] [inst_2 : CategoryTheory.Category.{v_5, u_5} D]
  (F' : CategoryTheory.Functor D H) {L : CategoryTheory.Functor C D} {F : CategoryTheory.Functor C H}
  (α α_1 : L.comp F' ⟶ F) (e_α : α = α_1) [inst_3 : F'.IsRightKanExtension α] (G : CategoryTheory.Functor D H),
  F'.homEquivOfIsRightKanExtension α G = F'.homEquivOfIsRightKanExtension α_1 G

theorem CategoryTheory.Functor.isPointwiseRightKanExtensionRanCounit.congr_simp E1 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] (F : CategoryTheory.Functor C H)
  [inst_4 : L.HasPointwiseRightKanExtension F] (Y : D),
  L.isPointwiseRightKanExtensionRanCounit F Y = L.isPointwiseRightKanExtensionRanCounit F Y

def CategoryTheory.Functor.lan E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        (L : CategoryTheory.Functor C D) →
          {H : Type u_3} →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
              [∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F] →
                CategoryTheory.Functor (CategoryTheory.Functor C H) (CategoryTheory.Functor D H)

The left Kan extension functor (C ⥤ H) ⥤ (D ⥤ H) along a functor C ⥤ D.

def CategoryTheory.Functor.lanUnit E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        (L : CategoryTheory.Functor C D) →
          {H : Type u_3} →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
              [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F] →
                CategoryTheory.Functor.id (CategoryTheory.Functor C H) ⟶
                  L.lan.comp ((CategoryTheory.Functor.whiskeringLeft C D H).obj L)

The natural transformation F ⟶ L ⋙ (L.lan).obj G.

instance CategoryTheory.Functor.instIsLeftKanExtensionObjLanAppLanUnit E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F]
  (F : CategoryTheory.Functor C H), (L.lan.obj F).IsLeftKanExtension (L.lanUnit.app F)

def CategoryTheory.Functor.isPointwiseLeftKanExtensionLeftKanExtensionUnit E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        (L : CategoryTheory.Functor C D) →
          {H : Type u_3} →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
              (F : CategoryTheory.Functor C H) →
                [inst_3 : L.HasPointwiseLeftKanExtension F] →
                  (CategoryTheory.Functor.LeftExtension.mk (L.leftKanExtension F)
                      (L.leftKanExtensionUnit F)).IsPointwiseLeftKanExtension

If there exists a pointwise left Kan extension of F along L, then L.lan.obj G is a pointwise left Kan extension of F.

def CategoryTheory.Functor.leftKanExtensionObjIsoColimit E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        (L : CategoryTheory.Functor C D) →
          {H : Type u_3} →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
              (F : CategoryTheory.Functor C H) →
                [inst_3 : L.HasPointwiseLeftKanExtension F] →
                  [inst_4 : L.HasLeftKanExtension F] →
                    (X : D) →
                      (L.leftKanExtension F).obj X ≅
                        CategoryTheory.Limits.colimit ((CategoryTheory.CostructuredArrow.proj L X).comp F)

If a left Kan extension is pointwise, then evaluating it at an object is isomorphic to taking a colimit.

theorem CategoryTheory.Functor.ι_leftKanExtensionObjIsoColimit_inv E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (F : CategoryTheory.Functor C H)
  [inst_3 : L.HasPointwiseLeftKanExtension F] (X : D) (f : CategoryTheory.CostructuredArrow L X),
  CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.colimit.ι ((CategoryTheory.CostructuredArrow.proj L X).comp F) f)
      (L.leftKanExtensionObjIsoColimit F X).inv =
    CategoryTheory.CategoryStruct.comp ((L.leftKanExtensionUnit F).app f.left) ((L.leftKanExtension F).map f.hom)

theorem CategoryTheory.Functor.ι_leftKanExtensionObjIsoColimit_inv_assoc E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (F : CategoryTheory.Functor C H)
  [inst_3 : L.HasPointwiseLeftKanExtension F] (X : D) (f : CategoryTheory.CostructuredArrow L X) {Z : H}
  (h : (L.leftKanExtension F).obj X ⟶ Z),
  CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.colimit.ι ((CategoryTheory.CostructuredArrow.proj L X).comp F) f)
      (CategoryTheory.CategoryStruct.comp (L.leftKanExtensionObjIsoColimit F X).inv h) =
    CategoryTheory.CategoryStruct.comp ((L.leftKanExtensionUnit F).app f.left)
      (CategoryTheory.CategoryStruct.comp ((L.leftKanExtension F).map f.hom) h)

theorem CategoryTheory.Functor.ι_leftKanExtensionObjIsoColimit_hom E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (F : CategoryTheory.Functor C H)
  [inst_3 : L.HasPointwiseLeftKanExtension F] (X : D) (f : CategoryTheory.CostructuredArrow L X),
  CategoryTheory.CategoryStruct.comp ((L.leftKanExtensionUnit F).app f.left)
      (CategoryTheory.CategoryStruct.comp ((L.leftKanExtension F).map f.hom)
        (L.leftKanExtensionObjIsoColimit F X).hom) =
    CategoryTheory.Limits.colimit.ι ((CategoryTheory.CostructuredArrow.proj L X).comp F) f

theorem CategoryTheory.Functor.ι_leftKanExtensionObjIsoColimit_hom_assoc E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (F : CategoryTheory.Functor C H)
  [inst_3 : L.HasPointwiseLeftKanExtension F] (X : D) (f : CategoryTheory.CostructuredArrow L X) {Z : H}
  (h : CategoryTheory.Limits.colimit ((CategoryTheory.CostructuredArrow.proj L X).comp F) ⟶ Z),
  CategoryTheory.CategoryStruct.comp ((L.leftKanExtensionUnit F).app f.left)
      (CategoryTheory.CategoryStruct.comp ((L.leftKanExtension F).map f.hom)
        (CategoryTheory.CategoryStruct.comp (L.leftKanExtensionObjIsoColimit F X).hom h)) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.colimit.ι ((CategoryTheory.CostructuredArrow.proj L X).comp F) f) h

theorem CategoryTheory.Functor.leftKanExtensionUnit_leftKanExtension_map_leftKanExtensionObjIsoColimit_hom E1 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (F : CategoryTheory.Functor C H)
  [inst_3 : L.HasPointwiseLeftKanExtension F] (X : D) (f : CategoryTheory.CostructuredArrow L X),
  CategoryTheory.CategoryStruct.comp ((L.leftKanExtensionUnit F).app f.left)
      (CategoryTheory.CategoryStruct.comp ((L.leftKanExtension F).map f.hom)
        (L.leftKanExtensionObjIsoColimit F X).hom) =
    CategoryTheory.Limits.colimit.ι ((CategoryTheory.CostructuredArrow.proj L X).comp F) f

theorem CategoryTheory.Functor.leftKanExtensionUnit_leftKanExtensionObjIsoColimit_hom E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (F : CategoryTheory.Functor C H)
  [inst_3 : L.HasPointwiseLeftKanExtension F] (X : C),
  CategoryTheory.CategoryStruct.comp ((L.leftKanExtensionUnit F).app X)
      (L.leftKanExtensionObjIsoColimit F (L.obj X)).hom =
    CategoryTheory.Limits.colimit.ι ((CategoryTheory.CostructuredArrow.proj L (L.obj X)).comp F)
      (CategoryTheory.CostructuredArrow.mk (CategoryTheory.CategoryStruct.id (L.obj X)))

theorem CategoryTheory.Functor.leftKanExtensionUnit_leftKanExtensionObjIsoColimit_hom_assoc E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (F : CategoryTheory.Functor C H)
  [inst_3 : L.HasPointwiseLeftKanExtension F] (X : C) {Z : H}
  (h : CategoryTheory.Limits.colimit ((CategoryTheory.CostructuredArrow.proj L (L.obj X)).comp F) ⟶ Z),
  CategoryTheory.CategoryStruct.comp ((L.leftKanExtensionUnit F).app X)
      (CategoryTheory.CategoryStruct.comp (L.leftKanExtensionObjIsoColimit F (L.obj X)).hom h) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.colimit.ι ((CategoryTheory.CostructuredArrow.proj L (L.obj X)).comp F)
        (CategoryTheory.CostructuredArrow.mk (CategoryTheory.CategoryStruct.id (L.obj X))))
      h

instance CategoryTheory.Functor.hasColimit_map_comp_ι_comp_grothendieckProj E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (F : CategoryTheory.Functor C H) [L.HasPointwiseLeftKanExtension F]
  {X Y : D} (f : X ⟶ Y),
  CategoryTheory.Limits.HasColimit
    (((CategoryTheory.CostructuredArrow.functor L).map f).toFunctor.comp
      ((CategoryTheory.Grothendieck.ι (CategoryTheory.CostructuredArrow.functor L) Y).comp
        ((CategoryTheory.CostructuredArrow.grothendieckProj L).comp F)))

def CategoryTheory.Functor.leftKanExtensionIsoFiberwiseColimit E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        (L : CategoryTheory.Functor C D) →
          {H : Type u_3} →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
              (F : CategoryTheory.Functor C H) →
                [inst_3 : L.HasPointwiseLeftKanExtension F] →
                  [inst_4 : L.HasLeftKanExtension F] →
                    L.leftKanExtension F ≅
                      CategoryTheory.Limits.fiberwiseColimit
                        ((CategoryTheory.CostructuredArrow.grothendieckProj L).comp F)

The left Kan extension of F : C ⥤ H along a functor L : C ⥤ D is isomorphic to the fiberwise colimit of the projection functor on the Grothendieck construction of the costructured arrow category composed with F.

theorem CategoryTheory.Functor.leftKanExtensionIsoFiberwiseColimit_hom_app E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (F : CategoryTheory.Functor C H)
  [inst_3 : L.HasPointwiseLeftKanExtension F] [inst_4 : L.HasLeftKanExtension F] (X : D),
  (L.leftKanExtensionIsoFiberwiseColimit F).hom.app X =
    CategoryTheory.CategoryStruct.comp (L.leftKanExtensionObjIsoColimit F X).hom
      (CategoryTheory.Limits.HasColimit.isoOfNatIso
          (CategoryTheory.Functor.isoWhiskerRight (CategoryTheory.CostructuredArrow.ιCompGrothendieckProj L X) F)).inv

theorem CategoryTheory.Functor.leftKanExtensionIsoFiberwiseColimit_inv_app E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (F : CategoryTheory.Functor C H)
  [inst_3 : L.HasPointwiseLeftKanExtension F] [inst_4 : L.HasLeftKanExtension F] (X : D),
  (L.leftKanExtensionIsoFiberwiseColimit F).inv.app X =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.HasColimit.isoOfNatIso
          (CategoryTheory.Functor.isoWhiskerRight (CategoryTheory.CostructuredArrow.ιCompGrothendieckProj L X) F)).hom
      (L.leftKanExtensionObjIsoColimit F X).inv

def CategoryTheory.Functor.lanAdjunction E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        (L : CategoryTheory.Functor C D) →
          (H : Type u_3) →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
              [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F] →
                L.lan ⊣ (CategoryTheory.Functor.whiskeringLeft C D H).obj L

The left Kan extension functor L.Lan is left adjoint to the precomposition by L.

instance CategoryTheory.Functor.instIsLeftAdjointLan E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F], L.lan.IsLeftAdjoint

theorem CategoryTheory.Functor.lanAdjunction_unit E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) (H : Type u_3)
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F], (L.lanAdjunction H).unit = L.lanUnit

theorem CategoryTheory.Functor.lanAdjunction_counit_app E1 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F]
  (G : CategoryTheory.Functor D H),
  (L.lanAdjunction H).counit.app G =
    (L.lan.obj (L.comp G)).descOfIsLeftKanExtension (L.lanUnit.app (L.comp G)) G
      (CategoryTheory.CategoryStruct.id (L.comp G))

theorem CategoryTheory.Functor.lanUnit_app_whiskerLeft_lanAdjunction_counit_app E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F]
  (G : CategoryTheory.Functor D H),
  CategoryTheory.CategoryStruct.comp (L.lanUnit.app (L.comp G)) (L.whiskerLeft ((L.lanAdjunction H).counit.app G)) =
    CategoryTheory.CategoryStruct.id (L.comp G)

theorem CategoryTheory.Functor.lanUnit_app_whiskerLeft_lanAdjunction_counit_app_assoc E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F]
  (G : CategoryTheory.Functor D H) {Z : CategoryTheory.Functor C H} (h : L.comp G ⟶ Z),
  CategoryTheory.CategoryStruct.comp (L.lanUnit.app (L.comp G))
      (CategoryTheory.CategoryStruct.comp (L.whiskerLeft ((L.lanAdjunction H).counit.app G)) h) =
    h

theorem CategoryTheory.Functor.lanUnit_app_app_lanAdjunction_counit_app_app E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F]
  (G : CategoryTheory.Functor D H) (X : C),
  CategoryTheory.CategoryStruct.comp ((L.lanUnit.app (L.comp G)).app X)
      (((L.lanAdjunction H).counit.app G).app (L.obj X)) =
    CategoryTheory.CategoryStruct.id (((CategoryTheory.Functor.id (CategoryTheory.Functor C H)).obj (L.comp G)).obj X)

theorem CategoryTheory.Functor.lanUnit_app_app_lanAdjunction_counit_app_app_assoc E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F]
  (G : CategoryTheory.Functor D H) (X : C) {Z : H} (h : G.obj (L.obj X) ⟶ Z),
  CategoryTheory.CategoryStruct.comp ((L.lanUnit.app (L.comp G)).app X)
      (CategoryTheory.CategoryStruct.comp (((L.lanAdjunction H).counit.app G).app (L.obj X)) h) =
    h

theorem CategoryTheory.Functor.isIso_lanAdjunction_counit_app_iff E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F]
  (G : CategoryTheory.Functor D H),
  CategoryTheory.IsIso ((L.lanAdjunction H).counit.app G) ↔
    G.IsLeftKanExtension (CategoryTheory.CategoryStruct.id (L.comp G))

theorem CategoryTheory.Functor.isIso_lanAdjunction_homEquiv_symm_iff E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F]
  {F : CategoryTheory.Functor C H} {G : CategoryTheory.Functor D H} (α : F ⟶ L.comp G),
  CategoryTheory.IsIso (((L.lanAdjunction H).homEquiv F G).symm α) ↔ G.IsLeftKanExtension α

def CategoryTheory.Functor.lanCompColimIso E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        (L : CategoryTheory.Functor C D) →
          {H : Type u_3} →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
              [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F] →
                [inst_4 : CategoryTheory.Limits.HasColimitsOfShape C H] →
                  [inst_5 : CategoryTheory.Limits.HasColimitsOfShape D H] →
                    L.lan.comp CategoryTheory.Limits.colim ≅ CategoryTheory.Limits.colim

Composing the left Kan extension of L : C ⥤ D with colim on shapes D is isomorphic to colim on shapes C.

theorem CategoryTheory.Functor.lanCompColimIso_inv_app E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F]
  [inst_4 : CategoryTheory.Limits.HasColimitsOfShape C H] [inst_5 : CategoryTheory.Limits.HasColimitsOfShape D H]
  (X : CategoryTheory.Functor C H),
  L.lanCompColimIso.inv.app X = ((L.lan.obj X).colimitIsoOfIsLeftKanExtension (L.lanUnit.app X)).inv

theorem CategoryTheory.Functor.lanCompColimIso_hom_app E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F]
  [inst_4 : CategoryTheory.Limits.HasColimitsOfShape C H] [inst_5 : CategoryTheory.Limits.HasColimitsOfShape D H]
  (X : CategoryTheory.Functor C H),
  L.lanCompColimIso.hom.app X = ((L.lan.obj X).colimitIsoOfIsLeftKanExtension (L.lanUnit.app X)).hom

instance CategoryTheory.Functor.instHasColimitGrothendieckFunctorCompGrothendieckProj E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (G : CategoryTheory.Functor C H) [L.HasPointwiseLeftKanExtension G]
  [CategoryTheory.Limits.HasColimitsOfShape D H],
  CategoryTheory.Limits.HasColimit ((CategoryTheory.CostructuredArrow.grothendieckProj L).comp G)

def CategoryTheory.Functor.colimitIsoColimitGrothendieck E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        (L : CategoryTheory.Functor C D) →
          {H : Type u_3} →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
              (G : CategoryTheory.Functor C H) →
                [inst_3 : L.HasPointwiseLeftKanExtension G] →
                  [inst_4 : CategoryTheory.Limits.HasColimitsOfShape D H] →
                    [inst_5 : CategoryTheory.Limits.HasColimitsOfShape C H] →
                      CategoryTheory.Limits.colimit G ≅
                        CategoryTheory.Limits.colimit ((CategoryTheory.CostructuredArrow.grothendieckProj L).comp G)

If G : C ⥤ H admits a left Kan extension along a functor L : C ⥤ D and H has colimits of shape C and D, then the colimit of G is isomorphic to the colimit of a canonical functor Grothendieck (CostructuredArrow.functor L) ⥤ H induced by L and G.

theorem CategoryTheory.Functor.ι_colimitIsoColimitGrothendieck_inv_assoc E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (G : CategoryTheory.Functor C H)
  [inst_3 : L.HasPointwiseLeftKanExtension G] [inst_4 : CategoryTheory.Limits.HasColimitsOfShape D H]
  [inst_5 : CategoryTheory.Limits.HasColimitsOfShape C H]
  (X : CategoryTheory.Grothendieck (CategoryTheory.CostructuredArrow.functor L)) {Z : H}
  (h : CategoryTheory.Limits.colimit G ⟶ Z),
  CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.colimit.ι ((CategoryTheory.CostructuredArrow.grothendieckProj L).comp G) X)
      (CategoryTheory.CategoryStruct.comp (L.colimitIsoColimitGrothendieck G).inv h) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.colimit.ι G ((CategoryTheory.CostructuredArrow.proj L X.base).obj X.fiber)) h

theorem CategoryTheory.Functor.ι_colimitIsoColimitGrothendieck_inv E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (G : CategoryTheory.Functor C H)
  [inst_3 : L.HasPointwiseLeftKanExtension G] [inst_4 : CategoryTheory.Limits.HasColimitsOfShape D H]
  [inst_5 : CategoryTheory.Limits.HasColimitsOfShape C H]
  (X : CategoryTheory.Grothendieck (CategoryTheory.CostructuredArrow.functor L)),
  CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.colimit.ι ((CategoryTheory.CostructuredArrow.grothendieckProj L).comp G) X)
      (L.colimitIsoColimitGrothendieck G).inv =
    CategoryTheory.Limits.colimit.ι G ((CategoryTheory.CostructuredArrow.proj L X.base).obj X.fiber)

theorem CategoryTheory.Functor.ι_colimitIsoColimitGrothendieck_hom E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (G : CategoryTheory.Functor C H)
  [inst_3 : L.HasPointwiseLeftKanExtension G] [inst_4 : CategoryTheory.Limits.HasColimitsOfShape D H]
  [inst_5 : CategoryTheory.Limits.HasColimitsOfShape C H] (X : C),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.colimit.ι G X) (L.colimitIsoColimitGrothendieck G).hom =
    CategoryTheory.Limits.colimit.ι ((CategoryTheory.CostructuredArrow.grothendieckProj L).comp G)
      { base := L.obj X, fiber := CategoryTheory.CostructuredArrow.mk (CategoryTheory.CategoryStruct.id (L.obj X)) }

theorem CategoryTheory.Functor.ι_colimitIsoColimitGrothendieck_hom_assoc E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] (G : CategoryTheory.Functor C H)
  [inst_3 : L.HasPointwiseLeftKanExtension G] [inst_4 : CategoryTheory.Limits.HasColimitsOfShape D H]
  [inst_5 : CategoryTheory.Limits.HasColimitsOfShape C H] (X : C) {Z : H}
  (h : CategoryTheory.Limits.colimit ((CategoryTheory.CostructuredArrow.grothendieckProj L).comp G) ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.colimit.ι G X)
      (CategoryTheory.CategoryStruct.comp (L.colimitIsoColimitGrothendieck G).hom h) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.colimit.ι ((CategoryTheory.CostructuredArrow.grothendieckProj L).comp G)
        { base := L.obj X, fiber := CategoryTheory.CostructuredArrow.mk (CategoryTheory.CategoryStruct.id (L.obj X)) })
      h

instance CategoryTheory.Functor.instIsIsoAppLanUnit E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [L.Full] [L.Faithful] (F : CategoryTheory.Functor C H) (X : C)
  [L.HasPointwiseLeftKanExtension F] [inst_6 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F],
  CategoryTheory.IsIso ((L.lanUnit.app F).app X)

instance CategoryTheory.Functor.instIsIsoAppLanUnit_1 E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [L.Full] [L.Faithful] (F : CategoryTheory.Functor C H)
  [L.HasPointwiseLeftKanExtension F] [inst_6 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F],
  CategoryTheory.IsIso (L.lanUnit.app F)

instance CategoryTheory.Functor.coreflective E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [L.Full] [L.Faithful]
  [inst_5 : ∀ (F : CategoryTheory.Functor C H), L.HasPointwiseLeftKanExtension F], CategoryTheory.IsIso L.lanUnit

instance CategoryTheory.Functor.instIsIsoAppUnitLanAdjunctionOfHasPointwiseLeftKanExtension E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [L.Full] [L.Faithful] (F : CategoryTheory.Functor C H)
  [L.HasPointwiseLeftKanExtension F] [inst_6 : ∀ (F : CategoryTheory.Functor C H), L.HasLeftKanExtension F],
  CategoryTheory.IsIso ((L.lanAdjunction H).unit.app F)

instance CategoryTheory.Functor.coreflective' E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [L.Full] [L.Faithful]
  [inst_5 : ∀ (F : CategoryTheory.Functor C H), L.HasPointwiseLeftKanExtension F],
  CategoryTheory.IsIso (L.lanAdjunction H).unit

def CategoryTheory.Functor.ran E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        (L : CategoryTheory.Functor C D) →
          {H : Type u_3} →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
              [∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] →
                CategoryTheory.Functor (CategoryTheory.Functor C H) (CategoryTheory.Functor D H)

The right Kan extension functor (C ⥤ H) ⥤ (D ⥤ H) along a functor C ⥤ D.

def CategoryTheory.Functor.ranCounit E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        (L : CategoryTheory.Functor C D) →
          {H : Type u_3} →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
              [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] →
                L.ran.comp ((CategoryTheory.Functor.whiskeringLeft C D H).obj L) ⟶
                  CategoryTheory.Functor.id (CategoryTheory.Functor C H)

The natural transformation L ⋙ (L.lan).obj G ⟶ L.

instance CategoryTheory.Functor.instIsRightKanExtensionObjRanAppRanCounit E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] (F : CategoryTheory.Functor C H),
  (L.ran.obj F).IsRightKanExtension (L.ranCounit.app F)

def CategoryTheory.Functor.isPointwiseRightKanExtensionRanCounit E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        (L : CategoryTheory.Functor C D) →
          {H : Type u_3} →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
              [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] →
                (F : CategoryTheory.Functor C H) →
                  [L.HasPointwiseRightKanExtension F] →
                    (CategoryTheory.Functor.RightExtension.mk (L.ran.obj F)
                        (L.ranCounit.app F)).IsPointwiseRightKanExtension

If there exists a pointwise right Kan extension of F along L, then L.ran.obj G is a pointwise right Kan extension of F.

def CategoryTheory.Functor.ranObjObjIsoLimit E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        (L : CategoryTheory.Functor C D) →
          {H : Type u_3} →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
              [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] →
                (F : CategoryTheory.Functor C H) →
                  [inst_4 : L.HasPointwiseRightKanExtension F] →
                    (X : D) →
                      (L.ran.obj F).obj X ≅
                        CategoryTheory.Limits.limit ((CategoryTheory.StructuredArrow.proj X L).comp F)

If a right Kan extension is pointwise, then evaluating it at an object is isomorphic to taking a limit.

theorem CategoryTheory.Functor.ranObjObjIsoLimit_hom_π_assoc E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] (F : CategoryTheory.Functor C H)
  [inst_4 : L.HasPointwiseRightKanExtension F] (X : D) (f : CategoryTheory.StructuredArrow X L) {Z : H}
  (h : F.obj ((CategoryTheory.StructuredArrow.proj X L).obj f) ⟶ Z),
  CategoryTheory.CategoryStruct.comp (L.ranObjObjIsoLimit F X).hom
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Limits.limit.π ((CategoryTheory.StructuredArrow.proj X L).comp F) f) h) =
    CategoryTheory.CategoryStruct.comp ((L.ran.obj F).map f.hom)
      (CategoryTheory.CategoryStruct.comp ((L.ranCounit.app F).app f.right) h)

theorem CategoryTheory.Functor.ranObjObjIsoLimit_hom_π E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] (F : CategoryTheory.Functor C H)
  [inst_4 : L.HasPointwiseRightKanExtension F] (X : D) (f : CategoryTheory.StructuredArrow X L),
  CategoryTheory.CategoryStruct.comp (L.ranObjObjIsoLimit F X).hom
      (CategoryTheory.Limits.limit.π ((CategoryTheory.StructuredArrow.proj X L).comp F) f) =
    CategoryTheory.CategoryStruct.comp ((L.ran.obj F).map f.hom) ((L.ranCounit.app F).app f.right)

theorem CategoryTheory.Functor.ranObjObjIsoLimit_inv_π_assoc E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] (F : CategoryTheory.Functor C H)
  [inst_4 : L.HasPointwiseRightKanExtension F] (X : D) (f : CategoryTheory.StructuredArrow X L) {Z : H}
  (h : F.obj f.right ⟶ Z),
  CategoryTheory.CategoryStruct.comp (L.ranObjObjIsoLimit F X).inv
      (CategoryTheory.CategoryStruct.comp ((L.ran.obj F).map f.hom)
        (CategoryTheory.CategoryStruct.comp ((L.ranCounit.app F).app f.right) h)) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Limits.limit.π ((CategoryTheory.StructuredArrow.proj X L).comp F) f) h

theorem CategoryTheory.Functor.ranObjObjIsoLimit_inv_π E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] (F : CategoryTheory.Functor C H)
  [inst_4 : L.HasPointwiseRightKanExtension F] (X : D) (f : CategoryTheory.StructuredArrow X L),
  CategoryTheory.CategoryStruct.comp (L.ranObjObjIsoLimit F X).inv
      (CategoryTheory.CategoryStruct.comp ((L.ran.obj F).map f.hom) ((L.ranCounit.app F).app f.right)) =
    CategoryTheory.Limits.limit.π ((CategoryTheory.StructuredArrow.proj X L).comp F) f

def CategoryTheory.Functor.ranAdjunction E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        (L : CategoryTheory.Functor C D) →
          (H : Type u_3) →
            [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
              [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] →
                (CategoryTheory.Functor.whiskeringLeft C D H).obj L ⊣ L.ran

The right Kan extension functor L.ran is right adjoint to the precomposition by L.

instance CategoryTheory.Functor.instIsRightAdjointRan E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F], L.ran.IsRightAdjoint

theorem CategoryTheory.Functor.ranAdjunction_counit E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) (H : Type u_3)
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F], (L.ranAdjunction H).counit = L.ranCounit

theorem CategoryTheory.Functor.ranAdjunction_unit_app E1 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] (G : CategoryTheory.Functor D H),
  (L.ranAdjunction H).unit.app G =
    (L.ran.obj (L.comp G)).liftOfIsRightKanExtension (L.ranCounit.app (L.comp G)) G
      (CategoryTheory.CategoryStruct.id (L.comp G))

theorem CategoryTheory.Functor.ranCounit_app_whiskerLeft_ranAdjunction_unit_app_assoc E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] (G : CategoryTheory.Functor D H)
  {Z : CategoryTheory.Functor C H} (h : L.comp G ⟶ Z),
  CategoryTheory.CategoryStruct.comp (L.whiskerLeft ((L.ranAdjunction H).unit.app G))
      (CategoryTheory.CategoryStruct.comp (L.ranCounit.app (L.comp G)) h) =
    h

theorem CategoryTheory.Functor.ranCounit_app_whiskerLeft_ranAdjunction_unit_app E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] (G : CategoryTheory.Functor D H),
  CategoryTheory.CategoryStruct.comp (L.whiskerLeft ((L.ranAdjunction H).unit.app G)) (L.ranCounit.app (L.comp G)) =
    CategoryTheory.CategoryStruct.id (L.comp G)

theorem CategoryTheory.Functor.ranCounit_app_app_ranAdjunction_unit_app_app_assoc E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] (G : CategoryTheory.Functor D H) (X : C)
  {Z : H} (h : G.obj (L.obj X) ⟶ Z),
  CategoryTheory.CategoryStruct.comp (((L.ranAdjunction H).unit.app G).app (L.obj X))
      (CategoryTheory.CategoryStruct.comp ((L.ranCounit.app (L.comp G)).app X) h) =
    h

theorem CategoryTheory.Functor.ranCounit_app_app_ranAdjunction_unit_app_app E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] (G : CategoryTheory.Functor D H) (X : C),
  CategoryTheory.CategoryStruct.comp (((L.ranAdjunction H).unit.app G).app (L.obj X))
      ((L.ranCounit.app (L.comp G)).app X) =
    CategoryTheory.CategoryStruct.id (((CategoryTheory.Functor.id (CategoryTheory.Functor D H)).obj G).obj (L.obj X))

theorem CategoryTheory.Functor.isIso_ranAdjunction_unit_app_iff E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] (G : CategoryTheory.Functor D H),
  CategoryTheory.IsIso ((L.ranAdjunction H).unit.app G) ↔
    G.IsRightKanExtension (CategoryTheory.CategoryStruct.id (L.comp G))

theorem CategoryTheory.Functor.isIso_ranAdjunction_homEquiv_iff E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  [inst_3 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F] {F : CategoryTheory.Functor C H}
  {G : CategoryTheory.Functor D H} (α : L.comp G ⟶ F),
  CategoryTheory.IsIso (((L.ranAdjunction H).homEquiv G F) α) ↔ G.IsRightKanExtension α

def CategoryTheory.Functor.ranCompLimIso E1 #

{C : Type u_1} →
  {D : Type u_2} →
    [inst : CategoryTheory.Category.{v_1, u_1} C] →
      [inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
        {H : Type u_3} →
          [inst_2 : CategoryTheory.Category.{v_3, u_3} H] →
            (L : CategoryTheory.Functor C D) →
              [inst_3 : ∀ (G : CategoryTheory.Functor C H), L.HasRightKanExtension G] →
                [inst_4 : CategoryTheory.Limits.HasLimitsOfShape C H] →
                  [inst_5 : CategoryTheory.Limits.HasLimitsOfShape D H] →
                    L.ran.comp CategoryTheory.Limits.lim ≅ CategoryTheory.Limits.lim

Composing the right Kan extension of L : C ⥤ D with lim on shapes D is isomorphic to lim on shapes C.

theorem CategoryTheory.Functor.ranCompLimIso_inv_app E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] {H : Type u_3} [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  (L : CategoryTheory.Functor C D) [inst_3 : ∀ (G : CategoryTheory.Functor C H), L.HasRightKanExtension G]
  [inst_4 : CategoryTheory.Limits.HasLimitsOfShape C H] [inst_5 : CategoryTheory.Limits.HasLimitsOfShape D H]
  (X : CategoryTheory.Functor C H),
  L.ranCompLimIso.inv.app X = ((L.ran.obj X).limitIsoOfIsRightKanExtension (L.ranCounit.app X)).inv

theorem CategoryTheory.Functor.ranCompLimIso_hom_app E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] {H : Type u_3} [inst_2 : CategoryTheory.Category.{v_3, u_3} H]
  (L : CategoryTheory.Functor C D) [inst_3 : ∀ (G : CategoryTheory.Functor C H), L.HasRightKanExtension G]
  [inst_4 : CategoryTheory.Limits.HasLimitsOfShape C H] [inst_5 : CategoryTheory.Limits.HasLimitsOfShape D H]
  (X : CategoryTheory.Functor C H),
  L.ranCompLimIso.hom.app X = ((L.ran.obj X).limitIsoOfIsRightKanExtension (L.ranCounit.app X)).hom

instance CategoryTheory.Functor.instIsIsoAppRanCounit E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [L.Full] [L.Faithful] (F : CategoryTheory.Functor C H) (X : C)
  [L.HasPointwiseRightKanExtension F] [inst_6 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F],
  CategoryTheory.IsIso ((L.ranCounit.app F).app X)

instance CategoryTheory.Functor.instIsIsoAppRanCounit_1 E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [L.Full] [L.Faithful] (F : CategoryTheory.Functor C H)
  [L.HasPointwiseRightKanExtension F] [inst_6 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F],
  CategoryTheory.IsIso (L.ranCounit.app F)

instance CategoryTheory.Functor.reflective E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [L.Full] [L.Faithful]
  [inst_5 : ∀ (F : CategoryTheory.Functor C H), L.HasPointwiseRightKanExtension F], CategoryTheory.IsIso L.ranCounit

instance CategoryTheory.Functor.instIsIsoAppCounitRanAdjunctionOfHasPointwiseRightKanExtension E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [L.Full] [L.Faithful] (F : CategoryTheory.Functor C H)
  [L.HasPointwiseRightKanExtension F] [inst_6 : ∀ (F : CategoryTheory.Functor C H), L.HasRightKanExtension F],
  CategoryTheory.IsIso ((L.ranAdjunction H).counit.app F)

instance CategoryTheory.Functor.reflective' E0 #

∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
  [inst_1 : CategoryTheory.Category.{v_2, u_2} D] (L : CategoryTheory.Functor C D) {H : Type u_3}
  [inst_2 : CategoryTheory.Category.{v_3, u_3} H] [L.Full] [L.Faithful]
  [inst_5 : ∀ (F : CategoryTheory.Functor C H), L.HasPointwiseRightKanExtension F],
  CategoryTheory.IsIso (L.ranAdjunction H).counit