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.Limits.Constructions.Over.Products

59 declarations. Mathlib docs · Source

Products in the over category

Shows that products in the over category can be derived from wide pullbacks in the base category. The main result is over_product_of_widePullback, which says that if C has J-indexed wide pullbacks, then Over B has J-indexed products.

Note that the binary case is done separately to ensure defeqs with the pullback in the base category.

TODO

  • Generalise from arbitrary products to arbitrary limits. This is done in Toric.
  • Dualise to get the Under X results.

Binary products

In this section we construct binary products in Over X and binary coproducts in Under X explicitly as the pullbacks and pushouts of binary (co)fans in the base category.

For Over X, one could construct these binary products from the general theory of arbitrary products from the next section, i.e.

(Cone.postcomposeEquivalence (diagramIsoCospan _).symm).trans
  (Over.ConstructProducts.conesEquiv _ (pair (Over.mk f) (Over.mk g)))

but this gives worse defeqs.

For Under X, there is currently no general theory of arbitrary coproducts.

Arbitrary products

In this section, we prove that J-indexed products in Over X correspond to J-indexed pullbacks in C.

theorem CategoryTheory.Limits.BinaryCofan.ext.congr_simp E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {A B : C} {c c' : CategoryTheory.Limits.BinaryCofan A B}
  (e e_1 : c.pt ≅ c'.pt) (e_e : e = e_1) (h₁ : c.inl = CategoryTheory.CategoryStruct.comp c'.inl e.inv)
  (h₂ : c.inr = CategoryTheory.CategoryStruct.comp c'.inr e.inv),
  CategoryTheory.Limits.BinaryCofan.ext e h₁ h₂ = CategoryTheory.Limits.BinaryCofan.ext e_1 ⋯ ⋯

def CategoryTheory.Limits.pullbackConeEquivBinaryFan E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y Z : C} →
      {f : Y ⟶ X} →
        {g : Z ⟶ X} →
          CategoryTheory.Limits.PullbackCone f g ≌
            CategoryTheory.Limits.BinaryFan (CategoryTheory.Over.mk f) (CategoryTheory.Over.mk g)

Pullback cones to X are the same thing as binary fans in Over X.

theorem CategoryTheory.Limits.pullbackConeEquivBinaryFan_functor_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : Y ⟶ X} {g : Z ⟶ X}
  {c₁ c₂ : CategoryTheory.Limits.PullbackCone f g} (a : c₁ ⟶ c₂),
  (CategoryTheory.Limits.pullbackConeEquivBinaryFan.functor.map a).hom = CategoryTheory.Over.homMk a.hom ⋯

theorem CategoryTheory.Limits.pullbackConeEquivBinaryFan_counitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : Y ⟶ X} {g : Z ⟶ X},
  CategoryTheory.Limits.pullbackConeEquivBinaryFan.counitIso =
    CategoryTheory.NatIso.ofComponents
      (fun X_1 ↦
        CategoryTheory.Limits.BinaryFan.ext
          (CategoryTheory.Over.isoMk
            (CategoryTheory.Iso.refl
              (({
                            obj := fun c ↦
                              CategoryTheory.Limits.PullbackCone.mk (CategoryTheory.Over.Hom.left c.fst)
                                (CategoryTheory.Over.Hom.left c.snd) ⋯,
                            map := fun {c₁ c₂} a ↦ { hom := CategoryTheory.Over.Hom.left a.hom, w := ⋯ }, map_id := ⋯,
                            map_comp := ⋯ }.comp
                        {
                          obj := fun c ↦
                            CategoryTheory.Limits.BinaryFan.mk (CategoryTheory.Over.homMk c.fst ⋯)
                              (CategoryTheory.Over.homMk c.snd ⋯),
                          map := fun {c₁ c₂} a ↦ { hom := CategoryTheory.Over.homMk a.hom ⋯, w := ⋯ }, map_id := ⋯,
                          map_comp := ⋯ }).obj
                    X_1).pt.left)
            ⋯)
          ⋯ ⋯)
      ⋯

theorem CategoryTheory.Limits.pullbackConeEquivBinaryFan_inverse_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : Y ⟶ X} {g : Z ⟶ X}
  (c : CategoryTheory.Limits.BinaryFan (CategoryTheory.Over.mk f) (CategoryTheory.Over.mk g)),
  CategoryTheory.Limits.pullbackConeEquivBinaryFan.inverse.obj c =
    CategoryTheory.Limits.PullbackCone.mk (CategoryTheory.Over.Hom.left c.fst) (CategoryTheory.Over.Hom.left c.snd) ⋯

theorem CategoryTheory.Limits.pullbackConeEquivBinaryFan_functor_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : Y ⟶ X} {g : Z ⟶ X}
  (c : CategoryTheory.Limits.PullbackCone f g),
  CategoryTheory.Limits.pullbackConeEquivBinaryFan.functor.obj c =
    CategoryTheory.Limits.BinaryFan.mk (CategoryTheory.Over.homMk c.fst ⋯) (CategoryTheory.Over.homMk c.snd ⋯)

theorem CategoryTheory.Limits.pullbackConeEquivBinaryFan_unitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : Y ⟶ X} {g : Z ⟶ X},
  CategoryTheory.Limits.pullbackConeEquivBinaryFan.unitIso = CategoryTheory.NatIso.ofComponents (fun c ↦ c.eta) ⋯

theorem CategoryTheory.Limits.pullbackConeEquivBinaryFan_inverse_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : Y ⟶ X} {g : Z ⟶ X}
  {c₁ c₂ : CategoryTheory.Limits.BinaryFan (CategoryTheory.Over.mk f) (CategoryTheory.Over.mk g)} (a : c₁ ⟶ c₂),
  (CategoryTheory.Limits.pullbackConeEquivBinaryFan.inverse.map a).hom = CategoryTheory.Over.Hom.left a.hom

def CategoryTheory.Limits.IsLimit.pullbackConeEquivBinaryFanFunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y Z : C} →
      {f : Y ⟶ X} →
        {g : Z ⟶ X} →
          {c : CategoryTheory.Limits.PullbackCone f g} →
            CategoryTheory.Limits.IsLimit c →
              CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.pullbackConeEquivBinaryFan.functor.obj c)

A binary fan in Over X is a limit if its corresponding pullback cone to X is a limit.

theorem CategoryTheory.Limits.IsLimit.pullbackConeEquivBinaryFanFunctor_lift_left E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : Y ⟶ X} {g : Z ⟶ X}
  {c : CategoryTheory.Limits.PullbackCone f g} (hc : CategoryTheory.Limits.IsLimit c)
  (s : CategoryTheory.Limits.BinaryFan (CategoryTheory.Over.mk f) (CategoryTheory.Over.mk g)),
  (hc.pullbackConeEquivBinaryFanFunctor.lift s).left =
    hc.lift
      (CategoryTheory.Limits.PullbackCone.mk (CategoryTheory.Over.Hom.left s.fst) (CategoryTheory.Over.Hom.left s.snd)
        ⋯)

def CategoryTheory.Limits.IsLimit.pullbackConeEquivBinaryFanInverse E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y Z : C} →
      {f : Y ⟶ X} →
        {g : Z ⟶ X} →
          {c : CategoryTheory.Limits.BinaryFan (CategoryTheory.Over.mk f) (CategoryTheory.Over.mk g)} →
            CategoryTheory.Limits.IsLimit c →
              CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.pullbackConeEquivBinaryFan.inverse.obj c)

A pullback cone to X is a limit if its corresponding binary fan in Over X is a limit.

def CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y Z : C} →
      {f : X ⟶ Y} →
        {g : X ⟶ Z} →
          CategoryTheory.Limits.PushoutCocone f g ≌
            CategoryTheory.Limits.BinaryCofan (CategoryTheory.Under.mk f) (CategoryTheory.Under.mk g)

Pushout cocones from X are the same thing as binary cofans in Under X.

theorem CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan_inverse_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : X ⟶ Y} {g : X ⟶ Z}
  (c : CategoryTheory.Limits.BinaryCofan (CategoryTheory.Under.mk f) (CategoryTheory.Under.mk g)),
  CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan.inverse.obj c =
    CategoryTheory.Limits.PushoutCocone.mk (CategoryTheory.Under.Hom.right c.inl) (CategoryTheory.Under.Hom.right c.inr)
      ⋯

theorem CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan_functor_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : X ⟶ Y} {g : X ⟶ Z}
  (c : CategoryTheory.Limits.PushoutCocone f g),
  CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan.functor.obj c =
    CategoryTheory.Limits.BinaryCofan.mk (CategoryTheory.Under.homMk c.inl ⋯) (CategoryTheory.Under.homMk c.inr ⋯)

theorem CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan_unitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : X ⟶ Y} {g : X ⟶ Z},
  CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan.unitIso = CategoryTheory.NatIso.ofComponents (fun c ↦ c.eta) ⋯

theorem CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan_inverse_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : X ⟶ Y} {g : X ⟶ Z}
  {c₁ c₂ : CategoryTheory.Limits.BinaryCofan (CategoryTheory.Under.mk f) (CategoryTheory.Under.mk g)} (a : c₁ ⟶ c₂),
  (CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan.inverse.map a).hom = CategoryTheory.Under.Hom.right a.hom

theorem CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan_functor_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : X ⟶ Y} {g : X ⟶ Z}
  {c₁ c₂ : CategoryTheory.Limits.PushoutCocone f g} (a : c₁ ⟶ c₂),
  (CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan.functor.map a).hom = CategoryTheory.Under.homMk a.hom ⋯

theorem CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan_counitIso E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : X ⟶ Y} {g : X ⟶ Z},
  CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan.counitIso =
    CategoryTheory.NatIso.ofComponents
      (fun X_1 ↦
        CategoryTheory.Limits.BinaryCofan.ext
          (CategoryTheory.Under.isoMk
            (CategoryTheory.Iso.refl
              (({
                            obj := fun c ↦
                              CategoryTheory.Limits.PushoutCocone.mk (CategoryTheory.Under.Hom.right c.inl)
                                (CategoryTheory.Under.Hom.right c.inr) ⋯,
                            map := fun {c₁ c₂} a ↦ { hom := CategoryTheory.Under.Hom.right a.hom, w := ⋯ }, map_id := ⋯,
                            map_comp := ⋯ }.comp
                        {
                          obj := fun c ↦
                            CategoryTheory.Limits.BinaryCofan.mk (CategoryTheory.Under.homMk c.inl ⋯)
                              (CategoryTheory.Under.homMk c.inr ⋯),
                          map := fun {c₁ c₂} a ↦ { hom := CategoryTheory.Under.homMk a.hom ⋯, w := ⋯ }, map_id := ⋯,
                          map_comp := ⋯ }).obj
                    X_1).pt.right)
            ⋯)
          ⋯ ⋯)
      ⋯

def CategoryTheory.Limits.IsColimit.pushoutCoconeEquivBinaryCofanFunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y Z : C} →
      {f : X ⟶ Y} →
        {g : X ⟶ Z} →
          {c : CategoryTheory.Limits.PushoutCocone f g} →
            CategoryTheory.Limits.IsColimit c →
              CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan.functor.obj c)

A binary cofan in Under X is a colimit if its corresponding pushout cocone from X is a colimit.

theorem CategoryTheory.Limits.IsColimit.pushoutCoconeEquivBinaryCofanFunctor_desc_right E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : X ⟶ Y} {g : X ⟶ Z}
  {c : CategoryTheory.Limits.PushoutCocone f g} (hc : CategoryTheory.Limits.IsColimit c)
  (s : CategoryTheory.Limits.BinaryCofan (CategoryTheory.Under.mk f) (CategoryTheory.Under.mk g)),
  (hc.pushoutCoconeEquivBinaryCofanFunctor.desc s).right =
    hc.desc
      (CategoryTheory.Limits.PushoutCocone.mk (CategoryTheory.Under.Hom.right s.inl)
        (CategoryTheory.Under.Hom.right s.inr) ⋯)

def CategoryTheory.Limits.IsColimit.pushoutCoconeEquivBinaryCofanInverse E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X Y Z : C} →
      {f : X ⟶ Y} →
        {g : X ⟶ Z} →
          {c : CategoryTheory.Limits.BinaryCofan (CategoryTheory.Under.mk f) (CategoryTheory.Under.mk g)} →
            CategoryTheory.Limits.IsColimit c →
              CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.pushoutCoconeEquivBinaryCofan.inverse.obj c)

A pushout cocone from X is a colimit if its corresponding binary cofan in Under X is a colimit.

theorem CategoryTheory.Over.isPullback_of_binaryFan_isLimit E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} {Y Z : CategoryTheory.Over X}
  (c : CategoryTheory.Limits.BinaryFan Y Z) (hc : CategoryTheory.Limits.IsLimit c),
  CategoryTheory.IsPullback (CategoryTheory.Over.Hom.left c.fst) (CategoryTheory.Over.Hom.left c.snd) Y.hom Z.hom

def CategoryTheory.Over.prodLeftIsoPullback E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X : C} →
      (Y Z : CategoryTheory.Over X) →
        [inst_1 : CategoryTheory.Limits.HasPullback Y.hom Z.hom] →
          [inst_2 : CategoryTheory.Limits.HasBinaryProduct Y Z] →
            (Y ⨯ Z).left ≅ CategoryTheory.Limits.pullback Y.hom Z.hom

The product of Y and Z in Over X is isomorphic to Y ×ₓ Z.

theorem CategoryTheory.Over.prodLeftIsoPullback_hom_fst_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (Y Z : CategoryTheory.Over X)
  [inst_1 : CategoryTheory.Limits.HasPullback Y.hom Z.hom] [inst_2 : CategoryTheory.Limits.HasBinaryProduct Y Z]
  {Z_1 : C} (h : Y.left ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (Y.prodLeftIsoPullback Z).hom
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.fst Y.hom Z.hom) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Over.Hom.left CategoryTheory.Limits.prod.fst) h

theorem CategoryTheory.Over.prodLeftIsoPullback_hom_fst E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (Y Z : CategoryTheory.Over X)
  [inst_1 : CategoryTheory.Limits.HasPullback Y.hom Z.hom] [inst_2 : CategoryTheory.Limits.HasBinaryProduct Y Z],
  CategoryTheory.CategoryStruct.comp (Y.prodLeftIsoPullback Z).hom (CategoryTheory.Limits.pullback.fst Y.hom Z.hom) =
    CategoryTheory.Over.Hom.left CategoryTheory.Limits.prod.fst

theorem CategoryTheory.Over.prodLeftIsoPullback_hom_snd_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (Y Z : CategoryTheory.Over X)
  [inst_1 : CategoryTheory.Limits.HasPullback Y.hom Z.hom] [inst_2 : CategoryTheory.Limits.HasBinaryProduct Y Z]
  {Z_1 : C} (h : Z.left ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (Y.prodLeftIsoPullback Z).hom
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.snd Y.hom Z.hom) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Over.Hom.left CategoryTheory.Limits.prod.snd) h

theorem CategoryTheory.Over.prodLeftIsoPullback_hom_snd E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (Y Z : CategoryTheory.Over X)
  [inst_1 : CategoryTheory.Limits.HasPullback Y.hom Z.hom] [inst_2 : CategoryTheory.Limits.HasBinaryProduct Y Z],
  CategoryTheory.CategoryStruct.comp (Y.prodLeftIsoPullback Z).hom (CategoryTheory.Limits.pullback.snd Y.hom Z.hom) =
    CategoryTheory.Over.Hom.left CategoryTheory.Limits.prod.snd

theorem CategoryTheory.Over.prodLeftIsoPullback_inv_fst E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (Y Z : CategoryTheory.Over X)
  [inst_1 : CategoryTheory.Limits.HasPullback Y.hom Z.hom] [inst_2 : CategoryTheory.Limits.HasBinaryProduct Y Z],
  CategoryTheory.CategoryStruct.comp (Y.prodLeftIsoPullback Z).inv
      (CategoryTheory.Over.Hom.left CategoryTheory.Limits.prod.fst) =
    CategoryTheory.Limits.pullback.fst Y.hom Z.hom

theorem CategoryTheory.Over.prodLeftIsoPullback_inv_fst_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (Y Z : CategoryTheory.Over X)
  [inst_1 : CategoryTheory.Limits.HasPullback Y.hom Z.hom] [inst_2 : CategoryTheory.Limits.HasBinaryProduct Y Z]
  {Z_1 : C} (h : Y.left ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (Y.prodLeftIsoPullback Z).inv
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Over.Hom.left CategoryTheory.Limits.prod.fst) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.fst Y.hom Z.hom) h

theorem CategoryTheory.Over.prodLeftIsoPullback_inv_snd E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (Y Z : CategoryTheory.Over X)
  [inst_1 : CategoryTheory.Limits.HasPullback Y.hom Z.hom] [inst_2 : CategoryTheory.Limits.HasBinaryProduct Y Z],
  CategoryTheory.CategoryStruct.comp (Y.prodLeftIsoPullback Z).inv
      (CategoryTheory.Over.Hom.left CategoryTheory.Limits.prod.snd) =
    CategoryTheory.Limits.pullback.snd Y.hom Z.hom

theorem CategoryTheory.Over.prodLeftIsoPullback_inv_snd_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (Y Z : CategoryTheory.Over X)
  [inst_1 : CategoryTheory.Limits.HasPullback Y.hom Z.hom] [inst_2 : CategoryTheory.Limits.HasBinaryProduct Y Z]
  {Z_1 : C} (h : Z.left ⟶ Z_1),
  CategoryTheory.CategoryStruct.comp (Y.prodLeftIsoPullback Z).inv
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Over.Hom.left CategoryTheory.Limits.prod.snd) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Limits.pullback.snd Y.hom Z.hom) h

abbrev CategoryTheory.Over.ConstructProducts.widePullbackDiagramOfDiagramOver E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (B : C) →
      {J : Type w} →
        CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B) →
          CategoryTheory.Functor (CategoryTheory.Limits.WidePullbackShape J) C

(Implementation) Given a product diagram in C/B, construct the corresponding wide pullback diagram in C.

def CategoryTheory.Over.ConstructProducts.conesEquivInverseObj E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (B : C) →
      {J : Type w} →
        (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)) →
          CategoryTheory.Limits.Cone F →
            CategoryTheory.Limits.Cone (CategoryTheory.Over.ConstructProducts.widePullbackDiagramOfDiagramOver B F)

(Impl) A preliminary definition to avoid timeouts.

theorem CategoryTheory.Over.ConstructProducts.conesEquivInverseObj_pt E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C) {J : Type w}
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)) (c : CategoryTheory.Limits.Cone F),
  (CategoryTheory.Over.ConstructProducts.conesEquivInverseObj B F c).pt = c.pt.left

theorem CategoryTheory.Over.ConstructProducts.conesEquivInverseObj_π_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C) {J : Type w}
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)) (c : CategoryTheory.Limits.Cone F)
  (X : CategoryTheory.Limits.WidePullbackShape J),
  (CategoryTheory.Over.ConstructProducts.conesEquivInverseObj B F c).π.app X =
    Option.casesOn X c.pt.hom fun j ↦ CategoryTheory.Over.Hom.left (c.π.app { as := j })

def CategoryTheory.Over.ConstructProducts.conesEquivInverse E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (B : C) →
      {J : Type w} →
        (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)) →
          CategoryTheory.Functor (CategoryTheory.Limits.Cone F)
            (CategoryTheory.Limits.Cone (CategoryTheory.Over.ConstructProducts.widePullbackDiagramOfDiagramOver B F))

(Impl) A preliminary definition to avoid timeouts.

theorem CategoryTheory.Over.ConstructProducts.conesEquivInverse_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C) {J : Type w}
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)) (c : CategoryTheory.Limits.Cone F),
  (CategoryTheory.Over.ConstructProducts.conesEquivInverse B F).obj c =
    CategoryTheory.Over.ConstructProducts.conesEquivInverseObj B F c

theorem CategoryTheory.Over.ConstructProducts.conesEquivInverse_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C) {J : Type w}
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)) {X Y : CategoryTheory.Limits.Cone F}
  (f : X ⟶ Y),
  ((CategoryTheory.Over.ConstructProducts.conesEquivInverse B F).map f).hom = CategoryTheory.Over.Hom.left f.hom

def CategoryTheory.Over.ConstructProducts.conesEquivFunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (B : C) →
      {J : Type w} →
        (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)) →
          CategoryTheory.Functor
            (CategoryTheory.Limits.Cone (CategoryTheory.Over.ConstructProducts.widePullbackDiagramOfDiagramOver B F))
            (CategoryTheory.Limits.Cone F)

(Impl) A preliminary definition to avoid timeouts.

theorem CategoryTheory.Over.ConstructProducts.conesEquivFunctor_map_hom E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C) {J : Type w}
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B))
  {X Y : CategoryTheory.Limits.Cone (CategoryTheory.Over.ConstructProducts.widePullbackDiagramOfDiagramOver B F)}
  (f : X ⟶ Y),
  ((CategoryTheory.Over.ConstructProducts.conesEquivFunctor B F).map f).hom = CategoryTheory.Over.homMk f.hom ⋯

theorem CategoryTheory.Over.ConstructProducts.conesEquivFunctor_obj_pt E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C) {J : Type w}
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B))
  (c : CategoryTheory.Limits.Cone (CategoryTheory.Over.ConstructProducts.widePullbackDiagramOfDiagramOver B F)),
  ((CategoryTheory.Over.ConstructProducts.conesEquivFunctor B F).obj c).pt = CategoryTheory.Over.mk (c.π.app none)

theorem CategoryTheory.Over.ConstructProducts.conesEquivFunctor_obj_π_app E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C) {J : Type w}
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B))
  (c : CategoryTheory.Limits.Cone (CategoryTheory.Over.ConstructProducts.widePullbackDiagramOfDiagramOver B F))
  (x : CategoryTheory.Discrete J),
  ((CategoryTheory.Over.ConstructProducts.conesEquivFunctor B F).obj c).π.app x =
    match x with
    | { as := j } => CategoryTheory.Over.homMk (c.π.app (some j)) ⋯

def CategoryTheory.Over.ConstructProducts.conesEquivUnitIso E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (B : C) →
        (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)) →
          CategoryTheory.Functor.id
              (CategoryTheory.Limits.Cone
                (CategoryTheory.Over.ConstructProducts.widePullbackDiagramOfDiagramOver B F)) ≅
            (CategoryTheory.Over.ConstructProducts.conesEquivFunctor B F).comp
              (CategoryTheory.Over.ConstructProducts.conesEquivInverse B F)

(Impl) A preliminary definition to avoid timeouts.

theorem CategoryTheory.Over.ConstructProducts.conesEquivUnitIso_inv_app_hom E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C)
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B))
  (X : CategoryTheory.Limits.Cone (CategoryTheory.Over.ConstructProducts.widePullbackDiagramOfDiagramOver B F)),
  ((CategoryTheory.Over.ConstructProducts.conesEquivUnitIso B F).inv.app X).hom = CategoryTheory.CategoryStruct.id X.pt

theorem CategoryTheory.Over.ConstructProducts.conesEquivUnitIso_hom_app_hom E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C)
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B))
  (X : CategoryTheory.Limits.Cone (CategoryTheory.Over.ConstructProducts.widePullbackDiagramOfDiagramOver B F)),
  ((CategoryTheory.Over.ConstructProducts.conesEquivUnitIso B F).hom.app X).hom = CategoryTheory.CategoryStruct.id X.pt

def CategoryTheory.Over.ConstructProducts.conesEquivCounitIso E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (B : C) →
        (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)) →
          (CategoryTheory.Over.ConstructProducts.conesEquivInverse B F).comp
              (CategoryTheory.Over.ConstructProducts.conesEquivFunctor B F) ≅
            CategoryTheory.Functor.id (CategoryTheory.Limits.Cone F)

(Impl) A preliminary definition to avoid timeouts.

theorem CategoryTheory.Over.ConstructProducts.conesEquivCounitIso_inv_app_hom_left E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C)
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)) (X : CategoryTheory.Limits.Cone F),
  ((CategoryTheory.Over.ConstructProducts.conesEquivCounitIso B F).inv.app X).hom.left =
    CategoryTheory.CategoryStruct.id X.pt.left

theorem CategoryTheory.Over.ConstructProducts.conesEquivCounitIso_hom_app_hom_left E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C)
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)) (X : CategoryTheory.Limits.Cone F),
  ((CategoryTheory.Over.ConstructProducts.conesEquivCounitIso B F).hom.app X).hom.left =
    CategoryTheory.CategoryStruct.id X.pt.left

def CategoryTheory.Over.ConstructProducts.conesEquiv E1 #

{J : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (B : C) →
        (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)) →
          CategoryTheory.Limits.Cone (CategoryTheory.Over.ConstructProducts.widePullbackDiagramOfDiagramOver B F) ≌
            CategoryTheory.Limits.Cone F

(Impl) Establish an equivalence between the category of cones for F and for the "grown" F.

theorem CategoryTheory.Over.ConstructProducts.conesEquiv_unitIso E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C)
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)),
  (CategoryTheory.Over.ConstructProducts.conesEquiv B F).unitIso =
    CategoryTheory.Over.ConstructProducts.conesEquivUnitIso B F

theorem CategoryTheory.Over.ConstructProducts.conesEquiv_counitIso E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C)
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)),
  (CategoryTheory.Over.ConstructProducts.conesEquiv B F).counitIso =
    CategoryTheory.Over.ConstructProducts.conesEquivCounitIso B F

theorem CategoryTheory.Over.ConstructProducts.conesEquiv_functor E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C)
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)),
  (CategoryTheory.Over.ConstructProducts.conesEquiv B F).functor =
    CategoryTheory.Over.ConstructProducts.conesEquivFunctor B F

theorem CategoryTheory.Over.ConstructProducts.conesEquiv_inverse E0 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C)
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B)),
  (CategoryTheory.Over.ConstructProducts.conesEquiv B F).inverse =
    CategoryTheory.Over.ConstructProducts.conesEquivInverse B F

theorem CategoryTheory.Over.ConstructProducts.has_over_limit_discrete_of_widePullback_limit E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {B : C}
  (F : CategoryTheory.Functor (CategoryTheory.Discrete J) (CategoryTheory.Over B))
  [CategoryTheory.Limits.HasLimit (CategoryTheory.Over.ConstructProducts.widePullbackDiagramOfDiagramOver B F)],
  CategoryTheory.Limits.HasLimit F

Use the above equivalence to prove we have a limit.

theorem CategoryTheory.Over.ConstructProducts.over_product_of_widePullback E1 #

∀ {J : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
  [CategoryTheory.Limits.HasLimitsOfShape (CategoryTheory.Limits.WidePullbackShape J) C] {B : C},
  CategoryTheory.Limits.HasLimitsOfShape (CategoryTheory.Discrete J) (CategoryTheory.Over B)

Given a wide pullback in C, construct a product in C/B.

theorem CategoryTheory.Over.ConstructProducts.over_binaryProduct_of_pullback E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasPullbacks C] {B : C},
  CategoryTheory.Limits.HasBinaryProducts (CategoryTheory.Over B)

Given a pullback in C, construct a binary product in C/B.

theorem CategoryTheory.Over.ConstructProducts.over_products_of_widePullbacks E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasWidePullbacks C] {B : C},
  CategoryTheory.Limits.HasProducts.{w, v, max u v} (CategoryTheory.Over B)

Given all wide pullbacks in C, construct products in C/B.

theorem CategoryTheory.Over.ConstructProducts.over_finiteProducts_of_finiteWidePullbacks E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasFiniteWidePullbacks C] {B : C},
  CategoryTheory.Limits.HasFiniteProducts (CategoryTheory.Over B)

Given all finite wide pullbacks in C, construct finite products in C/B.

theorem CategoryTheory.Over.over_hasTerminal E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (B : C),
  CategoryTheory.Limits.HasTerminal (CategoryTheory.Over B)

Construct terminal object in the over category. This isn't an instance as it's not typically the way we want to define terminal objects. (For instance, this gives a terminal object which is different from the generic one given by over_product_of_widePullback above.)