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 / V25. Higher structures in categories

Mathlib.CategoryTheory.Abelian.Images

18 declarations. Mathlib docs · Source

The abelian image and coimage.

In an abelian category we usually want the image of a morphism f to be defined as kernel (cokernel.π f), and the coimage to be defined as cokernel (kernel.ι f).

We make these definitions here, as Abelian.image f and Abelian.coimage f (without assuming the category is actually abelian), and later relate these to the usual categorical notions when in an abelian category.

There is a canonical morphism coimageImageComparison : Abelian.coimage f ⟶ Abelian.image f. Later we show that this is always an isomorphism in an abelian category, and conversely a category with (co)kernels and finite products in which this morphism is always an isomorphism is an abelian category.

abbrev CategoryTheory.Abelian.image E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      {P Q : C} →
        (f : P ⟶ Q) →
          [inst_2 : CategoryTheory.Limits.HasCokernel f] →
            [CategoryTheory.Limits.HasKernel (CategoryTheory.Limits.cokernel.π f)] → C

The kernel of the cokernel of f is called the (abelian) image of f.

abbrev CategoryTheory.Abelian.coimage E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      {P Q : C} →
        (f : Q ⟶ P) →
          [inst_2 : CategoryTheory.Limits.HasKernel f] →
            [CategoryTheory.Limits.HasCokernel (CategoryTheory.Limits.kernel.ι f)] → C

The cokernel of the kernel of f is called the (abelian) coimage of f.

abbrev CategoryTheory.Abelian.image.ι E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      {P Q : C} →
        (f : P ⟶ Q) →
          [inst_2 : CategoryTheory.Limits.HasCokernel f] →
            [inst_3 : CategoryTheory.Limits.HasKernel (CategoryTheory.Limits.cokernel.π f)] →
              CategoryTheory.Abelian.image f ⟶ Q

The inclusion of the image into the codomain.

abbrev CategoryTheory.Abelian.coimage.π E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      {P Q : C} →
        (f : Q ⟶ P) →
          [inst_2 : CategoryTheory.Limits.HasKernel f] →
            [inst_3 : CategoryTheory.Limits.HasCokernel (CategoryTheory.Limits.kernel.ι f)] →
              Q ⟶ CategoryTheory.Abelian.coimage f

The projection onto the coimage.

abbrev CategoryTheory.Abelian.factorThruImage E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      {P Q : C} →
        (f : P ⟶ Q) →
          [inst_2 : CategoryTheory.Limits.HasCokernel f] →
            [inst_3 : CategoryTheory.Limits.HasKernel (CategoryTheory.Limits.cokernel.π f)] →
              P ⟶ CategoryTheory.Abelian.image f

There is a canonical epimorphism p : P ⟶ image f for every f.

abbrev CategoryTheory.Abelian.factorThruCoimage E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      {P Q : C} →
        (f : Q ⟶ P) →
          [inst_2 : CategoryTheory.Limits.HasKernel f] →
            [inst_3 : CategoryTheory.Limits.HasCokernel (CategoryTheory.Limits.kernel.ι f)] →
              CategoryTheory.Abelian.coimage f ⟶ P

There is a canonical monomorphism i : coimage f ⟶ Q.

theorem CategoryTheory.Abelian.image.fac E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {P Q : C}
  (f : P ⟶ Q) [inst_2 : CategoryTheory.Limits.HasCokernel f]
  [inst_3 : CategoryTheory.Limits.HasKernel (CategoryTheory.Limits.cokernel.π f)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Abelian.factorThruImage f) (CategoryTheory.Abelian.image.ι f) = f

f factors through its image via the canonical morphism p.

theorem CategoryTheory.Abelian.coimage.fac E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {P Q : C}
  (f : Q ⟶ P) [inst_2 : CategoryTheory.Limits.HasKernel f]
  [inst_3 : CategoryTheory.Limits.HasCokernel (CategoryTheory.Limits.kernel.ι f)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Abelian.coimage.π f) (CategoryTheory.Abelian.factorThruCoimage f) =
    f

f factors through its coimage via the canonical morphism p.

instance CategoryTheory.Abelian.epi_factorThruCoimage E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {P Q : C}
  (f : Q ⟶ P) [inst_2 : CategoryTheory.Limits.HasKernel f]
  [inst_3 : CategoryTheory.Limits.HasCokernel (CategoryTheory.Limits.kernel.ι f)] [CategoryTheory.Epi f],
  CategoryTheory.Epi (CategoryTheory.Abelian.factorThruCoimage f)

instance CategoryTheory.Abelian.mono_factorThruImage E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {P Q : C}
  (f : P ⟶ Q) [inst_2 : CategoryTheory.Limits.HasCokernel f]
  [inst_3 : CategoryTheory.Limits.HasKernel (CategoryTheory.Limits.cokernel.π f)] [CategoryTheory.Mono f],
  CategoryTheory.Mono (CategoryTheory.Abelian.factorThruImage f)

def CategoryTheory.Abelian.coimageImageComparison E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      {P Q : C} →
        (f : P ⟶ Q) →
          [inst_2 : CategoryTheory.Limits.HasCokernel f] →
            [inst_3 : CategoryTheory.Limits.HasKernel f] →
              [inst_4 : CategoryTheory.Limits.HasKernel (CategoryTheory.Limits.cokernel.π f)] →
                [inst_5 : CategoryTheory.Limits.HasCokernel (CategoryTheory.Limits.kernel.ι f)] →
                  CategoryTheory.Abelian.coimage f ⟶ CategoryTheory.Abelian.image f

The canonical map from the abelian coimage to the abelian image. In any abelian category this is an isomorphism.

Conversely, any additive category with kernels and cokernels and in which this is always an isomorphism, is abelian.

def CategoryTheory.Abelian.coimageImageComparison' E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      {P Q : C} →
        (f : Q ⟶ P) →
          [inst_2 : CategoryTheory.Limits.HasKernel f] →
            [inst_3 : CategoryTheory.Limits.HasCokernel f] →
              [inst_4 : CategoryTheory.Limits.HasCokernel (CategoryTheory.Limits.kernel.ι f)] →
                [inst_5 : CategoryTheory.Limits.HasKernel (CategoryTheory.Limits.cokernel.π f)] →
                  CategoryTheory.Abelian.coimage f ⟶ CategoryTheory.Abelian.image f

An alternative formulation of the canonical map from the abelian coimage to the abelian image.

theorem CategoryTheory.Abelian.coimageImageComparison_eq_coimageImageComparison' E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {P Q : C}
  (f : P ⟶ Q) [inst_2 : CategoryTheory.Limits.HasCokernel f] [inst_3 : CategoryTheory.Limits.HasKernel f]
  [inst_4 : CategoryTheory.Limits.HasKernel (CategoryTheory.Limits.cokernel.π f)]
  [inst_5 : CategoryTheory.Limits.HasCokernel (CategoryTheory.Limits.kernel.ι f)],
  CategoryTheory.Abelian.coimageImageComparison f = CategoryTheory.Abelian.coimageImageComparison' f

theorem CategoryTheory.Abelian.coimage_image_factorisation E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {P Q : C}
  (f : P ⟶ Q) [inst_2 : CategoryTheory.Limits.HasCokernel f] [inst_3 : CategoryTheory.Limits.HasKernel f]
  [inst_4 : CategoryTheory.Limits.HasKernel (CategoryTheory.Limits.cokernel.π f)]
  [inst_5 : CategoryTheory.Limits.HasCokernel (CategoryTheory.Limits.kernel.ι f)],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Abelian.coimage.π f)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Abelian.coimageImageComparison f)
        (CategoryTheory.Abelian.image.ι f)) =
    f

theorem CategoryTheory.Abelian.coimage_image_factorisation_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] {P Q : C}
  (f : P ⟶ Q) [inst_2 : CategoryTheory.Limits.HasCokernel f] [inst_3 : CategoryTheory.Limits.HasKernel f]
  [inst_4 : CategoryTheory.Limits.HasKernel (CategoryTheory.Limits.cokernel.π f)]
  [inst_5 : CategoryTheory.Limits.HasCokernel (CategoryTheory.Limits.kernel.ι f)] {Z : C} (h : Q ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Abelian.coimage.π f)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Abelian.coimageImageComparison f)
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Abelian.image.ι f) h)) =
    CategoryTheory.CategoryStruct.comp f h

def CategoryTheory.Abelian.coimageImageComparisonFunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] →
      [CategoryTheory.Limits.HasKernels C] →
        [CategoryTheory.Limits.HasCokernels C] →
          CategoryTheory.Functor (CategoryTheory.Arrow C) (CategoryTheory.Arrow C)

The coimage-image comparison morphism is functorial.

theorem CategoryTheory.Abelian.coimageImageComparisonFunctor_obj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C]
  [inst_2 : CategoryTheory.Limits.HasKernels C] [inst_3 : CategoryTheory.Limits.HasCokernels C]
  (f : CategoryTheory.Arrow C),
  CategoryTheory.Abelian.coimageImageComparisonFunctor.obj f =
    CategoryTheory.Arrow.mk (CategoryTheory.Abelian.coimageImageComparison f.hom)

theorem CategoryTheory.Abelian.coimageImageComparisonFunctor_map E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C]
  [inst_2 : CategoryTheory.Limits.HasKernels C] [inst_3 : CategoryTheory.Limits.HasCokernels C]
  {f g : CategoryTheory.Arrow C} (η : f ⟶ g),
  CategoryTheory.Abelian.coimageImageComparisonFunctor.map η =
    CategoryTheory.Arrow.homMk
      (CategoryTheory.Limits.cokernel.map (CategoryTheory.Limits.kernel.ι f.hom) (CategoryTheory.Limits.kernel.ι g.hom)
        (CategoryTheory.Limits.kernel.map f.hom g.hom (CategoryTheory.Arrow.Hom.left η)
          (CategoryTheory.Arrow.Hom.right η) ⋯)
        (CategoryTheory.Arrow.Hom.left η) ⋯)
      (CategoryTheory.Limits.kernel.map (CategoryTheory.Limits.cokernel.π f.hom)
        (CategoryTheory.Limits.cokernel.π g.hom) (CategoryTheory.Arrow.Hom.right η)
        (CategoryTheory.Limits.cokernel.map f.hom g.hom (CategoryTheory.Arrow.Hom.left η)
          (CategoryTheory.Arrow.Hom.right η) ⋯)
        ⋯)
      ⋯