The areas / V24. Category theory
Mathlib.CategoryTheory.IsoCat
50 declarations. Mathlib docs · Source
Isomorphisms of categories
An IsoCat C D is an isomorphism of categories: a pair of functors C ⥤ D and D ⥤ C
whose composites are equal (not merely naturally isomorphic) to the identity functors.
This is a strict notion, stronger than an equivalence of categories C ≌ D.
We also define Functor.IsIso as a property saying that a functor is fully faithful and
bijective on objects. We develop basic api for these two concepts.
Unless the application explicitly demands an isomorphism, the equivalence of categories is to be preferred.
Main definitions
CategoryTheory.IsoCat: the type of isomorphisms between categoriesCandD.CategoryTheory.Functor.IsIso: a typeclass expressing that a functor is full, faithful and bijective on objects, hence underlies an isomorphism of categories.
theorem CategoryTheory.IsoCat.mk.inj E1 #
∀ {C : Type u_1} {D : Type u_2} {inst : CategoryTheory.Category.{v_1, u_1} C}
{inst_1 : CategoryTheory.Category.{v_2, u_2} D} {functor : CategoryTheory.Functor C D}
{inverse : CategoryTheory.Functor D C} {unit_eq : CategoryTheory.Functor.id C = functor.comp inverse}
{counit_eq : inverse.comp functor = CategoryTheory.Functor.id D} {functor_1 : CategoryTheory.Functor C D}
{inverse_1 : CategoryTheory.Functor D C} {unit_eq_1 : CategoryTheory.Functor.id C = functor_1.comp inverse_1}
{counit_eq_1 : inverse_1.comp functor_1 = CategoryTheory.Functor.id D},
{ functor := functor, inverse := inverse, unit_eq := unit_eq, counit_eq := counit_eq } =
{ functor := functor_1, inverse := inverse_1, unit_eq := unit_eq_1, counit_eq := counit_eq_1 } →
functor = functor_1 ∧ inverse = inverse_1
theorem CategoryTheory.Functor.objEquiv.congr_simp E1 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (F F_1 : CategoryTheory.Functor C D) (e_F : F = F_1)
[inst_2 : F.IsIso], F.objEquiv = F_1.objEquiv
theorem CategoryTheory.IsoCat.mk.injEq E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (functor : CategoryTheory.Functor C D)
(inverse : CategoryTheory.Functor D C) (unit_eq : CategoryTheory.Functor.id C = functor.comp inverse)
(counit_eq : inverse.comp functor = CategoryTheory.Functor.id D) (functor_1 : CategoryTheory.Functor C D)
(inverse_1 : CategoryTheory.Functor D C) (unit_eq_1 : CategoryTheory.Functor.id C = functor_1.comp inverse_1)
(counit_eq_1 : inverse_1.comp functor_1 = CategoryTheory.Functor.id D),
({ functor := functor, inverse := inverse, unit_eq := unit_eq, counit_eq := counit_eq } =
{ functor := functor_1, inverse := inverse_1, unit_eq := unit_eq_1, counit_eq := counit_eq_1 }) =
(functor = functor_1 ∧ inverse = inverse_1)
def CategoryTheory.IsoCat.ctorIdx E1 #
{C : Type u_1} →
{D : Type u_2} →
{inst : CategoryTheory.Category.{v_1, u_1} C} →
{inst_1 : CategoryTheory.Category.{v_2, u_2} D} → CategoryTheory.IsoCat C D → ℕ
structure CategoryTheory.IsoCat E3 #
(C : Type u_1) →
(D : Type u_2) →
[CategoryTheory.Category.{v_1, u_1} C] →
[CategoryTheory.Category.{v_2, u_2} D] → Type (max (max (max u_1 u_2) v_1) v_2)
An isomorphism of categories: a pair of functors whose composites are equal to the identity functors.
ctor CategoryTheory.IsoCat.mk E0 #
{C : Type u_1} →
{D : Type u_2} →
[inst : CategoryTheory.Category.{v_1, u_1} C] →
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
(functor : CategoryTheory.Functor C D) →
(inverse : CategoryTheory.Functor D C) →
CategoryTheory.Functor.id C = functor.comp inverse →
inverse.comp functor = CategoryTheory.Functor.id D → CategoryTheory.IsoCat C D
abbrev CategoryTheory.IsoCat.functor E1 #
{C : Type u_1} →
{D : Type u_2} →
[inst : CategoryTheory.Category.{v_1, u_1} C] →
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] → CategoryTheory.IsoCat C D → CategoryTheory.Functor C D
The forward functor of an isomorphism of categories.
abbrev CategoryTheory.IsoCat.inverse E1 #
{C : Type u_1} →
{D : Type u_2} →
[inst : CategoryTheory.Category.{v_1, u_1} C] →
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] → CategoryTheory.IsoCat C D → CategoryTheory.Functor D C
The inverse functor of an isomorphism of categories.
theorem CategoryTheory.IsoCat.unit_eq E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (self : CategoryTheory.IsoCat C D),
CategoryTheory.Functor.id C = self.functor.comp self.inverse
The composition functor ⋙ inverse is equal to the identity.
theorem CategoryTheory.IsoCat.counit_eq E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (self : CategoryTheory.IsoCat C D),
self.inverse.comp self.functor = CategoryTheory.Functor.id D
The composition inverse ⋙ functor is equal to the identity.
def CategoryTheory.IsoCat.refl E1 #
(C : Type u_1) → [inst : CategoryTheory.Category.{v_1, u_1} C] → CategoryTheory.IsoCat C C
The identity isomorphism of categories.
theorem CategoryTheory.IsoCat.refl_inverse E0 #
∀ (C : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} C],
(CategoryTheory.IsoCat.refl C).inverse = CategoryTheory.Functor.id C
theorem CategoryTheory.IsoCat.refl_functor E0 #
∀ (C : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} C],
(CategoryTheory.IsoCat.refl C).functor = CategoryTheory.Functor.id C
def CategoryTheory.IsoCat.symm E1 #
{C : Type u_1} →
{D : Type u_2} →
[inst : CategoryTheory.Category.{v_1, u_1} C] →
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] → CategoryTheory.IsoCat C D → CategoryTheory.IsoCat D C
The inverse isomorphism of categories, obtained by swapping functor and inverse.
theorem CategoryTheory.IsoCat.symm_inverse E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (e : CategoryTheory.IsoCat C D), e.symm.inverse = e.functor
theorem CategoryTheory.IsoCat.symm_functor E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (e : CategoryTheory.IsoCat C D), e.symm.functor = e.inverse
def CategoryTheory.IsoCat.trans E1 #
{C : Type u_1} →
{D : Type u_2} →
{E : Type u_3} →
[inst : CategoryTheory.Category.{v_1, u_1} C] →
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
[inst_2 : CategoryTheory.Category.{v_3, u_3} E] →
CategoryTheory.IsoCat C D → CategoryTheory.IsoCat D E → CategoryTheory.IsoCat C E
Composition of isomorphisms of categories.
theorem CategoryTheory.IsoCat.trans_functor E0 #
∀ {C : Type u_1} {D : Type u_2} {E : Type u_3} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] [inst_2 : CategoryTheory.Category.{v_3, u_3} E]
(e : CategoryTheory.IsoCat C D) (f : CategoryTheory.IsoCat D E), (e.trans f).functor = e.functor.comp f.functor
theorem CategoryTheory.IsoCat.trans_inverse E0 #
∀ {C : Type u_1} {D : Type u_2} {E : Type u_3} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] [inst_2 : CategoryTheory.Category.{v_3, u_3} E]
(e : CategoryTheory.IsoCat C D) (f : CategoryTheory.IsoCat D E), (e.trans f).inverse = f.inverse.comp e.inverse
def CategoryTheory.IsoCat.objEquiv E1 #
{C : Type u_1} →
{D : Type u_2} →
[inst : CategoryTheory.Category.{v_1, u_1} C] →
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] → CategoryTheory.IsoCat C D → C ≃ D
The bijection on objects induced by an isomorphism of categories.
theorem CategoryTheory.IsoCat.objEquiv_apply E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (e : CategoryTheory.IsoCat C D) (a : C),
e.objEquiv a = e.functor.obj a
theorem CategoryTheory.IsoCat.objEquiv_symm_apply E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (e : CategoryTheory.IsoCat C D) (a : D),
e.objEquiv.symm a = e.inverse.obj a
theorem CategoryTheory.IsoCat.functor_comp_injective E1 #
∀ {C : Type u_1} {D : Type u_2} {E : Type u_3} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] [inst_2 : CategoryTheory.Category.{v_3, u_3} E]
(e : CategoryTheory.IsoCat C D) {F G : CategoryTheory.Functor D E}, e.functor.comp F = e.functor.comp G → F = G
theorem CategoryTheory.IsoCat.comp_functor_injective E1 #
∀ {C : Type u_1} {D : Type u_2} {E : Type u_3} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] [inst_2 : CategoryTheory.Category.{v_3, u_3} E]
(e : CategoryTheory.IsoCat C D) {F G : CategoryTheory.Functor E C}, F.comp e.functor = G.comp e.functor → F = G
class CategoryTheory.Functor.IsIso E3 #
{C : Type u_1} →
{D : Type u_2} →
[inst : CategoryTheory.Category.{v_1, u_1} C] →
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] → CategoryTheory.Functor C D → Prop
A functor F : C ⥤ D is an isomorphism of categories if it is full, faithful and
bijective on objects. Such a functor has a strict inverse Functor.strictInv and assembles
into an IsoCat via Functor.asIsomorphism.
ctor CategoryTheory.Functor.IsIso.mk E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] {F : CategoryTheory.Functor C D},
autoParam F.Faithful CategoryTheory.Functor.IsIso.faithful._autoParam →
autoParam F.Full CategoryTheory.Functor.IsIso.full._autoParam → Function.Bijective F.obj → F.IsIso
instance CategoryTheory.Functor.IsIso.faithful E0 #
∀ {C : Type u_1} {D : Type u_2} {inst : CategoryTheory.Category.{v_1, u_1} C}
{inst_1 : CategoryTheory.Category.{v_2, u_2} D} {F : CategoryTheory.Functor C D} [self : F.IsIso], F.Faithful
A functor which is an isomorphism of categories is faithful.
instance CategoryTheory.Functor.IsIso.full E0 #
∀ {C : Type u_1} {D : Type u_2} {inst : CategoryTheory.Category.{v_1, u_1} C}
{inst_1 : CategoryTheory.Category.{v_2, u_2} D} {F : CategoryTheory.Functor C D} [self : F.IsIso], F.Full
A functor which is an isomorphism of categories is full.
theorem CategoryTheory.Functor.IsIso.bijective_obj E1 #
∀ {C : Type u_1} {D : Type u_2} {inst : CategoryTheory.Category.{v_1, u_1} C}
{inst_1 : CategoryTheory.Category.{v_2, u_2} D} (F : CategoryTheory.Functor C D) [self : F.IsIso],
Function.Bijective F.obj
A functor which is an isomorphism of categories is bijective on objects.
instance CategoryTheory.Functor.instIsIsoId E0 #
∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C], (CategoryTheory.Functor.id C).IsIso
def CategoryTheory.Functor.objEquiv E1 #
{C : Type u_1} →
{D : Type u_2} →
[inst : CategoryTheory.Category.{v_1, u_1} C] →
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] → (F : CategoryTheory.Functor C D) → [F.IsIso] → C ≃ D
The bijection on objects induced by a functor that is an isomorphism of categories.
theorem CategoryTheory.Functor.objEquiv_symm_apply_apply E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (F : CategoryTheory.Functor C D) [inst_2 : F.IsIso] (X : C),
F.objEquiv.symm (F.obj X) = X
theorem CategoryTheory.Functor.objEquiv_apply_symm_apply E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (F : CategoryTheory.Functor C D) [inst_2 : F.IsIso] (Y : D),
F.obj (F.objEquiv.symm Y) = Y
instance CategoryTheory.Functor.instIsEquivalence E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (F : CategoryTheory.Functor C D) [F.IsIso], F.IsEquivalence
def CategoryTheory.Functor.strictInv E1 #
{C : Type u_1} →
{D : Type u_2} →
[inst : CategoryTheory.Category.{v_1, u_1} C] →
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
(F : CategoryTheory.Functor C D) → [F.IsIso] → CategoryTheory.Functor D C
The strict inverse of a functor that is an isomorphism of categories, defined using
Functor.objEquiv on objects and Functor.preimage on morphisms.
def CategoryTheory.Functor.asIsomorphism E1 #
{C : Type u_1} →
{D : Type u_2} →
[inst : CategoryTheory.Category.{v_1, u_1} C] →
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
(F : CategoryTheory.Functor C D) → [F.IsIso] → CategoryTheory.IsoCat C D
A functor that is an isomorphism of categories assembles into an IsoCat,
with Functor.strictInv as its inverse.
def CategoryTheory.IsoCat.toEquivalence E1 #
{C : Type u_1} →
{D : Type u_2} →
[inst : CategoryTheory.Category.{v_1, u_1} C] →
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] → CategoryTheory.IsoCat C D → (C ≌ D)
The equivalence of categories underlying an IsoCat, with the unit and counit
isomorphisms induced by the defining equalities.
def CategoryTheory.Equivalence.toIsoCat E1 #
{C : Type u_1} →
{D : Type u_2} →
[inst : CategoryTheory.Category.{v_1, u_1} C] →
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] →
(e : C ≌ D) →
(h : ∀ (X : C), e.inverse.obj (e.functor.obj X) = X) →
(h' : ∀ (Y : D), e.functor.obj (e.inverse.obj Y) = Y) →
autoParam (∀ (X : C), e.unitIso.hom.app X = CategoryTheory.eqToHom ⋯)
CategoryTheory.Equivalence.toIsoCat._auto_1 →
autoParam (∀ (Y : D), e.counitIso.hom.app Y = CategoryTheory.eqToHom ⋯)
CategoryTheory.Equivalence.toIsoCat._auto_3 →
CategoryTheory.IsoCat C D
Promotes an equivalence of categories e : C ≌ D whose unit and counit isomorphisms are
given by equalities of objects into an IsoCat C D.
theorem CategoryTheory.Equivalence.toIsoCat_functor E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (e : C ≌ D) (h : ∀ (X : C), e.inverse.obj (e.functor.obj X) = X)
(h' : ∀ (Y : D), e.functor.obj (e.inverse.obj Y) = Y)
(k :
autoParam (∀ (X : C), e.unitIso.hom.app X = CategoryTheory.eqToHom ⋯) CategoryTheory.Equivalence.toIsoCat._auto_1)
(k' :
autoParam (∀ (Y : D), e.counitIso.hom.app Y = CategoryTheory.eqToHom ⋯)
CategoryTheory.Equivalence.toIsoCat._auto_3),
(e.toIsoCat h h' k k').functor = e.functor
theorem CategoryTheory.Equivalence.toIsoCat_inverse E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (e : C ≌ D) (h : ∀ (X : C), e.inverse.obj (e.functor.obj X) = X)
(h' : ∀ (Y : D), e.functor.obj (e.inverse.obj Y) = Y)
(k :
autoParam (∀ (X : C), e.unitIso.hom.app X = CategoryTheory.eqToHom ⋯) CategoryTheory.Equivalence.toIsoCat._auto_1)
(k' :
autoParam (∀ (Y : D), e.counitIso.hom.app Y = CategoryTheory.eqToHom ⋯)
CategoryTheory.Equivalence.toIsoCat._auto_3),
(e.toIsoCat h h' k k').inverse = e.inverse
instance CategoryTheory.IsoCat.isIso_functor E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (e : CategoryTheory.IsoCat C D), e.functor.IsIso
instance CategoryTheory.instIsIsoInverse E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (e : CategoryTheory.IsoCat C D), e.inverse.IsIso
instance CategoryTheory.instIsIsoStrictInv E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (F : CategoryTheory.Functor C D) [inst_2 : F.IsIso], F.strictInv.IsIso
instance CategoryTheory.instIsIsoComp E0 #
∀ {C : Type u_1} {D : Type u_2} {E : Type u_3} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] [inst_2 : CategoryTheory.Category.{v_3, u_3} E]
(F : CategoryTheory.Functor C D) (G : CategoryTheory.Functor D E) [F.IsIso] [G.IsIso], (F.comp G).IsIso
def CategoryTheory.InducedCategory.isoCat E1 #
{C : Type u_4} →
{D : Type u_5} →
[inst : CategoryTheory.Category.{v_4, u_4} C] →
(e : D ≃ C) → CategoryTheory.IsoCat (CategoryTheory.InducedCategory C ⇑e) C
The isomorphism of categories between InducedCategory C e and C when
e : D ≃ C is a bijection.
theorem CategoryTheory.InducedCategory.isoCat_inverse_map_hom E0 #
∀ {C : Type u_4} {D : Type u_5} [inst : CategoryTheory.Category.{v_4, u_4} C] (e : D ≃ C) {X Y : C} (f : X ⟶ Y),
((CategoryTheory.InducedCategory.isoCat e).inverse.map f).hom =
CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
(CategoryTheory.CategoryStruct.comp f (CategoryTheory.eqToHom ⋯))
theorem CategoryTheory.InducedCategory.isoCat_inverse_obj E0 #
∀ {C : Type u_4} {D : Type u_5} [inst : CategoryTheory.Category.{v_4, u_4} C] (e : D ≃ C) (X : C),
(CategoryTheory.InducedCategory.isoCat e).inverse.obj X = e.symm X
theorem CategoryTheory.InducedCategory.isoCat_functor E0 #
∀ {C : Type u_4} {D : Type u_5} [inst : CategoryTheory.Category.{v_4, u_4} C] (e : D ≃ C),
(CategoryTheory.InducedCategory.isoCat e).functor = CategoryTheory.inducedFunctor ⇑e
abbrev CategoryTheory.InducedCategory.equivalence E1 #
{C : Type u_4} →
{D : Type u_5} → [inst : CategoryTheory.Category.{v_4, u_4} C] → (e : D ≃ C) → CategoryTheory.InducedCategory C ⇑e ≌ C
The equivalence of categories between InducedCategory C e and C when
e : D ≃ C is a bijection.
theorem CategoryTheory.isIso_inducedFunctor_of_bijective E1 #
∀ {C : Type u_4} {D : Type u_5} [inst : CategoryTheory.Category.{v_4, u_4} C] (f : D → C),
Function.Bijective f → (CategoryTheory.inducedFunctor f).IsIso