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.EssentiallySmall

61 declarations. Mathlib docs · Source

class CategoryTheory.EssentiallySmall E1 #

(C : Type u) → [CategoryTheory.Category.{v, u} C] → Prop

A category is EssentiallySmall.{w} if there exists an equivalence to some S : Type w with [SmallCategory S].

ctor CategoryTheory.EssentiallySmall.mk E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  (∃ S x, Nonempty (C ≌ S)) → CategoryTheory.EssentiallySmall.{w, v, u} C

theorem CategoryTheory.EssentiallySmall.equiv_smallCategory E1 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} [self : CategoryTheory.EssentiallySmall.{w, v, u} C],
  ∃ S x, Nonempty (C ≌ S)

An essentially small category is equivalent to some small category.

theorem CategoryTheory.EssentiallySmall.mk' E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {S : Type w} [inst_1 : CategoryTheory.SmallCategory S]
  (e : C ≌ S), CategoryTheory.EssentiallySmall.{w, v, u} C

Constructor for EssentiallySmall C from an explicit small category witness.

def CategoryTheory.SmallModel E1 #

(C : Type u) → [inst : CategoryTheory.Category.{v, u} C] → [CategoryTheory.EssentiallySmall.{w, v, u} C] → Type w

An arbitrarily chosen small model for an essentially small category.

instance CategoryTheory.smallCategorySmallModel E0 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.EssentiallySmall.{w, v, u} C] →
      CategoryTheory.SmallCategory (CategoryTheory.SmallModel.{w, v, u} C)

def CategoryTheory.equivSmallModel E1 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.EssentiallySmall.{w, v, u} C] → C ≌ CategoryTheory.SmallModel.{w, v, u} C

The (noncomputable) categorical equivalence between an essentially small category and its small model.

instance CategoryTheory.instEssentiallySmallOpposite E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.EssentiallySmall.{w, v, u} C],
  CategoryTheory.EssentiallySmall.{w, v, u} Cᵒᵖ

theorem CategoryTheory.essentiallySmall_congr E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (e : C ≌ D), CategoryTheory.EssentiallySmall.{w, v, u} C ↔ CategoryTheory.EssentiallySmall.{w, v', u'} D

theorem CategoryTheory.Discrete.essentiallySmallOfSmall E1 #

∀ {α : Type u} [Small.{w, u} α], CategoryTheory.EssentiallySmall.{w, u, u} (CategoryTheory.Discrete α)

theorem CategoryTheory.essentiallySmallSelf E1 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C], CategoryTheory.EssentiallySmall.{max w v u, v, u} C

class CategoryTheory.LocallySmall E1 #

(C : Type u) → [CategoryTheory.Category.{v, u} C] → Prop

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.

ctor CategoryTheory.LocallySmall.mk E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  autoParam (∀ (X Y : C), Small.{w, v} (X ⟶ Y)) CategoryTheory.LocallySmall.hom_small._autoParam →
    CategoryTheory.LocallySmall.{w, v, u} C

theorem CategoryTheory.LocallySmall.hom_small E1 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} [self : CategoryTheory.LocallySmall.{w, v, u} C] (X Y : C),
  Small.{w, v} (X ⟶ Y)

A locally small category has small hom-types.

instance CategoryTheory.instSmallHomOfLocallySmall E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.LocallySmall.{w, v, u} C] (X Y : C),
  Small.{w, v} (X ⟶ Y)

instance CategoryTheory.instLocallySmallOpposite E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.LocallySmall.{w, v, u} C],
  CategoryTheory.LocallySmall.{w, v, u} Cᵒᵖ

theorem CategoryTheory.locallySmall_of_faithful E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (F : CategoryTheory.Functor C D) [F.Faithful] [CategoryTheory.LocallySmall.{w, v', u'} D],
  CategoryTheory.LocallySmall.{w, v, u} C

theorem CategoryTheory.locallySmall_congr E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (e : C ≌ D), CategoryTheory.LocallySmall.{w, v, u} C ↔ CategoryTheory.LocallySmall.{w, v', u'} D

instance CategoryTheory.instLocallySmallSmallModel E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.EssentiallySmall.{w, v, u} C]
  [CategoryTheory.LocallySmall.{w', v, u} C],
  CategoryTheory.LocallySmall.{w', w, w} (CategoryTheory.SmallModel.{w, v, u} C)

instance CategoryTheory.locallySmall_self E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C], CategoryTheory.LocallySmall.{v, v, u} C

instance CategoryTheory.locallySmall_of_univLE E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [UnivLE.{v, w}], CategoryTheory.LocallySmall.{w, v, u} C

theorem CategoryTheory.locallySmall_max E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C], CategoryTheory.LocallySmall.{max v w, v, u} C

instance CategoryTheory.locallySmall_of_essentiallySmall E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.EssentiallySmall.{w, v, u} C],
  CategoryTheory.LocallySmall.{w, v, u} C

def CategoryTheory.ShrinkHoms E1 #

Type u → Type u

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.

def CategoryTheory.ShrinkHoms.toShrinkHoms E1 #

{C' : Type u_2} → C' → CategoryTheory.ShrinkHoms.{u_2} C'

Help the typechecker by explicitly translating from C to ShrinkHoms C.

def CategoryTheory.ShrinkHoms.fromShrinkHoms E1 #

{C' : Type u_2} → CategoryTheory.ShrinkHoms.{u_2} C' → C'

Help the typechecker by explicitly translating from ShrinkHoms C to C.

theorem CategoryTheory.ShrinkHoms.to_from E0 #

∀ {C' : Type u_1} (X : C'), (CategoryTheory.ShrinkHoms.toShrinkHoms X).fromShrinkHoms = X

theorem CategoryTheory.ShrinkHoms.from_to E0 #

∀ {C' : Type u_1} (X : CategoryTheory.ShrinkHoms.{u_1} C'), CategoryTheory.ShrinkHoms.toShrinkHoms X.fromShrinkHoms = X

theorem CategoryTheory.ShrinkHoms.id_def E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (X : CategoryTheory.ShrinkHoms.{u} C),
  CategoryTheory.CategoryStruct.id X =
    (equivShrink (X.fromShrinkHoms ⟶ X.fromShrinkHoms)) (CategoryTheory.CategoryStruct.id X.fromShrinkHoms)

theorem CategoryTheory.ShrinkHoms.comp_def E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  {X Y Z : CategoryTheory.ShrinkHoms.{u} C} (f : Shrink.{w, v} (X.fromShrinkHoms ⟶ Y.fromShrinkHoms))
  (g : Shrink.{w, v} (Y.fromShrinkHoms ⟶ Z.fromShrinkHoms)),
  CategoryTheory.CategoryStruct.comp f g =
    (equivShrink (X.fromShrinkHoms ⟶ Z.fromShrinkHoms))
      (CategoryTheory.CategoryStruct.comp ((equivShrink (X.fromShrinkHoms ⟶ Y.fromShrinkHoms)).symm f)
        ((equivShrink (Y.fromShrinkHoms ⟶ Z.fromShrinkHoms)).symm g))

instance CategoryTheory.ShrinkHoms.instCategory E0 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    [CategoryTheory.LocallySmall.{w, v, u} C] → CategoryTheory.Category.{w, u} (CategoryTheory.ShrinkHoms.{u} C)

def CategoryTheory.ShrinkHoms.functor E1 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] → CategoryTheory.Functor C (CategoryTheory.ShrinkHoms.{u} C)

Implementation of ShrinkHoms.equivalence.

theorem CategoryTheory.ShrinkHoms.functor_map E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] {X Y : C}
  (f : X ⟶ Y), (CategoryTheory.ShrinkHoms.functor C).map f = (equivShrink (X ⟶ Y)) f

theorem CategoryTheory.ShrinkHoms.functor_obj E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] (X : C),
  (CategoryTheory.ShrinkHoms.functor C).obj X = CategoryTheory.ShrinkHoms.toShrinkHoms X

def CategoryTheory.ShrinkHoms.inverse E1 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] → CategoryTheory.Functor (CategoryTheory.ShrinkHoms.{u} C) C

Implementation of ShrinkHoms.equivalence.

theorem CategoryTheory.ShrinkHoms.inverse_map E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  {X Y : CategoryTheory.ShrinkHoms.{u} C} (f : X ⟶ Y),
  (CategoryTheory.ShrinkHoms.inverse C).map f = (equivShrink (X.fromShrinkHoms ⟶ Y.fromShrinkHoms)).symm f

theorem CategoryTheory.ShrinkHoms.inverse_obj E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C]
  (X : CategoryTheory.ShrinkHoms.{u} C), (CategoryTheory.ShrinkHoms.inverse C).obj X = X.fromShrinkHoms

def CategoryTheory.ShrinkHoms.equivalence E1 #

(C : Type u) →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C] → C ≌ CategoryTheory.ShrinkHoms.{u} C

The categorical equivalence between C and ShrinkHoms C, when C is locally small.

theorem CategoryTheory.ShrinkHoms.equivalence_functor E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C],
  (CategoryTheory.ShrinkHoms.equivalence C).functor = CategoryTheory.ShrinkHoms.functor C

theorem CategoryTheory.ShrinkHoms.equivalence_counitIso E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C],
  (CategoryTheory.ShrinkHoms.equivalence C).counitIso =
    CategoryTheory.NatIso.ofComponents
      (fun x ↦
        CategoryTheory.Iso.refl
          (((CategoryTheory.ShrinkHoms.inverse C).comp (CategoryTheory.ShrinkHoms.functor C)).obj x))
      ⋯

theorem CategoryTheory.ShrinkHoms.equivalence_inverse E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C],
  (CategoryTheory.ShrinkHoms.equivalence C).inverse = CategoryTheory.ShrinkHoms.inverse C

theorem CategoryTheory.ShrinkHoms.equivalence_unitIso E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C],
  (CategoryTheory.ShrinkHoms.equivalence C).unitIso =
    CategoryTheory.NatIso.ofComponents (fun x ↦ CategoryTheory.Iso.refl ((CategoryTheory.Functor.id C).obj x)) ⋯

instance CategoryTheory.ShrinkHoms.instIsEquivalenceFunctor E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C],
  (CategoryTheory.ShrinkHoms.functor C).IsEquivalence

instance CategoryTheory.ShrinkHoms.instIsEquivalenceInverse E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.LocallySmall.{w, v, u} C],
  (CategoryTheory.ShrinkHoms.inverse C).IsEquivalence

instance CategoryTheory.ShrinkHoms.instUnique E0 #

{T : Type u} → [Unique T] → Unique (CategoryTheory.ShrinkHoms.{u} T)

instance CategoryTheory.ShrinkHoms.instIsDiscrete E0 #

∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] [CategoryTheory.IsDiscrete T],
  CategoryTheory.IsDiscrete (CategoryTheory.ShrinkHoms.{u} T)

instance CategoryTheory.Shrink.instCategoryShrink E0 #

(C : Type u) →
  [CategoryTheory.Category.{v, u} C] → [inst : Small.{w, u} C] → CategoryTheory.Category.{v, w} (Shrink.{w, u} C)

def CategoryTheory.Shrink.equivalence E1 #

(C : Type u) → [inst : CategoryTheory.Category.{v, u} C] → [inst_1 : Small.{w, u} C] → C ≌ Shrink.{w, u} C

The categorical equivalence between C and Shrink C, when C is small.

instance CategoryTheory.Shrink.instLocallySmallShrink E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : Small.{w', u} C]
  [CategoryTheory.LocallySmall.{w, v, u} C], CategoryTheory.LocallySmall.{w, v, w'} (Shrink.{w', u} C)

theorem CategoryTheory.essentiallySmall_iff E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.EssentiallySmall.{w, v, u} C ↔
    Small.{w, u} (CategoryTheory.Skeleton C) ∧ CategoryTheory.LocallySmall.{w, v, u} C

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.

instance CategoryTheory.essentiallySmall_of_small_of_locallySmall E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [Small.{w, u} C] [CategoryTheory.LocallySmall.{w, v, u} C],
  CategoryTheory.EssentiallySmall.{w, v, u} C

instance CategoryTheory.small_skeleton_of_essentiallySmall E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [h : CategoryTheory.EssentiallySmall.{w, v, u} C],
  Small.{w, u} (CategoryTheory.Skeleton C)

theorem CategoryTheory.essentiallySmall_of_fully_faithful E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (F : CategoryTheory.Functor C D) [F.Full] [F.Faithful] [CategoryTheory.EssentiallySmall.{w, v', u'} D],
  CategoryTheory.EssentiallySmall.{w, v, u} C

instance CategoryTheory.locallySmall_fullSubcategory E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.LocallySmall.{w, v, u} C]
  (P : CategoryTheory.ObjectProperty C), CategoryTheory.LocallySmall.{w, v, u} P.FullSubcategory

instance CategoryTheory.essentiallySmall_fullSubcategory_mem E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] (s : Set C) [Small.{w, u} ↑s]
  [CategoryTheory.LocallySmall.{w, v, u} C],
  CategoryTheory.EssentiallySmall.{w, v, u} (CategoryTheory.ObjectProperty.FullSubcategory fun x ↦ x ∈ s)

instance CategoryTheory.locallySmall_of_thin E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [Quiver.IsThin C], CategoryTheory.LocallySmall.{w, v, u} C

Any thin category is locally small.

theorem CategoryTheory.essentiallySmall_iff_of_thin E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [Quiver.IsThin C],
  CategoryTheory.EssentiallySmall.{w, v, u} C ↔ Small.{w, u} (CategoryTheory.Skeleton C)

A thin category is essentially small if and only if the underlying type of its skeleton is small.

instance CategoryTheory.instSmallDiscrete E0 #

∀ (C : Type u) [Small.{w, u} C], Small.{w, u} (CategoryTheory.Discrete C)

instance CategoryTheory.instSmallArrowOfLocallySmall E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [Small.{w, u} C] [CategoryTheory.LocallySmall.{w, v, u} C],
  Small.{w, max u v} (CategoryTheory.Arrow C)

instance CategoryTheory.instSmallFunctorOfLocallySmall E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [Small.{w, u} C] [CategoryTheory.LocallySmall.{w, v, u} C]
  {D : Type u'} [inst_3 : CategoryTheory.Category.{v', u'} D] [Small.{w, u'} D]
  [CategoryTheory.LocallySmall.{w, v', u'} D], Small.{w, max (max (max u' u) v') v} (CategoryTheory.Functor C D)

instance CategoryTheory.instLocallySmallFunctor E0 #

∀ {A : Type u'} [inst : CategoryTheory.Category.{v', u'} A] [CategoryTheory.LocallySmall.{w, v', u'} A] (C : Type w)
  [inst_2 : CategoryTheory.SmallCategory C],
  CategoryTheory.LocallySmall.{w, max v' w, max (max (max u' w) v') w} (CategoryTheory.Functor C A)