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.RingTheory.Flat.Basic |
| 3 | |
| 4 | /-! # Flat Algebra Local Basis -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.FlatAlgebraLocalBasis |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finitely presented flat modules admit actual finite bases on basic neighborhoods, with the basis size prescribed by the stalk rank. -/ |
| 11 | universe u v |
| 12 | |
| 13 | theorem finiteFlat_exists_localModuleBasis |
| 14 | {R : Type u} [CommRing R] (M : Type v) [AddCommGroup M] [Module R M] |
| 15 | [Module.FinitePresentation R M] [Module.Flat R M] (p : PrimeSpectrum R) |
| 16 | {n : ℕ} (hn : Module.rankAtStalk M p = n) : |
| 17 | ∃ a : R, a ∉ p.asIdeal ∧ |
| 18 | Nonempty (Module.Basis (Fin n) (Localization.Away a) (LocalizedModule.Away a M)) := by |
| 19 | let Rₚ := Localization.AtPrime p.asIdeal |
| 20 | let Mₚ := LocalizedModule.AtPrime p.asIdeal M |
| 21 | have : Module.Free Rₚ Mₚ := Module.free_of_flat_of_isLocalRing |
| 22 | have hb : Nonempty (Module.Basis (Fin n) Rₚ Mₚ) := by |
| 23 | have hn' : Module.finrank Rₚ Mₚ = n := hn |
| 24 | rw [← hn'] |
| 25 | exact ⟨Module.finBasis Rₚ Mₚ⟩ |
| 26 | obtain ⟨b⟩ := hb |
| 27 | obtain ⟨a, ha, b', _⟩ := Module.FinitePresentation.exists_basis_localizedModule_powers |
| 28 | p.asIdeal.primeCompl (LocalizedModule.mkLinearMap p.asIdeal.primeCompl M) Rₚ b |
| 29 | exact ⟨a, ha, ⟨b'⟩⟩ |
| 30 | |
| 31 | end |
| 32 | |
| 33 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.FlatAlgebraLocalBasis |