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.Quotients.FiniteDescent.RationalRegularityLocal |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.SmoothStalk |
| 3 | import Mathlib.RingTheory.IntegralClosure.IntegrallyClosed |
| 4 | |
| 5 | /-! # Normal Sections In -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.NormalSectionsIn.Construction.NormalSections |
| 8 | |
| 9 | /-! Normality of affine section rings from the actual normal stalks. |
| 10 | In particular this applies to the smooth integral schemes in the cube argument. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem isIntegrallyClosedIn_functionField |
| 17 | {X : Scheme.{u}} [IsIntegral X] |
| 18 | (hX : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) |
| 19 | (U : X.Opens) [Nonempty U] : IsIntegrallyClosedIn Γ(X, U) X.functionField := by |
| 20 | apply isIntegrallyClosedIn_iff.mpr |
| 21 | refine ⟨X.germToFunctionField_injective U, ?_⟩ |
| 22 | intro r hr |
| 23 | have hlocal (x : U) : ∃ a : X.presheaf.stalk x, |
| 24 | algebraMap _ X.functionField a = r := by |
| 25 | have := hX x |
| 26 | let := X.presheaf.algebra_section_stalk x |
| 27 | have : IsScalarTower Γ(X, U) (X.presheaf.stalk x) X.functionField := |
| 28 | functionField_isScalarTower X U x |
| 29 | exact (isIntegrallyClosed_iff X.functionField).mp (hX x) hr.tower_top |
| 30 | obtain ⟨s, hs⟩ := RationalRegularityLocal.Construction.RationalRegularity.exists_section (X := X) (U := U) |
| 31 | (fun _ => r) hlocal |
| 32 | exact ⟨s, congrFun hs ⟨inferInstance⟩⟩ |
| 33 | |
| 34 | theorem affine |
| 35 | {X : Scheme.{u}} [IsIntegral X] |
| 36 | (hX : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) |
| 37 | (U : X.Opens) (hU : IsAffineOpen U) [Nonempty U] : |
| 38 | IsIntegrallyClosed Γ(X, U) := by |
| 39 | have := functionField_isFractionRing_of_isAffineOpen X U hU |
| 40 | exact (isIntegrallyClosed_iff_isIntegrallyClosedIn X.functionField).mpr |
| 41 | (isIntegrallyClosedIn_functionField hX U) |
| 42 | |
| 43 | theorem smooth_affine |
| 44 | {K : Type u} [Field K] [IsAlgClosed K] {X : Scheme.{u}} [IsIntegral X] |
| 45 | (f : X ⟶ Spec (.of K)) [Smooth f] |
| 46 | (U : X.Opens) (hU : IsAffineOpen U) [Nonempty U] : |
| 47 | IsIntegrallyClosed Γ(X, U) := by |
| 48 | apply affine _ U hU |
| 49 | intro x |
| 50 | have := SmoothStalk.Construction.SmoothStalkFactorial.stalk f x |
| 51 | infer_instance |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.NormalSectionsIn.Construction.NormalSections |