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

42 declarations. Mathlib docs · Source

theorem CategoryTheory.SmallCategoryOfSet.mk.injEq E0 #

∀ {Ω : Type w} (obj : Set Ω) (hom : ↑obj → ↑obj → Set Ω) (id : (X : ↑obj) → ↑(hom X X))
  (comp : {X Y Z : ↑obj} → ↑(hom X Y) → ↑(hom Y Z) → ↑(hom X Z))
  (id_comp :
    autoParam (∀ {X Y : ↑obj} (f : ↑(hom X Y)), comp (id X) f = f) CategoryTheory.SmallCategoryOfSet.id_comp._autoParam)
  (comp_id :
    autoParam (∀ {X Y : ↑obj} (f : ↑(hom X Y)), comp f (id Y) = f) CategoryTheory.SmallCategoryOfSet.comp_id._autoParam)
  (assoc :
    autoParam
      (∀ {X Y Z T : ↑obj} (f : ↑(hom X Y)) (g : ↑(hom Y Z)) (h : ↑(hom Z T)), comp (comp f g) h = comp f (comp g h))
      CategoryTheory.SmallCategoryOfSet.assoc._autoParam)
  (obj_1 : Set Ω) (hom_1 : ↑obj_1 → ↑obj_1 → Set Ω) (id_1 : (X : ↑obj_1) → ↑(hom_1 X X))
  (comp_1 : {X Y Z : ↑obj_1} → ↑(hom_1 X Y) → ↑(hom_1 Y Z) → ↑(hom_1 X Z))
  (id_comp_1 :
    autoParam (∀ {X Y : ↑obj_1} (f : ↑(hom_1 X Y)), comp_1 (id_1 X) f = f)
      CategoryTheory.SmallCategoryOfSet.id_comp._autoParam)
  (comp_id_1 :
    autoParam (∀ {X Y : ↑obj_1} (f : ↑(hom_1 X Y)), comp_1 f (id_1 Y) = f)
      CategoryTheory.SmallCategoryOfSet.comp_id._autoParam)
  (assoc_1 :
    autoParam
      (∀ {X Y Z T : ↑obj_1} (f : ↑(hom_1 X Y)) (g : ↑(hom_1 Y Z)) (h : ↑(hom_1 Z T)),
        comp_1 (comp_1 f g) h = comp_1 f (comp_1 g h))
      CategoryTheory.SmallCategoryOfSet.assoc._autoParam),
  ({ obj := obj, hom := hom, id := id, comp := comp, id_comp := id_comp, comp_id := comp_id, assoc := assoc } =
      { obj := obj_1, hom := hom_1, id := id_1, comp := comp_1, id_comp := id_comp_1, comp_id := comp_id_1,
        assoc := assoc_1 }) =
    (obj = obj_1 ∧ hom ≍ hom_1 ∧ id ≍ id_1 ∧ comp ≍ comp_1)

def CategoryTheory.SmallCategoryOfSet.ctorIdx E1 #

{Ω : Type w} → CategoryTheory.SmallCategoryOfSet Ω → ℕ

theorem CategoryTheory.CoreSmallCategoryOfSet.mk.inj E1 #

∀ {Ω : Type w} {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {obj : Set Ω} {hom : ↑obj → ↑obj → Set Ω}
  {objEquiv : ↑obj ≃ C} {homEquiv : {X Y : ↑obj} → ↑(hom X Y) ≃ (objEquiv X ⟶ objEquiv Y)} {obj_1 : Set Ω}
  {hom_1 : ↑obj_1 → ↑obj_1 → Set Ω} {objEquiv_1 : ↑obj_1 ≃ C}
  {homEquiv_1 : {X Y : ↑obj_1} → ↑(hom_1 X Y) ≃ (objEquiv_1 X ⟶ objEquiv_1 Y)},
  { obj := obj, hom := hom, objEquiv := objEquiv, homEquiv := homEquiv } =
      { obj := obj_1, hom := hom_1, objEquiv := objEquiv_1, homEquiv := homEquiv_1 } →
    obj = obj_1 ∧ hom ≍ hom_1 ∧ objEquiv ≍ objEquiv_1 ∧ homEquiv ≍ homEquiv_1

theorem CategoryTheory.CoreSmallCategoryOfSet.mk.injEq E0 #

∀ {Ω : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (obj : Set Ω) (hom : ↑obj → ↑obj → Set Ω)
  (objEquiv : ↑obj ≃ C) (homEquiv : {X Y : ↑obj} → ↑(hom X Y) ≃ (objEquiv X ⟶ objEquiv Y)) (obj_1 : Set Ω)
  (hom_1 : ↑obj_1 → ↑obj_1 → Set Ω) (objEquiv_1 : ↑obj_1 ≃ C)
  (homEquiv_1 : {X Y : ↑obj_1} → ↑(hom_1 X Y) ≃ (objEquiv_1 X ⟶ objEquiv_1 Y)),
  ({ obj := obj, hom := hom, objEquiv := objEquiv, homEquiv := homEquiv } =
      { obj := obj_1, hom := hom_1, objEquiv := objEquiv_1, homEquiv := homEquiv_1 }) =
    (obj = obj_1 ∧ hom ≍ hom_1 ∧ objEquiv ≍ objEquiv_1 ∧ homEquiv ≍ homEquiv_1)

theorem CategoryTheory.SmallCategoryOfSet.mk.inj E1 #

∀ {Ω : Type w} {obj : Set Ω} {hom : ↑obj → ↑obj → Set Ω} {id : (X : ↑obj) → ↑(hom X X)}
  {comp : {X Y Z : ↑obj} → ↑(hom X Y) → ↑(hom Y Z) → ↑(hom X Z)}
  {id_comp :
    autoParam (∀ {X Y : ↑obj} (f : ↑(hom X Y)), comp (id X) f = f) CategoryTheory.SmallCategoryOfSet.id_comp._autoParam}
  {comp_id :
    autoParam (∀ {X Y : ↑obj} (f : ↑(hom X Y)), comp f (id Y) = f) CategoryTheory.SmallCategoryOfSet.comp_id._autoParam}
  {assoc :
    autoParam
      (∀ {X Y Z T : ↑obj} (f : ↑(hom X Y)) (g : ↑(hom Y Z)) (h : ↑(hom Z T)), comp (comp f g) h = comp f (comp g h))
      CategoryTheory.SmallCategoryOfSet.assoc._autoParam}
  {obj_1 : Set Ω} {hom_1 : ↑obj_1 → ↑obj_1 → Set Ω} {id_1 : (X : ↑obj_1) → ↑(hom_1 X X)}
  {comp_1 : {X Y Z : ↑obj_1} → ↑(hom_1 X Y) → ↑(hom_1 Y Z) → ↑(hom_1 X Z)}
  {id_comp_1 :
    autoParam (∀ {X Y : ↑obj_1} (f : ↑(hom_1 X Y)), comp_1 (id_1 X) f = f)
      CategoryTheory.SmallCategoryOfSet.id_comp._autoParam}
  {comp_id_1 :
    autoParam (∀ {X Y : ↑obj_1} (f : ↑(hom_1 X Y)), comp_1 f (id_1 Y) = f)
      CategoryTheory.SmallCategoryOfSet.comp_id._autoParam}
  {assoc_1 :
    autoParam
      (∀ {X Y Z T : ↑obj_1} (f : ↑(hom_1 X Y)) (g : ↑(hom_1 Y Z)) (h : ↑(hom_1 Z T)),
        comp_1 (comp_1 f g) h = comp_1 f (comp_1 g h))
      CategoryTheory.SmallCategoryOfSet.assoc._autoParam},
  { obj := obj, hom := hom, id := id, comp := comp, id_comp := id_comp, comp_id := comp_id, assoc := assoc } =
      { obj := obj_1, hom := hom_1, id := id_1, comp := comp_1, id_comp := id_comp_1, comp_id := comp_id_1,
        assoc := assoc_1 } →
    obj = obj_1 ∧ hom ≍ hom_1 ∧ id ≍ id_1 ∧ comp ≍ comp_1

def CategoryTheory.CoreSmallCategoryOfSet.ctorIdx E1 #

{Ω : Type w} → {C : Type u} → {inst : CategoryTheory.Category.{v, u} C} → CategoryTheory.CoreSmallCategoryOfSet Ω C → ℕ

structure CategoryTheory.SmallCategoryOfSet E1 #

Type w → Type w

Structure which allows to construct a category whose types of objects and morphisms are subtypes of a fixed type Ω.

ctor CategoryTheory.SmallCategoryOfSet.mk E0 #

{Ω : Type w} →
  (obj : Set Ω) →
    (hom : ↑obj → ↑obj → Set Ω) →
      (id : (X : ↑obj) → ↑(hom X X)) →
        (comp : {X Y Z : ↑obj} → ↑(hom X Y) → ↑(hom Y Z) → ↑(hom X Z)) →
          autoParam (∀ {X Y : ↑obj} (f : ↑(hom X Y)), comp (id X) f = f)
              CategoryTheory.SmallCategoryOfSet.id_comp._autoParam →
            autoParam (∀ {X Y : ↑obj} (f : ↑(hom X Y)), comp f (id Y) = f)
                CategoryTheory.SmallCategoryOfSet.comp_id._autoParam →
              autoParam
                  (∀ {X Y Z T : ↑obj} (f : ↑(hom X Y)) (g : ↑(hom Y Z)) (h : ↑(hom Z T)),
                    comp (comp f g) h = comp f (comp g h))
                  CategoryTheory.SmallCategoryOfSet.assoc._autoParam →
                CategoryTheory.SmallCategoryOfSet Ω

abbrev CategoryTheory.SmallCategoryOfSet.obj E1 #

{Ω : Type w} → CategoryTheory.SmallCategoryOfSet Ω → Set Ω

objects

abbrev CategoryTheory.SmallCategoryOfSet.hom E1 #

{Ω : Type w} → (self : CategoryTheory.SmallCategoryOfSet Ω) → ↑self.obj → ↑self.obj → Set Ω

morphisms

abbrev CategoryTheory.SmallCategoryOfSet.id E1 #

{Ω : Type w} → (self : CategoryTheory.SmallCategoryOfSet Ω) → (X : ↑self.obj) → ↑(self.hom X X)

identity morphisms

abbrev CategoryTheory.SmallCategoryOfSet.comp E1 #

{Ω : Type w} →
  (self : CategoryTheory.SmallCategoryOfSet Ω) →
    {X Y Z : ↑self.obj} → ↑(self.hom X Y) → ↑(self.hom Y Z) → ↑(self.hom X Z)

the composition of morphisms

theorem CategoryTheory.SmallCategoryOfSet.id_comp E0 #

∀ {Ω : Type w} (self : CategoryTheory.SmallCategoryOfSet Ω) {X Y : ↑self.obj} (f : ↑(self.hom X Y)),
  self.comp (self.id X) f = f

theorem CategoryTheory.SmallCategoryOfSet.comp_id E0 #

∀ {Ω : Type w} (self : CategoryTheory.SmallCategoryOfSet Ω) {X Y : ↑self.obj} (f : ↑(self.hom X Y)),
  self.comp f (self.id Y) = f

theorem CategoryTheory.SmallCategoryOfSet.assoc E0 #

∀ {Ω : Type w} (self : CategoryTheory.SmallCategoryOfSet Ω) {X Y Z T : ↑self.obj} (f : ↑(self.hom X Y))
  (g : ↑(self.hom Y Z)) (h : ↑(self.hom Z T)), self.comp (self.comp f g) h = self.comp f (self.comp g h)

theorem CategoryTheory.SmallCategoryOfSet.id_def E0 #

∀ (Ω : Type w) (S : CategoryTheory.SmallCategoryOfSet Ω) (X : ↑S.obj), CategoryTheory.CategoryStruct.id X = S.id X

theorem CategoryTheory.SmallCategoryOfSet.comp_def E0 #

∀ (Ω : Type w) (S : CategoryTheory.SmallCategoryOfSet Ω) {X Y Z : ↑S.obj} (f : ↑(S.hom X Y)) (g : ↑(S.hom Y Z)),
  CategoryTheory.CategoryStruct.comp f g = S.comp f g

instance CategoryTheory.SmallCategoryOfSet.instSmallCategoryElemObj E0 #

(Ω : Type w) → (S : CategoryTheory.SmallCategoryOfSet Ω) → CategoryTheory.SmallCategory ↑S.obj

abbrev CategoryTheory.SmallCategoryOfSet.categoryFamily E1 #

(Ω : Type w) → CategoryTheory.SmallCategoryOfSet Ω → Type w

The family of all categories such that the types of objects and morphisms are subtypes of a given type Ω.

structure CategoryTheory.CoreSmallCategoryOfSet E1 #

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

Helper structure for the construction of a term in SmallCategoryOfSet. This involves the choice of bijections between types of objects and morphisms in a category C and subtypes of a type Ω.

ctor CategoryTheory.CoreSmallCategoryOfSet.mk E0 #

{Ω : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (obj : Set Ω) →
        (hom : ↑obj → ↑obj → Set Ω) →
          (objEquiv : ↑obj ≃ C) →
            ({X Y : ↑obj} → ↑(hom X Y) ≃ (objEquiv X ⟶ objEquiv Y)) → CategoryTheory.CoreSmallCategoryOfSet Ω C

abbrev CategoryTheory.CoreSmallCategoryOfSet.obj E1 #

{Ω : Type w} →
  {C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.CoreSmallCategoryOfSet Ω C → Set Ω

objects

abbrev CategoryTheory.CoreSmallCategoryOfSet.hom E1 #

{Ω : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (self : CategoryTheory.CoreSmallCategoryOfSet Ω C) → ↑self.obj → ↑self.obj → Set Ω

morphisms

abbrev CategoryTheory.CoreSmallCategoryOfSet.objEquiv E1 #

{Ω : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] → (self : CategoryTheory.CoreSmallCategoryOfSet Ω C) → ↑self.obj ≃ C

a bijection between the types of objects

abbrev CategoryTheory.CoreSmallCategoryOfSet.homEquiv E1 #

{Ω : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (self : CategoryTheory.CoreSmallCategoryOfSet Ω C) →
        {X Y : ↑self.obj} → ↑(self.hom X Y) ≃ (self.objEquiv X ⟶ self.objEquiv Y)

a bijection between the types of morphisms

def CategoryTheory.CoreSmallCategoryOfSet.smallCategoryOfSet E1 #

{Ω : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      CategoryTheory.CoreSmallCategoryOfSet Ω C → CategoryTheory.SmallCategoryOfSet Ω

The SmallCategoryOfSet structure induced by a CoreSmallCategoryOfSet structure.

theorem CategoryTheory.CoreSmallCategoryOfSet.smallCategoryOfSet_id E0 #

∀ {Ω : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (h : CategoryTheory.CoreSmallCategoryOfSet Ω C)
  (X : ↑h.obj), h.smallCategoryOfSet.id X = h.homEquiv.symm (CategoryTheory.CategoryStruct.id (h.objEquiv X))

theorem CategoryTheory.CoreSmallCategoryOfSet.smallCategoryOfSet_hom E0 #

∀ {Ω : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (h : CategoryTheory.CoreSmallCategoryOfSet Ω C)
  (X Y : ↑h.obj), h.smallCategoryOfSet.hom X Y = h.hom X Y

theorem CategoryTheory.CoreSmallCategoryOfSet.smallCategoryOfSet_comp E0 #

∀ {Ω : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (h : CategoryTheory.CoreSmallCategoryOfSet Ω C)
  {X Y Z : ↑h.obj} (f : ↑(h.hom X Y)) (g : ↑(h.hom Y Z)),
  h.smallCategoryOfSet.comp f g = h.homEquiv.symm (CategoryTheory.CategoryStruct.comp (h.homEquiv f) (h.homEquiv g))

theorem CategoryTheory.CoreSmallCategoryOfSet.smallCategoryOfSet_obj E0 #

∀ {Ω : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (h : CategoryTheory.CoreSmallCategoryOfSet Ω C),
  h.smallCategoryOfSet.obj = h.obj

def CategoryTheory.CoreSmallCategoryOfSet.functor E1 #

{Ω : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (h : CategoryTheory.CoreSmallCategoryOfSet Ω C) → CategoryTheory.Functor (↑h.smallCategoryOfSet.obj) C

Given h : CoreSmallCategoryOfSet Ω C, this is the obvious functor h.smallCategoryOfSet.obj ⥤ C.

theorem CategoryTheory.CoreSmallCategoryOfSet.functor_obj E0 #

∀ {Ω : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (h : CategoryTheory.CoreSmallCategoryOfSet Ω C)
  (a : ↑h.obj), h.functor.obj a = h.objEquiv a

theorem CategoryTheory.CoreSmallCategoryOfSet.functor_map E0 #

∀ {Ω : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (h : CategoryTheory.CoreSmallCategoryOfSet Ω C)
  {X Y : ↑h.smallCategoryOfSet.obj} (a : ↑(h.hom X Y)), h.functor.map a = h.homEquiv a

def CategoryTheory.CoreSmallCategoryOfSet.fullyFaithfulFunctor E1 #

{Ω : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (h : CategoryTheory.CoreSmallCategoryOfSet Ω C) → h.functor.FullyFaithful

Given h : CoreSmallCategoryOfSet Ω C, the obvious functor h.smallCategoryOfSet.obj ⥤ C is fully faithful.

instance CategoryTheory.CoreSmallCategoryOfSet.instIsEquivalenceElemObjSmallCategoryOfSetFunctor E0 #

∀ {Ω : Type w} {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (h : CategoryTheory.CoreSmallCategoryOfSet Ω C),
  h.functor.IsEquivalence

def CategoryTheory.CoreSmallCategoryOfSet.equivalence E1 #

{Ω : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (h : CategoryTheory.CoreSmallCategoryOfSet Ω C) → ↑h.smallCategoryOfSet.obj ≌ C

Given h : CoreSmallCategoryOfSet Ω C, the obvious functor h.smallCategoryOfSet.obj ⥤ C is an equivalence.

def CategoryTheory.CoreSmallCategoryOfSet.arrowEquiv E1 #

{Ω : Type w} →
  {C : Type u} →
    [inst : CategoryTheory.Category.{v, u} C] →
      (h : CategoryTheory.CoreSmallCategoryOfSet Ω C) →
        CategoryTheory.Arrow ↑h.smallCategoryOfSet.obj ≃ CategoryTheory.Arrow C

Given h : CoreSmallCategoryOfSet Ω C, the equivalence of categories h.smallCategoryOfSet.obj ≌ C is actually an isomorphism: it induces a bijection on the type of arrows.

theorem CategoryTheory.SmallCategoryOfSet.exists_equivalence E1 #

∀ (Ω : Type w) (C : Type u) [inst : CategoryTheory.Category.{v, u} C],
  Cardinal.lift.{w, u} (Cardinal.mk C) ≤ Cardinal.lift.{u, w} (Cardinal.mk Ω) →
    (∀ (X Y : C), Cardinal.lift.{w, v} (Cardinal.mk (X ⟶ Y)) ≤ Cardinal.lift.{v, w} (Cardinal.mk Ω)) →
      ∃ h, Nonempty (CategoryTheory.SmallCategoryOfSet.categoryFamily Ω h ≌ C)

def CategoryTheory.SmallCategoryCardinalLT E1 #

Cardinal.{w} → Type w

Index set of a representative set of all categories C which satisfy HasCardinalLT C κ, see SmallCategoryCardinalLT.categoryFamily.

abbrev CategoryTheory.SmallCategoryCardinalLT.categoryFamily E1 #

(κ : Cardinal.{w}) → CategoryTheory.SmallCategoryCardinalLT κ → Type w

Given a cardinal κ, this is a representative family of all categories C such that HasCardinalLT C κ.

theorem CategoryTheory.SmallCategoryCardinalLT.hasCardinalLT E1 #

∀ (κ : Cardinal.{w}) (S : CategoryTheory.SmallCategoryCardinalLT κ),
  HasCardinalLT (CategoryTheory.Arrow (CategoryTheory.SmallCategoryCardinalLT.categoryFamily κ S)) κ

theorem CategoryTheory.SmallCategoryCardinalLT.exists_equivalence E1 #

∀ (κ : Cardinal.{w}) (C : Type u) [inst : CategoryTheory.Category.{v, u} C],
  HasCardinalLT (CategoryTheory.Arrow C) κ →
    ∃ S, Nonempty (CategoryTheory.SmallCategoryCardinalLT.categoryFamily κ S ≌ C)