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.StableHilbert.KernelCriterion |
| 2 | |
| 3 | /-! # Affine Family -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.StableHilbert.AffineFamily |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The actual universal family at a Noetherian affine point of |
| 10 | a stable Hilbert chart has a canonical saturated flat ideal. Its |
| 11 | degree relations are exactly the configuration evaluation kernel. -/ |
| 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 (R : Type u) [CommRing R] [IsNoetherianRing R] |
| 17 | variable (C : CommRingCat.{u}) [IsNoetherianRing C] {n m : ℕ} (i : Fin m) |
| 18 | variable (j : Stable.BalancedFrameIndex.StableBalancedFrameIndex.{u} (n + 1) m) (D : ℕ) (P : Polynomial ℚ) |
| 19 | variable {f : Spec C ⟶ Spec (.of R)} |
| 20 | |
| 21 | def stableHilbertAffineFamily (a : Over.mk f ⟶ Stable.ConfigurationLocus.stableConfigurationHilbertLocus R i j D P) : |
| 22 | HilbertScheme.Presentations.Hilbert.Functor.Family (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver (Spec (.of R)) n) (Over.mk f) := |
| 23 | HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver (Spec (.of R)) n) |
| 24 | (a ≫ Stable.ConfigurationLocus.stableConfigurationHilbertParameterMap R i j D P) |
| 25 | (HilbertScheme.Presentations.BoundedHilbert.UniversalFamily.GradedHilbert.boundedHilbertUniversalFamily n D (Spec (.of R)) (HilbertScheme.Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n D P)) |
| 26 | |
| 27 | omit [IsNoetherianRing C] in |
| 28 | theorem stableHilbertAffineFamily_pullback |
| 29 | (a : Over.mk f ⟶ Stable.ConfigurationLocus.stableConfigurationHilbertLocus R i j D P) : |
| 30 | stableHilbertAffineFamily R C i j D P a = |
| 31 | HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver (Spec (.of R)) n) a |
| 32 | (Stable.ConfigurationLocus.stableConfigurationHilbertUniversalFamily R i j D P) := by |
| 33 | exact HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily_comp _ _ _ _ |
| 34 | |
| 35 | variable (hP : HilbertScheme.Presentations.BoundedHilbert.DegreeLocus.GradedHilbert.RankProfileRealizes.{u} n D (HilbertScheme.Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n D P) P) |
| 36 | |
| 37 | def stableHilbertAffineIdeal (a : Over.mk f ⟶ Stable.ConfigurationLocus.stableConfigurationHilbertLocus R i j D P) : |
| 38 | SaturatedFlatIdeals.SaturatedFlatHilbertIdeal C n P where |
| 39 | ideal := HilbertScheme.Presentations.Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n f (stableHilbertAffineFamily R C i j D P a) |
| 40 | saturated := HilbertScheme.Presentations.Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal_saturated n f _ |
| 41 | flat := HilbertScheme.Presentations.Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal_flat n f _ |
| 42 | hilbert := HilbertScheme.Presentations.Noetherian.LocalClassification.GradedHilbert.boundedHilbertUniversalFamily_residue_polynomial _ P hP f |
| 43 | (a ≫ Stable.ConfigurationLocus.stableConfigurationHilbertParameterMap R i j D P) |
| 44 | |
| 45 | theorem stableHilbertAffineIdeal_native |
| 46 | (a : Over.mk f ⟶ Stable.ConfigurationLocus.stableConfigurationHilbertLocus R i j D P) : |
| 47 | (stableHilbertAffineIdeal R C i j D P hP a).nativeHilbertFamily f = |
| 48 | stableHilbertAffineFamily R C i j D P a := by |
| 49 | apply HilbertScheme.Presentations.Intrinsic.HomogeneousFamilyConstruction.GradedHilbert.affineNativeHomogeneousIdeal_injective n f |
| 50 | exact (stableHilbertAffineIdeal R C i j D P hP a).nativeHilbertFamily_coordinates f |
| 51 | |
| 52 | theorem stableHilbertAffineIdeal_matrix_kernel |
| 53 | (a : Over.mk f ⟶ Stable.ConfigurationLocus.stableConfigurationHilbertLocus R i j D P) |
| 54 | (hD : HilbertScheme.Presentations.Uniform.FamilyCoordinates.GradedHilbert.uniformHilbertFamilyDegree.{u} n P ≤ D) : |
| 55 | (Matrix.toLin' (Configuration.MonomialMatrix.configurationMonomialMatrix |
| 56 | (Stable.PolynomialMatrixCoefficients.stablePolynomialChartPointVectors R i j C |
| 57 | (a ≫ Stable.ConfigurationLocus.stableConfigurationHilbertRankInclusion R i j D P ≫ |
| 58 | Stable.ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankInclusion R i j D (Stable.ConfigurationLocus.configurationHilbertRank D P))) D)).ker = |
| 59 | HilbertScheme.Presentations.DegreeCoordinateRelations.GradedHilbert.degreeCoordinateRelations (stableHilbertAffineIdeal R C i j D P hP a).ideal D := by |
| 60 | let I := stableHilbertAffineIdeal R C i j D P hP a |
| 61 | let F := stableHilbertAffineFamily R C i j D P a |
| 62 | let z := a ≫ Stable.ConfigurationLocus.stableConfigurationHilbertParameterMap R i j D P |
| 63 | let y := a ≫ Stable.ConfigurationLocus.stableConfigurationHilbertRankInclusion R i j D P |
| 64 | let x := y ≫ Stable.ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankInclusion R i j D (Stable.ConfigurationLocus.configurationHilbertRank D P) |
| 65 | have hQ : HilbertScheme.Presentations.Intrinsic.AffineGrassmannian.GradedHilbert.nativeAffineCoordinateGrassmannian f F P I.hilbert D hD |
| 66 | (ULift.{u} (Fin (Stable.ConfigurationLocus.configurationHilbertRank D P))) (by simp) = |
| 67 | TorsionStableCoordinates.configurationHilbertCoordinatePoint I D hD := Module.Grassmannian.ext rfl |
| 68 | have hz : z ≫ HilbertScheme.Presentations.BoundedHilbert.Data.GradedHilbert.boundedHilbertParameterOver n D (Spec (.of R)) (HilbertScheme.Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n D P) = |
| 69 | HilbertScheme.Presentations.Relative.AffineQuotientPoint.Grassmannian.relativeQuotientClassifyingPoint f (TorsionStableCoordinates.configurationHilbertCoordinatePoint I D hD) := by |
| 70 | have H := HilbertScheme.Presentations.Noetherian.AffineParameterCoordinates.GradedHilbert.noetherianAffine_hilbert_parameter_coordinates f F P I.hilbert hD |
| 71 | (ι := ULift.{u} (Fin (Stable.ConfigurationLocus.configurationHilbertRank D P))) (by simp) z rfl |
| 72 | have hdec : |
| 73 | (fun a b : HilbertScheme.Presentations.Homogeneous.CoordinateBasis.GradedHilbert.DegreeIndex.{u} n D => |
| 74 | @ULift.instDecidableEq_mathlib (HilbertScheme.Presentations.Homogeneous.CoordinateBasis.GradedHilbert.DegreeMonomials n D) |
| 75 | (fun a b => Subtype.instDecidableEq a b) a b) = |
| 76 | (fun a b : HilbertScheme.Presentations.Homogeneous.CoordinateBasis.GradedHilbert.DegreeIndex.{u} n D => |
| 77 | @ULift.instDecidableEq_mathlib (HilbertScheme.Presentations.Homogeneous.CoordinateBasis.GradedHilbert.DegreeMonomials n D) |
| 78 | (Homogeneous.Coordinates.homogeneousMonomials_decidableEq (Fin (n + 1)) D) a b) := Subsingleton.elim _ _ |
| 79 | simp only [HilbertScheme.Presentations.Intrinsic.AffineGrassmannian.GradedHilbert.nativeAffineHilbertGrassmannianPoint, hQ] at H |
| 80 | rw [hdec] at H |
| 81 | exact H |
| 82 | have hc : y ≫ HilbertConstruction.Matrix.RankKernelClassifier.stableConfigurationPolynomialKernelClassifier R i j D (Stable.ConfigurationLocus.configurationHilbertRank D P) = |
| 83 | HilbertScheme.Presentations.Relative.AffineQuotientPoint.Grassmannian.relativeQuotientClassifyingPoint f (TorsionStableCoordinates.configurationHilbertCoordinatePoint I D hD) := by |
| 84 | change (a ≫ Stable.ConfigurationLocus.stableConfigurationHilbertRankInclusion R i j D P) ≫ _ = _ |
| 85 | rw [Category.assoc, Stable.ConfigurationLocus.stableConfigurationHilbert_parameter_condition, ← Category.assoc] |
| 86 | exact hz |
| 87 | have H := ((HilbertConstruction.Matrix.ClassifierKernelReflection.stablePolynomialKernelClassifier_affine_iff_kernel R i j D _ C x y rfl |
| 88 | (TorsionStableCoordinates.configurationHilbertCoordinatePoint I D hD)).mp hc).symm |
| 89 | change _ = HilbertScheme.Presentations.DegreeCoordinateRelations.GradedHilbert.degreeCoordinateRelations I.ideal D at H |
| 90 | simpa only [x, y, Category.assoc] using H |
| 91 | |
| 92 | theorem stableHilbertAffineIdeal_evaluation_kernel |
| 93 | (a : Over.mk f ⟶ Stable.ConfigurationLocus.stableConfigurationHilbertLocus R i j D P) |
| 94 | (hD : HilbertScheme.Presentations.Uniform.FamilyCoordinates.GradedHilbert.uniformHilbertFamilyDegree.{u} n P ≤ D) : |
| 95 | (Homogeneous.ConfigurationEvaluation.homogeneousConfigurationEvaluation |
| 96 | (Stable.PolynomialMatrixCoefficients.stablePolynomialChartPointVectors R i j C |
| 97 | (a ≫ Stable.ConfigurationLocus.stableConfigurationHilbertRankInclusion R i j D P ≫ |
| 98 | Stable.ConfigurationPolynomialRankLocus.stableConfigurationPolynomialRankInclusion R i j D (Stable.ConfigurationLocus.configurationHilbertRank D P))) D).ker = |
| 99 | HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.degreeRelations (stableHilbertAffineIdeal R C i j D P hP a).ideal.toIdeal D := by |
| 100 | apply Submodule.map_injective_of_injective (HilbertScheme.Presentations.Homogeneous.CoordinateBasis.GradedHilbert.coordinateDegreeBasis C n D).equivFun.injective |
| 101 | exact (Configuration.CoordinateRelations.configurationMonomialMatrix_kernel _ D).symm.trans |
| 102 | (stableHilbertAffineIdeal_matrix_kernel R C i j D P hP a hD) |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.StableHilbert.AffineFamily |