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.IntersectionTheory.ProjectionFormula.CurveLocalRings |
| 2 | import Mathlib.RingTheory.LocalProperties.IntegrallyClosed |
| 3 | |
| 4 | /-! # Normal Curve Charts -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.NormalCurveCharts |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The coordinate ring of a nonempty affine chart of a normal integral |
| 11 | curve is a Dedekind domain. Normality is expressed in the actual stalk rings. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency.types false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | theorem sections_integrallyClosed {X : Scheme} [IsIntegral X] |
| 18 | (hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) |
| 19 | (U : X.Opens) [Nonempty U] (hU : IsAffineOpen U) : IsIntegrallyClosed Γ(X, U) := by |
| 20 | apply IsIntegrallyClosed.of_localization_maximal |
| 21 | intro p _ hp |
| 22 | let q : Spec Γ(X, U) := ⟨p, hp.isPrime⟩ |
| 23 | let : IsIntegrallyClosed (X.presheaf.stalk (hU.fromSpec q)) := hNormal _ |
| 24 | let : IsIntegrallyClosed ((Spec Γ(X, U)).presheaf.stalk q) := |
| 25 | IsIntegrallyClosed.of_equiv (asIso (hU.fromSpec.stalkMap q)).commRingCatIsoToRingEquiv |
| 26 | exact IsIntegrallyClosed.of_equiv (Spec.stalkIso Γ(X, U) q).commRingCatIsoToRingEquiv |
| 27 | |
| 28 | theorem sections_dedekind {k : Type} [Field k] {X : Scheme} [IsIntegral X] |
| 29 | (f : X ⟶ Spec (.of k)) [LocallyOfFiniteType f] |
| 30 | (hdim : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension f ≤ 1) |
| 31 | (hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) |
| 32 | (U : X.Opens) [Nonempty U] (hU : IsAffineOpen U) : IsDedekindDomain Γ(X, U) := by |
| 33 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 34 | let := Foundations.Scheme.AffineSectionFiniteType.specSectionScalarAlgebra_finiteType f U hU |
| 35 | let : IsNoetherianRing Γ(X, U) := Algebra.FiniteType.isNoetherianRing k Γ(X, U) |
| 36 | let : IsIntegrallyClosed Γ(X, U) := sections_integrallyClosed hNormal U hU |
| 37 | let : Ring.KrullDimLE 1 Γ(X, U) := ⟨by |
| 38 | change ringKrullDim Γ(X, U) ≤ 1 |
| 39 | rw [DivisorClass.Chern.FiniteTypeDimension.Construction.finiteType_ringKrullDim_eq_trdeg k Γ(X, U), |
| 40 | ← Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension_eq_affineSections f U hU] |
| 41 | exact_mod_cast hdim⟩ |
| 42 | let : Ring.DimensionLEOne Γ(X, U) := ⟨fun hn hp => hp.isMaximal_of_ne_bot hn⟩ |
| 43 | exact |
| 44 | { toIsDomain := inferInstance |
| 45 | toIsDedekindRing := |
| 46 | { toIsNoetherian := inferInstance |
| 47 | toDimensionLEOne := inferInstance |
| 48 | toIsIntegralClosure := inferInstance } } |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.NormalCurveCharts |