Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.CategoryTheory.Isomorphisms.TransportedIsoSquare |
| 2 | import OAI.AlgebraicTopology.Cohomology.ModuleCarrier |
| 3 | import OAI.Algebra.Modules.ScalarModuleUnderlyingGroup |
| 4 | import OAI.AlgebraicGeometry.Sheaves.ModuleSheafRestrictionCarrier |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.NaturalCohomologyExcision |
| 6 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.ScalarRestriction |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Zariski.CohomologyFunctor |
| 8 | |
| 9 | /-! # Cohomology Excision -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Linear.CohomologyExcision |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! Two-open excision for module sheaves is linear over every coefficient ring |
| 16 | acting through the actual global functions. -/ |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | universe u |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | set_option cleanup.letToHave false |
| 22 | |
| 23 | private def linearIsoOfScalarSquare {R : Type u} [CommRing R] |
| 24 | (M N : ModuleCat.{u} R) |
| 25 | (e : (forget₂ (ModuleCat R) AddCommGrpCat).obj M ≅ |
| 26 | (forget₂ (ModuleCat R) AddCommGrpCat).obj N) |
| 27 | (h : ∀ r : R, M.smul r ≫ e.hom = |
| 28 | e.hom ≫ N.smul r) : M ≅ N := by |
| 29 | let l : M ≃ₗ[R] N := { e.addCommGroupIsoToAddEquiv with |
| 30 | map_smul' := fun r x => ConcreteCategory.congr_hom (h r) x } |
| 31 | exact l.toModuleIso |
| 32 | |
| 33 | private def forgottenCoefficientExcisionIso |
| 34 | {X : Scheme.{u}} {R : Type u} [CommRing R] (c : R →+* Γ(X, ⊤)) |
| 35 | (M : X.Modules) (U V : X.Opens) (hcover : U ⊔ V = ⊤) |
| 36 | (hV : ∀ q, Subsingleton (Zariski.Cohomology.ZariskiCohomology.H (M.restrict V.ι) q)) |
| 37 | (hUV : ∀ q, Subsingleton (Zariski.Cohomology.ZariskiCohomology.H (M.restrict (U ⊓ V).ι) q)) (n : ℕ) : |
| 38 | (forget₂ (ModuleCat R) AddCommGrpCat).obj |
| 39 | ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor c n).obj M) ≅ |
| 40 | (forget₂ (ModuleCat R) AddCommGrpCat).obj |
| 41 | ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (U.ι.appTop.hom.comp c) n).obj |
| 42 | (M.restrict U.ι)) := by |
| 43 | let F : TopCat.Sheaf AddCommGrpCat.{u} X := (SheafOfModules.toSheaf X.ringCatSheaf).obj M |
| 44 | let e := NaturalCohomologyExcision.IntrinsicCech.naturalSheafCohomologyTwoOpenExcisionIso F U V hcover (fun q => AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.moduleOpenCohomologySubsingleton M V q (hV q)) (fun q => AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.moduleOpenCohomologySubsingleton M (U ⊓ V) q (hUV q)) n |
| 45 | exact eqToIso (AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.coefficientCohomologyUnderlying c M n) ≪≫ e ≪≫ |
| 46 | (eqToIso (AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.coefficientOpenCohomologyUnderlying c M U n)).symm |
| 47 | |
| 48 | private theorem coefficientExcisionScalarSquare |
| 49 | {X : Scheme.{u}} {R : Type u} [CommRing R] (c : R →+* Γ(X, ⊤)) |
| 50 | (M : X.Modules) (U V : X.Opens) (hcover : U ⊔ V = ⊤) |
| 51 | (hV : ∀ q, Subsingleton (Zariski.Cohomology.ZariskiCohomology.H (M.restrict V.ι) q)) |
| 52 | (hUV : ∀ q, Subsingleton (Zariski.Cohomology.ZariskiCohomology.H (M.restrict (U ⊓ V).ι) q)) (n : ℕ) (r : R) : |
| 53 | ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor c n).obj M).smul r ≫ |
| 54 | (forgottenCoefficientExcisionIso c M U V hcover hV hUV n).hom = |
| 55 | (forgottenCoefficientExcisionIso c M U V hcover hV hUV n).hom ≫ |
| 56 | ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (U.ι.appTop.hom.comp c) n).obj |
| 57 | (M.restrict U.ι)).smul r := by |
| 58 | let a := Global.ModuleScalars.globalModuleScalar M (c r) |
| 59 | let t := (SheafOfModules.toSheaf X.ringCatSheaf).map a |
| 60 | have hs : (TopologicalSheafRestriction.IntrinsicCech.restrict AddCommGrpCat U.isOpenEmbedding).map t = |
| 61 | (SheafOfModules.toSheaf U.toScheme.ringCatSheaf).map |
| 62 | (Global.ModuleScalars.globalModuleScalar (M.restrict U.ι) (U.ι.appTop (c r))) := by |
| 63 | change (SheafOfModules.toSheaf U.toScheme.ringCatSheaf).map |
| 64 | ((Scheme.Modules.restrictFunctor U.ι).map (Global.ModuleScalars.globalModuleScalar M (c r))) = _ |
| 65 | rw [Global.ScalarRestriction.globalModuleScalar_restrict] |
| 66 | have h := NaturalCohomologyExcision.IntrinsicCech.naturalSheafCohomologyTwoOpenExcisionIso_naturality |
| 67 | t U V hcover (fun q => AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.moduleOpenCohomologySubsingleton M V q (hV q)) (fun q => AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.moduleOpenCohomologySubsingleton M (U ⊓ V) q (hUV q)) (fun q => AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.moduleOpenCohomologySubsingleton M V q (hV q)) (fun q => AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.moduleOpenCohomologySubsingleton M (U ⊓ V) q (hUV q)) n |
| 68 | rw [hs] at h |
| 69 | exact CategoryTheory.Isomorphisms.TransportedIsoSquare.transportedIsoSquare |
| 70 | (AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.coefficientCohomologyUnderlying c M n) (AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.coefficientOpenCohomologyUnderlying c M U n) |
| 71 | (NaturalCohomologyExcision.IntrinsicCech.naturalSheafCohomologyTwoOpenExcisionIso |
| 72 | ((SheafOfModules.toSheaf X.ringCatSheaf).obj M) U V hcover (fun q => AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.moduleOpenCohomologySubsingleton M V q (hV q)) (fun q => AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.moduleOpenCohomologySubsingleton M (U ⊓ V) q (hUV q)) n) |
| 73 | (AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.additiveSheafCohomologyMap t n) _ |
| 74 | (AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.additiveSheafCohomologyMap |
| 75 | ((SheafOfModules.toSheaf U.toScheme.ringCatSheaf).map |
| 76 | (Global.ModuleScalars.globalModuleScalar (M.restrict U.ι) (U.ι.appTop (c r)))) n) _ |
| 77 | (AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.coefficientCohomologyUnderlying_smul c M n r) |
| 78 | (AlgebraicTopology.Cohomology.ModuleCarrier.HilbertConstruction.coefficientOpenCohomologyUnderlying_smul c M U n r) h |
| 79 | |
| 80 | def coefficientCohomologyTwoOpenExcisionIso |
| 81 | {X : Scheme.{u}} {R : Type u} [CommRing R] (c : R →+* Γ(X, ⊤)) |
| 82 | (M : X.Modules) (U V : X.Opens) (hcover : U ⊔ V = ⊤) |
| 83 | (hV : ∀ q, Subsingleton (Zariski.Cohomology.ZariskiCohomology.H (M.restrict V.ι) q)) |
| 84 | (hUV : ∀ q, Subsingleton (Zariski.Cohomology.ZariskiCohomology.H (M.restrict (U ⊓ V).ι) q)) (n : ℕ) : |
| 85 | (Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor c n).obj M ≅ |
| 86 | (Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (U.ι.appTop.hom.comp c) n).obj |
| 87 | (M.restrict U.ι) := by |
| 88 | exact linearIsoOfScalarSquare _ _ |
| 89 | (forgottenCoefficientExcisionIso c M U V hcover hV hUV n) |
| 90 | (coefficientExcisionScalarSquare c M U V hcover hV hUV n) |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Linear.CohomologyExcision |