Essentially small categories. #
A category given by (C : Type u) [Category.{v} C]
is w
-essentially small
if there exists a SmallModel C : Type w
equipped with [SmallCategory (SmallModel C)]
and an
equivalence C ≌ SmallModel C
.
A category is w
-locally small if every hom type is w
-small.
The main theorem here is that a category is w
-essentially small iff
the type Skeleton C
is w
-small, and C
is w
-locally small.
An essentially small category is equivalent to some small category.
A category is EssentiallySmall.{w}
if there exists
an equivalence to some S : Type w
with [SmallCategory S]
.
Instances
Constructor for EssentiallySmall C
from an explicit small category witness.
An arbitrarily chosen small model for an essentially small category.
Equations
- CategoryTheory.SmallModel C = Classical.choose (_ : ∃ S x, Nonempty (C ≌ S))
Instances For
Equations
- CategoryTheory.smallCategorySmallModel C = Classical.choose (_ : ∃ x, Nonempty (C ≌ Classical.choose (_ : ∃ S x, Nonempty (C ≌ S))))
The (noncomputable) categorical equivalence between an essentially small category and its small model.
Equations
- CategoryTheory.equivSmallModel C = Nonempty.some (_ : Nonempty (C ≌ Classical.choose (_ : ∃ S x, Nonempty (C ≌ S))))
Instances For
- hom_small : ∀ (X Y : C), Small.{w, v} (X ⟶ Y)
A locally small category has small hom-types.
A category is w
-locally small if every hom set is w
-small.
See ShrinkHoms C
for a category instance where every hom set has been replaced by a small model.
Instances
Equations
- (_ : Small.{w, v} (X ⟶ Y)) = (_ : Small.{w, v} (X ⟶ Y))
We define a type alias ShrinkHoms C
for C
. When we have LocallySmall.{w} C
,
we'll put a Category.{w}
instance on ShrinkHoms C
.
Equations
Instances For
Equations
- CategoryTheory.ShrinkHoms.instCategoryShrinkHoms C = CategoryTheory.Category.mk
Implementation of ShrinkHoms.equivalence
.
Equations
- CategoryTheory.ShrinkHoms.functor C = CategoryTheory.Functor.mk { obj := fun X => CategoryTheory.ShrinkHoms.toShrinkHoms X, map := fun {X Y} f => ↑(equivShrink (X ⟶ Y)) f }
Instances For
Implementation of ShrinkHoms.equivalence
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The categorical equivalence between C
and ShrinkHoms C
, when C
is locally small.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A category is essentially small if and only if the underlying type of its skeleton (i.e. the "set" of isomorphism classes) is small, and it is locally small.
Any thin category is locally small.
A thin category is essentially small if and only if the underlying type of its skeleton is small.