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.Global.FunctionsConnectedness |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Flat.GlobalFunctionsPushout |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.ConnectedReducedConstants |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.ReducedFibers |
| 5 | import Mathlib.AlgebraicGeometry.Geometrically.Connected |
| 6 | |
| 7 | /-! # Global Functions Connectedness -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.GlobalFunctionsConnectedness |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! For a pointed proper smooth scheme over a field, geometric connectedness is equivalent to its structure map inducing an isomorphism on global functions. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | theorem field_connected_of_globalFunctionsIso {K : Type u} [Field K] {X : Scheme.{u}} |
| 20 | (p : X ⟶ Spec (.of K)) [IsIso p.appTop] (x : Spec (.of K) ⟶ X) : ConnectedSpace X := by |
| 21 | let : Field Γ(Spec (.of K), ⊤) := |
| 22 | ((Scheme.ΓSpecIso (.of K)).commRingCatIsoToRingEquiv.toMulEquiv.isField (Field.toIsField K)).toField |
| 23 | have : IsDomain Γ(X, ⊤) := (asIso p.appTop).symm.commRingCatIsoToRingEquiv.toMulEquiv.isDomain _ |
| 24 | have : Nonempty X := ⟨x (Nonempty.some (inferInstance : Nonempty (Spec (.of K))))⟩ |
| 25 | exact Global.FunctionsConnectedness.scheme_connected_of_globalSections_domain X |
| 26 | |
| 27 | theorem properField_affineBaseChange_globalFunctionsIso_of_iso |
| 28 | {K : Type u} [Field K] {X Y Z : Scheme.{u}} (p : X ⟶ Spec (.of K)) [IsProper p] [IsIso p.appTop] |
| 29 | {a : Z ⟶ X} {b : Z ⟶ Y} {c : Y ⟶ Spec (.of K)} (h : IsPullback a b p c) [IsAffine Y] : IsIso b.appTop := by |
| 30 | have : CompactSpace X := (quasiCompact_iff_compactSpace p).mp inferInstance |
| 31 | have hp : IsSeparated (p ≫ terminal.from (Spec (.of K))) := inferInstance |
| 32 | have : IsSeparated (terminal.from X) := (terminal.comp_from p) ▸ hp |
| 33 | let : Field Γ(Spec (.of K), ⊤) := |
| 34 | ((Scheme.ΓSpecIso (.of K)).commRingCatIsoToRingEquiv.toMulEquiv.isField (Field.toIsField K)).toField |
| 35 | have : Module.Flat Γ(Spec (.of K), ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra c) := inferInstance |
| 36 | exact HilbertConstruction.Flat.GlobalFunctionsPushout.flatBaseChange_globalFunctions_isIso h |
| 37 | |
| 38 | theorem properField_geometricallyConnected_of_globalFunctionsIso |
| 39 | {K : Type u} [Field K] {X : Scheme.{u}} (p : X ⟶ Spec (.of K)) [IsProper p] [IsIso p.appTop] |
| 40 | (x : Spec (.of K) ⟶ X) (hx : x ≫ p = 𝟙 _) : GeometricallyConnected p := by |
| 41 | refine ⟨geometrically_iff_of_isClosedUnderIsomorphisms.mpr fun L _ c => ?_⟩ |
| 42 | have : IsIso (pullback.snd p c).appTop := |
| 43 | properField_affineBaseChange_globalFunctionsIso_of_iso p (IsPullback.of_hasPullback p c) |
| 44 | let y : Spec (.of L) ⟶ pullback p c := pullback.lift (c ≫ x) (𝟙 _) (by rw [Category.assoc, hx]; simp) |
| 45 | exact field_connected_of_globalFunctionsIso (pullback.snd p c) y |
| 46 | |
| 47 | theorem properSmoothPointed_geometricallyConnected_iff_globalFunctionsIso |
| 48 | {K : Type u} [Field K] {X : Scheme.{u}} (p : X ⟶ Spec (.of K)) [IsProper p] [Smooth p] |
| 49 | (x : Spec (.of K) ⟶ X) (hx : x ≫ p = 𝟙 _) : GeometricallyConnected p ↔ IsIso p.appTop := by |
| 50 | constructor |
| 51 | · intro h |
| 52 | let : GeometricallyConnected p := h |
| 53 | have : ConnectedSpace X := GeometricallyConnected.connectedSpace_of_subsingleton p |
| 54 | have : IsReduced X := HilbertConstruction.Smooth.ReducedFibers.smoothOverField_isReduced p |
| 55 | exact (Proper.ConnectedReducedConstants.properConnectedReducedPointGlobalIso p x hx).isIso_hom |
| 56 | · intro h |
| 57 | let : IsIso p.appTop := h |
| 58 | exact properField_geometricallyConnected_of_globalFunctionsIso p x hx |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.GlobalFunctionsConnectedness |