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.ArithmeticGeometry.OrdinaryLocus.Openness.AmitsurDegreeOne |
| 2 | import Mathlib.RingTheory.Flat.Localization |
| 3 | import Mathlib.RingTheory.Spectrum.Prime.Topology |
| 4 | import Mathlib.LinearAlgebra.DFinsupp |
| 5 | |
| 6 | /-! # Principal Cover Flat -/ |
| 7 | |
| 8 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.PrincipalCoverFlat.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Finite principal affine covers give faithfully flat product algebras. -/ |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable (R : Type u) [CommRing R] {ι : Type v} [Finite ι] (f : ι → R) |
| 17 | |
| 18 | omit [Finite ι] in |
| 19 | theorem principalCover_exists_notMem (hf : Ideal.span (Set.range f) = ⊤) |
| 20 | (p : PrimeSpectrum R) : ∃ i, f i ∉ p.asIdeal := by |
| 21 | by_contra! h |
| 22 | have hs : Ideal.span (Set.range f) ≤ p.asIdeal := |
| 23 | Ideal.span_le.mpr (by rintro _ ⟨i, rfl⟩; exact h i) |
| 24 | rw [hf] at hs |
| 25 | exact p.isPrime.ne_top (top_le_iff.mp hs) |
| 26 | |
| 27 | theorem flat_pi_of_finite (B : ι → Type*) [∀ i, CommRing (B i)] |
| 28 | [∀ i, Algebra R (B i)] [∀ i, Module.Flat R (B i)] : Module.Flat R (∀ i, B i) := by |
| 29 | let := Fintype.ofFinite ι |
| 30 | exact Module.Flat.of_linearEquiv (DFinsupp.linearEquivFunOnFintype (R := R)).symm |
| 31 | |
| 32 | omit [Finite ι] in |
| 33 | theorem principalCover_comap_surjective (hf : Ideal.span (Set.range f) = ⊤) : |
| 34 | Function.Surjective (PrimeSpectrum.comap |
| 35 | (algebraMap R (∀ i, Localization.Away (f i)))) := by |
| 36 | intro p |
| 37 | obtain ⟨i, hi⟩ := principalCover_exists_notMem R f hf p |
| 38 | have hp : p ∈ Set.range (PrimeSpectrum.comap |
| 39 | (algebraMap R (Localization.Away (f i)))) := by |
| 40 | rw [PrimeSpectrum.localization_away_comap_range _ (f i)] |
| 41 | exact hi |
| 42 | obtain ⟨q, hq⟩ := hp |
| 43 | refine ⟨PrimeSpectrum.comap (Pi.evalRingHom (fun i ↦ Localization.Away (f i)) i) q, ?_⟩ |
| 44 | exact hq |
| 45 | |
| 46 | theorem faithfullyFlat_principalCover (hf : Ideal.span (Set.range f) = ⊤) : |
| 47 | Module.FaithfullyFlat R (∀ i, Localization.Away (f i)) := by |
| 48 | let : Module.Flat R (∀ i, Localization.Away (f i)) := |
| 49 | flat_pi_of_finite R (fun i ↦ Localization.Away (f i)) |
| 50 | exact Module.FaithfullyFlat.of_comap_surjective (principalCover_comap_surjective R f hf) |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.PrincipalCoverFlat.Construction |