Zulip Chat Archive
Stream: Is there code for X?
Topic: long exact sequences of derived functors
Richard Hill (Feb 24 2026 at 10:02):
Is the long exact sequence for right derived functors defined in Mathlib?
For example, is there an obvious way to remove this sorry (without inserting exact 0).
import Mathlib.Algebra.Homology.ShortComplex.ShortExact
import Mathlib.CategoryTheory.Abelian.RightDerived
open CategoryTheory Functor Limits
example (C D : Type) [Category C] [Category D] [Abelian C] [Abelian D] [EnoughInjectives C]
(F : C ⥤ D) [PreservesLimits F] [F.Additive]
(S : ShortComplex C) (hS : S.ShortExact) (n : ℕ) :
(F.rightDerived n).obj S.X₃ ⟶ (F.rightDerived (n + 1)).obj S.X₁ := by
sorry
Edison Xie (Feb 24 2026 at 12:29):
@Joël Riou @Andrew Yang
Joël Riou (Feb 24 2026 at 12:41):
I have this on a branch https://github.com/joelriou/mathlib4/blob/4e2559a08433acc41cc0b2c847fa800a87eba7dd/Mathlib/Algebra/Homology/DerivedCategory/RightDerivedFunctorPlus.lean#L240 which is meant to enter mathlib at some point...
Joël Riou (Feb 24 2026 at 12:55):
The idea is to construct the total derived functor and show that it is a triangulated functor. In order to do this, I am using a right derivability structure in the sense of https://webusers.imj-prg.fr/~georges.maltsiniotis/ps/bkgmdef.pdf which I constructed #33956 in the general context of model categories towards the fundamental lemma of homotopical algebra #26303.
Joël Riou (Feb 24 2026 at 12:55):
The bottle neck is the construction of the model category structure on bounded below complexes in C which depends on a technical factorization lemma https://github.com/joelriou/mathlib4/blob/4e2559a08433acc41cc0b2c847fa800a87eba7dd/Mathlib/Algebra/Homology/Factorizations/CM5a.lean
Joël Riou (Feb 24 2026 at 12:55):
Then, basically any functor from the bounded below homotopy category admits a total right derived functor https://github.com/joelriou/mathlib4/blob/4e2559a08433acc41cc0b2c847fa800a87eba7dd/Mathlib/Algebra/Homology/DerivedCategory/DerivabilityStructureInjectives.lean#L390
Joël Riou (Feb 24 2026 at 12:56):
Finally, we have to show that under suitable assumptions the derived functor of a triangulated functor is triangulated https://github.com/joelriou/mathlib4/blob/4e2559a08433acc41cc0b2c847fa800a87eba7dd/Mathlib/CategoryTheory/Functor/Derived/RightDerivedTriangulated.lean
Joël Riou (Feb 24 2026 at 12:56):
Apart from spectral sequences, this is my second-most priority for the integration of my formalization of homological algebra in mathlib. There should be some progress in the next few weeks.
Richard Hill (Feb 24 2026 at 13:01):
Many thanks!
Last updated: Feb 28 2026 at 14:05 UTC