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.Principal.MaxDomain |
| 2 | import Mathlib.RingTheory.RegularLocalRing.Defs |
| 3 | import Mathlib.RingTheory.KrullDimension.Zero |
| 4 | |
| 5 | /-! # Local One -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.LocalOne |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A positive-dimensional noetherian local ring with principal maximal |
| 12 | ideal is a domain. In particular every one-dimensional regular local |
| 13 | ring is a discrete valuation ring. -/ |
| 14 | |
| 15 | open IsLocalRing |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R : Type u) [CommRing R] |
| 20 | |
| 21 | theorem domain_of_principal [IsNoetherianRing R] [IsLocalRing R] |
| 22 | (hm : (maximalIdeal R).IsPrincipal) |
| 23 | (hd : 0 < ringKrullDim R) : IsDomain R := by |
| 24 | obtain ⟨r, hr⟩ := hm.principal |
| 25 | apply Principal.MaxDomain.domain R r hr |
| 26 | intro hnil |
| 27 | have hprime (p : Ideal R) (hp : p.IsPrime) : p = maximalIdeal R := by |
| 28 | let := hp |
| 29 | apply le_antisymm (le_maximalIdeal hp.ne_top) |
| 30 | rw [hr] |
| 31 | exact Ideal.span_le.mpr (Set.singleton_subset_iff.mpr (nilradical_le_prime p hnil)) |
| 32 | let : Ring.KrullDimLE 0 R := .mk₀ (fun p hp => hprime p hp ▸ maximalIdeal.isMaximal R) |
| 33 | have hz : ringKrullDim R = 0 := ringKrullDimZero_iff_ringKrullDim_eq_zero.mp inferInstance |
| 34 | exact (ne_of_gt hd) hz |
| 35 | |
| 36 | theorem domain [IsRegularLocalRing R] (hd : ringKrullDim R = 1) : IsDomain R := by |
| 37 | have hspan : (maximalIdeal R).spanFinrank = 1 := by |
| 38 | have h := ((isRegularLocalRing_iff R).mp inferInstance).trans hd |
| 39 | exact_mod_cast h |
| 40 | exact domain_of_principal R ((Submodule.spanFinrank_eq_one_iff _).mp hspan).1 |
| 41 | (hd ▸ by norm_num) |
| 42 | |
| 43 | theorem dvr [IsRegularLocalRing R] [IsDomain R] (hd : ringKrullDim R = 1) : |
| 44 | IsDiscreteValuationRing R := by |
| 45 | have hspan : (maximalIdeal R).spanFinrank = 1 := by |
| 46 | have h := ((isRegularLocalRing_iff R).mp inferInstance).trans hd |
| 47 | exact_mod_cast h |
| 48 | have hm := ((Submodule.spanFinrank_eq_one_iff _).mp hspan).1 |
| 49 | apply ((IsDiscreteValuationRing.TFAE R ?_).out 5 1 rfl rfl).mp hm |
| 50 | intro hf |
| 51 | let := hf.toField |
| 52 | have hz : ringKrullDim R = 0 := by simp |
| 53 | rw [hd] at hz |
| 54 | norm_num at hz |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.LocalOne |