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.HilbertScheme.Presentations.CokernelSplittingEquation |
| 2 | import Mathlib.RingTheory.LocalRing.Module |
| 3 | import Mathlib.RingTheory.Spectrum.Prime.FreeLocus |
| 4 | |
| 5 | /-! # Matrix Rank Comparison -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.MatrixRankComparison |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! For a finite matrix over a local ring, flatness and a prescribed |
| 12 | rank at every prime are equivalent to flatness and the actual local |
| 13 | module rank. The argument supplies finite presentation explicitly. -/ |
| 14 | universe u v w |
| 15 | variable {R : Type u} [CommRing R] [IsLocalRing R] |
| 16 | variable {μ : Type v} {ν : Type w} [Fintype μ] [Fintype ν] [DecidableEq μ] [DecidableEq ν] |
| 17 | |
| 18 | omit [DecidableEq ν] in |
| 19 | theorem localMatrixCokernel_rankAtStalk_iff_finrank (F : Matrix ν μ R) (k m : ℕ) : |
| 20 | (Module.Flat R ((ν → R) ⧸ (Matrix.toLin' F).range) ∧ |
| 21 | ∀ p : PrimeSpectrum R, Module.rankAtStalk (R := R) |
| 22 | ((ν → R) ⧸ (Matrix.toLin' F).range) p + k = m) ↔ |
| 23 | (Module.Flat R ((ν → R) ⧸ (Matrix.toLin' F).range) ∧ |
| 24 | Module.finrank R ((ν → R) ⧸ (Matrix.toLin' F).range) + k = m) := by |
| 25 | have : Module.FinitePresentation R ((ν → R) ⧸ (Matrix.toLin' F).range) := |
| 26 | Module.finitePresentation_of_free_of_surjective (Matrix.toLin' F).range.mkQ |
| 27 | (Matrix.toLin' F).range.mkQ_surjective (by |
| 28 | rw [Submodule.ker_mkQ] |
| 29 | exact Submodule.fg_range (Matrix.toLin' F)) |
| 30 | constructor |
| 31 | · rintro ⟨hflat, hrank⟩ |
| 32 | let := hflat |
| 33 | have : Module.Free R ((ν → R) ⧸ (Matrix.toLin' F).range) := Module.free_of_flat_of_isLocalRing |
| 34 | exact ⟨hflat, by simpa only [Module.rankAtStalk_eq_finrank_of_free, Pi.natCast_apply, Nat.cast_id] using hrank (IsLocalRing.closedPoint R)⟩ |
| 35 | · rintro ⟨hflat, hrank⟩ |
| 36 | let := hflat |
| 37 | have : Module.Free R ((ν → R) ⧸ (Matrix.toLin' F).range) := Module.free_of_flat_of_isLocalRing |
| 38 | exact ⟨hflat, fun p => by simpa only [Module.rankAtStalk_eq_finrank_of_free, Pi.natCast_apply, Nat.cast_id] using hrank⟩ |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.MatrixRankComparison |