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.AdditiveEpiCover |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AbelianSheafInjectives |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.Ab |
| 4 | |
| 5 | /-! # Additive Global Exact -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AdditiveGlobalExact.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Exactness of global sections for abelian sheaf extensions with quasicoherent kernel. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable (R : CommRingCat.{u}) |
| 18 | |
| 19 | def HasExactAffineCechOne (F : AbelianSheafInjectives.Construction.AbelianSheaves (TopCat.of (PrimeSpectrum R))) : Prop := |
| 20 | ∀ (ι : Type u) [Fintype ι] [DecidableEq ι] (f : ι → R), |
| 21 | Ideal.span (Set.range f) = ⊤ → |
| 22 | Function.Exact (AdditiveCech.Construction.additiveAffineD0 R F f) (AdditiveCech.Construction.additiveAffineD1 R F f) |
| 23 | |
| 24 | theorem hasExactAffineCechOne_of_localizing |
| 25 | (F : ModuleSheafInjectives.Construction.ModuleSheaves R (TopCat.of (PrimeSpectrum R))) (hF : IsLocalizing (R := R) F) : |
| 26 | HasExactAffineCechOne R ((QuasicoherentAdditiveCech.Construction.moduleSheafToAbelian R _).obj F) := by |
| 27 | intro ι _ _ f hf |
| 28 | exact QuasicoherentAdditiveCech.Construction.additiveAffine_exact_of_localizing R F hF f hf |
| 29 | |
| 30 | abbrev additiveSheafEvaluation (U : TopologicalSpace.Opens (PrimeSpectrum R)) : |
| 31 | AbelianSheafInjectives.Construction.AbelianSheaves (TopCat.of (PrimeSpectrum R)) ⥤ AddCommGrpCat.{u} := |
| 32 | sheafToPresheaf (_root_.Opens.grothendieckTopology (PrimeSpectrum R)) AddCommGrpCat.{u} ⋙ |
| 33 | (evaluation _ _).obj (op U) |
| 34 | |
| 35 | variable (S : ShortComplex (AbelianSheafInjectives.Construction.AbelianSheaves (TopCat.of (PrimeSpectrum R)))) (hS : S.ShortExact) |
| 36 | |
| 37 | include hS |
| 38 | |
| 39 | theorem additive_shortExact_sections_exact (U : TopologicalSpace.Opens (PrimeSpectrum R)) : |
| 40 | Function.Exact (S.f.hom.app (op U)) (S.g.hom.app (op U)) := by |
| 41 | have : Mono S.f := hS.mono_f |
| 42 | exact (ShortComplex.ab_exact_iff_function_exact _).mp |
| 43 | (hS.exact.map_of_mono_of_preservesKernel (additiveSheafEvaluation R U) |
| 44 | inferInstance inferInstance) |
| 45 | |
| 46 | theorem additive_shortExact_sections_injective (U : TopologicalSpace.Opens (PrimeSpectrum R)) : |
| 47 | Function.Injective (S.f.hom.app (op U)) := by |
| 48 | have : Mono S.f := hS.mono_f |
| 49 | exact (AddCommGrpCat.mono_iff_injective ((additiveSheafEvaluation R U).map S.f)).mp inferInstance |
| 50 | |
| 51 | theorem additive_globalSections_surjective_of_shortExact (hF : HasExactAffineCechOne R S.X₁) : |
| 52 | Function.Surjective (S.g.hom.app (op ⊤)) := by |
| 53 | classical |
| 54 | intro s |
| 55 | obtain ⟨q, f, hf, x, hx⟩ := @AdditiveEpiCover.Construction.additive_epi_finite_principal_lifts R S.X₂ S.X₃ S.g hS.epi_g s |
| 56 | exact AdditiveLocalLifts.Construction.additiveAffine_global_lift R S.X₁ S.X₂ S.X₃ S.f S.g |
| 57 | (fun r ↦ additive_shortExact_sections_injective R S hS (PrimeSpectrum.basicOpen r)) |
| 58 | (fun r ↦ additive_shortExact_sections_exact R S hS (PrimeSpectrum.basicOpen r)) |
| 59 | f (hF q f hf) hf s x hx |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AdditiveGlobalExact.Construction |