The UniMath library has a formalization on abelian categories and homological algebra (done by Tommi Pannila). See:
- https://github.com/UniMath/UniMath/blob/master/UniMath/CategoryTheory/Abelian.v categories
- https://github.com/UniMath/UniMath/blob/master/UniMath/CategoryTheory/ShortExactSequences.vShort exact sequences
- https://github.com/UniMath/UniMath/blob/master/UniMath/CategoryTheory/FiveLemma.vFive lemma
The documentation can be found here: https://github.com/tpannila/Masters_thesis/blob/master/An%20Introduction%20to%20Homological%20Algebra.pdfAn Introduction to Homological Algebra