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.Additive.FunctorBiproductDimension |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.CohomologyEulerAdditivity |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CoefficientCohomology.Additivity |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OrthogonalSheafDecomposition |
| 5 | |
| 6 | /-! # Cohomology Euler Biproduct -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.CohomologyEulerBiproduct |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Genuine coherent Euler characteristic is additive on finite biproducts, with finite-dimensionality and finite support supplied by proper geometry. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | universe u |
| 15 | open OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CoefficientCohomology.Additivity.ZariskiCohomology |
| 16 | |
| 17 | theorem coefficientEuler_terms_hasFiniteSupport |
| 18 | {K : Type u} [Field K] {X : Scheme.{u}} [X.IsSeparated] [CompactSpace X] |
| 19 | (p : X ⟶ Spec (.of K)) (M : X.Modules) [M.IsQuasicoherent] : |
| 20 | Function.HasFiniteSupport (fun q : ℕ => (-1 : ℤ) ^ q * |
| 21 | (Module.finrank K ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (Coefficient.ModulePresheaf.schemeCoefficientMap p) q).obj M) : ℤ)) := by |
| 22 | obtain ⟨N, hN⟩ := Quasicoherent.CohomologyBound.compactSeparated_quasicoherent_cohomology_bounded (Coefficient.ModulePresheaf.schemeCoefficientMap p) M |
| 23 | apply (Finset.finite_toSet (Finset.range N)).subset |
| 24 | intro q hq |
| 25 | by_contra hn |
| 26 | have hNq : N ≤ q := by simpa only [Finset.mem_coe, Finset.mem_range, not_lt] using hn |
| 27 | have : Subsingleton ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (Coefficient.ModulePresheaf.schemeCoefficientMap p) q).obj M) := |
| 28 | ModuleCat.isZero_iff_subsingleton.mp (hN q hNq) |
| 29 | exact hq (by simp only [Module.finrank_zero_of_subsingleton, Nat.cast_zero, mul_zero]) |
| 30 | |
| 31 | theorem proper_coherent_euler_biproduct |
| 32 | {K : Type u} [Field K] {X : Scheme.{u}} (p : X ⟶ Spec (.of K)) [IsProper p] |
| 33 | {I : Type u} [Fintype I] (M : I → X.Modules) |
| 34 | [∀ i, (M i).IsQuasicoherent] [∀ i, (M i).IsFiniteType] : |
| 35 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (⨁ M) = ∑ i, CohomologyEulerCharacteristic.coefficientEulerCharacteristic p (M i) := by |
| 36 | have : X.IsSeparated := ⟨by rw [← terminal.comp_from p]; infer_instance⟩ |
| 37 | have : CompactSpace X := QuasiCompact.compactSpace_of_compactSpace p |
| 38 | unfold CohomologyEulerCharacteristic.coefficientEulerCharacteristic |
| 39 | calc |
| 40 | _ = ∑ᶠ q : ℕ, ∑ i, (-1 : ℤ) ^ q * |
| 41 | (Module.finrank K ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (Coefficient.ModulePresheaf.schemeCoefficientMap p) q).obj (M i)) : ℤ) := by |
| 42 | apply finsum_congr |
| 43 | intro q |
| 44 | rw [Additive.FunctorBiproductDimension.additive_functor_biproduct_finrank |
| 45 | (Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (Coefficient.ModulePresheaf.schemeCoefficientMap p) q) M |
| 46 | (fun i => CoherentCohomology.proper_coherent_cohomologyFinite p (M i) q)] |
| 47 | simp only [Nat.cast_sum, Finset.mul_sum] |
| 48 | _ = _ := finsum_sum_comm Finset.univ _ |
| 49 | (fun i _ => coefficientEuler_terms_hasFiniteSupport p (M i)) |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.CohomologyEulerBiproduct |