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.PrescribedMatrixRankLoci |
| 2 | import Mathlib.LinearAlgebra.Matrix.Rank |
| 3 | |
| 4 | /-! # Matrix Kernel Rank Locus -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.MatrixKernelRankLocus |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual locally closed parameter loci for the dimension of a finite |
| 11 | matrix kernel. The field criterion is proved by transposed cokernels. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open scoped _root_.Matrix |
| 15 | |
| 16 | theorem transpose_cokernel_finrank_eq_kernel |
| 17 | {k : Type} [Field k] {μ ν : Type} [Fintype μ] [Fintype ν] |
| 18 | [DecidableEq μ] [DecidableEq ν] (A : Matrix ν μ k) : |
| 19 | Module.finrank k ((μ → k) ⧸ (Matrix.toLin' A.transpose).range) = |
| 20 | Module.finrank k (Matrix.toLin' A).ker := by |
| 21 | have hq := Submodule.finrank_quotient_add_finrank (Matrix.toLin' A.transpose).range |
| 22 | have hk := (Matrix.toLin' A).finrank_range_add_finrank_ker |
| 23 | have ht := Matrix.rank_transpose A |
| 24 | change Module.finrank k (Matrix.toLin' A.transpose).range = |
| 25 | Module.finrank k (Matrix.toLin' A).range at ht |
| 26 | rw [Module.finrank_fintype_fun_eq_card] at hq hk |
| 27 | omega |
| 28 | |
| 29 | variable {S : Scheme.{0}} (M : Over S) |
| 30 | {μ ν : Type} [Fintype μ] [Fintype ν] [DecidableEq μ] [DecidableEq ν] |
| 31 | (A : Matrix ν μ Γ(M.left, ⊤)) (r : ℕ) |
| 32 | |
| 33 | def matrixKernelRankSubfunctor : Subfunctor (yoneda.obj M) := |
| 34 | AbelianModuli.HilbertConstruction.PrescribedMatrixRankLoci.prescribedMatrixRankSubfunctor M A.transpose r |
| 35 | |
| 36 | theorem matrixKernelRank_immersion : HilbertScheme.Presentations.SubfunctorRepresentations.ImmersionRepresentable (matrixKernelRankSubfunctor M A r) := |
| 37 | AbelianModuli.HilbertConstruction.PrescribedMatrixRankLoci.prescribedMatrixRank_immersion M A.transpose r |
| 38 | |
| 39 | theorem matrixKernelRank_field_iff {k : Type} [Field k] |
| 40 | {f : Spec (.of k) ⟶ S} (x : Over.mk f ⟶ M) : |
| 41 | x ∈ (matrixKernelRankSubfunctor M A r).obj (.op (Over.mk f)) ↔ |
| 42 | Module.finrank k (Matrix.toLin' (AbelianModuli.HilbertConstruction.Matrix.RankAffineCriterion.affineMatrixCoefficients M A (.of k) x)).ker = r := by |
| 43 | rw [matrixKernelRankSubfunctor, AbelianModuli.HilbertConstruction.PrescribedMatrixRankLoci.prescribedMatrixRank_affine_iff] |
| 44 | have hflat : Module.Flat k ((μ → k) ⧸ |
| 45 | (Matrix.toLin' (AbelianModuli.HilbertConstruction.Matrix.RankAffineCriterion.affineMatrixCoefficients M A.transpose (.of k) x)).range) := inferInstance |
| 46 | simp only [hflat, true_and, Module.rankAtStalk_eq_finrank_of_free, Pi.natCast_apply, forall_const] |
| 47 | exact congrArg (· = r) (transpose_cokernel_finrank_eq_kernel |
| 48 | (AbelianModuli.HilbertConstruction.Matrix.RankAffineCriterion.affineMatrixCoefficients M A (.of k) x)) |>.to_iff |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.MatrixKernelRankLocus |