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.Projective.FamilyCoordinateBound |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.Coordinates |
| 3 | |
| 4 | /-! # Family Coordinates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.FamilyCoordinates.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Grassmannian coordinates for actual flat projective quotients. Saturation |
| 12 | of residue-field coordinate ideals is proved unnecessary: their projective |
| 13 | saturations determine the polynomial and agree in the constructed high degrees. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {R : Type u} [CommRing R] {n : ℕ} |
| 21 | |
| 22 | theorem extendedHomogeneousIdeal_self (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) : |
| 23 | Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := R) I = I := by |
| 24 | apply HomogeneousIdeal.ext |
| 25 | change Ideal.map (MvPolynomial.map (algebraMap R R)) I.toIdeal = I.toIdeal |
| 26 | have hm : MvPolynomial.map (algebraMap R R) = RingHom.id (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n) := by |
| 27 | apply RingHom.ext |
| 28 | intro f |
| 29 | exact MvPolynomial.map_id f |
| 30 | rw [hm, Ideal.map_id] |
| 31 | |
| 32 | variable [IsNoetherianRing R] |
| 33 | variable (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) [Flat (Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I))] |
| 34 | |
| 35 | theorem coordinateBound_degreeQuotient_projective (d : ℕ) (hd : Presentations.Projective.FamilyCoordinateBound.GradedHilbert.projectiveFamilyCoordinateBound I ≤ d) : |
| 36 | Module.Projective R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) := by |
| 37 | let : Module.Projective R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := R) I).toIdeal d) := |
| 38 | (Presentations.Projective.FamilyCoordinateBound.GradedHilbert.projectiveFamilyCoordinateBound_spec I R d hd).1 |
| 39 | exact Module.Projective.of_equiv (Submodule.quotEquivOfEq _ _ |
| 40 | (congrArg (fun J : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n) => Hilbert.Polynomial.GradedHilbert.degreeRelations J.toIdeal d) |
| 41 | (extendedHomogeneousIdeal_self I))) |
| 42 | |
| 43 | def flatFamilyHilbertDegree (P : Polynomial ℚ) : ℕ := |
| 44 | max (Presentations.Projective.FamilyCoordinateBound.GradedHilbert.projectiveFamilyCoordinateBound I) (Hilbert.Truncation.GradedHilbert.hilbertParameterDegree.{u} n P) |
| 45 | |
| 46 | theorem flatFamilyHilbertDegree_rankAtStalk (P : Polynomial ℚ) |
| 47 | (hP : ∀ p : PrimeSpectrum R, |
| 48 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 49 | (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) I)).toIdeal P) |
| 50 | (d : ℕ) (hd : flatFamilyHilbertDegree I P ≤ d) (p : PrimeSpectrum R) : |
| 51 | Module.rankAtStalk (R := R) (Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) p = (P.eval (d : ℚ)).num.toNat := by |
| 52 | have hdB : Presentations.Projective.FamilyCoordinateBound.GradedHilbert.projectiveFamilyCoordinateBound I ≤ d := (le_max_left _ _).trans hd |
| 53 | have hdP : Hilbert.Truncation.GradedHilbert.hilbertParameterDegree.{u} n P ≤ d := (le_max_right _ _).trans hd |
| 54 | let : Module.Projective R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) := coordinateBound_degreeQuotient_projective I d hdB |
| 55 | rw [Relative.Coordinates.GradedHilbert.degreeQuotient_rankAtStalk] |
| 56 | let J := Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) I |
| 57 | have hsat := (Presentations.Projective.FamilyCoordinateBound.GradedHilbert.projectiveFamilyCoordinateBound_spec I p.asIdeal.ResidueField d hdB).2 |
| 58 | have he : Hilbert.Polynomial.GradedHilbert.hilbertFunction J.toIdeal d = Hilbert.Polynomial.GradedHilbert.hilbertFunction (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation J).toIdeal d := |
| 59 | (Submodule.quotEquivOfEq _ _ hsat.symm).finrank_eq |
| 60 | rw [he] |
| 61 | have hp := (Hilbert.Truncation.GradedHilbert.hilbertParameterDegree_spec n P p.asIdeal.ResidueField (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation J) |
| 62 | (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation_isSaturated J) (hP p)).2 d hdP |
| 63 | rw [← hp] |
| 64 | simp only [Rat.num_natCast, Int.toNat_natCast] |
| 65 | |
| 66 | def flatFamilyHilbertGrassmannian (P : Polynomial ℚ) |
| 67 | (hP : ∀ p : PrimeSpectrum R, |
| 68 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 69 | (Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) I)).toIdeal P) |
| 70 | (d : ℕ) (hd : flatFamilyHilbertDegree I P ≤ d) : |
| 71 | Module.Grassmannian R (Hilbert.Polynomial.GradedHilbert.grading R n d) (P.eval (d : ℚ)).num.toNat where |
| 72 | toSubmodule := Hilbert.Polynomial.GradedHilbert.degreeRelations I.toIdeal d |
| 73 | finite_quotient := Hilbert.Polynomial.GradedHilbert.degreeQuotient_finite _ _ |
| 74 | projective_quotient := coordinateBound_degreeQuotient_projective I d ((le_max_left _ _).trans hd) |
| 75 | rankAtStalk_eq := flatFamilyHilbertDegree_rankAtStalk I P hP d hd |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.FamilyCoordinates.GradedHilbert |