Abelian categories #
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
NonPreadditiveAbelian.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 mapfactorThruImage f : X ⟶ image f
is an epimorphism, and the mapfactorThruCoimage 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
imageIsoImage : abelian.image f ≅ limits.image f
. - the canonical morphism
coimageImageComparison : 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 NonPreadditiveAbelian
,
to avoid having to deal with comparing the two HasZeroMorphisms
instances
(one from Preadditive
in Abelian
, and the other a field of NonPreadditiveAbelian
).
As a consequence, at the beginning of this file we trivially build
a NonPreadditiveAbelian
instance from an Abelian
instance,
and use this to restate a number of theorems,
in each case just reusing the proof from NonPreadditiveAbelian.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.hasPullbacks
or a similar definition.
References #
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.)
- add_comp (P Q R : C) (f f' : P ⟶ Q) (g : Q ⟶ R) : CategoryTheory.CategoryStruct.comp (f + f') g = CategoryTheory.CategoryStruct.comp f g + CategoryTheory.CategoryStruct.comp f' g
- comp_add (P Q R : C) (f : P ⟶ Q) (g g' : Q ⟶ R) : CategoryTheory.CategoryStruct.comp f (g + g') = CategoryTheory.CategoryStruct.comp f g + CategoryTheory.CategoryStruct.comp f g'
- has_finite_products : CategoryTheory.Limits.HasFiniteProducts C
- has_kernels : CategoryTheory.Limits.HasKernels C
- has_cokernels : CategoryTheory.Limits.HasCokernels C
Instances
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
- One or more equations did not get rendered due to their size.
Instances For
If the coimage-image comparison morphism for a morphism f
is an isomorphism,
we obtain an image factorisation of f
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
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
- One or more equations did not get rendered due to their size.
Instances For
A category with finite products in which coimage-image comparisons are all isomorphisms is a normal epi category.
Equations
- One or more equations did not get rendered due to their size.
Instances For
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
- CategoryTheory.Abelian.ofCoimageImageComparisonIsIso = CategoryTheory.Abelian.mk
Instances For
An abelian category has finite biproducts.
Every abelian category is, in particular, NonPreadditiveAbelian
.
Equations
- CategoryTheory.Abelian.nonPreadditiveAbelian = CategoryTheory.NonPreadditiveAbelian.mk
Instances For
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.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Factoring through the coimage is a strong epi-mono factorisation.
Equations
- One or more equations did not get rendered due to their size.
Instances For
An abelian category has strong epi-mono factorisations.
The coimage-image comparison morphism is always an isomorphism in an abelian category.
See CategoryTheory.Abelian.ofCoimageImageComparisonIsIso
for the converse.
There is a canonical isomorphism between the abelian coimage and the abelian image of a morphism.
Equations
Instances For
There is a canonical isomorphism between the abelian coimage and the categorical image of a morphism.
Equations
- CategoryTheory.Abelian.coimageIsoImage' f = (CategoryTheory.Abelian.coimageStrongEpiMonoFactorisation f).toMonoIsImage.isoExt (CategoryTheory.Limits.Image.isImage f)
Instances For
There is a canonical isomorphism between the abelian image and the categorical image of a morphism.
Equations
- CategoryTheory.Abelian.imageIsoImage f = (CategoryTheory.Abelian.imageStrongEpiMonoFactorisation f).toMonoIsImage.isoExt (CategoryTheory.Limits.Image.isImage f)
Instances For
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
Instances For
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
Instances For
In an abelian category, any morphism that turns to zero when precomposed with the kernel of an epimorphism factors through that epimorphism.
Equations
- One or more equations did not get rendered due to their size.
Instances For
In an abelian category, any morphism that turns to zero when postcomposed with the cokernel of a monomorphism factors through that monomorphism.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If F : D ⥤ C
is a functor to an abelian category, i : X ⟶ Y
is a morphism
admitting a cokernel such that F
preserves this cokernel and F.map i
is a mono,
then F.map X
identifies to the kernel of F.map (cokernel.π i)
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If F : D ⥤ C
is a functor to an abelian category, p : X ⟶ Y
is a morphisms
admitting a kernel such that F
preserves this kernel and F.map p
is an epi,
then F.map Y
identifies to the cokernel of F.map (kernel.ι p)
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
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 epimorphism.
The canonical map pullback f g ⟶ X ⊞ Y
Equations
Instances For
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)
.
Equations
Instances For
The canonical map pullback f g ⟶ X ⊞ Y
is a kernel of the map induced by
(f, -g)
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The canonical map Y ⊞ Z ⟶ pushout f g
Equations
Instances For
The canonical map Y ⊞ Z ⟶ pushout f g
induces a cokernel cofork on the map
X ⟶ Y ⊞ Z
induced by f
and -g
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The cofork induced by the canonical map Y ⊞ Z ⟶ pushout f g
is in fact a colimit cokernel
cofork.
Equations
- One or more equations did not get rendered due to their size.
Instances For
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 NonPreadditiveAbelian category can be promoted to an abelian category.
Equations
- CategoryTheory.NonPreadditiveAbelian.abelian C = CategoryTheory.Abelian.mk