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 #
abelian
is the type class indicating that a category is abelian. It extendspreadditive
.abelian.image f
iskernel (cokernel.π f)
, andabelian.coimage f
iscokernel (kernel.ι f)
.
Main results #
- In an abelian category, mono + epi = iso.
- If
f : X ⟶ Y
, then the mapfactor_thru_image f : X ⟶ image f
is an epimorphism, and the mapfactor_thru_coimage f : coimage f ⟶ Y
is a monomorphism. - Factoring through the image and coimage is a strong epi-mono factorisation. This means that
- every abelian category has images. We provide the isomorphism
image_iso_image : abelian.image f ≅ limits.image f
. - the canonical morphism
coimage_image_comparison : coimage f ⟶ image f
is an isomorphism.
- every abelian category has images. We provide the isomorphism
- We provide the alternate characterisation of an abelian category as a category with (co)kernels and finite products, and in which the canonical coimage-image comparison morphism is always an isomorphism.
- Every epimorphism is a cokernel of its kernel. Every monomorphism is a kernel of its cokernel.
- The pullback of an epimorphism is an epimorphism. The pushout of a monomorphism is a monomorphism. (This is not to be confused with the fact that the pullback of a monomorphism is a monomorphism, which is true in any category).
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:
- If the statement of a theorem involves limits, the existence of these limits should be made an explicit typeclass parameter.
- If a limit only appears in a proof, but not in the statement of a theorem, the limit should not
be a typeclass parameter, but instead be created using
abelian.has_pullbacks
or a similar definition.
References #
- to_preadditive : category_theory.preadditive C
- to_normal_mono_category : category_theory.normal_mono_category C
- to_normal_epi_category : category_theory.normal_epi_category C
- has_finite_products : category_theory.limits.has_finite_products C
- has_kernels : category_theory.limits.has_kernels C
- has_cokernels : category_theory.limits.has_cokernels C
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.
The factorisation of a morphism through its abelian image.
Equations
- category_theory.abelian.of_coimage_image_comparison_is_iso.image_mono_factorisation f = {I := category_theory.abelian.image f, m := category_theory.limits.kernel.ι (category_theory.limits.cokernel.π f) _, m_mono := _, e := category_theory.limits.kernel.lift (category_theory.limits.cokernel.π f) f _, fac' := _}
If the coimage-image comparison morphism for a morphism f
is an isomorphism,
we obtain an image factorisation of f
.
Equations
- category_theory.abelian.of_coimage_image_comparison_is_iso.image_factorisation f = {F := category_theory.abelian.of_coimage_image_comparison_is_iso.image_mono_factorisation f, is_image := {lift := λ (F : category_theory.limits.mono_factorisation f), category_theory.inv (category_theory.abelian.coimage_image_comparison f) ≫ category_theory.limits.cokernel.desc (category_theory.limits.kernel.ι f) F.e _, lift_fac' := _}}
A category in which coimage-image comparisons are all isomorphisms has images.
A category with finite products in which coimage-image comparisons are all isomorphisms is a normal mono category.
Equations
- category_theory.abelian.of_coimage_image_comparison_is_iso.normal_mono_category = {normal_mono_of_mono := λ (X Y : C) (f : X ⟶ Y) (m : category_theory.mono f), {Z := category_theory.limits.cokernel f _, g := category_theory.limits.cokernel.π f _, w := _, is_limit := category_theory.limits.is_limit_aux (category_theory.limits.kernel_fork.of_ι f _) (λ (A : category_theory.limits.kernel_fork (category_theory.limits.cokernel.π f)), category_theory.limits.limit.lift (category_theory.limits.parallel_pair (category_theory.limits.cokernel.π f) 0) A ≫ category_theory.inv (category_theory.abelian.of_coimage_image_comparison_is_iso.image_mono_factorisation f).e) _ _}}
A category with finite products in which coimage-image comparisons are all isomorphisms is a normal epi category.
Equations
- category_theory.abelian.of_coimage_image_comparison_is_iso.normal_epi_category = {normal_epi_of_epi := λ (X Y : C) (f : X ⟶ Y) (m : category_theory.epi f), {W := category_theory.limits.kernel f _, g := category_theory.limits.kernel.ι f _, w := _, is_colimit := category_theory.limits.is_colimit_aux (category_theory.limits.cokernel_cofork.of_π f _) (λ (A : category_theory.limits.cokernel_cofork (category_theory.limits.kernel.ι f)), category_theory.inv (category_theory.abelian.of_coimage_image_comparison_is_iso.image_mono_factorisation f).m ≫ category_theory.inv (category_theory.abelian.coimage_image_comparison f) ≫ category_theory.limits.colimit.desc (category_theory.limits.parallel_pair (category_theory.limits.kernel.ι f) 0) A) _ _}}
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.
An abelian category has finite biproducts.
Every abelian category is, in particular, non_preadditive_abelian
.
We now promote some instances that were constructed using non_preadditive_abelian
.
The map p : P ⟶ image f
is an epimorphism
The canonical morphism i : coimage f ⟶ Q
is a monomorphism
Factoring through the image is a strong epi-mono factorisation.
Factoring through the coimage is a strong epi-mono factorisation.
An abelian category has strong epi-mono factorisations.
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.
There is a canonical isomorphism between the abelian coimage and the abelian image of a morphism.
There is a canonical isomorphism between the abelian coimage and the categorical image of a morphism.
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
.
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
.
In an abelian category, any morphism that turns to zero when precomposed with the kernel of an epimorphism factors through that epimorphism.
Equations
- category_theory.abelian.epi_desc f g hg = (category_theory.abelian.epi_is_cokernel_of_kernel (category_theory.limits.limit.cone (category_theory.limits.parallel_pair f 0)) (category_theory.limits.limit.is_limit (category_theory.limits.parallel_pair f 0))).desc (category_theory.limits.cokernel_cofork.of_π g hg)
In an abelian category, any morphism that turns to zero when postcomposed with the cokernel of a monomorphism factors through that monomorphism.
Equations
- category_theory.abelian.mono_lift f g hg = (category_theory.abelian.mono_is_kernel_of_cokernel (category_theory.limits.colimit.cocone (category_theory.limits.parallel_pair f 0)) (category_theory.limits.colimit.is_colimit (category_theory.limits.parallel_pair f 0))).lift (category_theory.limits.kernel_fork.of_ι g hg)
Any abelian category has pullbacks
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.
The canonical map pullback f g ⟶ X ⊞ Y
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)
.
The canonical map pullback f g ⟶ X ⊞ Y
is a kernel of the map induced by
(f, -g)
.
Equations
- category_theory.abelian.pullback_to_biproduct_is_kernel.is_limit_pullback_to_biproduct f g = category_theory.limits.fork.is_limit.mk (category_theory.abelian.pullback_to_biproduct_is_kernel.pullback_to_biproduct_fork f g) (λ (s : category_theory.limits.fork (category_theory.limits.biprod.desc f (-g)) 0), category_theory.limits.pullback.lift (s.ι ≫ category_theory.limits.biprod.fst) (s.ι ≫ category_theory.limits.biprod.snd) _) _ _
The canonical map Y ⊞ Z ⟶ pushout f g
The canonical map Y ⊞ Z ⟶ pushout f g
induces a cokernel cofork on the map
X ⟶ Y ⊞ Z
induced by f
and -g
.
The cofork induced by the canonical map Y ⊞ Z ⟶ pushout f g
is in fact a colimit cokernel
cofork.
Equations
- category_theory.abelian.biproduct_to_pushout_is_cokernel.is_colimit_biproduct_to_pushout f g = category_theory.limits.cofork.is_colimit.mk (category_theory.abelian.biproduct_to_pushout_is_cokernel.biproduct_to_pushout_cofork f g) (λ (s : category_theory.limits.cofork (category_theory.limits.biprod.lift f (-g)) 0), category_theory.limits.pushout.desc (category_theory.limits.biprod.inl ≫ s.π) (category_theory.limits.biprod.inr ≫ s.π) _) _ _
In an abelian category, the pullback of an epimorphism is an epimorphism. Proof from [aluffi2016, IX.2.3], cf. [borceux-vol2, 1.7.6]
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.
Every non_preadditive_abelian category can be promoted to an abelian category.