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.Spectrum.Prime.FreeLocus |
| 2 | import Mathlib.Topology.DenseEmbedding |
| 3 | |
| 4 | /-! # Dense Coefficient Ranks -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DenseCoefficientRanks |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The locally constant ranks of finite flat modules are detected after an injective coefficient extension. -/ |
| 11 | |
| 12 | universe u v w t |
| 13 | |
| 14 | theorem coefficientSpectrum_dense {R : Type u} [CommRing R] {A : Type v} [CommRing A] |
| 15 | (f : R →+* A) (hf : Function.Injective f) : DenseRange (PrimeSpectrum.comap f) := by |
| 16 | apply (PrimeSpectrum.denseRange_comap_iff_ker_le_nilRadical f).mpr |
| 17 | rw [(RingHom.injective_iff_ker_eq_bot f).mp hf] |
| 18 | exact bot_le |
| 19 | |
| 20 | theorem finiteFlat_rankAtStalk_dense_value |
| 21 | {R : Type u} [CommRing R] {A : Type v} [CommRing A] |
| 22 | (f : R →+* A) (hf : Function.Injective f) |
| 23 | (M : Type w) [AddCommGroup M] [Module R M] |
| 24 | [Module.FinitePresentation R M] [Module.Flat R M] |
| 25 | {V : Type t} [TopologicalSpace V] [T2Space V] (v : V) (k : ℕ → V) |
| 26 | (h : ∀ q : PrimeSpectrum A, k (Module.rankAtStalk (R := R) M (q.comap f)) = v) |
| 27 | (p : PrimeSpectrum R) : k (Module.rankAtStalk (R := R) M p) = v := by |
| 28 | have hc : Continuous (fun p : PrimeSpectrum R => k (Module.rankAtStalk (R := R) M p)) := |
| 29 | ((Module.isLocallyConstant_rankAtStalk (R := R) (M := M)).comp k).continuous |
| 30 | exact congrFun ((coefficientSpectrum_dense f hf).equalizer hc continuous_const (funext h)) p |
| 31 | |
| 32 | end |
| 33 | |
| 34 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DenseCoefficientRanks |