Download data/lean/OAI/AlgebraicGeometry/Comparison/Betti/Derived/FunctorComposition.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.08 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/Comparison/Betti/Derived/FunctorComposition.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/AlgebraicGeometry/Comparison/Betti/Derived/FunctorComposition.lean
-
curl -L -o FunctorComposition.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/Comparison/Betti/Derived/FunctorComposition.lean
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 | |