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.TorsionStableCoordinates |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Hilbert.IdealClosedFamilies |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Intrinsic.HomogeneousFamilyConstruction |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.AffineCoordinateLift |
| 5 | |
| 6 | /-! # Saturated Ideal Coordinate Lift -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A saturated flat Hilbert ideal over a noetherian coefficient ring |
| 13 | has an actual native projective family and a unique bounded Hilbert |
| 14 | parameter whose Grassmannian coordinates are precisely its degree |
| 15 | relations in the fixed monomial basis. -/ |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | universe u |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | variable {C : Type u} [CommRing C] [IsNoetherianRing C] {n : ℕ} {P : Polynomial ℚ} |
| 21 | variable (I : SaturatedFlatIdeals.SaturatedFlatHilbertIdeal C n P) {S : Scheme.{u}} (f : Spec (.of C) ⟶ S) |
| 22 | |
| 23 | def SaturatedFlatIdeals.SaturatedFlatHilbertIdeal.nativeHilbertFamily : HilbertScheme.Presentations.Hilbert.Functor.Family (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Over.mk f) := by |
| 24 | haveI : LocallyOfFinitePresentation (HilbertScheme.Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (HilbertScheme.Presentations.Graded.Quotient.GradedHilbert.quotientGrading I.ideal)) := |
| 25 | I.family_locallyFinitePresentation |
| 26 | exact HilbertScheme.Presentations.Intrinsic.HomogeneousFamilyConstruction.GradedHilbert.nativeFamilyOfHomogeneousIdeal n f I.ideal |
| 27 | |
| 28 | theorem SaturatedFlatIdeals.SaturatedFlatHilbertIdeal.nativeHilbertFamily_coordinates : HilbertScheme.Presentations.Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n f (I.nativeHilbertFamily f) = I.ideal := by |
| 29 | have : LocallyOfFinitePresentation (HilbertScheme.Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (HilbertScheme.Presentations.Graded.Quotient.GradedHilbert.quotientGrading I.ideal)) := |
| 30 | I.family_locallyFinitePresentation |
| 31 | exact (HilbertScheme.Presentations.Intrinsic.HomogeneousFamilyConstruction.GradedHilbert.nativeFamilyOfHomogeneousIdeal_coordinates n f I.ideal).trans |
| 32 | (HilbertScheme.Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation_eq_of_saturated I.ideal I.saturated) |
| 33 | |
| 34 | theorem SaturatedFlatIdeals.SaturatedFlatHilbertIdeal.nativeHilbertFamily_residue_polynomial : |
| 35 | ∀ p : PrimeSpectrum C, HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 36 | (HilbertScheme.Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation (HilbertScheme.Presentations.Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) |
| 37 | (HilbertScheme.Presentations.Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n f (I.nativeHilbertFamily f)))).toIdeal P := by |
| 38 | rw [I.nativeHilbertFamily_coordinates f] |
| 39 | exact I.hilbert |
| 40 | |
| 41 | theorem SaturatedFlatIdeals.SaturatedFlatHilbertIdeal.nativeHilbertFamily_coordinatePoint (D : ℕ) |
| 42 | (hdegree : HilbertScheme.Presentations.Uniform.FamilyCoordinates.GradedHilbert.uniformHilbertFamilyDegree.{u} n P ≤ D) : |
| 43 | HilbertScheme.Presentations.Intrinsic.AffineGrassmannian.GradedHilbert.nativeAffineCoordinateGrassmannian f (I.nativeHilbertFamily f) P |
| 44 | (I.nativeHilbertFamily_residue_polynomial f) D hdegree |
| 45 | (ULift.{u} (Fin (P.eval (D : ℚ)).num.toNat)) (by simp) = |
| 46 | TorsionStableCoordinates.configurationHilbertCoordinatePoint I D hdegree := by |
| 47 | apply Module.Grassmannian.ext |
| 48 | change HilbertScheme.Presentations.DegreeCoordinateRelations.GradedHilbert.degreeCoordinateRelations (HilbertScheme.Presentations.Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n f (I.nativeHilbertFamily f)) D = |
| 49 | HilbertScheme.Presentations.DegreeCoordinateRelations.GradedHilbert.degreeCoordinateRelations I.ideal D |
| 50 | rw [I.nativeHilbertFamily_coordinates f] |
| 51 | |
| 52 | theorem SaturatedFlatIdeals.SaturatedFlatHilbertIdeal.existsUnique_hilbert_coordinate_lift [IsLocallyNoetherian S] (D : ℕ) |
| 53 | (hdegree : HilbertScheme.Presentations.Uniform.FamilyCoordinates.GradedHilbert.uniformHilbertFamilyDegree.{u} n P ≤ D) : |
| 54 | ∃! x : Over.mk f ⟶ HilbertScheme.Presentations.BoundedHilbert.Data.GradedHilbert.boundedHilbertOver (ι := ULift.{u} (Fin (P.eval (D : ℚ)).num.toNat)) |
| 55 | n D S (HilbertScheme.Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n D P), |
| 56 | x ≫ HilbertScheme.Presentations.BoundedHilbert.Data.GradedHilbert.boundedHilbertParameterOver n D S (HilbertScheme.Presentations.Polynomial.DegreeRankProfile.GradedHilbert.polynomialDegreeRankProfile.{u} n D P) = |
| 57 | HilbertScheme.Presentations.Relative.AffineQuotientPoint.Grassmannian.relativeQuotientClassifyingPoint f (TorsionStableCoordinates.configurationHilbertCoordinatePoint I D hdegree) := by |
| 58 | have h := HilbertScheme.Presentations.Noetherian.AffineCoordinateLift.GradedHilbert.existsUnique_noetherian_affine_hilbert_coordinate_lift |
| 59 | (ι := ULift.{u} (Fin (P.eval (D : ℚ)).num.toNat)) f (I.nativeHilbertFamily f) P |
| 60 | (I.nativeHilbertFamily_residue_polynomial f) hdegree (by simp) |
| 61 | simp only [HilbertScheme.Presentations.Intrinsic.AffineGrassmannian.GradedHilbert.nativeAffineHilbertGrassmannianPoint, I.nativeHilbertFamily_coordinatePoint f D hdegree] at h |
| 62 | have hdec : |
| 63 | (fun a b : HilbertScheme.Presentations.Homogeneous.CoordinateBasis.GradedHilbert.DegreeIndex.{u} n D => |
| 64 | @ULift.instDecidableEq_mathlib (HilbertScheme.Presentations.Homogeneous.CoordinateBasis.GradedHilbert.DegreeMonomials n D) |
| 65 | (fun a b => Subtype.instDecidableEq a b) a b) = |
| 66 | (fun a b : HilbertScheme.Presentations.Homogeneous.CoordinateBasis.GradedHilbert.DegreeIndex.{u} n D => |
| 67 | @ULift.instDecidableEq_mathlib (HilbertScheme.Presentations.Homogeneous.CoordinateBasis.GradedHilbert.DegreeMonomials n D) |
| 68 | (Homogeneous.Coordinates.homogeneousMonomials_decidableEq (Fin (n + 1)) D) a b) := Subsingleton.elim _ _ |
| 69 | rw [hdec] at h |
| 70 | exact h |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |