The areas / V24. Category theory
Mathlib.CategoryTheory.Limits.Preorder
38 declarations. Mathlib docs · Source
(Co)limits in a preorder category
We provide basic results about (co)limits in the associated category of a preordered type.
- We show that a functor
Fhas a (co)limit iff it has a greatest lower bound (least upper bound). - We show maximal (minimal) elements correspond to terminal (initial) objects.
- We show that (co)products correspond to infima (suprema).
def Preorder.coneOfLowerBound E1 #
{C : Type u} →
[inst : Preorder C] →
{J : Type u'} →
[inst_1 : CategoryTheory.Category.{v, u'} J] →
(F : CategoryTheory.Functor J C) → {x : C} → x ∈ lowerBounds (Set.range F.obj) → CategoryTheory.Limits.Cone F
The cone associated to a lower bound of a functor.
theorem Preorder.coneOfLowerBound_pt E0 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C) {x : C} (h : x ∈ lowerBounds (Set.range F.obj)),
(Preorder.coneOfLowerBound F h).pt = x
theorem Preorder.coneOfLowerBound_π_app E0 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C) {x : C} (h : x ∈ lowerBounds (Set.range F.obj)) (i : J),
(Preorder.coneOfLowerBound F h).π.app i = CategoryTheory.homOfLE ⋯
theorem Preorder.conePt_mem_lowerBounds E1 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C) (c : CategoryTheory.Limits.Cone F), c.pt ∈ lowerBounds (Set.range F.obj)
The point of a cone is a lower bound.
theorem Preorder.isGLB_of_isLimit E1 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C) {c : CategoryTheory.Limits.Cone F} (h : CategoryTheory.Limits.IsLimit c),
IsGLB (Set.range F.obj) c.pt
If a cone is a limit, its point is a glb.
def Preorder.isLimitOfIsGLB E1 #
{C : Type u} →
[inst : Preorder C] →
{J : Type u'} →
[inst_1 : CategoryTheory.Category.{v, u'} J] →
(F : CategoryTheory.Functor J C) →
(c : CategoryTheory.Limits.Cone F) → IsGLB (Set.range F.obj) c.pt → CategoryTheory.Limits.IsLimit c
If the point of cone is a glb, the cone is a limit.
def Preorder.limitConeOfIsGLB E1 #
{C : Type u} →
[inst : Preorder C] →
{J : Type u'} →
[inst_1 : CategoryTheory.Category.{v, u'} J] →
(F : CategoryTheory.Functor J C) → {pt : C} → IsGLB (Set.range F.obj) pt → CategoryTheory.Limits.LimitCone F
The limit cone for a functor F : J ⥤ C to a preorder when pt : C
is the greatest lower bound of Set.range F.obj
theorem Preorder.limitConeOfIsGLB_isLimit E0 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C) {pt : C} (h : IsGLB (Set.range F.obj) pt),
(Preorder.limitConeOfIsGLB F h).isLimit = Preorder.isLimitOfIsGLB F (Preorder.coneOfLowerBound F ⋯) h
theorem Preorder.limitConeOfIsGLB_cone E0 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C) {pt : C} (h : IsGLB (Set.range F.obj) pt),
(Preorder.limitConeOfIsGLB F h).cone = Preorder.coneOfLowerBound F ⋯
theorem Preorder.hasLimit_iff_hasGLB E1 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C), CategoryTheory.Limits.HasLimit F ↔ ∃ x, IsGLB (Set.range F.obj) x
A functor has a limit iff there exists a glb.
def Preorder.coconeOfUpperBound E1 #
{C : Type u} →
[inst : Preorder C] →
{J : Type u'} →
[inst_1 : CategoryTheory.Category.{v, u'} J] →
(F : CategoryTheory.Functor J C) → {x : C} → x ∈ upperBounds (Set.range F.obj) → CategoryTheory.Limits.Cocone F
The cocone associated to an upper bound of a functor.
theorem Preorder.coconeOfUpperBound_pt E0 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C) {x : C} (h : x ∈ upperBounds (Set.range F.obj)),
(Preorder.coconeOfUpperBound F h).pt = x
theorem Preorder.coconeOfUpperBound_ι_app E0 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C) {x : C} (h : x ∈ upperBounds (Set.range F.obj)) (i : J),
(Preorder.coconeOfUpperBound F h).ι.app i = CategoryTheory.homOfLE ⋯
theorem Preorder.coconePt_mem_upperBounds E1 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C) (c : CategoryTheory.Limits.Cocone F), c.pt ∈ upperBounds (Set.range F.obj)
The point of a cocone is an upper bound.
theorem Preorder.isLUB_of_isColimit E1 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C) {c : CategoryTheory.Limits.Cocone F} (h : CategoryTheory.Limits.IsColimit c),
IsLUB (Set.range F.obj) c.pt
If a cocone is a colimit, its point is a lub.
def Preorder.isColimitOfIsLUB E1 #
{C : Type u} →
[inst : Preorder C] →
{J : Type u'} →
[inst_1 : CategoryTheory.Category.{v, u'} J] →
(F : CategoryTheory.Functor J C) →
(c : CategoryTheory.Limits.Cocone F) → IsLUB (Set.range F.obj) c.pt → CategoryTheory.Limits.IsColimit c
If the point of cocone is a lub, the cocone is a .colimit
def Preorder.colimitCoconeOfIsLUB E1 #
{C : Type u} →
[inst : Preorder C] →
{J : Type u'} →
[inst_1 : CategoryTheory.Category.{v, u'} J] →
(F : CategoryTheory.Functor J C) → {pt : C} → IsLUB (Set.range F.obj) pt → CategoryTheory.Limits.ColimitCocone F
The colimit cocone for a functor F : J ⥤ C to a preorder when pt : C
is the least upper bound of Set.range F.obj
theorem Preorder.colimitCoconeOfIsLUB_cocone E0 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C) {pt : C} (h : IsLUB (Set.range F.obj) pt),
(Preorder.colimitCoconeOfIsLUB F h).cocone = Preorder.coconeOfUpperBound F ⋯
theorem Preorder.colimitCoconeOfIsLUB_isColimit E0 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C) {pt : C} (h : IsLUB (Set.range F.obj) pt),
(Preorder.colimitCoconeOfIsLUB F h).isColimit = Preorder.isColimitOfIsLUB F (Preorder.coconeOfUpperBound F ⋯) h
theorem Preorder.hasColimit_iff_hasLUB E1 #
∀ {C : Type u} [inst : Preorder C] {J : Type u'} [inst_1 : CategoryTheory.Category.{v, u'} J]
(F : CategoryTheory.Functor J C), CategoryTheory.Limits.HasColimit F ↔ ∃ x, IsLUB (Set.range F.obj) x
A functor has a colimit iff there exists a lub.
def CategoryTheory.Limits.IsTerminal.orderTop E1 #
{C : Type u} → [inst : Preorder C] → {X : C} → CategoryTheory.Limits.IsTerminal X → OrderTop C
A terminal object in a preorder C is top element for C.
def Preorder.orderTopOfHasTerminal E1 #
{C : Type u} → [inst : Preorder C] → [CategoryTheory.Limits.HasTerminal C] → OrderTop C
A preorder with a terminal object has a greatest element.
def Preorder.isTerminalTop E1 #
(C : Type u) → [inst : Preorder C] → [inst_1 : OrderTop C] → CategoryTheory.Limits.IsTerminal ⊤
If C is a preorder with top, then ⊤ is a terminal object.
instance Preorder.instHasTerminalOfOrderTop E0 #
∀ {C : Type u} [inst : Preorder C] [OrderTop C], CategoryTheory.Limits.HasTerminal C
def CategoryTheory.Limits.IsInitial.orderBot E1 #
{C : Type u} → [inst : Preorder C] → {X : C} → CategoryTheory.Limits.IsInitial X → OrderBot C
An initial object in a preorder C is bottom element for C.
def Preorder.orderBotOfHasInitial E1 #
{C : Type u} → [inst : Preorder C] → [CategoryTheory.Limits.HasInitial C] → OrderBot C
A preorder with an initial object has a least element.
def Preorder.isInitialBot E1 #
(C : Type u) → [inst : Preorder C] → [inst_1 : OrderBot C] → CategoryTheory.Limits.IsInitial ⊥
If C is a preorder with bot, then ⊥ is an initial object.
instance Preorder.instHasInitialOfOrderBot E0 #
∀ {C : Type u} [inst : Preorder C] [OrderBot C], CategoryTheory.Limits.HasInitial C
def Preorder.semilatticeInfOfIsLimitBinaryFan E1 #
{C : Type u} →
[inst : PartialOrder C] →
(c : (X Y : C) → CategoryTheory.Limits.BinaryFan X Y) →
((X Y : C) → CategoryTheory.Limits.IsLimit (c X Y)) → SemilatticeInf C
A family of limiting binary fans on a partial order induces an inf-semilattice structure on it.
def Preorder.semilatticeInfOfHasBinaryProducts E1 #
(C : Type u) → [inst : PartialOrder C] → [CategoryTheory.Limits.HasBinaryProducts C] → SemilatticeInf C
If a partial order has binary products, then it is an inf-semilattice
def Preorder.semilatticeSupOfIsColimitBinaryCofan E1 #
{C : Type u} →
[inst : PartialOrder C] →
(c : (X Y : C) → CategoryTheory.Limits.BinaryCofan X Y) →
((X Y : C) → CategoryTheory.Limits.IsColimit (c X Y)) → SemilatticeSup C
A family of colimiting binary cofans on a partial order induces a sup-semilattice structure on it.
def Preorder.semilatticeSupOfHasBinaryCoproducts E1 #
(C : Type u) → [inst : PartialOrder C] → [CategoryTheory.Limits.HasBinaryCoproducts C] → SemilatticeSup C
If a partial order has binary coproducts, then it is a sup-semilattice
def Preorder.isLimitBinaryFan E1 #
{C : Type u} →
[inst : SemilatticeInf C] →
(X Y : C) →
CategoryTheory.Limits.IsLimit
(CategoryTheory.Limits.BinaryFan.mk (CategoryTheory.homOfLE ⋯) (CategoryTheory.homOfLE ⋯))
The infimum of two elements in a preordered type is a binary product in the category associated to this preorder.
instance Preorder.instHasBinaryProducts E0 #
∀ {C : Type u} [inst : SemilatticeInf C], CategoryTheory.Limits.HasBinaryProducts C
def Preorder.isColimitBinaryCofan E1 #
{C : Type u} →
[inst : SemilatticeSup C] →
(X Y : C) →
CategoryTheory.Limits.IsColimit
(CategoryTheory.Limits.BinaryCofan.mk (CategoryTheory.homOfLE ⋯) (CategoryTheory.homOfLE ⋯))
The supremum of two elements in a preordered type is a binary coproduct in the category associated to this preorder.
instance Preorder.instHasBinaryCoproducts E0 #
∀ {C : Type u} [inst : SemilatticeSup C], CategoryTheory.Limits.HasBinaryCoproducts C
def Preorder.isLimitIInf E1 #
{C : Type u} →
[inst : CompleteLattice C] →
{ι : Type u_1} →
(X : ι → C) →
CategoryTheory.Limits.IsLimit (CategoryTheory.Limits.Fan.mk (⨅ i, X i) fun i ↦ CategoryTheory.homOfLE ⋯)
The product of elements in a complete lattice is the infimum.
def Preorder.isColimitISup E1 #
{C : Type u} →
[inst : CompleteLattice C] →
{ι : Type u_1} →
(X : ι → C) →
CategoryTheory.Limits.IsColimit (CategoryTheory.Limits.Cofan.mk (⨆ i, X i) fun i ↦ CategoryTheory.homOfLE ⋯)
The coproduct of elements in a complete lattice is the supremum.