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.PELModuli.IntegralModel.MatrixKernelRankLocus |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Reduced.SubfunctorLocus |
| 3 | |
| 4 | /-! # Matrix Kernel Rank Locus -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Reduced.MatrixKernelRankLocus |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Matrix-kernel ranks on all geometric fibers have an actual |
| 11 | locally closed representing locus on every reduced test scheme. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | variable {S : Scheme.{0}} (M : Over S) |
| 16 | {μ ν : Type} [Fintype μ] [Fintype ν] [DecidableEq μ] [DecidableEq ν] |
| 17 | (A : Matrix ν μ Γ(M.left, ⊤)) (r : ℕ) |
| 18 | |
| 19 | theorem matrixKernelRank_reduced_iff_geometric (T : Over S) [IsReduced T.left] (x : T ⟶ M) : |
| 20 | x ∈ (MatrixKernelRankLocus.matrixKernelRankSubfunctor M A r).obj (.op T) ↔ |
| 21 | ∀ (k : Type) [Field k] [IsAlgClosed k] (p : Spec (.of k) ⟶ T.left), |
| 22 | Module.finrank k (Matrix.toLin' |
| 23 | (AbelianModuli.HilbertConstruction.Matrix.RankAffineCriterion.affineMatrixCoefficients M A (.of k) (SubfunctorLocus.geometricTestMap x p))).ker = r := by |
| 24 | rw [SubfunctorLocus.immersion_subfunctor_mem_iff_geometric (MatrixKernelRankLocus.matrixKernelRankSubfunctor M A r) |
| 25 | (MatrixKernelRankLocus.matrixKernelRank_immersion M A r) T x] |
| 26 | constructor |
| 27 | · intro h k _ _ p |
| 28 | exact (MatrixKernelRankLocus.matrixKernelRank_field_iff M A r (SubfunctorLocus.geometricTestMap x p)).mp (h k p) |
| 29 | · intro h k _ _ p |
| 30 | exact (MatrixKernelRankLocus.matrixKernelRank_field_iff M A r (SubfunctorLocus.geometricTestMap x p)).mpr (h k p) |
| 31 | |
| 32 | theorem exists_reduced_test_matrix_kernel_rank_locus : |
| 33 | ∃ (Z : Over S) (j : Z ⟶ M), IsImmersion j.left ∧ QuasiCompact j.left ∧ |
| 34 | ∀ (T : Over S) [IsReduced T.left] (x : T ⟶ M), |
| 35 | (∀ (k : Type) [Field k] [IsAlgClosed k] (p : Spec (.of k) ⟶ T.left), |
| 36 | Module.finrank k (Matrix.toLin' |
| 37 | (AbelianModuli.HilbertConstruction.Matrix.RankAffineCriterion.affineMatrixCoefficients M A (.of k) (SubfunctorLocus.geometricTestMap x p))).ker = r) ↔ |
| 38 | ∃! f : T ⟶ Z, f ≫ j = x := by |
| 39 | obtain ⟨Z, j, hj, hqc, e, he⟩ := MatrixKernelRankLocus.matrixKernelRank_immersion M A r |
| 40 | let := hj |
| 41 | let : Mono j := Over.mono_of_mono_left j |
| 42 | refine ⟨Z, j, hj, hqc, ?_⟩ |
| 43 | intro T hT x |
| 44 | rw [← matrixKernelRank_reduced_iff_geometric M A r T x, |
| 45 | HilbertScheme.Presentations.SubfunctorRepresentations.represented_subfunctor_mem (MatrixKernelRankLocus.matrixKernelRankSubfunctor M A r) j e he T x] |
| 46 | exact ⟨fun ⟨f, hf⟩ => ⟨f, hf, fun q hq => (cancel_mono j).mp (hq.trans hf.symm)⟩, |
| 47 | fun ⟨f, hf, _⟩ => ⟨f, hf⟩⟩ |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Reduced.MatrixKernelRankLocus |