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.HilbertScheme.Presentations.Uniform.SaturationBaseChange |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.FlatBaseChange |
| 3 | |
| 4 | /-! # Family Coordinates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Uniform.FamilyCoordinates.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A single dimension-and-polynomial degree gives actual Grassmannian coordinates for all saturated flat projective families over noetherian bases. -/ |
| 11 | |
| 12 | open _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | def uniformHilbertFamilyDegree (n : ℕ) (P : Polynomial ℚ) : ℕ := |
| 17 | max (RegularCoordinateFlag.GradedHilbert.regularCoordinateFlagBound.{u} n P) (Hilbert.Truncation.GradedHilbert.hilbertParameterDegree.{u} n P) |
| 18 | |
| 19 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] {n : ℕ} |
| 20 | variable (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (hSat : Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal) |
| 21 | variable [Flat (Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I))] |
| 22 | variable (P : Polynomial ℚ) (hP : ∀ p : PrimeSpectrum R, |
| 23 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 24 | (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) I)).toIdeal P) |
| 25 | |
| 26 | include hSat hP in |
| 27 | theorem uniformHilbertFamilyDegree_rankAtStalk (d : ℕ) (hd : uniformHilbertFamilyDegree.{u} n P ≤ d) |
| 28 | (p : PrimeSpectrum R) : |
| 29 | Module.rankAtStalk (R := R) (Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) p = (P.eval (d : ℚ)).num.toNat := by |
| 30 | have hdB : RegularCoordinateFlag.GradedHilbert.regularCoordinateFlagBound.{u} n P ≤ d := (le_max_left _ _).trans hd |
| 31 | have hdP : Hilbert.Truncation.GradedHilbert.hilbertParameterDegree.{u} n P ≤ d := (le_max_right _ _).trans hd |
| 32 | let : Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) := SaturatedCoordinates.GradedHilbert.uniform_saturated_coordinate_flat I hSat P hP d hdB |
| 33 | rw [Relative.Coordinates.GradedHilbert.degreeQuotient_rankAtStalk] |
| 34 | let J := Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) I |
| 35 | have hsat := SaturationBaseChange.GradedHilbert.uniform_saturated_saturation_baseChange I hSat P hP p.asIdeal.ResidueField d hdB |
| 36 | have he : Hilbert.Polynomial.GradedHilbert.hilbertFunction J.toIdeal d = Hilbert.Polynomial.GradedHilbert.hilbertFunction (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation J).toIdeal d := |
| 37 | (Submodule.quotEquivOfEq _ _ hsat.symm).finrank_eq |
| 38 | rw [he] |
| 39 | have hp := (Hilbert.Truncation.GradedHilbert.hilbertParameterDegree_spec n P p.asIdeal.ResidueField (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation J) |
| 40 | (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation_isSaturated J) (hP p)).2 d hdP |
| 41 | rw [← hp] |
| 42 | simp only [Rat.num_natCast, Int.toNat_natCast] |
| 43 | |
| 44 | def uniformFlatFamilyHilbertGrassmannian (d : ℕ) (hd : uniformHilbertFamilyDegree.{u} n P ≤ d) : |
| 45 | Module.Grassmannian R (Hilbert.Polynomial.GradedHilbert.grading R n d) (P.eval (d : ℚ)).num.toNat where |
| 46 | toSubmodule := Hilbert.Polynomial.GradedHilbert.degreeRelations I.toIdeal d |
| 47 | finite_quotient := Hilbert.Polynomial.GradedHilbert.degreeQuotient_finite _ _ |
| 48 | projective_quotient := SaturatedCoordinates.GradedHilbert.uniform_saturated_coordinate_projective I hSat P hP d ((le_max_left _ _).trans hd) |
| 49 | rankAtStalk_eq := uniformHilbertFamilyDegree_rankAtStalk I hSat P hP d hd |
| 50 | |
| 51 | include hSat hP in |
| 52 | theorem uniform_saturated_coordinate_all_baseChanges |
| 53 | (S : Type u) [CommRing S] [Algebra R S] (d : ℕ) (hd : RegularCoordinateFlag.GradedHilbert.regularCoordinateFlagBound.{u} n P ≤ d) : |
| 54 | Module.Projective S (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := S) I).toIdeal d) ∧ |
| 55 | Hilbert.Polynomial.GradedHilbert.degreeRelations (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := S) I)).toIdeal d = |
| 56 | Hilbert.Polynomial.GradedHilbert.degreeRelations (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := S) I).toIdeal d := by |
| 57 | let : Module.Projective R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) := SaturatedCoordinates.GradedHilbert.uniform_saturated_coordinate_projective I hSat P hP d hd |
| 58 | exact ⟨Coordinate.FlatBaseChange.GradedHilbert.degreeQuotient_projective_baseChange I d, SaturationBaseChange.GradedHilbert.uniform_saturated_saturation_baseChange I hSat P hP S d hd⟩ |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Uniform.FamilyCoordinates.GradedHilbert |