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.Ideal.MinimalPrime.Localization |
| 2 | import Mathlib.RingTheory.Spectrum.Prime.Topology |
| 3 | |
| 4 | /-! # Local Domain Components -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.LocalDomainComponents.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Completion: distinct components cannot meet at a domain local ring |
| 12 | -/ |
| 13 | |
| 14 | open _root_.TopologicalSpace |
| 15 | |
| 16 | variable (R : Type*) [CommRing R] |
| 17 | |
| 18 | /-- A prime with domain localization contains at most one minimal prime. -/ |
| 19 | theorem minimalPrime_unique_below_domain_localization (p : Ideal R) [p.IsPrime] |
| 20 | [IsDomain (Localization.AtPrime p)] {a b : Ideal R} |
| 21 | (ha : a ∈ minimalPrimes R) (hb : b ∈ minimalPrimes R) (hap : a ≤ p) (hbp : b ≤ p) : |
| 22 | a = b := by |
| 23 | let T := Localization.AtPrime p |
| 24 | have h (c : Ideal R) (hc : c ∈ minimalPrimes R) (hcp : c ≤ p) : |
| 25 | c = Ideal.comap (algebraMap R T) ⊥ := by |
| 26 | have hd : Disjoint (p.primeCompl : Set R) c := |
| 27 | Set.disjoint_left.mpr fun r hr hc' => hr (hcp hc') |
| 28 | have hu := IsLocalization.under_map_of_isPrime_disjoint p.primeCompl T hc.isPrime hd |
| 29 | have hm : c.map (algebraMap R T) ∈ minimalPrimes T := by |
| 30 | change c.map (algebraMap R T) ∈ (⊥ : Ideal T).minimalPrimes |
| 31 | rw [← Ideal.map_bot (f := algebraMap R T), IsLocalization.minimalPrimes_map p.primeCompl T] |
| 32 | simpa only [Set.mem_preimage, Ideal.under, hu] using hc |
| 33 | rw [IsDomain.minimalPrimes_eq_singleton_bot, Set.mem_singleton_iff] at hm |
| 34 | exact hu.symm.trans (congrArg (Ideal.comap (algebraMap R T)) hm) |
| 35 | exact (h a ha hap).trans (h b hb hbp).symm |
| 36 | |
| 37 | /-- Two irreducible components of an affine scheme meeting at a domain local ring coincide. -/ |
| 38 | theorem affine_components_eq_of_domain_localization (x : PrimeSpectrum R) |
| 39 | [IsDomain (Localization.AtPrime x.asIdeal)] {C D : Set (PrimeSpectrum R)} |
| 40 | (hC : C ∈ irreducibleComponents (PrimeSpectrum R)) |
| 41 | (hD : D ∈ irreducibleComponents (PrimeSpectrum R)) (hxC : x ∈ C) (hxD : x ∈ D) : |
| 42 | C = D := by |
| 43 | have hc := isClosed_of_mem_irreducibleComponents C hC |
| 44 | have hd := isClosed_of_mem_irreducibleComponents D hD |
| 45 | have he : PrimeSpectrum.vanishingIdeal C = PrimeSpectrum.vanishingIdeal D := |
| 46 | minimalPrime_unique_below_domain_localization R x.asIdeal |
| 47 | (PrimeSpectrum.vanishingIdeal_mem_minimalPrimes.mpr (by simpa only [hc.closure_eq] using hC)) |
| 48 | (PrimeSpectrum.vanishingIdeal_mem_minimalPrimes.mpr (by simpa only [hd.closure_eq] using hD)) |
| 49 | (fun r hr => (PrimeSpectrum.mem_vanishingIdeal _ _).mp hr x hxC) |
| 50 | (fun r hr => (PrimeSpectrum.mem_vanishingIdeal _ _).mp hr x hxD) |
| 51 | have := congrArg (fun I : Ideal R => PrimeSpectrum.zeroLocus (I : Set R)) he |
| 52 | simpa only [PrimeSpectrum.zeroLocus_vanishingIdeal_eq_closure, hc.closure_eq, hd.closure_eq] |
| 53 | using this |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.LocalDomainComponents.Construction |