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.Affine.ZariskiExactness |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.RestrictionLimits |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.IsoImage |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.QuasicoherenceLocality |
| 5 | |
| 6 | /-! # Cokernels -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Cokernels |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Cokernels of morphisms of actual quasicoherent module sheaves are quasicoherent. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme.Modules |
| 14 | universe u |
| 15 | |
| 16 | theorem affine_quasicoherent_cokernel {X : Scheme.{u}} [IsAffine X] |
| 17 | {M N : X.Modules} [M.IsQuasicoherent] [N.IsQuasicoherent] (f : M ⟶ N) : |
| 18 | (cokernel f).IsQuasicoherent := by |
| 19 | let F := restrictFunctor X.isoSpec.inv |
| 20 | have hC : (cokernel (F.map f)).IsQuasicoherent := |
| 21 | Affine.ZariskiExactness.ZariskiCohomology.moduleSpec_isQuasicoherent_cokernel (F.map f) |
| 22 | have : (F.obj (cokernel f)).IsQuasicoherent := |
| 23 | (SheafOfModules.isQuasicoherent (Spec Γ(X, ⊤)).ringCatSheaf).prop_of_iso |
| 24 | (PreservesCokernel.iso F f).symm hC |
| 25 | have hback : ((F.obj (cokernel f)).restrict X.isoSpec.hom).IsQuasicoherent := inferInstance |
| 26 | exact (SheafOfModules.isQuasicoherent X.ringCatSheaf).prop_of_iso |
| 27 | ((LineBundle.IsoImage.restrictFunctorInverseIso X.isoSpec).app (cokernel f)) hback |
| 28 | |
| 29 | theorem module_quasicoherent_cokernel {X : Scheme.{u}} |
| 30 | {M N : X.Modules} [M.IsQuasicoherent] [N.IsQuasicoherent] (f : M ⟶ N) : |
| 31 | (cokernel f).IsQuasicoherent := by |
| 32 | apply Module.QuasicoherenceLocality.module_quasicoherent_of_affine_restrictions |
| 33 | intro U |
| 34 | have : IsAffine U.1.toScheme := U.2 |
| 35 | let F := restrictFunctor U.1.ι |
| 36 | have hC : (cokernel (F.map f)).IsQuasicoherent := affine_quasicoherent_cokernel (F.map f) |
| 37 | exact (SheafOfModules.isQuasicoherent U.1.toScheme.ringCatSheaf).prop_of_iso |
| 38 | (PreservesCokernel.iso F f).symm hC |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Cokernels |