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.KernelDimensionOpen |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.KernelScalarEmbedding |
| 3 | import Mathlib.RingTheory.TensorProduct.Free |
| 4 | |
| 5 | /-! # Kernel Base Change Dimension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.KernelBaseChangeDimension |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Matrix coefficient extension computes the kernel dimension of the actual base-changed linear map. A residue-field kernel bound of one therefore gives a scalar embedding of the original local-ring matrix kernel. -/ |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {R : Type u} [CommRing R] |
| 16 | variable {μ ν : Type u} [Fintype μ] [Fintype ν] [DecidableEq μ] [DecidableEq ν] |
| 17 | |
| 18 | omit [DecidableEq ν] in |
| 19 | theorem matrixKernel_baseChange_finrank {K : Type u} [Field K] [Algebra R K] (B : Matrix ν μ R) : |
| 20 | Module.finrank K ((Matrix.toLin' B).baseChange K).ker = |
| 21 | Module.finrank K (Matrix.toLin' (B.map (algebraMap R K))).ker := by |
| 22 | let bm := Algebra.TensorProduct.basis K (Pi.basisFun R μ) |
| 23 | let bn := Algebra.TensorProduct.basis K (Pi.basisFun R ν) |
| 24 | have hb : LinearMap.toMatrix bm bn ((Matrix.toLin' B).baseChange K) = B.map (algebraMap R K) := by |
| 25 | rw [LinearMap.toMatrix_baseChange] |
| 26 | congr 1 |
| 27 | exact LinearMap.toMatrix_toLin (Pi.basisFun R μ) (Pi.basisFun R ν) B |
| 28 | have hr : (B.map (algebraMap R K)).rank = Module.finrank K ((Matrix.toLin' B).baseChange K).range := by |
| 29 | rw [Matrix.rank_eq_finrank_range_toLin _ bn bm, ← hb, Matrix.toLin_toMatrix] |
| 30 | have h₁ := LinearMap.finrank_range_add_finrank_ker ((Matrix.toLin' B).baseChange K) |
| 31 | rw [Module.finrank_eq_card_basis bm] at h₁ |
| 32 | have h₂ := KernelDimensionOpen.field_matrix_kernel_dimension_add_rank (B.map (algebraMap R K)) |
| 33 | omega |
| 34 | |
| 35 | omit [DecidableEq ν] in |
| 36 | theorem localMatrixKernel_exists_scalar_embedding [IsLocalRing R] (B : Matrix ν μ R) |
| 37 | (h : Module.finrank (IsLocalRing.ResidueField R) |
| 38 | (Matrix.toLin' (B.map (algebraMap R (IsLocalRing.ResidueField R)))).ker ≤ 1) : |
| 39 | ∃ φ : (Matrix.toLin' B).ker →ₗ[R] R, Function.Injective φ := by |
| 40 | apply Local.KernelScalarEmbedding.localKernel_exists_scalar_embedding |
| 41 | rw [matrixKernel_baseChange_finrank] |
| 42 | exact h |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.KernelBaseChangeDimension |