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.AbelianModuli.HilbertConstruction.Matrix.SurjectivityBaseChange |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Local.FixedRankCokernel |
| 3 | import Mathlib.RingTheory.Flat.Localization |
| 4 | import Mathlib.RingTheory.Localization.BaseChange |
| 5 | |
| 6 | /-! # Cokernel Localization -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.CokernelLocalization |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Flatness and prescribed rank of a finite matrix cokernel are detected by its actual localized matrices. -/ |
| 13 | |
| 14 | open TensorProduct OAI.AlgebraicGeometry.HilbertScheme.Presentations.Local.FixedRankCokernel.Grassmannian |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {R : Type u} [CommRing R] {μ ν : Type u} |
| 19 | variable [Fintype μ] [Fintype ν] [DecidableEq μ] [DecidableEq ν] |
| 20 | variable (A : Matrix ν μ R) |
| 21 | |
| 22 | def matrixCokernelBaseChangeEquiv (S : Type u) [CommRing S] [Algebra R S] : |
| 23 | ((ν → S) ⧸ (Matrix.toLin' (A.map (algebraMap R S))).range) ≃ₗ[S] |
| 24 | S ⊗[R] ((ν → R) ⧸ (Matrix.toLin' A).range) := |
| 25 | (Submodule.quotEquivOfEq _ _ (SurjectivityBaseChange.coordinateSubmoduleExtension_matrixRange (algebraMap R S) A).symm).trans |
| 26 | (HilbertScheme.Presentations.Coordinate.GrassmannianBaseChange.Grassmannian.coordinateBaseChangeQuotientEquiv (S := S) (Matrix.toLin' A).range) |
| 27 | |
| 28 | theorem matrixCokernel_rankAtStalk (p : PrimeSpectrum R) : |
| 29 | Module.rankAtStalk (R := R) ((ν → R) ⧸ (Matrix.toLin' A).range) p = |
| 30 | Module.finrank (Localization.AtPrime p.asIdeal) |
| 31 | ((ν → Localization.AtPrime p.asIdeal) ⧸ |
| 32 | (Matrix.toLin' (A.map (algebraMap R (Localization.AtPrime p.asIdeal)))).range) := |
| 33 | (Module.rankAtStalk_eq_finrank_tensorProduct p).trans |
| 34 | (matrixCokernelBaseChangeEquiv A (Localization.AtPrime p.asIdeal)).finrank_eq.symm |
| 35 | |
| 36 | theorem matrixCokernel_flat_iff_localizations : |
| 37 | Module.Flat R ((ν → R) ⧸ (Matrix.toLin' A).range) ↔ |
| 38 | ∀ p : PrimeSpectrum R, Module.Flat (Localization.AtPrime p.asIdeal) |
| 39 | ((ν → Localization.AtPrime p.asIdeal) ⧸ |
| 40 | (Matrix.toLin' (A.map (algebraMap R (Localization.AtPrime p.asIdeal)))).range) := by |
| 41 | constructor |
| 42 | · intro h p |
| 43 | let := h |
| 44 | exact Module.Flat.of_linearEquiv (matrixCokernelBaseChangeEquiv A (Localization.AtPrime p.asIdeal)) |
| 45 | · intro h |
| 46 | apply Module.flat_of_localized_maximal |
| 47 | intro P hP |
| 48 | let S := Localization.AtPrime P |
| 49 | let M := (ν → R) ⧸ (Matrix.toLin' A).range |
| 50 | let := h ⟨P, inferInstance⟩ |
| 51 | let : Module.Flat S (S ⊗[R] M) := |
| 52 | Module.Flat.of_linearEquiv (matrixCokernelBaseChangeEquiv A S).symm |
| 53 | rw [← Module.flat_iff_of_isLocalization S P.primeCompl] |
| 54 | exact Module.Flat.of_linearEquiv (LocalizedModule.equivTensorProduct P.primeCompl M) |
| 55 | |
| 56 | theorem matrixCokernel_flatRank_iff_localizations (q : ℕ) : |
| 57 | (Module.Flat R ((ν → R) ⧸ (Matrix.toLin' A).range) ∧ |
| 58 | ∀ p, Module.rankAtStalk (R := R) ((ν → R) ⧸ (Matrix.toLin' A).range) p + q = Fintype.card ν) ↔ |
| 59 | ∀ p : PrimeSpectrum R, |
| 60 | Module.Flat (Localization.AtPrime p.asIdeal) |
| 61 | ((ν → Localization.AtPrime p.asIdeal) ⧸ |
| 62 | (Matrix.toLin' (A.map (algebraMap R (Localization.AtPrime p.asIdeal)))).range) ∧ |
| 63 | Module.finrank (Localization.AtPrime p.asIdeal) |
| 64 | ((ν → Localization.AtPrime p.asIdeal) ⧸ |
| 65 | (Matrix.toLin' (A.map (algebraMap R (Localization.AtPrime p.asIdeal)))).range) + q = Fintype.card ν := by |
| 66 | rw [matrixCokernel_flat_iff_localizations] |
| 67 | simp only [matrixCokernel_rankAtStalk A] |
| 68 | exact forall_and.symm |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.CokernelLocalization |