math / data /lean /OAI /AlgebraicGeometry /Comparison /Betti /Derived /FunctorComposition.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
7.08 kB
import OAI.AlgebraicGeometry.Comparison.Betti.Derived.ShiftCoherence
/-! # Functor Composition -/
namespace OAI.AlgebraicGeometry.Comparison.Betti.Derived.FunctorComposition
noncomputable section
/-! Composition of exact derived functors, normalized on the actual localization. -/
open _root_.CategoryTheory _root_.CategoryTheory.Functor _root_.CategoryTheory.Limits
universe w₁ wβ‚‚ w₃ u₁ uβ‚‚ u₃ v₁ vβ‚‚ v₃
variable {C : Type u₁} [Category.{v₁} C] [Abelian C] [HasDerivedCategory.{w₁} C]
{D : Type uβ‚‚} [Category.{vβ‚‚} D] [Abelian D] [HasDerivedCategory.{wβ‚‚} D]
{E : Type u₃} [Category.{v₃} E] [Abelian E] [HasDerivedCategory.{w₃} E]
(F : C β₯€ D) (G : D β₯€ E) [F.Additive] [G.Additive]
[PreservesFiniteLimits F] [PreservesFiniteColimits F]
[PreservesFiniteLimits G] [PreservesFiniteColimits G]
def cochainFunctorCompIso :
F.mapHomologicalComplex (ComplexShape.up β„€) β‹™ G.mapHomologicalComplex (ComplexShape.up β„€) β‰…
(F β‹™ G).mapHomologicalComplex (ComplexShape.up β„€) :=
Functor.mapHomologicalComplexCompIso (Iso.refl (F β‹™ G)) (ComplexShape.up β„€)
instance cochainFunctorCompIsoCommShift : NatTrans.CommShift (cochainFunctorCompIso F G).hom β„€ where
shift_comm n := by
apply NatTrans.ext
funext K
change ((F.mapHomologicalComplex (ComplexShape.up β„€) β‹™
G.mapHomologicalComplex (ComplexShape.up β„€)).commShiftIso n).hom.app K ≫
((cochainFunctorCompIso F G).hom.app K)⟦n⟧' =
(cochainFunctorCompIso F G).hom.app (K⟦n⟧) ≫
(((F β‹™ G).mapHomologicalComplex (ComplexShape.up β„€)).commShiftIso n).hom.app K
erw [Functor.commShiftIso_comp_hom_app]
apply HomologicalComplex.Hom.ext
funext i
change (G.map (πŸ™ (F.obj (K.X (i + n)))) ≫ πŸ™ _) ≫ πŸ™ _ = πŸ™ _ ≫ πŸ™ _
simp only [G.map_id, Category.id_comp]
def derivedCompositionBeforeLocalization :
DerivedCategory.Q β‹™ F.mapDerivedCategory β‹™ G.mapDerivedCategory β‰…
DerivedCategory.Q β‹™ (F β‹™ G).mapDerivedCategory :=
(Functor.associator DerivedCategory.Q F.mapDerivedCategory G.mapDerivedCategory).symm β‰ͺ≫
isoWhiskerRight F.mapDerivedCategoryFactors G.mapDerivedCategory β‰ͺ≫
Functor.associator (F.mapHomologicalComplex (ComplexShape.up β„€)) DerivedCategory.Q G.mapDerivedCategory β‰ͺ≫
isoWhiskerLeft (F.mapHomologicalComplex (ComplexShape.up β„€)) G.mapDerivedCategoryFactors β‰ͺ≫
(Functor.associator (F.mapHomologicalComplex (ComplexShape.up β„€))
(G.mapHomologicalComplex (ComplexShape.up β„€)) DerivedCategory.Q).symm β‰ͺ≫
isoWhiskerRight (cochainFunctorCompIso F G) DerivedCategory.Q β‰ͺ≫
(F β‹™ G).mapDerivedCategoryFactors.symm
instance derivedCompositionBeforeLocalizationCommShift :
NatTrans.CommShift (derivedCompositionBeforeLocalization F G).hom β„€ := by
change NatTrans.CommShift
((Functor.associator DerivedCategory.Q F.mapDerivedCategory G.mapDerivedCategory).inv ≫
Functor.whiskerRight F.mapDerivedCategoryFactors.hom G.mapDerivedCategory ≫
(Functor.associator (F.mapHomologicalComplex (ComplexShape.up β„€)) DerivedCategory.Q
G.mapDerivedCategory).hom ≫
Functor.whiskerLeft (F.mapHomologicalComplex (ComplexShape.up β„€)) G.mapDerivedCategoryFactors.hom ≫
(Functor.associator (F.mapHomologicalComplex (ComplexShape.up β„€))
(G.mapHomologicalComplex (ComplexShape.up β„€)) DerivedCategory.Q).inv ≫
Functor.whiskerRight (cochainFunctorCompIso F G).hom DerivedCategory.Q ≫
(F β‹™ G).mapDerivedCategoryFactors.inv) β„€
infer_instance
def derivedFunctorCompIso :
F.mapDerivedCategory β‹™ G.mapDerivedCategory β‰… (F β‹™ G).mapDerivedCategory :=
(Localization.fullyFaithfulWhiskeringLeft
(DerivedCategory.Q : CochainComplex C β„€ β₯€ DerivedCategory C)
(HomologicalComplex.quasiIso C (ComplexShape.up β„€)) (DerivedCategory E)).preimageIso
(derivedCompositionBeforeLocalization F G)
theorem derivedFunctorCompIso_normalization :
Functor.whiskerLeft DerivedCategory.Q (derivedFunctorCompIso F G).hom =
(derivedCompositionBeforeLocalization F G).hom :=
(Localization.fullyFaithfulWhiskeringLeft
(DerivedCategory.Q : CochainComplex C β„€ β₯€ DerivedCategory C)
(HomologicalComplex.quasiIso C (ComplexShape.up β„€)) (DerivedCategory E)).map_preimage
(derivedCompositionBeforeLocalization F G).hom
theorem derivedFunctorCompIso_hom_app (K : CochainComplex C β„€) :
(derivedFunctorCompIso F G).hom.app (DerivedCategory.Q.obj K) =
(derivedCompositionBeforeLocalization F G).hom.app K :=
congr_app (derivedFunctorCompIso_normalization F G) K
theorem derivedFunctorCompIso_hom_app_explicit (K : CochainComplex C β„€) :
(derivedFunctorCompIso F G).hom.app (DerivedCategory.Q.obj K) =
G.mapDerivedCategory.map (F.mapDerivedCategoryFactors.hom.app K) ≫
G.mapDerivedCategoryFactors.hom.app ((F.mapHomologicalComplex (ComplexShape.up β„€)).obj K) ≫
(F β‹™ G).mapDerivedCategoryFactors.inv.app K := by
rw [derivedFunctorCompIso_hom_app]
let Q : CochainComplex E β„€ β₯€ DerivedCategory E := DerivedCategory.Q
change πŸ™ _ ≫ G.mapDerivedCategory.map (F.mapDerivedCategoryFactors.hom.app K) ≫ πŸ™ _ ≫
G.mapDerivedCategoryFactors.hom.app ((F.mapHomologicalComplex (ComplexShape.up β„€)).obj K) ≫ πŸ™ _ ≫
Q.map (πŸ™ (((F β‹™ G).mapHomologicalComplex (ComplexShape.up β„€)).obj K)) ≫
(F β‹™ G).mapDerivedCategoryFactors.inv.app K = _
simp only [Category.id_comp]
erw [Q.map_id, Category.id_comp]
theorem derivedFunctorCompIso_inv_app_explicit (K : CochainComplex C β„€) :
(derivedFunctorCompIso F G).inv.app (DerivedCategory.Q.obj K) =
(F β‹™ G).mapDerivedCategoryFactors.hom.app K ≫
G.mapDerivedCategoryFactors.inv.app ((F.mapHomologicalComplex (ComplexShape.up β„€)).obj K) ≫
G.mapDerivedCategory.map (F.mapDerivedCategoryFactors.inv.app K) := by
let a := G.mapDerivedCategory.mapIso (F.mapDerivedCategoryFactors.app K)
let b := G.mapDerivedCategoryFactors.app ((F.mapHomologicalComplex (ComplexShape.up β„€)).obj K)
let c := (F β‹™ G).mapDerivedCategoryFactors.app K
let e := (derivedFunctorCompIso F G).app (DerivedCategory.Q.obj K)
have h : e.hom = a.hom ≫ b.hom ≫ c.inv := derivedFunctorCompIso_hom_app_explicit F G K
change e.inv = c.hom ≫ b.inv ≫ a.inv
have he : e = a β‰ͺ≫ b β‰ͺ≫ c.symm := Iso.ext h
exact (congrArg Iso.inv he).trans (Category.assoc c.hom b.inv a.inv)
instance derivedFunctorCompIsoCommShift : NatTrans.CommShift (derivedFunctorCompIso F G).hom β„€ := by
have : NatTrans.CommShift
(Functor.whiskerLeft DerivedCategory.Q (derivedFunctorCompIso F G).hom) β„€ := by
rw [derivedFunctorCompIso_normalization]
infer_instance
exact ShiftCoherence.commShift_of_localization
(DerivedCategory.Q : CochainComplex C β„€ β₯€ DerivedCategory C)
(HomologicalComplex.quasiIso C (ComplexShape.up β„€)) (derivedFunctorCompIso F G).hom
end
end OAI.AlgebraicGeometry.Comparison.Betti.Derived.FunctorComposition