The areas / V24. Category theory
Mathlib.CategoryTheory.Limits.Shapes.StrictInitial
40 declarations. Mathlib docs · Source
Strict initial objects
This file sets up the basic theory of strict initial objects: initial objects where every morphism to it is an isomorphism. This generalises a property of the empty set in the category of sets: namely that the only function to the empty set is from itself.
We say C has strict initial objects if every initial object is strict, i.e. given any morphism
f : A ⟶ I where I is initial, then f is an isomorphism.
Strictly speaking, this says that any initial object must be strict, rather than that strict
initial objects exist, which turns out to be a more useful notion to formalise.
If the binary product of X with a strict initial object exists, it is also initial.
To show a category C with an initial object has strict initial objects, the most convenient way
is to show any morphism to the (chosen) initial object is an isomorphism and use
hasStrictInitialObjects_of_initial_is_strict.
The dual notion (strict terminal objects) occurs much less frequently in practice so is ignored.
TODO
- Construct examples of this:
Type*,TopCat,Groupoid, simplicial types, posets. - Construct the bottom element of the subobject lattice given strict initials.
- Show Cartesian closed categories have strict initials
References
- https://ncatlab.org/nlab/show/strict+initial+object
class CategoryTheory.Limits.HasStrictInitialObjects E1 #
(C : Type u) → [CategoryTheory.Category.{v, u} C] → Prop
We say C has strict initial objects if every initial object is strict, i.e. given any morphism
f : A ⟶ I where I is initial, then f is an isomorphism.
Strictly speaking, this says that any initial object must be strict, rather than that strict initial objects exist.
ctor CategoryTheory.Limits.HasStrictInitialObjects.mk E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
(∀ {I A : C} (f : A ⟶ I) (a : CategoryTheory.Limits.IsInitial I), CategoryTheory.IsIso f) →
CategoryTheory.Limits.HasStrictInitialObjects C
theorem CategoryTheory.Limits.HasStrictInitialObjects.out E1 #
∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} [self : CategoryTheory.Limits.HasStrictInitialObjects C]
{I A : C} (f : A ⟶ I) (a : CategoryTheory.Limits.IsInitial I), CategoryTheory.IsIso f
theorem CategoryTheory.Limits.IsInitial.isIso_to E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictInitialObjects C] {I : C}
(hI : CategoryTheory.Limits.IsInitial I) {A : C} (f : A ⟶ I), CategoryTheory.IsIso f
theorem CategoryTheory.Limits.IsInitial.strict_hom_ext E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictInitialObjects C] {I : C}
(hI : CategoryTheory.Limits.IsInitial I) {A : C} (f g : A ⟶ I), f = g
theorem CategoryTheory.Limits.IsInitial.subsingleton_to E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictInitialObjects C] {I : C}
(hI : CategoryTheory.Limits.IsInitial I) {A : C}, Subsingleton (A ⟶ I)
def CategoryTheory.Limits.IsInitial.ofStrict E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[CategoryTheory.Limits.HasStrictInitialObjects C] →
{X Y : C} → (X ⟶ Y) → CategoryTheory.Limits.IsInitial Y → CategoryTheory.Limits.IsInitial X
If X ⟶ Y with Y being a strict initial object, then X is also an initial object.
instance CategoryTheory.Limits.initial_mono_of_strict_initial_objects E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictInitialObjects C],
CategoryTheory.Limits.InitialMonoClass C
def CategoryTheory.Limits.mulIsInitial E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[CategoryTheory.Limits.HasStrictInitialObjects C] →
{I : C} →
(X : C) →
[inst_2 : CategoryTheory.Limits.HasBinaryProduct X I] → CategoryTheory.Limits.IsInitial I → (X ⨯ I ≅ I)
If I is initial, then X ⨯ I is isomorphic to it.
theorem CategoryTheory.Limits.mulIsInitial_hom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasStrictInitialObjects C]
{I : C} (X : C) [inst_2 : CategoryTheory.Limits.HasBinaryProduct X I] (hI : CategoryTheory.Limits.IsInitial I),
(CategoryTheory.Limits.mulIsInitial X hI).hom = CategoryTheory.Limits.prod.snd
theorem CategoryTheory.Limits.mulIsInitial_inv E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasStrictInitialObjects C]
{I : C} (X : C) [inst_2 : CategoryTheory.Limits.HasBinaryProduct X I] (hI : CategoryTheory.Limits.IsInitial I),
(CategoryTheory.Limits.mulIsInitial X hI).inv = hI.to (X ⨯ I)
def CategoryTheory.Limits.isInitialMul E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[CategoryTheory.Limits.HasStrictInitialObjects C] →
{I : C} →
(X : C) →
[inst_2 : CategoryTheory.Limits.HasBinaryProduct I X] → CategoryTheory.Limits.IsInitial I → (I ⨯ X ≅ I)
If I is initial, then I ⨯ X is isomorphic to it.
theorem CategoryTheory.Limits.isInitialMul_hom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasStrictInitialObjects C]
{I : C} (X : C) [inst_2 : CategoryTheory.Limits.HasBinaryProduct I X] (hI : CategoryTheory.Limits.IsInitial I),
(CategoryTheory.Limits.isInitialMul X hI).hom = CategoryTheory.Limits.prod.fst
theorem CategoryTheory.Limits.isInitialMul_inv E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasStrictInitialObjects C]
{I : C} (X : C) [inst_2 : CategoryTheory.Limits.HasBinaryProduct I X] (hI : CategoryTheory.Limits.IsInitial I),
(CategoryTheory.Limits.isInitialMul X hI).inv = hI.to (I ⨯ X)
instance CategoryTheory.Limits.initial_isIso_to E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictInitialObjects C]
[inst_2 : CategoryTheory.Limits.HasInitial C] {A : C} (f : A ⟶ ⊥_ C), CategoryTheory.IsIso f
theorem CategoryTheory.Limits.initial.strict_hom_ext E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictInitialObjects C]
[inst_2 : CategoryTheory.Limits.HasInitial C] {A : C} (f g : A ⟶ ⊥_ C), f = g
theorem CategoryTheory.Limits.initial.strict_hom_ext_iff E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictInitialObjects C]
[inst_2 : CategoryTheory.Limits.HasInitial C] {A : C} {f g : A ⟶ ⊥_ C}, f = g ↔ True
theorem CategoryTheory.Limits.initial.subsingleton_to E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictInitialObjects C]
[inst_2 : CategoryTheory.Limits.HasInitial C] {A : C}, Subsingleton (A ⟶ ⊥_ C)
def CategoryTheory.Limits.mulInitial E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[CategoryTheory.Limits.HasStrictInitialObjects C] →
[inst_2 : CategoryTheory.Limits.HasInitial C] →
(X : C) → [inst_3 : CategoryTheory.Limits.HasBinaryProduct X (⊥_ C)] → X ⨯ ⊥_ C ≅ ⊥_ C
The product of X with an initial object in a category with strict initial objects is itself
initial.
This is the generalisation of the fact that X × Empty ≃ Empty for types (or n * 0 = 0).
theorem CategoryTheory.Limits.mulInitial_hom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasStrictInitialObjects C]
[inst_2 : CategoryTheory.Limits.HasInitial C] (X : C) [inst_3 : CategoryTheory.Limits.HasBinaryProduct X (⊥_ C)],
(CategoryTheory.Limits.mulInitial X).hom = CategoryTheory.Limits.prod.snd
theorem CategoryTheory.Limits.mulInitial_inv E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasStrictInitialObjects C]
[inst_2 : CategoryTheory.Limits.HasInitial C] (X : C) [inst_3 : CategoryTheory.Limits.HasBinaryProduct X (⊥_ C)],
(CategoryTheory.Limits.mulInitial X).inv = CategoryTheory.Limits.initial.to (X ⨯ ⊥_ C)
def CategoryTheory.Limits.initialMul E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[CategoryTheory.Limits.HasStrictInitialObjects C] →
[inst_2 : CategoryTheory.Limits.HasInitial C] →
(X : C) → [inst_3 : CategoryTheory.Limits.HasBinaryProduct (⊥_ C) X] → (⊥_ C) ⨯ X ≅ ⊥_ C
The product of X with an initial object in a category with strict initial objects is itself
initial.
This is the generalisation of the fact that Empty × X ≃ Empty for types (or 0 * n = 0).
theorem CategoryTheory.Limits.initialMul_hom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasStrictInitialObjects C]
[inst_2 : CategoryTheory.Limits.HasInitial C] (X : C) [inst_3 : CategoryTheory.Limits.HasBinaryProduct (⊥_ C) X],
(CategoryTheory.Limits.initialMul X).hom = CategoryTheory.Limits.prod.fst
theorem CategoryTheory.Limits.initialMul_inv E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasStrictInitialObjects C]
[inst_2 : CategoryTheory.Limits.HasInitial C] (X : C) [inst_3 : CategoryTheory.Limits.HasBinaryProduct (⊥_ C) X],
(CategoryTheory.Limits.initialMul X).inv = CategoryTheory.Limits.initial.to ((⊥_ C) ⨯ X)
theorem CategoryTheory.Limits.hasStrictInitialObjects_of_initial_is_strict E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasInitial C],
(∀ (A : C) (f : A ⟶ ⊥_ C), CategoryTheory.IsIso f) → CategoryTheory.Limits.HasStrictInitialObjects C
If C has an initial object such that every morphism to it is an isomorphism, then C
has strict initial objects.
instance CategoryTheory.Limits.instHasStrictInitialObjectsOfIsThin E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [Quiver.IsThin C],
CategoryTheory.Limits.HasStrictInitialObjects C
class CategoryTheory.Limits.HasStrictTerminalObjects E1 #
(C : Type u) → [CategoryTheory.Category.{v, u} C] → Prop
We say C has strict terminal objects if every terminal object is strict, i.e. given any
morphism f : I ⟶ A where I is terminal, then f is an isomorphism.
Strictly speaking, this says that any terminal object must be strict, rather than that strict terminal objects exist.
ctor CategoryTheory.Limits.HasStrictTerminalObjects.mk E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
(∀ {I A : C} (f : I ⟶ A) (a : CategoryTheory.Limits.IsTerminal I), CategoryTheory.IsIso f) →
CategoryTheory.Limits.HasStrictTerminalObjects C
theorem CategoryTheory.Limits.HasStrictTerminalObjects.out E1 #
∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} [self : CategoryTheory.Limits.HasStrictTerminalObjects C]
{I A : C} (f : I ⟶ A) (a : CategoryTheory.Limits.IsTerminal I), CategoryTheory.IsIso f
theorem CategoryTheory.Limits.IsTerminal.isIso_from E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictTerminalObjects C] {I : C}
(hI : CategoryTheory.Limits.IsTerminal I) {A : C} (f : I ⟶ A), CategoryTheory.IsIso f
theorem CategoryTheory.Limits.IsTerminal.strict_hom_ext E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictTerminalObjects C] {I : C}
(hI : CategoryTheory.Limits.IsTerminal I) {A : C} (f g : I ⟶ A), f = g
def CategoryTheory.Limits.IsTerminal.ofStrict E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[CategoryTheory.Limits.HasStrictTerminalObjects C] →
{X Y : C} → (X ⟶ Y) → CategoryTheory.Limits.IsTerminal X → CategoryTheory.Limits.IsTerminal Y
If X ⟶ Y with Y being a strict terminal object, then X is also a terminal object.
theorem CategoryTheory.Limits.IsTerminal.subsingleton_to E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictTerminalObjects C] {I : C}
(hI : CategoryTheory.Limits.IsTerminal I) {A : C}, Subsingleton (I ⟶ A)
theorem CategoryTheory.Limits.limit_π_isIso_of_is_strict_terminal E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictTerminalObjects C] {J : Type v}
[inst_2 : CategoryTheory.SmallCategory J] (F : CategoryTheory.Functor J C) [inst_3 : CategoryTheory.Limits.HasLimit F]
(i : J) (H : (j : J) → j ≠ i → CategoryTheory.Limits.IsTerminal (F.obj j)) [Subsingleton (i ⟶ i)],
CategoryTheory.IsIso (CategoryTheory.Limits.limit.π F i)
If all but one object in a diagram is strict terminal, then the limit is isomorphic to the
said object via limit.π.
instance CategoryTheory.Limits.terminal_isIso_from E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictTerminalObjects C]
[inst_2 : CategoryTheory.Limits.HasTerminal C] {A : C} (f : ⊤_ C ⟶ A), CategoryTheory.IsIso f
theorem CategoryTheory.Limits.terminal.strict_hom_ext_iff E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictTerminalObjects C]
[inst_2 : CategoryTheory.Limits.HasTerminal C] {A : C} {f g : ⊤_ C ⟶ A}, f = g ↔ True
theorem CategoryTheory.Limits.terminal.strict_hom_ext E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictTerminalObjects C]
[inst_2 : CategoryTheory.Limits.HasTerminal C] {A : C} (f g : ⊤_ C ⟶ A), f = g
theorem CategoryTheory.Limits.terminal.subsingleton_to E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Limits.HasStrictTerminalObjects C]
[inst_2 : CategoryTheory.Limits.HasTerminal C] {A : C}, Subsingleton (⊤_ C ⟶ A)
theorem CategoryTheory.Limits.hasStrictTerminalObjects_of_terminal_is_strict E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (I : C),
(∀ (A : C) (f : I ⟶ A), CategoryTheory.IsIso f) → CategoryTheory.Limits.HasStrictTerminalObjects C
If C has an object such that every morphism from it is an isomorphism, then C
has strict terminal objects.
instance CategoryTheory.Limits.instHasStrictTerminalObjectsOfIsThin E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [Quiver.IsThin C],
CategoryTheory.Limits.HasStrictTerminalObjects C