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.CokernelLocalization |
| 2 | import Mathlib.Algebra.Module.FinitePresentation |
| 3 | |
| 4 | /-! # Module Rank Presentation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.ModuleRankPresentation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! One finite matrix presents a finitely presented module and every |
| 11 | one of its coefficient fibers. The matrix is chosen before the coefficient ring. -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | theorem exists_finite_matrix_fiber_cokernel |
| 16 | (R M : Type) [CommRing R] [AddCommGroup M] [Module R M] |
| 17 | [Module.FinitePresentation R M] : |
| 18 | ∃ (n m : ℕ) (A : Matrix (Fin n) (Fin m) R), |
| 19 | ∀ (K : Type) [CommRing K] (φ : R →+* K), |
| 20 | letI : Algebra R K := φ.toAlgebra |
| 21 | Nonempty (K ⊗[R] M ≃ₗ[K] |
| 22 | ((Fin n → K) ⧸ (Matrix.toLin' (A.map φ)).range)) := by |
| 23 | obtain ⟨n, L, e, hL⟩ := Module.FinitePresentation.exists_fin R M |
| 24 | obtain ⟨m, f, hf⟩ := L.fg_iff_exists_fin_linearMap.mp hL |
| 25 | let A : Matrix (Fin n) (Fin m) R := LinearMap.toMatrix' f |
| 26 | have hA : (Matrix.toLin' A).range = L := by |
| 27 | dsimp only [A] |
| 28 | rw [Matrix.toLin'_toMatrix'] |
| 29 | exact hf |
| 30 | let eA : M ≃ₗ[R] ((Fin n → R) ⧸ (Matrix.toLin' A).range) := |
| 31 | e.trans (Submodule.quotEquivOfEq L _ hA.symm) |
| 32 | refine ⟨n, m, A, ?_⟩ |
| 33 | intro K hK φ |
| 34 | let : Algebra R K := φ.toAlgebra |
| 35 | exact ⟨(LinearEquiv.baseChange R K _ _ eA).trans (AbelianModuli.HilbertConstruction.Matrix.CokernelLocalization.matrixCokernelBaseChangeEquiv A K).symm⟩ |
| 36 | |
| 37 | theorem exists_finite_matrix_fiber_rank |
| 38 | (R M : Type) [CommRing R] [AddCommGroup M] [Module R M] |
| 39 | [Module.FinitePresentation R M] : |
| 40 | ∃ (n m : ℕ) (A : Matrix (Fin n) (Fin m) R), |
| 41 | ∀ (k : Type) [Field k] (φ : R →+* k), |
| 42 | letI : Algebra R k := φ.toAlgebra |
| 43 | Module.finrank k (k ⊗[R] M) = |
| 44 | Module.finrank k ((Fin n → k) ⧸ (Matrix.toLin' (A.map φ)).range) := by |
| 45 | obtain ⟨n, m, A, hA⟩ := exists_finite_matrix_fiber_cokernel R M |
| 46 | refine ⟨n, m, A, ?_⟩ |
| 47 | intro k hk φ |
| 48 | let : Algebra R k := φ.toAlgebra |
| 49 | exact (hA k φ).some.finrank_eq |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.ModuleRankPresentation |