The areas / V26. Homological algebra
Mathlib.Algebra.Homology.DerivedCategory.Basic
50 declarations. Mathlib docs · Source
The derived category of an abelian category
In this file, we construct the derived category DerivedCategory C of an
abelian category C. It is equipped with a triangulated structure.
The derived category is defined here as the localization of cochain complexes
indexed by ℤ with respect to quasi-isomorphisms: it is a type synonym of
HomologicalComplexUpToQuasiIso C (ComplexShape.up ℤ). Then, we have a
localization functor DerivedCategory.Q : CochainComplex C ℤ ⥤ DerivedCategory C.
It was already shown in the file Mathlib/Algebra/Homology/Localization.lean that the induced
functor DerivedCategory.Qh : HomotopyCategory C (ComplexShape.up ℤ) ⥤ DerivedCategory C
is a localization functor with respect to the class of morphisms
HomotopyCategory.quasiIso C (ComplexShape.up ℤ). In the file
HomotopyCategory.Acyclic, it was shown that this class of quasiisomorphisms
consists of morphisms whose cone belongs to the triangulated subcategory
HomotopyCategory.subcategoryAcyclic C of acyclic complexes. Then, the triangulated
structure on DerivedCategory C is deduced from the triangulated structure
on the homotopy category (see file Mathlib/Algebra/Homology/HomotopyCategory/Triangulated.lean)
using the localization theorem for triangulated categories which was obtained
in the file Mathlib/CategoryTheory/Localization/Triangulated.lean.
Implementation notes
If C : Type u and Category.{v} C, the constructed localized category of cochain
complexes with respect to quasi-isomorphisms has morphisms in Type (max u v).
However, in certain circumstances, it shall be possible to prove that they are v-small
(when C is a Grothendieck abelian category (e.g. the category of modules over a ring),
it should be so by a theorem of Hovey).
Then, when working with derived categories in mathlib, the user should add the variable
[HasDerivedCategory.{w} C] which is the assumption that there is a chosen derived
category with morphisms in Type w. When derived categories are used in order to
prove statements which do not involve derived categories, the HasDerivedCategory.{max u v}
instance should be obtained at the beginning of the proof, using the term
HasDerivedCategory.standard C.
TODO (@joelriou)
- construct the distinguished triangle associated to a short exact sequence
of cochain complexes (done), and compare the associated connecting homomorphism
with the one defined in
Algebra.Homology.HomologySequence.
References
- [Jean-Louis Verdier, Des catégories dérivées des catégories abéliennes][verdier1996]
- [Mark Hovey, Model category structures on chain complexes of sheaves][hovey-2001]
abbrev HasDerivedCategory E1 #
(C : Type u) →
[inst : CategoryTheory.Category.{v, u} C] → [CategoryTheory.Abelian C] → Type (max (max ((max u v) + 1) v) (w + 1))
The assumption that a localized category for
(HomologicalComplex.quasiIso C (ComplexShape.up ℤ)) has been chosen, and that the morphisms
in this chosen category are in Type w.
def HasDerivedCategory.standard E1 #
(C : Type u) → [inst : CategoryTheory.Category.{v, u} C] → [inst_1 : CategoryTheory.Abelian C] → HasDerivedCategory C
The derived category obtained using the constructed localized category of cochain complexes with respect to quasi-isomorphisms. This should be used only while proving statements which do not involve the derived category.
def DerivedCategory E1 #
(C : Type u) →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] → [HasDerivedCategory C] → Type (max u v)
The derived category of an abelian category.
instance instCategoryDerivedCategory E0 #
(C : Type u_2) →
[inst : CategoryTheory.Category.{u_3, u_2} C] →
[inst_1 : CategoryTheory.Abelian C] →
[inst_2 : HasDerivedCategory C] → CategoryTheory.Category.{u_1, max u_2 u_3} (DerivedCategory C)
def DerivedCategory.Q E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] →
[inst_2 : HasDerivedCategory C] → CategoryTheory.Functor (CochainComplex C ℤ) (DerivedCategory C)
The localization functor CochainComplex C ℤ ⥤ DerivedCategory C.
instance DerivedCategory.instIsLocalizationCochainComplexIntQQuasiIsoUp E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C], DerivedCategory.Q.IsLocalization (HomologicalComplex.quasiIso C (ComplexShape.up ℤ))
instance DerivedCategory.instIsIsoMapCochainComplexIntQOfQuasiIso E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] {K L : CochainComplex C ℤ} (f : K ⟶ L) [QuasiIso f],
CategoryTheory.IsIso (DerivedCategory.Q.map f)
def DerivedCategory.Qh E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] →
[inst_2 : HasDerivedCategory C] →
CategoryTheory.Functor (HomotopyCategory C (ComplexShape.up ℤ)) (DerivedCategory C)
The localization functor HomotopyCategory C (ComplexShape.up ℤ) ⥤ DerivedCategory C.
def DerivedCategory.quotientCompQhIso E1 #
(C : Type u) →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] →
[inst_2 : HasDerivedCategory C] →
(HomotopyCategory.quotient C (ComplexShape.up ℤ)).comp DerivedCategory.Qh ≅ DerivedCategory.Q
The natural isomorphism HomotopyCategory.quotient C (ComplexShape.up ℤ) ⋙ Qh ≅ Q.
theorem DerivedCategory.quotientCompQhIso_hom_naturality E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] {K L : CochainComplex C ℤ} (f : K ⟶ L),
CategoryTheory.CategoryStruct.comp (DerivedCategory.Qh.map ((HomotopyCategory.quotient C (ComplexShape.up ℤ)).map f))
((DerivedCategory.quotientCompQhIso C).hom.app L) =
CategoryTheory.CategoryStruct.comp ((DerivedCategory.quotientCompQhIso C).hom.app K) (DerivedCategory.Q.map f)
theorem DerivedCategory.quotientCompQhIso_hom_naturality_assoc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] {K L : CochainComplex C ℤ} (f : K ⟶ L) {Z : DerivedCategory C}
(h : DerivedCategory.Q.obj L ⟶ Z),
CategoryTheory.CategoryStruct.comp (DerivedCategory.Qh.map ((HomotopyCategory.quotient C (ComplexShape.up ℤ)).map f))
(CategoryTheory.CategoryStruct.comp ((DerivedCategory.quotientCompQhIso C).hom.app L) h) =
CategoryTheory.CategoryStruct.comp ((DerivedCategory.quotientCompQhIso C).hom.app K)
(CategoryTheory.CategoryStruct.comp (DerivedCategory.Q.map f) h)
theorem DerivedCategory.quotientCompQhIso_inv_naturality E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] {K L : CochainComplex C ℤ} (f : K ⟶ L),
CategoryTheory.CategoryStruct.comp (DerivedCategory.Q.map f) ((DerivedCategory.quotientCompQhIso C).inv.app L) =
CategoryTheory.CategoryStruct.comp ((DerivedCategory.quotientCompQhIso C).inv.app K)
(DerivedCategory.Qh.map ((HomotopyCategory.quotient C (ComplexShape.up ℤ)).map f))
theorem DerivedCategory.quotientCompQhIso_inv_naturality_assoc E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] {K L : CochainComplex C ℤ} (f : K ⟶ L) {Z : DerivedCategory C}
(h : DerivedCategory.Qh.obj ((HomotopyCategory.quotient C (ComplexShape.up ℤ)).obj L) ⟶ Z),
CategoryTheory.CategoryStruct.comp (DerivedCategory.Q.map f)
(CategoryTheory.CategoryStruct.comp ((DerivedCategory.quotientCompQhIso C).inv.app L) h) =
CategoryTheory.CategoryStruct.comp ((DerivedCategory.quotientCompQhIso C).inv.app K)
(CategoryTheory.CategoryStruct.comp
(DerivedCategory.Qh.map ((HomotopyCategory.quotient C (ComplexShape.up ℤ)).map f)) h)
instance DerivedCategory.instIsLocalizationHomotopyCategoryIntUpQhQuasiIso E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C], DerivedCategory.Qh.IsLocalization (HomotopyCategory.quasiIso C (ComplexShape.up ℤ))
instance DerivedCategory.instIsLocalizationHomotopyCategoryIntUpQhTrWSubcategoryAcyclic E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C], DerivedCategory.Qh.IsLocalization (HomotopyCategory.subcategoryAcyclic C).trW
instance DerivedCategory.instPreadditive E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] →
[inst_2 : HasDerivedCategory C] → CategoryTheory.Preadditive (DerivedCategory C)
instance DerivedCategory.instAdditiveHomotopyCategoryIntUpQh E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C], DerivedCategory.Qh.Additive
instance DerivedCategory.instAdditiveCochainComplexIntQ E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C], DerivedCategory.Q.Additive
instance DerivedCategory.instHasZeroObject E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C], CategoryTheory.Limits.HasZeroObject (DerivedCategory C)
instance DerivedCategory.instHasShiftInt E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] →
[inst_2 : HasDerivedCategory C] → CategoryTheory.HasShift (DerivedCategory C) ℤ
instance DerivedCategory.instCommShiftHomotopyCategoryIntUpQh E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] → [inst_2 : HasDerivedCategory C] → DerivedCategory.Qh.CommShift ℤ
instance DerivedCategory.instCommShiftCochainComplexIntQ E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] → [inst_2 : HasDerivedCategory C] → DerivedCategory.Q.CommShift ℤ
instance DerivedCategory.instCommShiftHomologicalComplexIntUpHomFunctorQuotientCompQhIso E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C], CategoryTheory.NatTrans.CommShift (DerivedCategory.quotientCompQhIso C).hom ℤ
instance DerivedCategory.instAdditiveShiftFunctorInt E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] (n : ℤ), (CategoryTheory.shiftFunctor (DerivedCategory C) n).Additive
instance DerivedCategory.instPretriangulated E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] →
[inst_2 : HasDerivedCategory C] → CategoryTheory.Pretriangulated (DerivedCategory C)
instance DerivedCategory.instIsTriangulatedHomotopyCategoryIntUpQh E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C], DerivedCategory.Qh.IsTriangulated
instance DerivedCategory.instIsTriangulated E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C], CategoryTheory.IsTriangulated (DerivedCategory C)
instance DerivedCategory.instEssSurjArrowHomotopyCategoryIntUpMapArrowQh E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C], DerivedCategory.Qh.mapArrow.EssSurj
instance DerivedCategory.instFullFunctorHomotopyCategoryIntUpObjWhiskeringLeftQh E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] {D : Type u_1} [inst_3 : CategoryTheory.Category.{v_1, u_1} D],
((CategoryTheory.Functor.whiskeringLeft (HomotopyCategory C (ComplexShape.up ℤ)) (DerivedCategory C) D).obj
DerivedCategory.Qh).Full
instance DerivedCategory.instFaithfulFunctorHomotopyCategoryIntUpObjWhiskeringLeftQh E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] {D : Type u_1} [inst_3 : CategoryTheory.Category.{v_1, u_1} D],
((CategoryTheory.Functor.whiskeringLeft (HomotopyCategory C (ComplexShape.up ℤ)) (DerivedCategory C) D).obj
DerivedCategory.Qh).Faithful
instance DerivedCategory.instEssSurjHomotopyCategoryIntUpQh E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C], DerivedCategory.Qh.EssSurj
instance DerivedCategory.instEssSurjCochainComplexIntQ E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C], DerivedCategory.Q.EssSurj
theorem DerivedCategory.mem_distTriang_iff E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] (T : CategoryTheory.Pretriangulated.Triangle (DerivedCategory C)),
T ∈ CategoryTheory.Pretriangulated.distinguishedTriangles ↔
∃ X Y f, Nonempty (T ≅ DerivedCategory.Q.mapTriangle.obj (CochainComplex.mappingCone.triangle f))
theorem DerivedCategory.mappingCone_triangle_distinguished E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] {K L : CochainComplex C ℤ} (φ : K ⟶ L),
DerivedCategory.Q.mapTriangle.obj (CochainComplex.mappingCone.triangle φ) ∈
CategoryTheory.Pretriangulated.distinguishedTriangles
theorem DerivedCategory.mappingCocone_triangle_distinguished E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] {K L : CochainComplex C ℤ} (φ : K ⟶ L),
DerivedCategory.Q.mapTriangle.obj (CochainComplex.mappingCocone.triangle φ) ∈
CategoryTheory.Pretriangulated.distinguishedTriangles
def DerivedCategory.singleFunctors E1 #
(C : Type u) →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] →
[inst_2 : HasDerivedCategory C] → CategoryTheory.SingleFunctors C (DerivedCategory C) ℤ
The single functors C ⥤ DerivedCategory C for all n : ℤ along with
their compatibilities with shifts.
abbrev DerivedCategory.singleFunctor E1 #
(C : Type u) →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] →
[inst_2 : HasDerivedCategory C] → ℤ → CategoryTheory.Functor C (DerivedCategory C)
The single functor C ⥤ DerivedCategory C which sends X : C to the
single cochain complex with X sitting in degree n : ℤ.
instance DerivedCategory.instAdditiveSingleFunctor E0 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] (n : ℤ), (DerivedCategory.singleFunctor C n).Additive
theorem DerivedCategory.Q_obj_single_obj E0 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] (n : ℤ) (X : C),
DerivedCategory.Q.obj ((HomologicalComplex.single C (ComplexShape.up ℤ) n).obj X) =
(DerivedCategory.singleFunctor C n).obj X
theorem DerivedCategory.Q_map_single_map E0 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] (n : ℤ) {X Y : C} (f : X ⟶ Y),
DerivedCategory.Q.map ((HomologicalComplex.single C (ComplexShape.up ℤ) n).map f) =
(DerivedCategory.singleFunctor C n).map f
def DerivedCategory.singleFunctorsPostcompQhIso E1 #
(C : Type u) →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] →
[inst_2 : HasDerivedCategory C] →
DerivedCategory.singleFunctors C ≅ (HomotopyCategory.singleFunctors C).postcomp DerivedCategory.Qh
The isomorphism
DerivedCategory.singleFunctors C ≅ (HomotopyCategory.singleFunctors C).postcomp Qh given
by the definition of DerivedCategory.singleFunctors.
def DerivedCategory.singleFunctorsPostcompQIso E1 #
(C : Type u) →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] →
[inst_2 : HasDerivedCategory C] →
DerivedCategory.singleFunctors C ≅ (CochainComplex.singleFunctors C).postcomp DerivedCategory.Q
The isomorphism
DerivedCategory.singleFunctors C ≅ (CochainComplex.singleFunctors C).postcomp Q.
theorem DerivedCategory.singleFunctorsPostcompQIso_inv_hom E0 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] (x : ℤ),
(DerivedCategory.singleFunctorsPostcompQIso C).inv.hom x =
CategoryTheory.CategoryStruct.id ((DerivedCategory.singleFunctors C).functor x)
theorem DerivedCategory.singleFunctorsPostcompQIso_hom_hom E0 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] (x : ℤ),
(DerivedCategory.singleFunctorsPostcompQIso C).hom.hom x =
CategoryTheory.CategoryStruct.id ((DerivedCategory.singleFunctors C).functor x)
def DerivedCategory.singleFunctorIsoCompQ E1 #
(C : Type u) →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] →
[inst_2 : HasDerivedCategory C] →
(n : ℤ) → DerivedCategory.singleFunctor C n ≅ (CochainComplex.singleFunctor C n).comp DerivedCategory.Q
The isomorphism singleFunctor C n ≅ CochainComplex.singleFunctor C n ⋙ Q.
theorem DerivedCategory.singleFunctorIsoCompQ_inv_app E1 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] (n : ℤ) (X : C),
(DerivedCategory.singleFunctorIsoCompQ C n).inv.app X =
CategoryTheory.CategoryStruct.id ((DerivedCategory.singleFunctor C n).obj X)
theorem DerivedCategory.singleFunctorIsoCompQ_hom_app E1 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] (n : ℤ) (X : C),
(DerivedCategory.singleFunctorIsoCompQ C n).hom.app X =
CategoryTheory.CategoryStruct.id ((DerivedCategory.singleFunctor C n).obj X)
def DerivedCategory.singleFunctorIsoCompQh E1 #
(C : Type u) →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Abelian C] →
[inst_2 : HasDerivedCategory C] →
(n : ℤ) → DerivedCategory.singleFunctor C n ≅ (HomotopyCategory.singleFunctor C n).comp DerivedCategory.Qh
The isomorphism singleFunctor C n ≅ HomotopyCategory.singleFunctor C n ⋙ Qh.
theorem DerivedCategory.isIso_Q_map_iff_quasiIso E1 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] {K L : CochainComplex C ℤ} (φ : K ⟶ L),
CategoryTheory.IsIso (DerivedCategory.Q.map φ) ↔ QuasiIso φ
theorem DerivedCategory.Q_map_eq_of_homotopy E1 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Abelian C]
[inst_2 : HasDerivedCategory C] {K L : CochainComplex C ℤ} {f g : K ⟶ L} (h : Homotopy f g),
DerivedCategory.Q.map f = DerivedCategory.Q.map g