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.Intrinsic.ValuationExtension |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Affine.CoefficientPolynomialCriterion |
| 3 | |
| 4 | /-! # Valuation Polynomial Family -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Intrinsic.ValuationPolynomialFamily.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The valuation closure of a saturated generic ideal has the exact |
| 11 | native fiber Hilbert polynomial, on every field-valued test point. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open scoped nonZeroDivisors |
| 15 | |
| 16 | universe u |
| 17 | variable {S : Scheme.{u}} {R K : Type u} [CommRing R] [IsDomain R] [ValuationRing R] |
| 18 | variable [Field K] [Algebra R K] [IsFractionRing R K] {n : ℕ} |
| 19 | variable (a : Spec (CommRingCat.of R) ⟶ S) |
| 20 | variable (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) (hI : Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal) |
| 21 | |
| 22 | def nativeValuationFamilyOfIdeal : Hilbert.Functor.Family (PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Over.mk a) := by |
| 23 | let J := ContractedHomogeneousQuotient.GradedHilbert.contractedHomogeneousIdeal (R := R) I |
| 24 | let : Flat (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading J)) := ValuationClosureFlatness.GradedHilbert.valuationClosure_projective_flat I |
| 25 | let : LocallyOfFinitePresentation (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading J)) := |
| 26 | ValuationClosureFinitePresentation.GradedHilbert.valuationClosure_locallyOfFinitePresentation I hI |
| 27 | exact HomogeneousFamilyConstruction.GradedHilbert.nativeFamilyOfHomogeneousIdeal n a J |
| 28 | |
| 29 | theorem nativeValuationFamilyOfIdeal_coordinates : |
| 30 | Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n a (nativeValuationFamilyOfIdeal a I hI) = |
| 31 | ContractedHomogeneousQuotient.GradedHilbert.contractedHomogeneousIdeal (R := R) I := by |
| 32 | rw [nativeValuationFamilyOfIdeal, HomogeneousFamilyConstruction.GradedHilbert.nativeFamilyOfHomogeneousIdeal_coordinates] |
| 33 | exact Projective.Saturation.GradedHilbert.projectiveSaturation_eq_of_saturated _ (ContractedIdealSaturation.GradedHilbert.contractedHomogeneousIdeal_saturated I hI) |
| 34 | |
| 35 | theorem nativeValuationFamilyOfIdeal_hasFiberHilbertPolynomial |
| 36 | (P : Polynomial ℚ) (hP : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P) : |
| 37 | Has.Core.HasFiberHilbertPolynomial (ProjectivePresentation.GradedHilbert.canonicalProjectivePresentation S n) |
| 38 | (nativeValuationFamilyOfIdeal a I hI) P := by |
| 39 | apply Affine.CoefficientPolynomialCriterion.GradedHilbert.hasFiberHilbertPolynomial_of_affine_coefficients a _ P |
| 40 | intro L _ φ |
| 41 | rw [nativeValuationFamilyOfIdeal_coordinates] |
| 42 | let : Algebra R L := φ.toAlgebra |
| 43 | change Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := L) |
| 44 | (ContractedHomogeneousQuotient.GradedHilbert.contractedHomogeneousIdeal (R := R) I))).toIdeal P |
| 45 | apply (Saturation.Polynomial.GradedHilbert.projectiveSaturation_hasHilbertPolynomial_iff _ P).mpr |
| 46 | exact ValuationClosureFunction.GradedHilbert.valuationClosure_hasHilbertPolynomial_baseChange I P hP L |
| 47 | |
| 48 | theorem nativeValuationFamilyOfIdeal_generic_coordinates : |
| 49 | Affine.IntrinsicHomogeneousCoordinates.GradedHilbert.affineNativeHomogeneousIdeal n (Spec.map (CommRingCat.ofHom (algebraMap R K)) ≫ a) |
| 50 | (Hilbert.Functor.pullbackFamily (PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) (Affine.ProjectiveAmbientNaturality.GradedHilbert.affineTestMap a (algebraMap R K)) |
| 51 | (nativeValuationFamilyOfIdeal a I hI)) = I := by |
| 52 | rw [Affine.HomogeneousCoordinateBaseChange.GradedHilbert.affineNativeHomogeneousIdeal_baseChange, nativeValuationFamilyOfIdeal_coordinates] |
| 53 | change Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := K) (ContractedHomogeneousQuotient.GradedHilbert.contractedHomogeneousIdeal (R := R) I)) = I |
| 54 | rw [ContractedIdealLocalization.GradedHilbert.contractedHomogeneousIdeal_localization R⁰ I, Projective.Saturation.GradedHilbert.projectiveSaturation_eq_of_saturated I hI] |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Intrinsic.ValuationPolynomialFamily.GradedHilbert |