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.ValuationClosureGeneration |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Grassmannian.LinearTransport |
| 3 | |
| 4 | /-! # Valuation Grassmannian -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ValuationGrassmannian.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Uniform Grassmannian coordinates for valuation closures, with ranks |
| 11 | computed from the actual Hilbert polynomial of the generic ideal. -/ |
| 12 | |
| 13 | universe u |
| 14 | variable {R K : Type u} [CommRing R] [IsDomain R] [ValuationRing R] |
| 15 | variable [Field K] [Algebra R K] [IsFractionRing R K] {n : ℕ} |
| 16 | variable (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) (hI : Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal) |
| 17 | variable (P : Polynomial ℚ) (hP : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P) |
| 18 | |
| 19 | include hI hP in |
| 20 | theorem valuationClosure_rankAtStalk (d : ℕ) (hd : Hilbert.Truncation.GradedHilbert.hilbertParameterDegree.{u} n P ≤ d) (p : PrimeSpectrum R) : |
| 21 | Module.rankAtStalk (R := R) (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (ContractedHomogeneousQuotient.GradedHilbert.contractedHomogeneousIdeal (R := R) I).toIdeal d) p = |
| 22 | (P.eval (d : ℚ)).num.toNat := by |
| 23 | let := ValuationClosureFlatness.GradedHilbert.valuationClosure_degree_free (R := R) I d |
| 24 | rw [Module.rankAtStalk_eq_finrank_of_free] |
| 25 | have hK := ValuationClosureFunction.GradedHilbert.degreeQuotient_finrank_baseChange_of_free (L := K) (ContractedHomogeneousQuotient.GradedHilbert.contractedHomogeneousIdeal (R := R) I) d |
| 26 | rw [ContractedIdealLocalization.GradedHilbert.contractedHomogeneousIdeal_localization (nonZeroDivisors R) I] at hK |
| 27 | change Hilbert.Polynomial.GradedHilbert.hilbertFunction (ContractedHomogeneousQuotient.GradedHilbert.contractedHomogeneousIdeal (R := R) I).toIdeal d = _ |
| 28 | rw [← hK] |
| 29 | have h := (Hilbert.Truncation.GradedHilbert.hilbertParameterDegree_spec n P K I hI hP).2 d hd |
| 30 | rw [← h] |
| 31 | simp only [Rat.num_natCast, Int.toNat_natCast] |
| 32 | |
| 33 | def valuationHilbertGrassmannian (d : ℕ) (hd : Hilbert.Truncation.GradedHilbert.hilbertParameterDegree.{u} n P ≤ d) : |
| 34 | Module.Grassmannian R (Hilbert.Polynomial.GradedHilbert.grading R n d) (P.eval (d : ℚ)).num.toNat where |
| 35 | toSubmodule := Hilbert.Polynomial.GradedHilbert.degreeRelations (ContractedHomogeneousQuotient.GradedHilbert.contractedHomogeneousIdeal (R := R) I).toIdeal d |
| 36 | finite_quotient := inferInstance |
| 37 | projective_quotient := by |
| 38 | let := ValuationClosureFlatness.GradedHilbert.valuationClosure_degree_free (R := R) I d |
| 39 | infer_instance |
| 40 | rankAtStalk_eq := valuationClosure_rankAtStalk I hI P hP d hd |
| 41 | |
| 42 | end |
| 43 | |
| 44 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ValuationGrassmannian.GradedHilbert |