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.Zariski.Cohomology |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.QuasicoherentEpimorphisms |
| 3 | import Mathlib.CategoryTheory.ObjectProperty.Kernels |
| 4 | |
| 5 | /-! # Zariski Exactness -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.ZariskiExactness.ZariskiCohomology |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | universe u |
| 12 | open _root_.CategoryTheory Opposite _root_.TopologicalSpace _root_.AlgebraicGeometry |
| 13 | open _root_.CategoryTheory.Limits |
| 14 | |
| 15 | /-- The genuine Ext-based `H⁰` functor sends an epimorphism of |
| 16 | quasicoherent modules on `Spec R` to a surjective group homomorphism. |
| 17 | |
| 18 | This is the checked cohomological consumer of |
| 19 | `moduleSpecGlobalSections_surjective_of_epi`. -/ |
| 20 | theorem moduleSpecHZero_surjective_of_epi {R : CommRingCat.{u}} |
| 21 | {M N : (Spec R).Modules} (f : M ⟶ N) |
| 22 | [M.IsQuasicoherent] [N.IsQuasicoherent] [Epi f] : |
| 23 | Function.Surjective ((Zariski.Cohomology.ZariskiCohomology.zariskiFunctor (Spec R) 0).map f) := by |
| 24 | intro y |
| 25 | obtain ⟨x, hx⟩ := QuasicoherentEpimorphisms.quasicoherent_spec_surjective_of_epi f |
| 26 | (Zariski.Cohomology.ZariskiCohomology.hZeroEquivGlobalSections N y) |
| 27 | let x' : Γ(M, ⊤) := x |
| 28 | refine ⟨(Zariski.Cohomology.ZariskiCohomology.hZeroEquivGlobalSections M).symm x', ?_⟩ |
| 29 | apply (Zariski.Cohomology.ZariskiCohomology.hZeroEquivGlobalSections N).injective |
| 30 | rw [← Zariski.Cohomology.ZariskiCohomology.hZeroEquivGlobalSections_naturality] |
| 31 | exact (congrArg (f.app ⊤) ((Zariski.Cohomology.ZariskiCohomology.hZeroEquivGlobalSections M).apply_symm_apply x')).trans hx |
| 32 | |
| 33 | /-- The cokernel of a morphism between quasicoherent modules on an affine |
| 34 | spectrum is quasicoherent. |
| 35 | |
| 36 | The proof transports the module cokernel through the left-adjoint tilde |
| 37 | functor, then compares the mapped cokernel with the scheme-module cokernel by |
| 38 | the counit isomorphisms `fromTildeΓ`. -/ |
| 39 | theorem moduleSpec_isQuasicoherent_cokernel {R : CommRingCat.{u}} |
| 40 | {M N : (Spec R).Modules} (f : M ⟶ N) |
| 41 | [M.IsQuasicoherent] [N.IsQuasicoherent] : |
| 42 | (cokernel f).IsQuasicoherent := by |
| 43 | let g := moduleSpecΓFunctor.map f |
| 44 | have : IsIso M.fromTildeΓ := inferInstance |
| 45 | have : IsIso N.fromTildeΓ := inferInstance |
| 46 | let eM := asIso M.fromTildeΓ |
| 47 | let eN := asIso N.fromTildeΓ |
| 48 | have hnat : |
| 49 | tilde.map (moduleSpecΓFunctor.map f) ≫ N.fromTildeΓ = |
| 50 | M.fromTildeΓ ≫ f := by |
| 51 | exact Scheme.Modules.fromTildeΓNatTrans.naturality f |
| 52 | let e₁ : tilde (cokernel g) ≅ cokernel (tilde.map g) := by |
| 53 | exact PreservesCokernel.iso (tilde.functor R) g |
| 54 | let e₂ : cokernel (tilde.map g) ≅ cokernel f := |
| 55 | cokernel.mapIso _ _ eM eN (by |
| 56 | change tilde.map g ≫ N.fromTildeΓ = M.fromTildeΓ ≫ f |
| 57 | simpa [g] using hnat) |
| 58 | have hsource : (tilde (cokernel g)).IsQuasicoherent := inferInstance |
| 59 | exact (SheafOfModules.isQuasicoherent (Spec R).ringCatSheaf).prop_of_iso |
| 60 | (e₁ ≪≫ e₂) hsource |
| 61 | |
| 62 | /-- The Ext-based `H⁰` map induced by a cokernel projection of |
| 63 | quasicoherent modules on an affine spectrum is surjective. |
| 64 | |
| 65 | This is a checked cohomological consumer of |
| 66 | `moduleSpec_isQuasicoherent_cokernel`. -/ |
| 67 | theorem moduleSpecHZero_surjective_cokernel_pi {R : CommRingCat.{u}} |
| 68 | {M N : (Spec R).Modules} (f : M ⟶ N) |
| 69 | [M.IsQuasicoherent] [N.IsQuasicoherent] : |
| 70 | Function.Surjective |
| 71 | ((Zariski.Cohomology.ZariskiCohomology.zariskiFunctor (Spec R) 0).map (cokernel.π f)) := by |
| 72 | let : (cokernel f).IsQuasicoherent := |
| 73 | moduleSpec_isQuasicoherent_cokernel f |
| 74 | exact moduleSpecHZero_surjective_of_epi (cokernel.π f) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.ZariskiExactness.ZariskiCohomology |