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.Field.GlobalFunctionsConnectedness |
| 2 | import Mathlib.LinearAlgebra.Dimension.FreeAndStrongRankCondition |
| 3 | |
| 4 | /-! # Global Function Dimension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.GlobalFunctionDimension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The geometric connectedness criterion for a pointed proper smooth field fiber is the numerical condition that its space of global functions has dimension one. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | def fieldGlobalFunctionDimension {K : Type u} [Field K] {X : Scheme.{u}} (p : X ⟶ Spec (.of K)) : ℕ := |
| 17 | Module.finrank Γ(Spec (.of K), ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra p) |
| 18 | |
| 19 | theorem fieldGlobalFunctionDimension_eq_one_iff_iso {K : Type u} [Field K] {X : Scheme.{u}} |
| 20 | (p : X ⟶ Spec (.of K)) : fieldGlobalFunctionDimension p = 1 ↔ IsIso p.appTop := by |
| 21 | let : Field Γ(Spec (.of K), ⊤) := |
| 22 | ((Scheme.ΓSpecIso (.of K)).commRingCatIsoToRingEquiv.toMulEquiv.isField (Field.toIsField K)).toField |
| 23 | have h : fieldGlobalFunctionDimension p = 1 ↔ Function.Bijective p.appTop.hom := |
| 24 | Algebra.finrank_eq_one_iff_bijective_algebraMap |
| 25 | constructor |
| 26 | · intro hn |
| 27 | exact (RingEquiv.ofBijective p.appTop.hom (h.mp hn)).toCommRingCatIso.isIso_hom |
| 28 | · intro hi |
| 29 | let : IsIso p.appTop := hi |
| 30 | exact h.mpr (ConcreteCategory.bijective_of_isIso p.appTop) |
| 31 | |
| 32 | theorem properSmoothPointed_geometricallyConnected_iff_dimension_one |
| 33 | {K : Type u} [Field K] {X : Scheme.{u}} (p : X ⟶ Spec (.of K)) [IsProper p] [Smooth p] |
| 34 | (x : Spec (.of K) ⟶ X) (hx : x ≫ p = 𝟙 _) : |
| 35 | GeometricallyConnected p ↔ fieldGlobalFunctionDimension p = 1 := |
| 36 | (GlobalFunctionsConnectedness.properSmoothPointed_geometricallyConnected_iff_globalFunctionsIso p x hx).trans |
| 37 | (fieldGlobalFunctionDimension_eq_one_iff_iso p).symm |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.GlobalFunctionDimension |