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.ArithmeticGeometry.OrdinaryLocus.Openness.AffineEpiCover |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.ShortExact |
| 4 | |
| 5 | /-! # Affine Global Exact -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineGlobalExact.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Global sections are right exact for affine sheaf sequences with quasicoherent kernel. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable (R : CommRingCat.{u}) |
| 18 | |
| 19 | abbrev affineSheafEvaluation (U : TopologicalSpace.Opens (PrimeSpectrum R)) : |
| 20 | CategoryTheory.Sheaf (_root_.Opens.grothendieckTopology (PrimeSpectrum R)) (ModuleCat.{u} R) ⥤ ModuleCat.{u} R := |
| 21 | sheafToPresheaf (_root_.Opens.grothendieckTopology (PrimeSpectrum R)) (ModuleCat R) ⋙ |
| 22 | (evaluation _ _).obj (op U) |
| 23 | |
| 24 | variable (S : ShortComplex (CategoryTheory.Sheaf (_root_.Opens.grothendieckTopology (PrimeSpectrum R)) (ModuleCat.{u} R))) |
| 25 | (hS : S.ShortExact) |
| 26 | |
| 27 | include hS |
| 28 | |
| 29 | theorem affine_shortExact_sections_exact (U : TopologicalSpace.Opens (PrimeSpectrum R)) : |
| 30 | Function.Exact (S.f.hom.app (op U)) (S.g.hom.app (op U)) := by |
| 31 | have : Mono S.f := hS.mono_f |
| 32 | exact (ShortComplex.ShortExact.moduleCat_exact_iff_function_exact _).mp |
| 33 | (hS.exact.map_of_mono_of_preservesKernel (affineSheafEvaluation R U) |
| 34 | inferInstance inferInstance) |
| 35 | |
| 36 | theorem affine_shortExact_sections_injective (U : TopologicalSpace.Opens (PrimeSpectrum R)) : |
| 37 | Function.Injective (S.f.hom.app (op U)) := by |
| 38 | have : Mono S.f := hS.mono_f |
| 39 | exact (ModuleCat.mono_iff_injective ((affineSheafEvaluation R U).map S.f)).mp inferInstance |
| 40 | |
| 41 | theorem affine_globalSections_surjective_of_shortExact |
| 42 | (hF : IsLocalizing (R := R) S.X₁) : |
| 43 | Function.Surjective (S.g.hom.app (op ⊤)) := by |
| 44 | classical |
| 45 | have : Epi S.g := hS.epi_g |
| 46 | intro s |
| 47 | obtain ⟨q, f, hf, x, hx⟩ := @AffineEpiCover.Construction.affine_epi_finite_principal_lifts R S.X₂ S.X₃ S.g hS.epi_g s |
| 48 | exact AffineLocalLifts.Construction.affine_global_lift_of_principal_local_lifts R S.X₁ S.X₂ S.X₃ S.f S.g hF |
| 49 | (fun r ↦ affine_shortExact_sections_injective R S hS (PrimeSpectrum.basicOpen r)) |
| 50 | (fun r ↦ affine_shortExact_sections_exact R S hS (PrimeSpectrum.basicOpen r)) |
| 51 | f hf s x hx |
| 52 | |
| 53 | theorem affine_globalSections_shortExact |
| 54 | (hF : IsLocalizing (R := R) S.X₁) : |
| 55 | (S.map (affineSheafEvaluation R ⊤)).ShortExact := |
| 56 | ModuleCat.shortComplex_shortExact _ |
| 57 | (affine_shortExact_sections_exact R S hS ⊤) |
| 58 | (affine_shortExact_sections_injective R S hS ⊤) |
| 59 | (affine_globalSections_surjective_of_shortExact R S hS hF) |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineGlobalExact.Construction |