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.Module.CoherentHomology |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.BasicOpenAnnihilation |
| 4 | import Mathlib.Algebra.Category.Grp.Limits |
| 5 | |
| 6 | /-! # Local Exactness -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.LocalExactness |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Exactness of a quasicoherent sheaf complex can be checked on the |
| 13 | actual section complexes of an affine open cover. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | universe u v w |
| 20 | |
| 21 | variable {X : Scheme.{u}} {ι : Type v} {c : ComplexShape ι} |
| 22 | (K : HomologicalComplex X.Modules c) [∀ n, (K.X n).IsQuasicoherent] |
| 23 | |
| 24 | def sectionComplex (U : X.Opens) := |
| 25 | (((ModuleExactSections.sections U ⋙ forget₂ _ AddCommGrpCat).mapHomologicalComplex c).obj K) |
| 26 | |
| 27 | def homologyIso (U : X.Opens) (hU : IsAffineOpen U) (n : ι) : |
| 28 | (sectionComplex K U).homology n ≅ |
| 29 | (forget₂ (ModuleCat Γ(X, U)) AddCommGrpCat).obj |
| 30 | ((ModuleExactSections.sections U).obj (K.homology n)) := by |
| 31 | let F := ModuleExactSections.sections U |
| 32 | let G := forget₂ (ModuleCat Γ(X, U)) AddCommGrpCat |
| 33 | let J := (F.mapHomologicalComplex c).obj K |
| 34 | have : (K.sc n).X₁.IsQuasicoherent := inferInstanceAs (K.X (c.prev n)).IsQuasicoherent |
| 35 | have : (K.sc n).X₂.IsQuasicoherent := inferInstanceAs (K.X n).IsQuasicoherent |
| 36 | have : (K.sc n).X₃.IsQuasicoherent := inferInstanceAs (K.X (c.next n)).IsQuasicoherent |
| 37 | exact (J.sc n).mapHomologyIso G ≪≫ G.mapIso (ModuleHomology.iso U hU (K.sc n)) |
| 38 | |
| 39 | theorem exactAt_of_cover {τ : Type w} (U : τ → X.Opens) (hcover : iSup U = ⊤) |
| 40 | (haffine : ∀ i, IsAffineOpen (U i)) (n : ι) |
| 41 | (hexact : ∀ i, (sectionComplex K (U i)).ExactAt n) : K.ExactAt n := by |
| 42 | rw [HomologicalComplex.exactAt_iff_isZero_homology] |
| 43 | have : (K.sc n).X₁.IsQuasicoherent := inferInstanceAs (K.X (c.prev n)).IsQuasicoherent |
| 44 | have : (K.sc n).X₂.IsQuasicoherent := inferInstanceAs (K.X n).IsQuasicoherent |
| 45 | have : (K.sc n).X₃.IsQuasicoherent := inferInstanceAs (K.X (c.next n)).IsQuasicoherent |
| 46 | have : (K.homology n).IsQuasicoherent := Module.CoherentHomology.quasicoherent (K.sc n) |
| 47 | apply AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.ZeroOpenCover.module_isZero_of_restrict_cover U hcover (K.homology n) |
| 48 | intro i |
| 49 | apply (AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.BasicOpenAnnihilation.module_restrict_isZero_iff_sections_subsingleton |
| 50 | (K.homology n) (U i) (haffine i)).mpr |
| 51 | exact AddCommGrpCat.subsingleton_of_isZero ((homologyIso K (U i) (haffine i) n).isZero_iff.mp |
| 52 | ((HomologicalComplex.exactAt_iff_isZero_homology _ _).mp (hexact i))) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.LocalExactness |