mathlib3 documentation

category_theory.abelian.basic

Abelian categories #

THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.

This file contains the definition and basic properties of abelian categories.

There are many definitions of abelian category. Our definition is as follows: A category is called abelian if it is preadditive, has a finite products, kernels and cokernels, and if every monomorphism and epimorphism is normal.

It should be noted that if we also assume coproducts, then preadditivity is actually a consequence of the other properties, as we show in non_preadditive_abelian.lean. However, this fact is of little practical relevance, since essentially all interesting abelian categories come with a preadditive structure. In this way, by requiring preadditivity, we allow the user to pass in the "native" preadditive structure for the specific category they are working with.

Main definitions #

Main results #

Implementation notes #

The typeclass abelian does not extend non_preadditive_abelian, to avoid having to deal with comparing the two has_zero_morphisms instances (one from preadditive in abelian, and the other a field of non_preadditive_abelian). As a consequence, at the beginning of this file we trivially build a non_preadditive_abelian instance from an abelian instance, and use this to restate a number of theorems, in each case just reusing the proof from non_preadditive_abelian.lean.

We don't show this yet, but abelian categories are finitely complete and finitely cocomplete. However, the limits we can construct at this level of generality will most likely be less nice than the ones that can be created in specific applications. For this reason, we adopt the following convention:

References #

@[class]
structure category_theory.abelian (C : Type u) [category_theory.category C] :
Type (max u v)

A (preadditive) category C is called abelian if it has all finite products, all kernels and cokernels, and if every monomorphism is the kernel of some morphism and every epimorphism is the cokernel of some morphism.

(This definition implies the existence of zero objects: finite products give a terminal object, and in a preadditive category any terminal object is a zero object.)

Instances of this typeclass
Instances of other typeclasses for category_theory.abelian
  • category_theory.abelian.has_sizeof_inst

We begin by providing an alternative constructor: a preadditive category with kernels, cokernels, and finite products, in which the coimage-image comparison morphism is always an isomorphism, is an abelian category.

A preadditive category with kernels, cokernels, and finite products, in which the coimage-image comparison morphism is always an isomorphism, is an abelian category.

The Stacks project uses this characterisation at the definition of an abelian category. See https://stacks.math.columbia.edu/tag/0109.

Equations

We now promote some instances that were constructed using non_preadditive_abelian.

@[protected, instance]

The map p : P ⟶ image f is an epimorphism

@[protected, instance]

The canonical morphism i : coimage f ⟶ Q is a monomorphism

@[protected, instance]

The coimage-image comparison morphism is always an isomorphism in an abelian category. See category_theory.abelian.of_coimage_image_comparison_is_iso for the converse.

@[reducible]

There is a canonical isomorphism between the abelian coimage and the abelian image of a morphism.

@[reducible]

There is a canonical isomorphism between the abelian coimage and the categorical image of a morphism.

@[reducible]

There is a canonical isomorphism between the abelian image and the categorical image of a morphism.

In an abelian category, an epi is the cokernel of its kernel. More precisely: If f is an epimorphism and s is some limit kernel cone on f, then f is a cokernel of fork.ι s.

Equations

In an abelian category, a mono is the kernel of its cokernel. More precisely: If f is a monomorphism and s is some colimit cokernel cocone on f, then f is a kernel of cofork.π s.

Equations
noncomputable def category_theory.abelian.epi_desc {C : Type u} [category_theory.category C] [category_theory.abelian C] {X Y : C} (f : X Y) [category_theory.epi f] {T : C} (g : X T) (hg : category_theory.limits.kernel.ι f g = 0) :
Y T

In an abelian category, any morphism that turns to zero when precomposed with the kernel of an epimorphism factors through that epimorphism.

Equations
@[simp]
theorem category_theory.abelian.comp_epi_desc_assoc {C : Type u} [category_theory.category C] [category_theory.abelian C] {X Y : C} (f : X Y) [category_theory.epi f] {T : C} (g : X T) (hg : category_theory.limits.kernel.ι f g = 0) {X' : C} (f' : T X') :
noncomputable def category_theory.abelian.mono_lift {C : Type u} [category_theory.category C] [category_theory.abelian C] {X Y : C} (f : X Y) [category_theory.mono f] {T : C} (g : T Y) (hg : g category_theory.limits.cokernel.π f = 0) :
T X

In an abelian category, any morphism that turns to zero when postcomposed with the cokernel of a monomorphism factors through that monomorphism.

Equations
@[simp]
theorem category_theory.abelian.mono_lift_comp_assoc {C : Type u} [category_theory.category C] [category_theory.abelian C] {X Y : C} (f : X Y) [category_theory.mono f] {T : C} (g : T Y) (hg : g category_theory.limits.cokernel.π f = 0) {X' : C} (f' : Y X') :
@[protected, instance]

Any abelian category has pullbacks

@[protected, instance]

Any abelian category has pushouts

This section contains a slightly technical result about pullbacks and biproducts. We will need it in the proof that the pullback of an epimorphism is an epimorpism.

@[reducible]

The canonical map pullback f g ⟶ X ⊞ Y

@[reducible]

The canonical map pullback f g ⟶ X ⊞ Y induces a kernel cone on the map biproduct X Y ⟶ Z induced by f and g. A slightly more intuitive way to think of this may be that it induces an equalizer fork on the maps induced by (f, 0) and (0, g).

@[reducible]

The canonical map Y ⊞ Z ⟶ pushout f g

@[reducible]

The canonical map Y ⊞ Z ⟶ pushout f g induces a cokernel cofork on the map X ⟶ Y ⊞ Z induced by f and -g.

@[protected, instance]

In an abelian category, the pullback of an epimorphism is an epimorphism. Proof from [aluffi2016, IX.2.3], cf. [borceux-vol2, 1.7.6]

@[protected, instance]

In an abelian category, the pullback of an epimorphism is an epimorphism.

Suppose f and g are two morphisms with a common codomain and suppose we have written g as an epimorphism followed by a monomorphism. If f factors through the mono part of this factorization, then any pullback of g along f is an epimorphism.

Suppose f and g are two morphisms with a common domain and suppose we have written g as an epimorphism followed by a monomorphism. If f factors through the epi part of this factorization, then any pushout of g along f is a monomorphism.