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.AlgebraicGeometry.Crystalline.Cohomology.Module.SheafGlobalSections |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.CrystallineZariski.GlobalSections |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.InjectiveSectionCohomology |
| 4 | |
| 5 | /-! # Global Ext Sections -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.GlobalExtSections.CrystallineGlobalExtSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # The original crystalline Ext groups from actual global sections |
| 13 | |
| 14 | The constant coefficient sheaf represents coefficient-linear global |
| 15 | sections. Applying this natural identification to the original injective |
| 16 | resolution computes its Ext groups with their specified scalar action. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (p : ℕ) [Fact p.Prime] (k : Type u) [Field k] [CharP k p] |
| 24 | (X : Over (AlgebraicGeometry.Spec (CommRingCat.of k))) |
| 25 | |
| 26 | local notation "R" => OAI.AlgebraicGeometry.Crystalline.Cohomology.Site.CoefficientRing p k |
| 27 | local notation "V" => OAI.AlgebraicGeometry.Crystalline.Cohomology.SheafInjectives.CrystallineSheafInjectives.Modules p k |
| 28 | local notation "J" => OAI.AlgebraicGeometry.Crystalline.Cohomology.Site.topology p k X |
| 29 | |
| 30 | def sections : Sheaf J V ⥤ ModuleCat.{u + 2} R := |
| 31 | Sheaf.Γ J V ⋙ ModuleCat.uliftFunctor.{u + 2, u + 1} R |
| 32 | |
| 33 | instance sections_additive : (sections p k X).Additive := by |
| 34 | unfold sections |
| 35 | infer_instance |
| 36 | |
| 37 | def complex (F : Sheaf (Site.topology p k X) |
| 38 | (ModuleCat.{u + 1} (Site.CoefficientRing p k))) (I : InjectiveResolution F) : |
| 39 | CochainComplex (ModuleCat.{u + 2} R) ℕ := |
| 40 | ((sections p k X).mapHomologicalComplex (ComplexShape.up ℕ)).obj I.cocomplex |
| 41 | |
| 42 | def extComplexIso (F : Sheaf (Site.topology p k X) |
| 43 | (ModuleCat.{u + 1} (Site.CoefficientRing p k))) (I : InjectiveResolution F) : |
| 44 | NumberTheory.PadicHodge.IntegralComparison.InjectiveSectionCohomology.complex R (Site.coefficientSheaf p k X) I ≅ |
| 45 | complex p k X F I := |
| 46 | (NatIso.mapHomologicalComplex (Module.SheafGlobalSections.ModuleSheafGlobalSections.iso.{u + 1, u, u + 1, u + 2} R J) |
| 47 | (ComplexShape.up ℕ)).app I.cocomplex |
| 48 | |
| 49 | def homologyIso (I : InjectiveResolution (Site.structureSheaf p k X)) (n : ℕ) : |
| 50 | (complex p k X (Site.structureSheaf p k X) I).homology n ≅ |
| 51 | ModuleCat.of R (Site.integralCohomology p k X n) := |
| 52 | (HomologicalComplex.homologyFunctor _ _ n).mapIso |
| 53 | (extComplexIso p k X (Site.structureSheaf p k X) I).symm ≪≫ |
| 54 | NumberTheory.PadicHodge.IntegralComparison.InjectiveSectionCohomology.homologyIso R (Site.coefficientSheaf p k X) I n |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.GlobalExtSections.CrystallineGlobalExtSections |