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.Relative.QuotientPointInjectivity |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Stable.KernelClassifierFormula |
| 3 | |
| 4 | /-! # Classifier Kernel Reflection -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.ClassifierKernelReflection |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The scheme matrix-kernel classifier both constructs and |
| 11 | reflects the exact affine kernel, rather than just its dimension. -/ |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | universe u |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | variable {ι μ ν : Type u} [Fintype ι] [Fintype μ] [Fintype ν] |
| 17 | variable [DecidableEq ι] [DecidableEq μ] [DecidableEq ν] |
| 18 | variable {S : Scheme.{u}} (M : Over S) (F : Matrix ν μ Γ(M.left, ⊤)) |
| 19 | |
| 20 | theorem matrixRankKernelClassifier_affine_iff_kernel (C : CommRingCat.{u}) |
| 21 | {f : Spec C ⟶ S} (y : Over.mk f ⟶ HilbertScheme.Presentations.MatrixRank.Data.Grassmannian.matrixRankOver (ι := ι) M F) |
| 22 | (Q : Module.Grassmannian C (μ → C) (Fintype.card ι)) : |
| 23 | y ≫ RankKernelClassifier.matrixRankKernelClassifier M F = HilbertScheme.Presentations.Relative.AffineQuotientPoint.Grassmannian.relativeQuotientClassifyingPoint f Q ↔ |
| 24 | Q.toSubmodule = (Matrix.toLin' (SchemeFlatMatrixGrassmannian.affineSchemeMatrixCoefficients M F C |
| 25 | (y.left ≫ (HilbertScheme.Presentations.MatrixRank.Data.Grassmannian.matrixRankParameterMap (ι := ι) M F).left))).ker := by |
| 26 | let L := SchemeFlatMatrixGrassmannian.affineMatrixKernelPoint (HilbertScheme.Presentations.MatrixRank.Data.Grassmannian.matrixRankOver (ι := ι) M F) |
| 27 | (F.map (HilbertScheme.Presentations.MatrixRank.Data.Grassmannian.matrixRankParameterMap (ι := ι) M F).left.appTop.hom) |
| 28 | (RankKernelClassifier.matrixRankPulledMatrix_flatRank M F) C y.left |
| 29 | have hc : y ≫ RankKernelClassifier.matrixRankKernelClassifier M F = HilbertScheme.Presentations.Relative.AffineQuotientPoint.Grassmannian.relativeQuotientClassifyingPoint f L := by |
| 30 | apply Over.OverMorphism.ext |
| 31 | have h := RankKernelClassifier.matrixRankKernelClassifier_affine M F C y.left |
| 32 | have hyw : y.left ≫ (HilbertScheme.Presentations.MatrixRank.Data.Grassmannian.matrixRankOver (ι := ι) M F).hom = f := y.w |
| 33 | rw [hyw] at h |
| 34 | exact h |
| 35 | have hL : L.toSubmodule = (Matrix.toLin' (SchemeFlatMatrixGrassmannian.affineSchemeMatrixCoefficients M F C |
| 36 | (y.left ≫ (HilbertScheme.Presentations.MatrixRank.Data.Grassmannian.matrixRankParameterMap (ι := ι) M F).left))).ker := by |
| 37 | change (Matrix.toLin' (SchemeFlatMatrixGrassmannian.affineSchemeMatrixCoefficients (HilbertScheme.Presentations.MatrixRank.Data.Grassmannian.matrixRankOver (ι := ι) M F) |
| 38 | (F.map (HilbertScheme.Presentations.MatrixRank.Data.Grassmannian.matrixRankParameterMap (ι := ι) M F).left.appTop.hom) C y.left)).ker = _ |
| 39 | rw [RankClassifierCoefficients.affineSchemeMatrixCoefficients_pullback] |
| 40 | constructor |
| 41 | · intro h |
| 42 | have he : L = Q := Relative.QuotientPointInjectivity.relativeQuotientClassifyingPoint_injective f (hc.symm.trans h) |
| 43 | exact he ▸ hL |
| 44 | · intro h |
| 45 | have he : L = Q := Module.Grassmannian.ext (hL.trans h.symm) |
| 46 | exact he ▸ hc |
| 47 | |
| 48 | theorem stablePolynomialKernelClassifier_affine_iff_kernel |
| 49 | (R : Type u) [CommRing R] {n m : ℕ} (i : Fin m) |
| 50 | (j : Stable.BalancedFrameIndex.StableBalancedFrameIndex.{u} (n + 1) m) (D k : ℕ) |
| 51 | (C : CommRingCat.{u}) {f : Spec C ⟶ Spec (.of R)} |
| 52 | (x : Over.mk f ⟶ Stable.ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankAmbient R i j) |
| 53 | (y : Over.mk f ⟶ Stable.ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankLocus R i j D k) |
| 54 | (hy : y ≫ Stable.ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankInclusion R i j D k = x) |
| 55 | (Q : Module.Grassmannian C (HilbertScheme.Presentations.Homogeneous.CoordinateBasis.GradedHilbert.DegreeIndex.{u} n D → C) (Fintype.card (ULift.{u} (Fin k)))) : |
| 56 | y ≫ RankKernelClassifier.stableConfigurationPolynomialKernelClassifier R i j D k = HilbertScheme.Presentations.Relative.AffineQuotientPoint.Grassmannian.relativeQuotientClassifyingPoint f Q ↔ |
| 57 | Q.toSubmodule = (Matrix.toLin' (Configuration.MonomialMatrix.configurationMonomialMatrix (Stable.PolynomialMatrixCoefficients.stablePolynomialChartPointVectors R i j C x) D)).ker := by |
| 58 | change y ≫ RankKernelClassifier.matrixRankKernelClassifier _ _ = _ ↔ _ |
| 59 | rw [matrixRankKernelClassifier_affine_iff_kernel] |
| 60 | change Q.toSubmodule = (Matrix.toLin' (SchemeFlatMatrixGrassmannian.affineSchemeMatrixCoefficients |
| 61 | (Stable.ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankAmbient R i j) (Stable.ConfigurationPolynomialRankLocus.stableConfigurationPolynomialMatrix R i j D) C |
| 62 | (y.left ≫ (Stable.ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankInclusion R i j D k).left))).ker ↔ _ |
| 63 | rw [show y.left ≫ (Stable.ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankInclusion R i j D k).left = x.left from |
| 64 | congrArg Over.Hom.left hy] |
| 65 | have hc : SchemeFlatMatrixGrassmannian.affineSchemeMatrixCoefficients (Stable.ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankAmbient R i j) |
| 66 | (Stable.ConfigurationPolynomialRankLocus.stableConfigurationPolynomialMatrix R i j D) C x.left = |
| 67 | Configuration.MonomialMatrix.configurationMonomialMatrix (Stable.PolynomialMatrixCoefficients.stablePolynomialChartPointVectors R i j C x) D := |
| 68 | Stable.PolynomialMatrixCoefficients.stableConfigurationPolynomialMatrix_coefficients R i j C x D |
| 69 | rw [hc] |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.ClassifierKernelReflection |