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.Localization.Ideal |
| 2 | import Mathlib.RingTheory.Localization.AtPrime.Basic |
| 3 | import Mathlib.RingTheory.Spectrum.Prime.Topology |
| 4 | |
| 5 | /-! # Localized Composite Kernel -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.LocalizedCompositeKernel.Constructions |
| 8 | |
| 9 | /-! If the second kernel vanishes locally, a surjective first map |
| 10 | identifies the localized composite kernel with its own localized |
| 11 | kernel. The proof lifts the denominator witnessing local vanishing. -/ |
| 12 | |
| 13 | universe u |
| 14 | variable (A B C : Type u) [CommRing A] [CommRing B] [CommRing C] |
| 15 | (f : A →+* B) (g : B →+* C) (hf : Function.Surjective f) (q : PrimeSpectrum B) |
| 16 | |
| 17 | include hf |
| 18 | |
| 19 | theorem kernel_comp_map_eq |
| 20 | (hg : (RingHom.ker g).map (algebraMap B (Localization.AtPrime q.asIdeal)) = ⊥) : |
| 21 | (RingHom.ker (g.comp f)).map |
| 22 | (algebraMap A (Localization.AtPrime (q.asIdeal.comap f))) = |
| 23 | (RingHom.ker f).map (algebraMap A (Localization.AtPrime (q.asIdeal.comap f))) := by |
| 24 | apply le_antisymm |
| 25 | · apply Ideal.map_le_iff_le_comap.mpr |
| 26 | intro x hx |
| 27 | have hy : algebraMap B (Localization.AtPrime q.asIdeal) (f x) = 0 := by |
| 28 | have hfx : f x ∈ RingHom.ker g := hx |
| 29 | have hmem := Ideal.mem_map_of_mem (algebraMap B (Localization.AtPrime q.asIdeal)) hfx |
| 30 | rw [hg] at hmem |
| 31 | exact hmem |
| 32 | obtain ⟨s, hs⟩ := (IsLocalization.map_eq_zero_iff q.asIdeal.primeCompl |
| 33 | (Localization.AtPrime q.asIdeal) (f x)).mp hy |
| 34 | obtain ⟨a, ha⟩ := hf s |
| 35 | apply (IsLocalization.algebraMap_mem_map_algebraMap_iff (q.asIdeal.comap f).primeCompl |
| 36 | (Localization.AtPrime (q.asIdeal.comap f)) (RingHom.ker f) x).mpr |
| 37 | refine ⟨a, ?_, ?_⟩ |
| 38 | · change f a ∉ q.asIdeal |
| 39 | rw [ha] |
| 40 | exact s.property |
| 41 | · change f (a * x) = 0 |
| 42 | rw [map_mul, ha] |
| 43 | exact hs |
| 44 | · apply Ideal.map_mono |
| 45 | intro x hx |
| 46 | change g (f x) = 0 |
| 47 | change f x = 0 at hx |
| 48 | rw [hx, map_zero] |
| 49 | |
| 50 | theorem kernel_comp_map_eq_at (p : PrimeSpectrum A) (hp : q.asIdeal.comap f = p.asIdeal) |
| 51 | (hg : (RingHom.ker g).map (algebraMap B (Localization.AtPrime q.asIdeal)) = ⊥) : |
| 52 | (RingHom.ker (g.comp f)).map (algebraMap A (Localization.AtPrime p.asIdeal)) = |
| 53 | (RingHom.ker f).map (algebraMap A (Localization.AtPrime p.asIdeal)) := by |
| 54 | have hprime : PrimeSpectrum.comap f q = p := PrimeSpectrum.ext hp |
| 55 | subst p |
| 56 | exact kernel_comp_map_eq A B C f g hf q hg |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.CycleClass.Thom.LocalizedCompositeKernel.Constructions |