# Documentation

Mathlib.CategoryTheory.Limits.Pi

# Limits in the category of indexed families of objects. #

Given a functor F : J ⥤ Π i, C i into a category of indexed families,

1. we can assemble a collection of cones over F ⋙ Pi.eval C i into a cone over F
2. if all those cones are limit cones, the assembled cone is a limit cone, and
3. if we have limits for each of F ⋙ Pi.eval C i, we can produce a HasLimit F instance
def CategoryTheory.pi.coneCompEval {I : Type v₁} {C : IType u₁} [(i : I) → ] {J : Type v₁} {F : CategoryTheory.Functor J ((i : I) → C i)} (c : ) (i : I) :

A cone over F : J ⥤ Π i, C i has as its components cones over each of the F ⋙ Pi.eval C i.

Instances For
def CategoryTheory.pi.coconeCompEval {I : Type v₁} {C : IType u₁} [(i : I) → ] {J : Type v₁} {F : CategoryTheory.Functor J ((i : I) → C i)} (c : ) (i : I) :

A cocone over F : J ⥤ Π i, C i has as its components cocones over each of the F ⋙ Pi.eval C i.

Instances For
def CategoryTheory.pi.coneOfConeCompEval {I : Type v₁} {C : IType u₁} [(i : I) → ] {J : Type v₁} {F : CategoryTheory.Functor J ((i : I) → C i)} (c : (i : I) → ) :

Given a family of cones over the F ⋙ Pi.eval C i, we can assemble these together as a Cone F.

Instances For
def CategoryTheory.pi.coconeOfCoconeCompEval {I : Type v₁} {C : IType u₁} [(i : I) → ] {J : Type v₁} {F : CategoryTheory.Functor J ((i : I) → C i)} (c : ) :

Given a family of cocones over the F ⋙ Pi.eval C i, we can assemble these together as a Cocone F.

Instances For
def CategoryTheory.pi.coneOfConeEvalIsLimit {I : Type v₁} {C : IType u₁} [(i : I) → ] {J : Type v₁} {F : CategoryTheory.Functor J ((i : I) → C i)} {c : (i : I) → } (P : (i : I) → ) :

Given a family of limit cones over the F ⋙ Pi.eval C i, assembling them together as a Cone F produces a limit cone.

Instances For
def CategoryTheory.pi.coconeOfCoconeEvalIsColimit {I : Type v₁} {C : IType u₁} [(i : I) → ] {J : Type v₁} {F : CategoryTheory.Functor J ((i : I) → C i)} {c : } (P : (i : I) → ) :

Given a family of colimit cocones over the F ⋙ Pi.eval C i, assembling them together as a Cocone F produces a colimit cocone.

Instances For
theorem CategoryTheory.pi.hasLimit_of_hasLimit_comp_eval {I : Type v₁} {C : IType u₁} [(i : I) → ] {J : Type v₁} {F : CategoryTheory.Functor J ((i : I) → C i)} [∀ (i : I), ] :

If we have a functor F : J ⥤ Π i, C i into a category of indexed families, and we have limits for each of the F ⋙ Pi.eval C i, then F has a limit.

theorem CategoryTheory.pi.hasColimit_of_hasColimit_comp_eval {I : Type v₁} {C : IType u₁} [(i : I) → ] {J : Type v₁} {F : CategoryTheory.Functor J ((i : I) → C i)} [] :

If we have a functor F : J ⥤ Π i, C i into a category of indexed families, and colimits exist for each of the F ⋙ Pi.eval C i, there is a colimit for F.

As an example, we can use this to construct particular shapes of limits in a category of indexed families.

With the addition of import CategoryTheory.Limits.Shapes.Types we can use:

local attribute [instance] hasLimit_of_hasLimit_comp_eval
example : hasBinaryProducts (I → Type v₁) := ⟨by infer_instance⟩