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.Finite.PrimeLocalization |
| 2 | import Mathlib.RingTheory.Spectrum.Maximal.Basic |
| 3 | |
| 4 | /-! # Prime Semilocal -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.PrimeSemilocal |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Localization away from finitely many primes is semilocal. Every |
| 11 | maximal ideal is the extension of one of those actual primes, with |
| 12 | the prescribed contraction. No height-one assumption is needed. -/ |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable (R : Type u) [CommRing R] {ι : Type v} [Fintype ι] [Nonempty ι] |
| 17 | (P : ι → PrimeSpectrum R) |
| 18 | (A : Type u) [CommRing A] [Algebra R A] |
| 19 | [IsLocalization (PrimeLocalization.denominators R P) A] |
| 20 | |
| 21 | theorem maximal_eq_map (q : Ideal A) [q.IsMaximal] : |
| 22 | ∃ i, q = (P i).asIdeal.map (algebraMap R A) := by |
| 23 | let M := PrimeLocalization.denominators R P |
| 24 | obtain ⟨i, hi⟩ := PrimeLocalization.under_le_one_of_primes R P A q |
| 25 | have hp : ((P i).asIdeal.map (algebraMap R A)).IsPrime := |
| 26 | IsLocalization.isPrime_of_isPrime_disjoint M A (P i).asIdeal (P i).isPrime |
| 27 | (PrimeLocalization.disjoint_denominators R P i) |
| 28 | refine ⟨i, Ideal.IsMaximal.eq_of_le (inferInstance : q.IsMaximal) hp.ne_top ?_⟩ |
| 29 | rw [← IsLocalization.map_under M A q] |
| 30 | exact Ideal.map_mono hi |
| 31 | |
| 32 | theorem maximal_contraction (q : Ideal A) [q.IsMaximal] : |
| 33 | ∃ i, q.under R = (P i).asIdeal := by |
| 34 | obtain ⟨i, hi⟩ := maximal_eq_map R P A q |
| 35 | exact ⟨i, (congrArg (Ideal.under R) hi).trans |
| 36 | (PrimeLocalization.under_map R P A i)⟩ |
| 37 | |
| 38 | include P in |
| 39 | theorem finite_maximals : Finite (MaximalSpectrum A) := by |
| 40 | let f : MaximalSpectrum A → ι := fun q => Classical.choose (maximal_eq_map R P A q.asIdeal) |
| 41 | have hf (q : MaximalSpectrum A) : q.asIdeal = (P (f q)).asIdeal.map (algebraMap R A) := |
| 42 | Classical.choose_spec (maximal_eq_map R P A q.asIdeal) |
| 43 | apply Finite.of_injective f |
| 44 | intro q q' h |
| 45 | apply MaximalSpectrum.ext |
| 46 | exact (hf q).trans ((congrArg (fun i => (P i).asIdeal.map (algebraMap R A)) h).trans (hf q').symm) |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.PrimeSemilocal |