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.HodgeConjecture.DegreeTwo.SmoothNormal |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.SmoothProjectiveDecomposition |
| 3 | import Mathlib.RingTheory.DiscreteValuationRing.TFAE |
| 4 | import Mathlib.RingTheory.KrullDimension.Field |
| 5 | |
| 6 | /-! # Smooth DVR -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.SmoothDVR.Constructions |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # DegreeTwo: codimension-one local rings of smooth varieties are DVRs |
| 14 | |
| 15 | Normality is derived from smoothness. The actual stalk has Krull dimension |
| 16 | equal to its point's coheight, so at codimension one the Noetherian normal |
| 17 | local-domain criterion proves the discrete valuation ring property. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace _root_.Order |
| 21 | |
| 22 | universe u v w |
| 23 | |
| 24 | theorem isIntegrallyClosed_of_isLocalizationAtPrime_of_smooth |
| 25 | (K : Type u) (S : Type v) (A : Type w) |
| 26 | [Field K] [CommRing S] [Algebra K S] [Algebra.Smooth K S] |
| 27 | [CommRing A] [Algebra S A] (p : Ideal S) [p.IsPrime] |
| 28 | [IsLocalization.AtPrime A p] : IsIntegrallyClosed A := by |
| 29 | let : IsIntegrallyClosed (Localization.AtPrime p) := |
| 30 | SmoothNormal.Constructions.isIntegrallyClosed_localizationAtPrime_of_isSmoothAt K S p |
| 31 | exact IsIntegrallyClosed.of_equiv |
| 32 | (IsLocalization.algEquiv p.primeCompl (Localization.AtPrime p) A).toRingEquiv |
| 33 | |
| 34 | /-- The actual stalks, with their original ring structure, are integrally closed. -/ |
| 35 | theorem smoothScheme_stalk_isIntegrallyClosed {K : Type u} [Field K] {X : Scheme.{u}} |
| 36 | (f : X ⟶ Spec (.of K)) [Smooth f] (x : X) : IsIntegrallyClosed (X.presheaf.stalk x) := by |
| 37 | obtain ⟨_, ⟨U, hU, rfl⟩, hxU, -⟩ := |
| 38 | X.isBasis_affineOpens.exists_subset_of_mem_open (Set.mem_univ x) isOpen_univ |
| 39 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 40 | let := Foundations.Scheme.AffineOpenSmooth.specSectionScalarAlgebra_smooth f U hU |
| 41 | let := X.presheaf.algebra_section_stalk ⟨x, hxU⟩ |
| 42 | let := hU.isLocalization_stalk ⟨x, hxU⟩ |
| 43 | let p := (hU.primeIdealOf ⟨x, hxU⟩).asIdeal |
| 44 | exact isIntegrallyClosed_of_isLocalizationAtPrime_of_smooth K Γ(X, U) (X.presheaf.stalk x) p |
| 45 | |
| 46 | /-- Smooth codimension-one stalks are discrete valuation rings, with no DVR |
| 47 | or regularity assumption added to the input. -/ |
| 48 | theorem smoothScheme_stalk_isDiscreteValuationRing {K : Type u} [Field K] |
| 49 | {X : Scheme.{u}} [AlgebraicGeometry.IsNoetherian X] |
| 50 | (f : X ⟶ Spec (.of K)) [Smooth f] (x : X) (hx : coheight x = 1) : |
| 51 | letI := Foundations.Scheme.SmoothProjectiveDecomposition.smoothScheme_stalk_isDomain f x |
| 52 | IsDiscreteValuationRing (X.presheaf.stalk x) := by |
| 53 | let : IsDomain (X.presheaf.stalk x) := Foundations.Scheme.SmoothProjectiveDecomposition.smoothScheme_stalk_isDomain f x |
| 54 | let : IsIntegrallyClosed (X.presheaf.stalk x) := smoothScheme_stalk_isIntegrallyClosed f x |
| 55 | let : Ring.KrullDimLE 1 (X.presheaf.stalk x) := krullDimLE_of_coheight_le hx.le |
| 56 | let : Ring.DimensionLEOne (X.presheaf.stalk x) := |
| 57 | ⟨fun _ hp => hp.isMaximal_of_ne_bot ‹_›⟩ |
| 58 | let : IsDedekindDomain (X.presheaf.stalk x) := {} |
| 59 | have hnf : ¬ IsField (X.presheaf.stalk x) := by |
| 60 | intro h |
| 61 | have he := ringKrullDim_stalk_eq_coheight x |
| 62 | rw [ringKrullDim_eq_zero_of_isField h, hx] at he |
| 63 | exact zero_ne_one he |
| 64 | exact ((IsDiscreteValuationRing.TFAE (X.presheaf.stalk x) hnf).out 3 1).mp |
| 65 | (show IsDedekindDomain (X.presheaf.stalk x) from inferInstance) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.SmoothDVR.Constructions |