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.ArithmeticGeometry.OrdinaryLocus.Openness.EtaleRegular |
| 2 | import Mathlib.RingTheory.Unramified.LocalStructure |
| 3 | |
| 4 | /-! # Smooth Regular -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SmoothRegular.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Regularity of smooth algebras for the Openness fiber dimension argument. -/ |
| 11 | |
| 12 | /-- A regular localization gives regular local rings at the primes it meets. -/ |
| 13 | theorem isRegularLocalRing_atPrime_of_regular_localization |
| 14 | (R B : Type*) [CommRing R] [CommRing B] [Algebra R B] |
| 15 | (M : Submonoid R) [IsLocalization M B] [IsRegularRing B] |
| 16 | (p : Ideal R) [p.IsPrime] (hp : Disjoint (M : Set R) (p : Set R)) : |
| 17 | IsRegularLocalRing (Localization.AtPrime p) := by |
| 18 | let q := p.map (algebraMap R B) |
| 19 | have : q.IsPrime := IsLocalization.isPrime_of_isPrime_disjoint M _ _ ‹_› hp |
| 20 | have : IsLocalization.AtPrime (Localization.AtPrime q) p := by |
| 21 | convert IsLocalization.isLocalization_isLocalization_atPrime_isLocalization M |
| 22 | (Localization.AtPrime q) q |
| 23 | exact (IsLocalization.under_map_of_isPrime_disjoint M _ ‹_› hp).symm |
| 24 | exact IsRegularLocalRing.of_ringEquiv (IsLocalization.algEquiv p.primeCompl |
| 25 | (Localization.AtPrime q) (Localization.AtPrime p)).toRingEquiv |
| 26 | |
| 27 | /-- Smooth algebras over regular rings are regular. The standard smooth local |
| 28 | structure gives an etale algebra over a polynomial ring near each prime. -/ |
| 29 | theorem isRegularRing_of_smooth |
| 30 | (R B : Type*) [CommRing R] [CommRing B] [Algebra R B] |
| 31 | [IsRegularRing R] [Algebra.Smooth R B] : IsRegularRing B := by |
| 32 | have : IsNoetherianRing B := Algebra.FiniteType.isNoetherianRing R B |
| 33 | apply isRegularRing_iff.mpr |
| 34 | intro p hp |
| 35 | obtain ⟨f, hfp, n, _, _, hf⟩ := |
| 36 | Algebra.IsSmoothAt.exists_isStandardEtale_mvPolynomial (R := R) (p := p) |
| 37 | have : Algebra.IsStandardEtale (MvPolynomial (Fin n) R) (Localization.Away f) := hf |
| 38 | have : IsRegularRing (Localization.Away f) := |
| 39 | EtaleRegular.Construction.isRegularRing_of_etale (MvPolynomial (Fin n) R) (Localization.Away f) |
| 40 | apply isRegularLocalRing_atPrime_of_regular_localization B (Localization.Away f) |
| 41 | (Submonoid.powers f) p |
| 42 | exact Set.disjoint_left.mpr fun x hx hxp ↦ |
| 43 | (Submonoid.powers_le.mpr hfp : Submonoid.powers f ≤ p.primeCompl) hx hxp |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SmoothRegular.Construction |