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.FiniteGeneratingSections |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RestrictionGeneratingSections |
| 3 | |
| 4 | /-! # From Affine Section Neighborhoods -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.FromAffineSectionNeighborhoods |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite section modules on affine neighborhoods give a finite-type sheaf. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme.Modules _root_.TopologicalSpace |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem module_finiteType_of_affine_section_neighborhoods {X : Scheme.{u}} |
| 17 | (M : X.Modules) [M.IsQuasicoherent] |
| 18 | (h : ∀ x : X, ∃ U : X.Opens, x ∈ U ∧ IsAffineOpen U ∧ |
| 19 | Module.Finite Γ(U.toScheme, ⊤) Γ(M.restrict U.ι, ⊤)) : |
| 20 | M.IsFiniteType := by |
| 21 | choose U hx hU hfinite using h |
| 22 | choose G hG using fun x : X ↦ by |
| 23 | have : IsAffine (U x).toScheme := hU x |
| 24 | have : Module.Finite Γ((U x).toScheme, ⊤) Γ(M.restrict (U x).ι, ⊤) := hfinite x |
| 25 | exact Affine.FiniteGeneratingSections.affine_exists_finite_generatingSections (M.restrict (U x).ι) |
| 26 | let q : M.LocalGeneratorsData := |
| 27 | { I := X |
| 28 | X := U |
| 29 | coversTop := by |
| 30 | rw [Opens.coversTop_iff, IsOpenCover] |
| 31 | apply top_le_iff.mp |
| 32 | intro x _ |
| 33 | exact TopologicalSpace.Opens.mem_iSup.mpr ⟨x, hx x⟩ |
| 34 | generators := fun x ↦ RestrictionGeneratingSections.generatingSectionsOverOfRestrict M (U x) (G x) } |
| 35 | have hq : q.IsFiniteType := by |
| 36 | constructor |
| 37 | intro x |
| 38 | have : (G x).IsFiniteType := hG x |
| 39 | exact RestrictionGeneratingSections.generatingSectionsOverOfRestrict_isFiniteType M (U x) (G x) |
| 40 | have hqShrink : q.shrink.IsFiniteType := by |
| 41 | constructor |
| 42 | intro i |
| 43 | dsimp [SheafOfModules.LocalGeneratorsData.shrink] |
| 44 | exact hq.isFiniteType i.2.choose |
| 45 | refine { exists_localGeneratorsData := ?_ } |
| 46 | exact ⟨q.shrink, hqShrink⟩ |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.FromAffineSectionNeighborhoods |