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.DenseCoefficientRanks |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Noetherian.FiberFunction |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Saturation.Polynomial |
| 4 | import Mathlib.Topology.Instances.Rat |
| 5 | |
| 6 | /-! # Dense Polynomial Descent -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DensePolynomialDescent |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A flat projective family over a noetherian ring inherits its Hilbert polynomial from any injective coefficient extension. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry |
| 15 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Saturation.Polynomial.GradedHilbert |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | theorem noetherianFlat_hilbertPolynomial_dense_descent |
| 20 | {C A : Type u} [CommRing C] [IsNoetherianRing C] [CommRing A] [Algebra C A] |
| 21 | (hinj : Function.Injective (algebraMap C A)) |
| 22 | {n : ℕ} (I : HomogeneousIdeal (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.grading C n)) |
| 23 | [Flat (HilbertScheme.Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (HilbertScheme.Presentations.Graded.Quotient.GradedHilbert.quotientGrading I))] |
| 24 | (P : Polynomial ℚ) |
| 25 | (hP : ∀ q : PrimeSpectrum A, HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 26 | (HilbertScheme.Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation (HilbertScheme.Presentations.Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := q.asIdeal.ResidueField) |
| 27 | (HilbertScheme.Presentations.Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := A) I))).toIdeal P) |
| 28 | (p : PrimeSpectrum C) : HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 29 | (HilbertScheme.Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation (HilbertScheme.Presentations.Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) I)).toIdeal P := by |
| 30 | apply (HilbertScheme.Presentations.Saturation.Polynomial.GradedHilbert.projectiveSaturation_hasHilbertPolynomial_iff _ P).mpr |
| 31 | refine ⟨HilbertScheme.Presentations.Flat.FamilyCoordinates.GradedHilbert.flatFamilyHilbertDegree I P, fun d hd => ?_⟩ |
| 32 | have hdB : HilbertScheme.Presentations.Projective.FamilyCoordinateBound.GradedHilbert.projectiveFamilyCoordinateBound I ≤ d := (le_max_left _ _).trans hd |
| 33 | have : Module.Projective C (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) := HilbertScheme.Presentations.Flat.FamilyCoordinates.GradedHilbert.coordinateBound_degreeQuotient_projective I d hdB |
| 34 | have : Module.FinitePresentation C (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) := |
| 35 | Module.finitePresentation_of_finite C (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) |
| 36 | have h := DenseCoefficientRanks.finiteFlat_rankAtStalk_dense_value (algebraMap C A) hinj |
| 37 | (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) (P.eval (d : ℚ)) (fun k : ℕ => (k : ℚ)) |
| 38 | (fun q => Noetherian.FiberFunction.coefficientFiber_rank_eq_polynomial I P q (hP q) d hd) p |
| 39 | rw [HilbertScheme.Presentations.Relative.Coordinates.GradedHilbert.degreeQuotient_rankAtStalk] at h |
| 40 | exact h |
| 41 | |
| 42 | end |
| 43 | |
| 44 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DensePolynomialDescent |