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.Filtration |
| 2 | import Mathlib.RingTheory.Localization.AtPrime.Basic |
| 3 | import Mathlib.RingTheory.Localization.Submodule |
| 4 | |
| 5 | /-! # Idempotent Ideal Localization -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.IdempotentIdealLocalization.Constructions |
| 8 | |
| 9 | /-! An idempotent ideal vanishes in every Noetherian local ring |
| 10 | centered on its zero locus. -/ |
| 11 | |
| 12 | universe u |
| 13 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] |
| 14 | |
| 15 | theorem map_eq_bot (I : Ideal R) (hI : IsIdempotentElem I) (p : PrimeSpectrum R) |
| 16 | (hp : I ≤ p.asIdeal) : I.map (algebraMap R (Localization.AtPrime p.asIdeal)) = ⊥ := by |
| 17 | let A := Localization.AtPrime p.asIdeal |
| 18 | have hid : IsIdempotentElem (I.map (algebraMap R A)) := by |
| 19 | change I.map (algebraMap R A) * I.map (algebraMap R A) = I.map (algebraMap R A) |
| 20 | rw [← Ideal.map_mul, hI.eq] |
| 21 | have hle : I.map (algebraMap R A) ≤ IsLocalRing.maximalIdeal A := by |
| 22 | apply Ideal.map_le_iff_le_comap.mpr |
| 23 | intro r hr |
| 24 | exact (IsLocalization.AtPrime.to_map_mem_maximal_iff A p.asIdeal r).mpr (hp hr) |
| 25 | rcases (Ideal.isIdempotentElem_iff_eq_bot_or_top_of_isLocalRing _).mp hid with h | h |
| 26 | · exact h |
| 27 | · rw [h] at hle |
| 28 | exact False.elim ((IsLocalRing.maximalIdeal.isMaximal A).ne_top (top_le_iff.mp hle)) |
| 29 | |
| 30 | end OAI.AlgebraicGeometry.CycleClass.Thom.IdempotentIdealLocalization.Constructions |