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.Etale.RegularLocal |
| 2 | import Mathlib.RingTheory.Flat.Localization |
| 3 | |
| 4 | /-! # Regular Ring -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Etale.RegularRing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Regularity passes through the actual flat unramified chart algebras |
| 11 | and through arbitrary local localizations of these algebras. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | universe u v w |
| 16 | |
| 17 | theorem regular (R : Type u) (S : Type v) [CommRing R] [IsRegularRing R] |
| 18 | [CommRing S] [IsNoetherianRing S] [Algebra R S] [Module.Flat R S] |
| 19 | [Algebra.FormallyUnramified R S] [Algebra.EssFiniteType R S] : IsRegularRing S := by |
| 20 | apply isRegularRing_iff.mpr |
| 21 | intro p hp |
| 22 | let q := p.under R |
| 23 | let T := Localization.AtPrime q |
| 24 | let A := Localization.AtPrime p |
| 25 | let : Algebra T A := Localization.AtPrime.algebraOfLiesOver q p |
| 26 | let : IsLocalHom (algebraMap T A) := by |
| 27 | change IsLocalHom (Localization.localRingHom q p (algebraMap R S) Ideal.LiesOver.over) |
| 28 | exact Localization.isLocalHom_localRingHom q p (algebraMap R S) Ideal.LiesOver.over |
| 29 | let : Algebra.FormallyUnramified T A := Algebra.FormallyUnramified.of_restrictScalars R T A |
| 30 | let : Algebra.EssFiniteType T A := Algebra.EssFiniteType.of_comp R T A |
| 31 | exact RegularLocal.regular T A |
| 32 | |
| 33 | theorem local_localization (S : Type u) [CommRing S] [IsRegularRing S] |
| 34 | (A : Type v) [CommRing A] [IsLocalRing A] [Algebra S A] |
| 35 | (M : Submonoid S) [IsLocalization M A] : IsRegularLocalRing A := by |
| 36 | let p := (IsLocalRing.maximalIdeal A).comap (algebraMap S A) |
| 37 | let : p.IsPrime := Ideal.IsPrime.comap _ |
| 38 | have hm : M ≤ p.primeCompl := by |
| 39 | intro a ha |
| 40 | exact IsLocalRing.notMem_maximalIdeal.mpr (IsLocalization.map_units A (⟨a, ha⟩ : M)) |
| 41 | let : IsLocalization.AtPrime A p := IsLocalization.of_le M p.primeCompl hm |
| 42 | (fun a ha => IsLocalRing.notMem_maximalIdeal.mp ha) |
| 43 | exact IsRegularLocalRing.of_ringEquiv |
| 44 | (IsLocalization.algEquiv p.primeCompl (Localization.AtPrime p) A).toRingEquiv |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Etale.RegularRing |