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 Mathlib.RingTheory.RegularLocalRing.Defs |
| 2 | import Mathlib.RingTheory.Unramified.LocalRing |
| 3 | import Mathlib.RingTheory.Ideal.KrullsHeightTheorem |
| 4 | import Mathlib.RingTheory.Ideal.GoingDown |
| 5 | |
| 6 | /-! # Regular Local -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Etale.RegularLocal |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Flat local unramified extensions of essentially finite type preserve |
| 13 | regular local rings: the maximal ideal is the extended maximal ideal, |
| 14 | and going down preserves its height. -/ |
| 15 | |
| 16 | open IsLocalRing |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | variable (R : Type u) (S : Type v) [CommRing R] [CommRing S] |
| 21 | [IsRegularLocalRing R] [IsNoetherianRing S] [IsLocalRing S] |
| 22 | [Algebra R S] [IsLocalHom (algebraMap R S)] [Module.Flat R S] |
| 23 | [Algebra.FormallyUnramified R S] [Algebra.EssFiniteType R S] |
| 24 | |
| 25 | include R |
| 26 | |
| 27 | theorem regular : IsRegularLocalRing S := by |
| 28 | have hmap := Algebra.FormallyUnramified.map_maximalIdeal (R := R) (S := S) |
| 29 | have hheight : (maximalIdeal R).height ≤ (maximalIdeal S).height := by |
| 30 | let : (maximalIdeal S).LiesOver (maximalIdeal R) := |
| 31 | ⟨(IsLocalRing.maximalIdeal_comap (algebraMap R S)).symm⟩ |
| 32 | rw [Ideal.height_eq_height_add_of_liesOver_of_hasGoingDown |
| 33 | (maximalIdeal R) (maximalIdeal S)] |
| 34 | exact le_add_right le_rfl |
| 35 | apply IsRegularLocalRing.of_spanFinrank_maximalIdeal_le |
| 36 | calc |
| 37 | ((maximalIdeal S).spanFinrank : WithBot ℕ∞) ≤ (maximalIdeal R).spanFinrank := by |
| 38 | rw [← hmap] |
| 39 | exact_mod_cast Ideal.spanFinrank_map_le_of_fg (algebraMap R S) |
| 40 | (maximalIdeal R).fg_of_isNoetherianRing |
| 41 | _ = ringKrullDim R := (isRegularLocalRing_iff R).mp inferInstance |
| 42 | _ ≤ ringKrullDim S := by |
| 43 | rw [← maximalIdeal_height_eq_ringKrullDim, ← maximalIdeal_height_eq_ringKrullDim] |
| 44 | exact WithBot.coe_le_coe.mpr hheight |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Etale.RegularLocal |