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.Flat.MatrixKernelGrassmannian |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MorphismFromAffineTests |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.RankAffineCriterion |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.AffineQuotientPoint |
| 5 | |
| 6 | /-! # Scheme Flat Matrix Grassmannian -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SchemeFlatMatrixGrassmannian |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A global matrix satisfying the actual flat-cokernel rank condition |
| 13 | defines a scheme morphism to the relative Grassmannian. Its value on |
| 14 | every affine test is the exact kernel of the pulled-back matrix. -/ |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.AffineQuotientPoint.Grassmannian |
| 17 | universe u |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | variable {ι μ ν : Type u} [Fintype ι] [Fintype μ] [Fintype ν] |
| 21 | variable [DecidableEq ι] [DecidableEq μ] [DecidableEq ν] |
| 22 | variable {S : Scheme.{u}} (M : Over S) (F : Matrix ν μ Γ(M.left, ⊤)) |
| 23 | |
| 24 | def affineMatrixTestOver (R : CommRingCat.{u}) (x : Spec R ⟶ M.left) : |
| 25 | Over.mk (x ≫ M.hom) ⟶ M := Over.homMk x rfl |
| 26 | |
| 27 | def affineSchemeMatrixCoefficients (R : CommRingCat.{u}) (x : Spec R ⟶ M.left) : Matrix ν μ R := |
| 28 | HilbertConstruction.Matrix.RankAffineCriterion.affineMatrixCoefficients M F R (affineMatrixTestOver M R x) |
| 29 | |
| 30 | omit [Fintype μ] [Fintype ν] [DecidableEq μ] [DecidableEq ν] in |
| 31 | theorem affineSchemeMatrixCoefficients_specMap (R A : CommRingCat.{u}) |
| 32 | (φ : R →+* A) (x : Spec R ⟶ M.left) : |
| 33 | affineSchemeMatrixCoefficients M F A (Spec.map (CommRingCat.ofHom φ) ≫ x) = |
| 34 | (affineSchemeMatrixCoefficients M F R x).map φ := by |
| 35 | ext i j |
| 36 | simp only [affineSchemeMatrixCoefficients, HilbertConstruction.Matrix.RankAffineCriterion.affineMatrixCoefficients, affineMatrixTestOver, |
| 37 | Matrix.map_apply, RingHom.comp_apply] |
| 38 | exact ConcreteCategory.congr_hom (Scheme.ΓSpecIso_naturality (CommRingCat.ofHom φ)) (x.appTop (F i j)) |
| 39 | |
| 40 | variable (H : HilbertScheme.Presentations.Matrix.FlatRankLocus.Grassmannian.MatrixCokernelFlatRank (ι := ι) M F (𝟙 M)) |
| 41 | |
| 42 | include H in |
| 43 | theorem affineSchemeMatrix_flatRank (R : CommRingCat.{u}) (x : Spec R ⟶ M.left) : |
| 44 | Module.Flat R ((ν → R) ⧸ (Matrix.toLin' (affineSchemeMatrixCoefficients M F R x)).range) ∧ |
| 45 | ∀ p : PrimeSpectrum R, Module.rankAtStalk (R := R) |
| 46 | ((ν → R) ⧸ (Matrix.toLin' (affineSchemeMatrixCoefficients M F R x)).range) p + |
| 47 | Fintype.card ι = Fintype.card ν := by |
| 48 | have hx : HilbertScheme.Presentations.Matrix.FlatRankLocus.Grassmannian.MatrixCokernelFlatRank (ι := ι) M F (affineMatrixTestOver M R x) := by |
| 49 | have h := (HilbertScheme.Presentations.Matrix.FlatRankLocus.Grassmannian.matrixFlatRankSubfunctor (ι := ι) M F).map (affineMatrixTestOver M R x).op H |
| 50 | change HilbertScheme.Presentations.Matrix.FlatRankLocus.Grassmannian.MatrixCokernelFlatRank (ι := ι) M F (affineMatrixTestOver M R x ≫ 𝟙 M) at h |
| 51 | simpa only [Category.comp_id] using h |
| 52 | exact (HilbertConstruction.Matrix.RankAffineCriterion.matrixRank_affine_iff M F R (affineMatrixTestOver M R x)).mp hx |
| 53 | |
| 54 | def affineMatrixKernelPoint (R : CommRingCat.{u}) (x : Spec R ⟶ M.left) : |
| 55 | Module.Grassmannian R (μ → R) (Fintype.card ι) := |
| 56 | HilbertConstruction.Flat.MatrixKernelGrassmannian.flatMatrixKernelGrassmannian (affineSchemeMatrixCoefficients M F R x) (Fintype.card ι) |
| 57 | (affineSchemeMatrix_flatRank M F H R x).1 (affineSchemeMatrix_flatRank M F H R x).2 |
| 58 | |
| 59 | theorem affineMatrixKernelPoint_natural (R A : CommRingCat.{u}) |
| 60 | (φ : R →+* A) (x : Spec R ⟶ M.left) : |
| 61 | HilbertScheme.Presentations.Coordinate.GrassmannianBaseChange.Grassmannian.coordinateGrassmannianMap φ (affineMatrixKernelPoint M F H R x) = |
| 62 | affineMatrixKernelPoint M F H A (Spec.map (CommRingCat.ofHom φ) ≫ x) := by |
| 63 | apply Module.Grassmannian.ext |
| 64 | change HilbertScheme.Presentations.Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension φ (Matrix.toLin' (affineSchemeMatrixCoefficients M F R x)).ker = |
| 65 | (Matrix.toLin' (affineSchemeMatrixCoefficients M F A (Spec.map (CommRingCat.ofHom φ) ≫ x))).ker |
| 66 | rw [affineSchemeMatrixCoefficients_specMap] |
| 67 | exact HilbertConstruction.Flat.CokernelKernelBaseChange.matrix_kernel_baseChange_of_flat_cokernel φ _ (affineSchemeMatrix_flatRank M F H R x).1 |
| 68 | |
| 69 | def schemeFlatMatrixAffineData : |
| 70 | MorphismFromAffineTests.AffineTestMorphismData M.left (HilbertScheme.Presentations.Grassmannian.Gluing.grassmannianScheme (ι := ι) (ν := μ) S) where |
| 71 | app R x := (HilbertScheme.Presentations.Relative.AffineQuotientPoint.Grassmannian.relativeQuotientClassifyingPoint (x ≫ M.hom) (affineMatrixKernelPoint M F H R x)).left |
| 72 | naturality R A f x := by |
| 73 | let φ : R →+* A := (Spec.preimage f).hom |
| 74 | have hf : Spec.map (CommRingCat.ofHom φ) = f := Spec.map_preimage f |
| 75 | have hp := congrArg Over.Hom.left |
| 76 | (HilbertScheme.Presentations.Relative.AffineQuotientPoint.Grassmannian.relativeQuotientClassifyingPoint_natural (x ≫ M.hom) φ (affineMatrixKernelPoint M F H R x)) |
| 77 | rw [affineMatrixKernelPoint_natural] at hp |
| 78 | replace hp := hp.symm |
| 79 | change (HilbertScheme.Presentations.Relative.AffineQuotientPoint.Grassmannian.relativeQuotientClassifyingPoint (Spec.map (CommRingCat.ofHom φ) ≫ (x ≫ M.hom)) |
| 80 | (affineMatrixKernelPoint M F H A (Spec.map (CommRingCat.ofHom φ) ≫ x))).left = |
| 81 | Spec.map (CommRingCat.ofHom φ) ≫ |
| 82 | (HilbertScheme.Presentations.Relative.AffineQuotientPoint.Grassmannian.relativeQuotientClassifyingPoint (x ≫ M.hom) (affineMatrixKernelPoint M F H R x)).left at hp |
| 83 | rw [← hf] |
| 84 | change HilbertScheme.Presentations.Affine.QuotientClassifyingMap.Grassmannian.quotientClassifyingMap A (affineMatrixKernelPoint M F H A (Spec.map (CommRingCat.ofHom φ) ≫ x)) ≫ |
| 85 | HilbertScheme.Presentations.Grassmannian.BaseMap.grassmannianBaseMap ((Spec.map (CommRingCat.ofHom φ) ≫ x) ≫ M.hom) = |
| 86 | Spec.map (CommRingCat.ofHom φ) ≫ |
| 87 | (HilbertScheme.Presentations.Affine.QuotientClassifyingMap.Grassmannian.quotientClassifyingMap R (affineMatrixKernelPoint M F H R x) ≫ HilbertScheme.Presentations.Grassmannian.BaseMap.grassmannianBaseMap (x ≫ M.hom)) |
| 88 | rw [Category.assoc (Spec.map (CommRingCat.ofHom φ)) x M.hom] |
| 89 | exact hp |
| 90 | |
| 91 | def schemeFlatMatrixKernelMap : M.left ⟶ HilbertScheme.Presentations.Grassmannian.Gluing.grassmannianScheme (ι := ι) (ν := μ) S := |
| 92 | (schemeFlatMatrixAffineData M F H).toHom |
| 93 | |
| 94 | theorem schemeFlatMatrixKernelMap_affine (R : CommRingCat.{u}) (x : Spec R ⟶ M.left) : |
| 95 | x ≫ schemeFlatMatrixKernelMap M F H = |
| 96 | (HilbertScheme.Presentations.Relative.AffineQuotientPoint.Grassmannian.relativeQuotientClassifyingPoint (x ≫ M.hom) (affineMatrixKernelPoint M F H R x)).left := |
| 97 | (schemeFlatMatrixAffineData M F H).toHom_on_affine R x |
| 98 | |
| 99 | theorem schemeFlatMatrixKernelMap_over : |
| 100 | schemeFlatMatrixKernelMap M F H ≫ HilbertScheme.Presentations.Grassmannian.Gluing.grassmannianStructureMap S = M.hom := by |
| 101 | apply M.left.affineOpenCover.openCover.hom_ext |
| 102 | intro i |
| 103 | rw [← Category.assoc, schemeFlatMatrixKernelMap_affine] |
| 104 | exact (HilbertScheme.Presentations.Relative.AffineQuotientPoint.Grassmannian.relativeQuotientClassifyingPoint (M.left.affineOpenCover.f i ≫ M.hom) |
| 105 | (affineMatrixKernelPoint M F H (M.left.affineOpenCover.X i) (M.left.affineOpenCover.f i))).w |
| 106 | |
| 107 | def schemeFlatMatrixKernelOver : M ⟶ HilbertScheme.Presentations.Grassmannian.Gluing.grassmannianOver (ι := ι) (ν := μ) S := |
| 108 | Over.homMk (schemeFlatMatrixKernelMap M F H) (schemeFlatMatrixKernelMap_over M F H) |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SchemeFlatMatrixGrassmannian |