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.Finite.ModuleRankPresentation |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Reduced.MatrixKernelRankLocus |
| 3 | |
| 4 | /-! # Module Rank Locus -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Reduced.ModuleRankLocus |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Every finitely presented module on an affine parameter chart |
| 11 | has an actual locally closed locus for its geometric fiber dimension. |
| 12 | The criterion classifies every reduced test scheme. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | variable {S : Scheme.{0}} (M : Over S) (V : Type) [AddCommGroup V] |
| 18 | [Module Γ(M.left, ⊤) V] [Module.FinitePresentation Γ(M.left, ⊤) V] |
| 19 | |
| 20 | def HasGeometricModuleRank (r : ℕ) {T : Over S} (x : T ⟶ M) : Prop := |
| 21 | ∀ (k : Type) [Field k] [IsAlgClosed k] (p : Spec (.of k) ⟶ T.left), |
| 22 | letI : Algebra Γ(M.left, ⊤) k := |
| 23 | ((Scheme.ΓSpecIso (.of k)).hom.hom.comp (p ≫ x.left).appTop.hom).toAlgebra |
| 24 | Module.finrank k (k ⊗[Γ(M.left, ⊤)] V) = r |
| 25 | |
| 26 | theorem exists_reduced_test_module_rank_locus (r : ℕ) : |
| 27 | ∃ (Z : Over S) (j : Z ⟶ M), IsImmersion j.left ∧ QuasiCompact j.left ∧ |
| 28 | ∀ (T : Over S) [IsReduced T.left] (x : T ⟶ M), |
| 29 | HasGeometricModuleRank M V r x ↔ ∃! f : T ⟶ Z, f ≫ j = x := by |
| 30 | obtain ⟨n, m, A, hA⟩ := Finite.ModuleRankPresentation.exists_finite_matrix_fiber_rank Γ(M.left, ⊤) V |
| 31 | obtain ⟨Z, j, hj, hqc, hZ⟩ := MatrixKernelRankLocus.exists_reduced_test_matrix_kernel_rank_locus M A.transpose r |
| 32 | refine ⟨Z, j, hj, hqc, ?_⟩ |
| 33 | intro T hT x |
| 34 | rw [← hZ T x] |
| 35 | have hf (k : Type) [Field k] (p : Spec (.of k) ⟶ T.left) : |
| 36 | letI : Algebra Γ(M.left, ⊤) k := |
| 37 | ((Scheme.ΓSpecIso (.of k)).hom.hom.comp (p ≫ x.left).appTop.hom).toAlgebra |
| 38 | Module.finrank k (k ⊗[Γ(M.left, ⊤)] V) = |
| 39 | Module.finrank k (Matrix.toLin' |
| 40 | (AbelianModuli.HilbertConstruction.Matrix.RankAffineCriterion.affineMatrixCoefficients M A.transpose (.of k) (SubfunctorLocus.geometricTestMap x p))).ker := by |
| 41 | let φ := (Scheme.ΓSpecIso (.of k)).hom.hom.comp (p ≫ x.left).appTop.hom |
| 42 | let : Algebra Γ(M.left, ⊤) k := φ.toAlgebra |
| 43 | exact (hA k φ).trans (MatrixKernelRankLocus.transpose_cokernel_finrank_eq_kernel (A.map φ).transpose) |
| 44 | constructor |
| 45 | · intro h k hk ha p |
| 46 | exact (hf k p).symm.trans (h k p) |
| 47 | · intro h k hk ha p |
| 48 | exact (hf k p).trans (h k p) |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Reduced.ModuleRankLocus |