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.NumberTheory.PadicHodge.IntegralComparison.Affine.ModuleHomology |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.HomologyPreservationCompose |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AlgebraSheafScalars |
| 4 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRingsExact |
| 5 | |
| 6 | /-! # Base Homology -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.BaseHomology |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Affine homology comparisons over the original base ring, natural under restriction. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (k : Type u) [CommRing k] (X : Over (Spec (CommRingCat.of k))) |
| 19 | |
| 20 | def coefficientMap (U : X.left.Opens) : k →+* Γ(X.left, U) := |
| 21 | algebraMap k ((AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras k X).obj (op U)) |
| 22 | |
| 23 | abbrev coefficients (U : X.left.Opens) : ModuleCat.{u} Γ(X.left, U) ⥤ ModuleCat.{u} k := |
| 24 | ModuleCat.restrictScalars (coefficientMap k X U) |
| 25 | |
| 26 | instance coefficients_additive (U : X.left.Opens) : (coefficients k X U).Additive where |
| 27 | map_add := rfl |
| 28 | |
| 29 | instance coefficients_preservesFiniteLimits (U : X.left.Opens) : |
| 30 | PreservesFiniteLimits (coefficients k X U) where |
| 31 | preservesFiniteLimits J _ _ := by |
| 32 | dsimp [coefficients] |
| 33 | infer_instance |
| 34 | |
| 35 | instance coefficients_preservesFiniteColimits (U : X.left.Opens) : |
| 36 | PreservesFiniteColimits (coefficients k X U) where |
| 37 | preservesFiniteColimits J _ _ := by |
| 38 | dsimp [coefficients] |
| 39 | infer_instance |
| 40 | |
| 41 | abbrev sections (U : X.left.Opens) : X.left.Modules ⥤ ModuleCat.{u} k := |
| 42 | ModuleExactSections.sections U ⋙ coefficients k X U |
| 43 | |
| 44 | instance additive (U : X.left.Opens) : (sections k X U).Additive := by infer_instance |
| 45 | |
| 46 | instance preservesFiniteLimits (U : X.left.Opens) : PreservesFiniteLimits (sections k X U) := by |
| 47 | infer_instance |
| 48 | |
| 49 | def restriction {U V : X.left.Opens} (h : V ≤ U) : sections k X U ⟶ sections k X V where |
| 50 | app M := ((AlgebraSheafScalars.functor k X).obj M).obj.map (homOfLE h).op |
| 51 | naturality _ _ f := ((AlgebraSheafScalars.functor k X).map f).hom.naturality (homOfLE h).op |>.symm |
| 52 | |
| 53 | variable (U : X.left.Opens) (hU : IsAffineOpen U) (S : ShortComplex X.left.Modules) |
| 54 | [S.X₁.IsQuasicoherent] [S.X₂.IsQuasicoherent] [S.X₃.IsQuasicoherent] |
| 55 | |
| 56 | include hU |
| 57 | |
| 58 | theorem preservesLeft : (sections k X U).PreservesLeftHomologyOf S := by |
| 59 | have := ModuleHomology.preservesLeft U hU S |
| 60 | exact HomologyPreservationCompose.left (ModuleExactSections.sections U) (coefficients k X U) S |
| 61 | |
| 62 | omit [S.X₃.IsQuasicoherent] in |
| 63 | theorem preservesRight : (sections k X U).PreservesRightHomologyOf S := by |
| 64 | have := ModuleHomology.preservesRight U hU S |
| 65 | exact HomologyPreservationCompose.right (ModuleExactSections.sections U) (coefficients k X U) S |
| 66 | |
| 67 | def iso : (S.map (sections k X U)).homology ≅ (sections k X U).obj S.homology := by |
| 68 | have := preservesLeft k X U hU S |
| 69 | exact S.mapHomologyIso (sections k X U) |
| 70 | |
| 71 | theorem restriction_naturality (V : X.left.Opens) (hV : IsAffineOpen V) (h : V ≤ U) : |
| 72 | ShortComplex.homologyMap (S.mapNatTrans (restriction k X h)) ≫ (iso k X V hV S).hom = |
| 73 | (iso k X U hU S).hom ≫ (restriction k X h).app S.homology := by |
| 74 | have := preservesLeft k X U hU S |
| 75 | have := preservesRight k X U hU S |
| 76 | have := preservesLeft k X V hV S |
| 77 | have := preservesRight k X V hV S |
| 78 | change ShortComplex.homologyMap (S.mapNatTrans (restriction k X h)) ≫ |
| 79 | (S.mapHomologyIso (sections k X V)).hom = |
| 80 | (S.mapHomologyIso (sections k X U)).hom ≫ (restriction k X h).app S.homology |
| 81 | rw [ShortComplex.homologyMap_mapNatTrans] |
| 82 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.BaseHomology |