The areas / V24. Category theory
Mathlib.CategoryTheory.Category.ULift
48 declarations. Mathlib docs · Source
Basic API for ULift
This file contains a very basic API for working with the categorical
instance on ULift C where C is a type with a category instance.
CategoryTheory.ULift.upFunctoris the functorial version of the usualULift.up.CategoryTheory.ULift.downFunctoris the functorial version of the usualULift.down.CategoryTheory.ULift.equivalenceis the categorical equivalence betweenCandULift C.
ULiftHom
Given a type C : Type u, ULiftHom.{w} C is just an alias for C.
If we have Category.{v} C, then ULiftHom.{w} C is endowed with a category instance
whose morphisms are obtained by applying ULift.{w} to the morphisms from C.
This is a category equivalent to C. The forward direction of the equivalence is ULiftHom.up,
the backward direction is ULiftHom.down and the equivalence is ULiftHom.equiv.
AsSmall
This file also contains a construction which takes a type C : Type u with a
category instance Category.{v} C and makes a small category
AsSmall.{w} C : Type (max w v u) equivalent to C.
The forward direction of the equivalence, C ⥤ AsSmall C, is denoted AsSmall.up
and the backward direction is AsSmall.down. The equivalence itself is AsSmall.equiv.
def CategoryTheory.ULift.upFunctor E1 #
{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → CategoryTheory.Functor C (ULift.{u₂, u₁} C)
The functorial version of ULift.up.
theorem CategoryTheory.ULift.upFunctor_obj_down E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (down : C),
(CategoryTheory.ULift.upFunctor.obj down).down = down
theorem CategoryTheory.ULift.upFunctor_map E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : X ⟶ Y),
CategoryTheory.ULift.upFunctor.map f = f
def CategoryTheory.ULift.downFunctor E1 #
{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → CategoryTheory.Functor (ULift.{u₂, u₁} C) C
The functorial version of ULift.down.
theorem CategoryTheory.ULift.downFunctor_map E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : ULift.{u₂, u₁} C} (f : X ⟶ Y),
CategoryTheory.ULift.downFunctor.map f = f
theorem CategoryTheory.ULift.downFunctor_obj E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (self : ULift.{u₂, u₁} C),
CategoryTheory.ULift.downFunctor.obj self = self.down
def CategoryTheory.ULift.equivalence E1 #
{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → C ≌ ULift.{u₂, u₁} C
The categorical equivalence between C and ULift C.
theorem CategoryTheory.ULift.equivalence_unitIso_inv E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C],
CategoryTheory.ULift.equivalence.unitIso.inv =
CategoryTheory.CategoryStruct.id (CategoryTheory.ULift.upFunctor.comp CategoryTheory.ULift.downFunctor)
theorem CategoryTheory.ULift.equivalence_counitIso_hom_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (x : ULift.{u₂, u₁} C),
CategoryTheory.ULift.equivalence.counitIso.hom.app x =
CategoryTheory.CategoryStruct.id ((CategoryTheory.ULift.downFunctor.comp CategoryTheory.ULift.upFunctor).obj x)
theorem CategoryTheory.ULift.equivalence_unitIso_hom E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C],
CategoryTheory.ULift.equivalence.unitIso.hom = CategoryTheory.CategoryStruct.id (CategoryTheory.Functor.id C)
theorem CategoryTheory.ULift.equivalence_functor E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C],
CategoryTheory.ULift.equivalence.functor = CategoryTheory.ULift.upFunctor
theorem CategoryTheory.ULift.equivalence_counitIso_inv_app E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (x : ULift.{u₂, u₁} C),
CategoryTheory.ULift.equivalence.counitIso.inv.app x =
CategoryTheory.CategoryStruct.id ((CategoryTheory.Functor.id (ULift.{u₂, u₁} C)).obj x)
theorem CategoryTheory.ULift.equivalence_inverse E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C],
CategoryTheory.ULift.equivalence.inverse = CategoryTheory.ULift.downFunctor
def CategoryTheory.ULiftHom E1 #
Type u → Type u
ULiftHom.{w} C is an alias for C, which is endowed with a category instance
whose morphisms are obtained by applying ULift.{w} to the morphisms from C.
instance CategoryTheory.instInhabitedULiftHom E0 #
{C : Type u_1} → [Inhabited C] → Inhabited (CategoryTheory.ULiftHom C)
def CategoryTheory.ULiftHom.objDown E1 #
{C : Type u_1} → CategoryTheory.ULiftHom C → C
The obvious function ULiftHom C → C.
def CategoryTheory.ULiftHom.objUp E1 #
{C : Type u_1} → C → CategoryTheory.ULiftHom C
The obvious function C → ULiftHom C.
def CategoryTheory.ULiftHom.objEquiv E1 #
{C : Type u_1} → C ≃ CategoryTheory.ULiftHom C
The type-level equivalence between C and ULiftHom C.
theorem CategoryTheory.objDown_objUp E0 #
∀ {C : Type u_1} (A : C), (CategoryTheory.ULiftHom.objUp A).objDown = A
theorem CategoryTheory.objUp_objDown E0 #
∀ {C : Type u_1} (A : CategoryTheory.ULiftHom C), CategoryTheory.ULiftHom.objUp A.objDown = A
instance CategoryTheory.ULiftHom.category E0 #
{C : Type u₁} →
[CategoryTheory.Category.{v₁, u₁} C] → CategoryTheory.Category.{max v₂ v₁, u₁} (CategoryTheory.ULiftHom C)
def CategoryTheory.ULiftHom.up E1 #
{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → CategoryTheory.Functor C (CategoryTheory.ULiftHom C)
One half of the equivalence between C and ULiftHom C.
theorem CategoryTheory.ULiftHom.up_map_down E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : X ⟶ Y),
(CategoryTheory.ULiftHom.up.map f).down = f
theorem CategoryTheory.ULiftHom.up_obj E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (A : C),
CategoryTheory.ULiftHom.up.obj A = CategoryTheory.ULiftHom.objUp A
def CategoryTheory.ULiftHom.down E1 #
{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → CategoryTheory.Functor (CategoryTheory.ULiftHom C) C
One half of the equivalence between C and ULiftHom C.
theorem CategoryTheory.ULiftHom.down_map E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : CategoryTheory.ULiftHom C} (f : X ⟶ Y),
CategoryTheory.ULiftHom.down.map f = f.down
theorem CategoryTheory.ULiftHom.down_obj E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (A : CategoryTheory.ULiftHom C),
CategoryTheory.ULiftHom.down.obj A = A.objDown
def CategoryTheory.ULiftHom.equiv E1 #
{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → C ≌ CategoryTheory.ULiftHom C
The equivalence between C and ULiftHom C.
def CategoryTheory.AsSmall E1 #
(D : Type u) → [CategoryTheory.Category.{v, u} D] → Type (max u w v)
AsSmall C is a small category equivalent to C.
More specifically, if C : Type u is endowed with Category.{v} C, then
AsSmall.{w} C : Type (max w v u) is endowed with an instance of a small category.
The objects and morphisms of AsSmall C are defined by applying ULift to the
objects and morphisms of C.
Note: We require a category instance for this definition in order to have direct
access to the universe level v.
instance CategoryTheory.instSmallCategoryAsSmall E0 #
{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → CategoryTheory.SmallCategory (CategoryTheory.AsSmall C)
def CategoryTheory.AsSmall.up E1 #
{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → CategoryTheory.Functor C (CategoryTheory.AsSmall C)
One half of the equivalence between C and AsSmall C.
theorem CategoryTheory.AsSmall.up_obj_down E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (X : C), (CategoryTheory.AsSmall.up.obj X).down = X
theorem CategoryTheory.AsSmall.up_map_down E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : X ⟶ Y),
(CategoryTheory.AsSmall.up.map f).down = f
def CategoryTheory.AsSmall.down E1 #
{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → CategoryTheory.Functor (CategoryTheory.AsSmall C) C
One half of the equivalence between C and AsSmall C.
theorem CategoryTheory.AsSmall.down_obj E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] (X : CategoryTheory.AsSmall C),
CategoryTheory.AsSmall.down.obj X = X.down
theorem CategoryTheory.AsSmall.down_map E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : CategoryTheory.AsSmall C} (f : X ⟶ Y),
CategoryTheory.AsSmall.down.map f = f.down
theorem CategoryTheory.down_comp_assoc E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : CategoryTheory.AsSmall C} (f : X ⟶ Y) (g : Y ⟶ Z)
{Z_1 : C} (h : Z.down ⟶ Z_1),
CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp f g).down h =
CategoryTheory.CategoryStruct.comp f.down (CategoryTheory.CategoryStruct.comp g.down h)
theorem CategoryTheory.down_comp E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : CategoryTheory.AsSmall C} (f : X ⟶ Y) (g : Y ⟶ Z),
(CategoryTheory.CategoryStruct.comp f g).down = CategoryTheory.CategoryStruct.comp f.down g.down
theorem CategoryTheory.eqToHom_down E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : CategoryTheory.AsSmall C} (h : X = Y),
(CategoryTheory.eqToHom h).down = CategoryTheory.eqToHom ⋯
def CategoryTheory.AsSmall.equiv E1 #
{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → C ≌ CategoryTheory.AsSmall C
The equivalence between C and AsSmall C.
theorem CategoryTheory.AsSmall.equiv_unitIso E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C],
CategoryTheory.AsSmall.equiv.unitIso = CategoryTheory.NatIso.ofComponents (fun x ↦ CategoryTheory.eqToIso ⋯) ⋯
theorem CategoryTheory.AsSmall.equiv_counitIso E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C],
CategoryTheory.AsSmall.equiv.counitIso = CategoryTheory.NatIso.ofComponents (fun x ↦ CategoryTheory.eqToIso ⋯) ⋯
theorem CategoryTheory.AsSmall.equiv_inverse E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C],
CategoryTheory.AsSmall.equiv.inverse = CategoryTheory.AsSmall.down
theorem CategoryTheory.AsSmall.equiv_functor E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C],
CategoryTheory.AsSmall.equiv.functor = CategoryTheory.AsSmall.up
instance CategoryTheory.instInhabitedAsSmall E0 #
{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → [Inhabited C] → Inhabited (CategoryTheory.AsSmall C)
def CategoryTheory.ULiftHomULiftCategory.objEquiv E1 #
{C : Type u} → C ≃ CategoryTheory.ULiftHom (ULift.{u', u} C)
The type-level equivalence between C and ULiftHom (ULift C).
def CategoryTheory.ULiftHomULiftCategory.equiv E1 #
(C : Type u) → [inst : CategoryTheory.Category.{v, u} C] → C ≌ CategoryTheory.ULiftHom (ULift.{u', u} C)
The equivalence between C and ULiftHom (ULift C).
def CategoryTheory.ULiftHomULiftCategory.equivCongrLeft E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
CategoryTheory.Functor C D ≃ CategoryTheory.Functor C (CategoryTheory.ULiftHom (ULift.{u', u₂} D))
A type-level equivalence (C ⥤ D) ≃ (C ⥤ (ULiftHom.{v'} (ULift.{u'} D))). Note that this is
not ensured by a categorical equivalence, and so needs special treatment.