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.AugmentedMatrixCokernels |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.RankAffineCriterion |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixRank.QuasiCompact |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.LocusIntersections |
| 5 | |
| 6 | /-! # Prescribed Matrix Rank Loci -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PrescribedMatrixRankLoci |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Actual quasi-compact locally closed loci for arbitrary prescribed cokernel ranks, with exact affine criteria. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.LocusIntersections OAI.AlgebraicGeometry.HilbertScheme.Presentations.MatrixRank.QuasiCompact.Grassmannian |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable {μ ν : Type u} [Fintype μ] [Fintype ν] [DecidableEq μ] [DecidableEq ν] |
| 19 | variable {S : Scheme.{u}} (M : Over S) (A : Matrix ν μ Γ(M.left, ⊤)) (r : ℕ) |
| 20 | |
| 21 | def prescribedMatrixRankSubfunctor : Subfunctor (yoneda.obj M) := |
| 22 | HilbertScheme.Presentations.Matrix.FlatRankLocus.Grassmannian.matrixFlatRankSubfunctor (ι := ν) M (AugmentedMatrixCokernels.identityAugmentedMatrix (κ := ULift.{u} (Fin r)) A) |
| 23 | |
| 24 | theorem prescribedMatrixRank_immersion : HilbertScheme.Presentations.SubfunctorRepresentations.ImmersionRepresentable (prescribedMatrixRankSubfunctor M A r) := by |
| 25 | obtain ⟨Z, j, hj, _, hqc, e, he⟩ := HilbertScheme.Presentations.MatrixRank.QuasiCompact.Grassmannian.matrix_flat_fixed_rank_immersion (ι := ν) M |
| 26 | (AugmentedMatrixCokernels.identityAugmentedMatrix (κ := ULift.{u} (Fin r)) A) |
| 27 | exact ⟨Z, j, hj, hqc, e, he⟩ |
| 28 | |
| 29 | theorem prescribedMatrixRank_affine_iff (R : CommRingCat.{u}) {f : Spec R ⟶ S} (x : Over.mk f ⟶ M) : |
| 30 | x ∈ (prescribedMatrixRankSubfunctor M A r).obj (.op (Over.mk f)) ↔ |
| 31 | (Module.Flat R ((ν → R) ⧸ (Matrix.toLin' (HilbertConstruction.Matrix.RankAffineCriterion.affineMatrixCoefficients M A R x)).range) ∧ |
| 32 | ∀ p, Module.rankAtStalk (R := R) |
| 33 | ((ν → R) ⧸ (Matrix.toLin' (HilbertConstruction.Matrix.RankAffineCriterion.affineMatrixCoefficients M A R x)).range) p = r) := by |
| 34 | have h := HilbertConstruction.Matrix.RankAffineCriterion.matrixRank_affine_iff (ι := ν) M |
| 35 | (AugmentedMatrixCokernels.identityAugmentedMatrix (κ := ULift.{u} (Fin r)) A) R x |
| 36 | change HilbertScheme.Presentations.Matrix.FlatRankLocus.Grassmannian.MatrixCokernelFlatRank (ι := ν) M |
| 37 | (AugmentedMatrixCokernels.identityAugmentedMatrix (κ := ULift.{u} (Fin r)) A) x ↔ _ |
| 38 | refine h.trans ?_ |
| 39 | have he : HilbertConstruction.Matrix.RankAffineCriterion.affineMatrixCoefficients M (AugmentedMatrixCokernels.identityAugmentedMatrix (κ := ULift.{u} (Fin r)) A) R x = |
| 40 | AugmentedMatrixCokernels.identityAugmentedMatrix (κ := ULift.{u} (Fin r)) (HilbertConstruction.Matrix.RankAffineCriterion.affineMatrixCoefficients M A R x) := |
| 41 | AugmentedMatrixCokernels.identityAugmentedMatrix_map A _ |
| 42 | rw [he, AugmentedMatrixCokernels.identityAugmentedMatrix_flatRank_iff] |
| 43 | simp only [Fintype.card_ulift, Fintype.card_fin] |
| 44 | |
| 45 | theorem prescribedMatrixRanks_finite_intersection {κ : Type v} [Fintype κ] |
| 46 | (μ ν : κ → Type u) [∀ i, Fintype (μ i)] [∀ i, Fintype (ν i)] |
| 47 | [∀ i, DecidableEq (μ i)] [∀ i, DecidableEq (ν i)] |
| 48 | (A : ∀ i, Matrix (ν i) (μ i) Γ(M.left, ⊤)) (r : κ → ℕ) : |
| 49 | HilbertScheme.Presentations.SubfunctorRepresentations.ImmersionRepresentable (⨅ i, prescribedMatrixRankSubfunctor M (A i) (r i)) := by |
| 50 | have h := HilbertScheme.Presentations.Finite.LocusIntersections.immersionRepresentable_finset_inf (Finset.univ : Finset κ) |
| 51 | (fun i => prescribedMatrixRankSubfunctor M (A i) (r i)) (fun i _ => prescribedMatrixRank_immersion M (A i) (r i)) |
| 52 | simpa using h |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PrescribedMatrixRankLoci |