Every NonPreadditiveAbelian category is preadditive #
In mathlib, we define an abelian category as a preadditive category with a zero object, kernels and cokernels, products and coproducts and in which every monomorphism and epimorphism is normal.
While virtually every interesting abelian category has a natural preadditive structure (which is why it is included in the definition), preadditivity is not actually needed: Every category that has all of the other properties appearing in the definition of an abelian category admits a preadditive structure. This is the construction we carry out in this file.
The proof proceeds in roughly five steps:
- Prove some results (for example that all equalizers exist) that would be trivial if we already had the preadditive structure but are a bit of work without it.
- Develop images and coimages to show that every monomorphism is the kernel of its cokernel.
The results of the first two steps are also useful for the "normal" development of abelian categories, and will be used there.
- For every object
A, define a "subtraction" morphism
σ : A ⨯ A ⟶ Aand use it to define subtraction on morphisms as
f - g := prod.lift f g ≫ σ.
- Prove a small number of identities about this subtraction from the definition of
- From these identities, prove a large number of other identities that imply that defining
f + g := f - (0 - g)indeed gives an abelian group structure on morphisms such that composition is bilinear.
The construction is non-trivial and it is quite remarkable that this abelian group structure can
be constructed purely from the existence of a few limits and colimits. Even more remarkably,
since abelian categories admit exactly one preadditive structure (see
subsingletonPreadditiveOfHasBinaryBiproducts), the construction manages to exactly
reconstruct any natural preadditive structure the category may have.
- [F. Borceux, Handbook of Categorical Algebra 2][borceux-vol2]
- has_zero_object : CategoryTheory.Limits.HasZeroObject C
- has_kernels : CategoryTheory.Limits.HasKernels C
- has_cokernels : CategoryTheory.Limits.HasCokernels C
- has_finite_products : CategoryTheory.Limits.HasFiniteProducts C
- has_finite_coproducts : CategoryTheory.Limits.HasFiniteCoproducts C
We call a category
NonPreadditiveAbelian if it has a zero object, kernels, cokernels, binary
products and coproducts, and every monomorphism and every epimorphism is normal.
p : P ⟶ image f is an epimorphism
The canonical morphism
i : coimage f ⟶ Q is a monomorphism
NonPreadditiveAbelian category, an epi is the cokernel of its kernel. More precisely:
f is an epimorphism and
s is some limit kernel cone on
f is a cokernel
NonPreadditiveAbelian category, a mono is the kernel of its cokernel. More precisely:
f is a monomorphism and
s is some colimit cokernel cocone on
f is a kernel
A ⟶ A ⨯ A ⟶ cokernel (Δ A), where the first map is
(𝟙 A, 0) and the second map
is the canonical projection into the cokernel.
A ⨯ A ⟶ cokernel (diag A) ⟶ A given by the natural projection into the cokernel
followed by the inverse of
r. In the category of modules, using the normal kernels and
cokernels, this map is equal to the map
(a, b) ↦ a - b, hence the name
σ is a cokernel of Δ X.
This is the key identity satisfied by