Download data/lean/OAI/AlgebraicGeometry/ComplexMultiplication/CMCanonicalSectionCycles.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 12.9 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/ComplexMultiplication/CMCanonicalSectionCycles.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/AlgebraicGeometry/ComplexMultiplication/CMCanonicalSectionCycles.lean
-
curl -L -o CMCanonicalSectionCycles.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/ComplexMultiplication/CMCanonicalSectionCycles.lean
12.9 kB
| import OAI.AlgebraicGeometry.ComplexMultiplication.HomologyFunctorCoherence | |
| import OAI.AlgebraicGeometry.ComplexMultiplication.SectionCohomologySheafNaturality | |
| import Mathlib.CategoryTheory.Limits.Constructions.EpiMono | |
| /-! # CM Canonical Section Cycles -/ | |
| namespace OAI.AlgebraicGeometry.ComplexMultiplication.CMCanonicalSectionCycles | |
| noncomputable section | |
| section | |
| /-! # When sections preserve homology, the sheafification class is the canonical comparison -/ | |
| open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex | |
| variable (Y : TopCat.{0}) | |
| (K : CochainComplex (Sheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}) β€) (n : β€) | |
| set_option backward.defeqAttrib.useBackward true in | |
| set_option backward.isDefEq.respectTransparency false in | |
| set_option backward.isDefEq.respectTransparency.types false in | |
| theorem sectionCohomologyPresheafToSheaf_eq_comparison | |
| [(sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).PreservesLeftHomologyOf | |
| (K.sc n)] : | |
| AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf Y K n = | |
| ((K.sc n).mapHomologyIso | |
| (sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0})).hom := by | |
| let F := presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let adj := sheafificationAdjunction (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let c := asIso adj.counit | |
| let : PreservesFiniteLimits (G β F) := preservesFiniteLimits_of_natIso c.symm | |
| let : PreservesFiniteColimits (G β F) := preservesFiniteColimits_of_natIso c.symm | |
| let S := K.sc n | |
| let PK := (G.mapHomologicalComplex β€α΅α΅).obj K | |
| let e := (PK.sc n).mapHomologyIso F | |
| let h := S.mapHomologyIso G | |
| let cc := NatIso.mapHomologicalComplex c β€α΅α΅ | |
| have hc : homologyMap (cc.hom.app K) n = | |
| (S.mapHomologyIso (G β F)).hom β« c.hom.app S.homology := by | |
| have ht := HomologyFunctorCoherence.homologyComparison_natTrans S (G β F) (π _) c.hom | |
| simpa only [HomologyFunctorCoherence.homologyComparison_id, Category.comp_id, homologyMap] using! ht | |
| have he : (S.mapHomologyIso (G β F)).hom = e.hom β« F.map h.hom := by | |
| exact HomologyFunctorCoherence.homologyComparison_comp S G F | |
| unfold AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf | |
| AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafSheafificationIso | |
| change toSheafify (Opens.grothendieckTopology Y) (PK.homology n) β« | |
| G.map (e.inv β« homologyMap (cc.hom.app K) n) = h.hom | |
| rw [hc, he] | |
| simp only [Category.assoc, Iso.inv_hom_id_assoc, G.map_comp] | |
| change (toSheafify (Opens.grothendieckTopology Y) (PK.homology n) β« | |
| sheafifyMap (Opens.grothendieckTopology Y) h.hom) β« G.map (c.hom.app S.homology) = h.hom | |
| rw [β toSheafify_naturality, Category.assoc] | |
| have ht := adj.right_triangle_components S.homology | |
| simpa only [Category.comp_id] using! congrArg (fun g => h.hom β« g) ht | |
| end | |
| section | |
| /-! # The canonical cohomology-sheaf class preserves the actual cocycle sections -/ | |
| open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex | |
| variable (Y : TopCat.{0}) | |
| (K : CochainComplex (Sheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}) β€) (n : β€) | |
| /-- The canonical map on cocycles, expressed through the actual sheafification unit and counit. -/ | |
| def sectionCycleComparison : | |
| (((sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).mapHomologicalComplex | |
| β€α΅α΅).obj K).cycles n βΆ | |
| (sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).obj (K.cycles n) := | |
| let F := presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let adj := sheafificationAdjunction (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let P := (G.mapHomologicalComplex β€α΅α΅).obj K | |
| let c := (NatIso.mapHomologicalComplex (asIso adj.counit) β€α΅α΅).hom.app K | |
| adj.unit.app (P.cycles n) β« G.map | |
| (((P.sc n).mapCyclesIso F).inv β« cyclesMap c n) | |
| set_option backward.defeqAttrib.useBackward true in | |
| set_option backward.isDefEq.respectTransparency false in | |
| set_option backward.isDefEq.respectTransparency.types false in | |
| theorem sectionCycleComparison_iCycles : | |
| sectionCycleComparison Y K n β« | |
| (sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).map (K.iCycles n) = | |
| (((sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).mapHomologicalComplex | |
| β€α΅α΅).obj K).iCycles n := by | |
| let F := presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let adj := sheafificationAdjunction (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let P := (G.mapHomologicalComplex β€α΅α΅).obj K | |
| let c := (NatIso.mapHomologicalComplex (asIso adj.counit) β€α΅α΅).hom.app K | |
| let e := (P.sc n).mapCyclesIso F | |
| have he : e.inv β« ((F.mapHomologicalComplex β€α΅α΅).obj P).iCycles n = | |
| F.map (P.iCycles n) := by | |
| rw [Iso.inv_comp_eq] | |
| exact (ShortComplex.mapCyclesIso_hom_iCycles (P.sc n) F).symm | |
| have hc : cyclesMap c n β« K.iCycles n = | |
| ((F.mapHomologicalComplex β€α΅α΅).obj P).iCycles n β« adj.counit.app (K.X n) := by | |
| simpa only [NatIso.mapHomologicalComplex] using! cyclesMap_i c n | |
| have hn : P.iCycles n β« adj.unit.app (G.obj (K.X n)) = | |
| adj.unit.app (P.cycles n) β« G.map (F.map (P.iCycles n)) := by | |
| exact adj.unit.naturality (P.iCycles n) | |
| unfold sectionCycleComparison | |
| change (adj.unit.app (P.cycles n) β« G.map (e.inv β« cyclesMap c n)) β« | |
| G.map (K.iCycles n) = P.iCycles n | |
| calc | |
| _ = adj.unit.app (P.cycles n) β« | |
| G.map (e.inv β« (cyclesMap c n β« K.iCycles n)) := by | |
| simp only [G.map_comp, Category.assoc] | |
| _ = adj.unit.app (P.cycles n) β« | |
| G.map (F.map (P.iCycles n) β« adj.counit.app (K.X n)) := by | |
| rw [hc, β Category.assoc, he] | |
| _ = P.iCycles n β« (adj.unit.app (G.obj (K.X n)) β« | |
| G.map (adj.counit.app (K.X n))) := by | |
| rw [G.map_comp, β Category.assoc, β hn, Category.assoc] | |
| _ = P.iCycles n := by | |
| simpa only [Category.comp_id] using! congrArg | |
| (fun g => P.iCycles n β« g) (adj.right_triangle_components (K.X n)) | |
| set_option backward.defeqAttrib.useBackward true in | |
| set_option backward.isDefEq.respectTransparency false in | |
| set_option backward.isDefEq.respectTransparency.types false in | |
| theorem sectionCohomologyPresheafToSheaf_cycles : | |
| (((sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).mapHomologicalComplex | |
| β€α΅α΅).obj K).homologyΟ n β« | |
| AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf Y K n = | |
| sectionCycleComparison Y K n β« | |
| (sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).map (K.homologyΟ n) := by | |
| let F := presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let adj := sheafificationAdjunction (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let P := (G.mapHomologicalComplex β€α΅α΅).obj K | |
| let c := (NatIso.mapHomologicalComplex (asIso adj.counit) β€α΅α΅).hom.app K | |
| let e := (P.sc n).mapHomologyIso F | |
| let ec := (P.sc n).mapCyclesIso F | |
| have hp : ((F.mapHomologicalComplex β€α΅α΅).obj P).homologyΟ n β« e.hom = | |
| ec.hom β« F.map (P.homologyΟ n) := by | |
| exact HomologyFunctorCoherence.homologyComparison_cycles (P.sc n) F | |
| have he : F.map (P.homologyΟ n) β« e.inv = | |
| ec.inv β« ((F.mapHomologicalComplex β€α΅α΅).obj P).homologyΟ n := by | |
| apply (cancel_mono e.hom).mp | |
| simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id] | |
| rw [hp] | |
| simp only [Iso.inv_hom_id_assoc] | |
| have hn : P.homologyΟ n β« adj.unit.app (P.homology n) = | |
| adj.unit.app (P.cycles n) β« G.map (F.map (P.homologyΟ n)) := by | |
| exact adj.unit.naturality (P.homologyΟ n) | |
| have hc : ((F.mapHomologicalComplex β€α΅α΅).obj P).homologyΟ n β« homologyMap c n = | |
| cyclesMap c n β« K.homologyΟ n := by | |
| simpa only [NatIso.mapHomologicalComplex] using! homologyΟ_naturality c n | |
| unfold AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf | |
| AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafSheafificationIso sectionCycleComparison | |
| change P.homologyΟ n β« (adj.unit.app (P.homology n) β« | |
| G.map (e.inv β« homologyMap c n)) = | |
| (adj.unit.app (P.cycles n) β« G.map (ec.inv β« cyclesMap c n)) β« G.map (K.homologyΟ n) | |
| calc | |
| _ = adj.unit.app (P.cycles n) β« | |
| G.map ((F.map (P.homologyΟ n) β« e.inv) β« homologyMap c n) := by | |
| rw [β Category.assoc, hn] | |
| simp only [G.map_comp, Category.assoc] | |
| _ = adj.unit.app (P.cycles n) β« | |
| G.map (ec.inv β« (cyclesMap c n β« K.homologyΟ n)) := by | |
| rw [he, Category.assoc, hc] | |
| _ = _ := by simp only [G.map_comp, Category.assoc] | |
| end | |
| /-! # Canonical cocycle sections on an actual ambient open -/ | |
| open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex | |
| variable (Y : TopCat.{0}) | |
| (K : CochainComplex (Sheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}) β€) | |
| (n : β€) (V : Opens Y) | |
| /-- The actual map from cocycle sections to sections of the cycle sheaf. -/ | |
| def openSectionCycleComparison : | |
| (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex β€α΅α΅).obj K).cycles n βΆ | |
| (K.cycles n).obj.obj (op V) := | |
| let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let E := (evaluation (Opens Y)α΅α΅ AddCommGrpCat.{0}).obj (op V) | |
| let P := (G.mapHomologicalComplex β€α΅α΅).obj K | |
| ((P.sc n).mapCyclesIso E).hom β« (sectionCycleComparison Y K n).app (op V) | |
| set_option backward.defeqAttrib.useBackward true in | |
| set_option backward.isDefEq.respectTransparency false in | |
| set_option backward.isDefEq.respectTransparency.types false in | |
| theorem openSectionCycleComparison_iCycles : | |
| openSectionCycleComparison Y K n V β« (K.iCycles n).hom.app (op V) = | |
| (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex β€α΅α΅).obj K).iCycles n := by | |
| let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let E := (evaluation (Opens Y)α΅α΅ AddCommGrpCat.{0}).obj (op V) | |
| let P := (G.mapHomologicalComplex β€α΅α΅).obj K | |
| have hc : (sectionCycleComparison Y K n).app (op V) β« | |
| (K.iCycles n).hom.app (op V) = (P.iCycles n).app (op V) := by | |
| simpa only [NatTrans.comp_app] using! | |
| congrArg (fun f => f.app (op V)) (sectionCycleComparison_iCycles Y K n) | |
| unfold openSectionCycleComparison | |
| rw [Category.assoc, hc] | |
| exact ShortComplex.mapCyclesIso_hom_iCycles (P.sc n) E | |
| set_option backward.defeqAttrib.useBackward true in | |
| set_option backward.isDefEq.respectTransparency false in | |
| set_option backward.isDefEq.respectTransparency.types false in | |
| theorem openSectionCohomology_cycles : | |
| (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex β€α΅α΅).obj K).homologyΟ n β« | |
| AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyToSheafSection Y K n V = | |
| openSectionCycleComparison Y K n V β« (K.homologyΟ n).hom.app (op V) := by | |
| let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} | |
| let E := (evaluation (Opens Y)α΅α΅ AddCommGrpCat.{0}).obj (op V) | |
| let P := (G.mapHomologicalComplex β€α΅α΅).obj K | |
| have hp : (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex β€α΅α΅).obj K).homologyΟ n β« | |
| (AlgebraicTopology.Sheaf.CohomologyStalkVanishing.TopCat.sectionCohomologyPresheafOnOpenIso Y K n V).hom = | |
| ((P.sc n).mapCyclesIso E).hom β« (P.homologyΟ n).app (op V) := by | |
| exact HomologyFunctorCoherence.homologyComparison_cycles (P.sc n) E | |
| have hc : (P.homologyΟ n).app (op V) β« | |
| (AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf Y K n).app (op V) = | |
| (sectionCycleComparison Y K n).app (op V) β« (K.homologyΟ n).hom.app (op V) := by | |
| simpa only [NatTrans.comp_app] using! | |
| congrArg (fun f => f.app (op V)) (sectionCohomologyPresheafToSheaf_cycles Y K n) | |
| unfold AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyToSheafSection openSectionCycleComparison | |
| rw [β Category.assoc, hp, Category.assoc, hc, β Category.assoc] | |
| end | |
| end OAI.AlgebraicGeometry.ComplexMultiplication.CMCanonicalSectionCycles | |