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.AbelianModuli.HilbertConstruction.Coherent.ClosedDescent |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.PushforwardCohomologyFiniteness |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.ZariskiVanishing |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CohomologyEulerCharacteristic |
| 5 | import Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 6 | |
| 7 | /-! # Coherent Support Cohomology -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.CoherentSupportCohomology |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A coherent sheaf with finite support on a proper field scheme |
| 14 | descends to its actual finite annihilator subscheme. Consequently its |
| 15 | positive cohomology vanishes and its Euler characteristic is the |
| 16 | dimension of its actual global sections. -/ |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 19 | universe u |
| 20 | |
| 21 | theorem idealSubscheme_finite_of_finite_support |
| 22 | {K : Type u} [Field K] {X : Scheme.{u}} (p : X ⟶ Spec (.of K)) [IsProper p] |
| 23 | (I : X.IdealSheafData) (hf : (I.support : Set X).Finite) : |
| 24 | IsFinite (I.subschemeι ≫ p) := by |
| 25 | let : Finite (I.support : Set X) := hf.to_subtype |
| 26 | let j : I.subscheme → (I.support : Set X) := fun z => |
| 27 | ⟨I.subschemeι z, by rw [← I.range_subschemeι]; exact ⟨z, rfl⟩⟩ |
| 28 | let : Finite I.subscheme := Finite.of_injective j (fun a b h => |
| 29 | I.subschemeι.isEmbedding.injective (congrArg Subtype.val h)) |
| 30 | let : LocallyQuasiFinite (I.subschemeι ≫ p) := |
| 31 | LocallyQuasiFinite.of_finite_preimage_singleton (I.subschemeι ≫ p) (fun _ => Set.toFinite _) |
| 32 | exact IsFinite.of_isProper_of_locallyQuasiFinite (I.subschemeι ≫ p) |
| 33 | |
| 34 | theorem finiteSupport_coherent_positive_cohomology_isZero |
| 35 | {K : Type u} [Field K] {X : Scheme.{u}} (p : X ⟶ Spec (.of K)) [IsProper p] |
| 36 | (M : X.Modules) [M.IsQuasicoherent] [M.IsFiniteType] |
| 37 | (hf : ((Coherent.Annihilator.coherentAnnihilator M).support : Set X).Finite) (n : ℕ) : |
| 38 | IsZero ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (Coefficient.ModulePresheaf.schemeCoefficientMap p) (n + 1)).obj M) := by |
| 39 | let : X.IsSeparated := ⟨by rw [← terminal.comp_from p]; infer_instance⟩ |
| 40 | let I := Coherent.Annihilator.coherentAnnihilator M |
| 41 | let : IsFinite (I.subschemeι ≫ p) := idealSubscheme_finite_of_finite_support p I hf |
| 42 | let : IsAffine I.subscheme := isAffine_of_isAffineHom (I.subschemeι ≫ p) |
| 43 | obtain ⟨N, hNq, hNt, ⟨e⟩⟩ := Coherent.ClosedDescent.exists_coherent_on_annihilating_subscheme M I le_rfl |
| 44 | let := hNq |
| 45 | let := hNt |
| 46 | let H := Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (Coefficient.ModulePresheaf.schemeCoefficientMap p) (n + 1) |
| 47 | let eH := Affine.PushforwardCohomologyFiniteness.affinePushforwardCohomologyIso I.subschemeι p N (n + 1) ≪≫ H.mapIso e |
| 48 | have : Subsingleton (Zariski.Cohomology.ZariskiCohomology.H N (n + 1)) := |
| 49 | Affine.ZariskiVanishing.ZariskiCohomology.moduleAffineHSucc_subsingleton N n |
| 50 | have hz : Subsingleton ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor |
| 51 | (Coefficient.ModulePresheaf.schemeCoefficientMap (I.subschemeι ≫ p)) (n + 1)).obj N) := |
| 52 | Affine.ZariskiVanishing.ZariskiCohomology.moduleAffineHSucc_subsingleton N n |
| 53 | exact eH.isZero_iff.mp (ModuleCat.isZero_of_subsingleton _) |
| 54 | |
| 55 | theorem finiteSupport_coherent_euler_eq_sections |
| 56 | {K : Type u} [Field K] {X : Scheme.{u}} (p : X ⟶ Spec (.of K)) [IsProper p] |
| 57 | (M : X.Modules) [M.IsQuasicoherent] [M.IsFiniteType] |
| 58 | (hf : ((Coherent.Annihilator.coherentAnnihilator M).support : Set X).Finite) : |
| 59 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p M = |
| 60 | (Module.finrank K ((Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj M) : ℤ) := |
| 61 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic_eq_sections_of_positive_vanishing p M |
| 62 | (finiteSupport_coherent_positive_cohomology_isZero p M hf) |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.CoherentSupportCohomology |