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.NoetherianFieldPolynomial |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.CoefficientPolynomialCriterion |
| 3 | |
| 4 | /-! # Intrinsic Fiber Polynomial -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.IntrinsicFiberPolynomial.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Canonical residue polynomials of a native family over any noetherian |
| 11 | affine test imply every canonical field polynomial and the exact Presentations predicate. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] {S : Scheme.{u}} {n : ℕ} |
| 17 | variable (f : Spec (.of R) ⟶ S) |
| 18 | variable (F : Hilbert.Functor.Family (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Over.mk f)) (P : Polynomial ℚ) |
| 19 | variable (hP : ∀ p : PrimeSpectrum R, Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 20 | (Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) |
| 21 | (Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n f F))).toIdeal P) |
| 22 | include hP |
| 23 | |
| 24 | theorem noetherian_canonical_field_polynomial {K : Type u} [Field K] (φ : R →+* K) : |
| 25 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n (Spec.map (CommRingCat.ofHom φ) ≫ f) |
| 26 | (Hilbert.Functor.pullbackFamily (Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Affine.ProjectiveAmbientNaturality.GradedHilbert.affineTestMap f φ) F)).toIdeal P := by |
| 27 | let I := Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n f F |
| 28 | let : Flat (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I)) := Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal_flat n f F |
| 29 | let : Algebra R K := φ.toAlgebra |
| 30 | rw [Affine.HomogeneousCoordinateBaseChange.GradedHilbert.affineNativeHomogeneousIdeal_baseChange] |
| 31 | exact Uniform.NoetherianFieldPolynomial.GradedHilbert.uniformFamily_field_hasHilbertPolynomial I (Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal_saturated n f F) P hP K |
| 32 | |
| 33 | theorem noetherian_hasFiberHilbertPolynomial : |
| 34 | Has.Core.HasFiberHilbertPolynomial (Intrinsic.ProjectivePresentation.GradedHilbert.canonicalProjectivePresentation S n) F P := by |
| 35 | apply Affine.CoefficientPolynomialCriterion.GradedHilbert.hasFiberHilbertPolynomial_of_affine_coefficients f F P |
| 36 | intro K _ φ |
| 37 | have h := noetherian_canonical_field_polynomial f F P hP φ |
| 38 | rw [Affine.HomogeneousCoordinateBaseChange.GradedHilbert.affineNativeHomogeneousIdeal_baseChange] at h |
| 39 | exact h |
| 40 | |
| 41 | end |
| 42 | |
| 43 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Noetherian.IntrinsicFiberPolynomial.GradedHilbert |