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.ValuationClosureFlatness |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.ContractedIdealLocalization |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Saturation.Polynomial |
| 4 | import Mathlib.LinearAlgebra.Dimension.Constructions |
| 5 | |
| 6 | /-! # Valuation Closure Function -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ValuationClosureFunction.GradedHilbert |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! All field fibers of a valuation-ring closure have exactly the same |
| 13 | Hilbert function as its original fraction-field fiber. -/ |
| 14 | |
| 15 | open scoped nonZeroDivisors |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | theorem degreeQuotient_finrank_baseChange_of_free |
| 20 | {R : Type u} [CommRing R] {L : Type v} [Field L] [Algebra R L] {n : ℕ} |
| 21 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) (d : ℕ) [Module.Free R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d)] : |
| 22 | Hilbert.Polynomial.GradedHilbert.hilbertFunction (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := L) I).toIdeal d = Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal d := by |
| 23 | let : Nontrivial R := (algebraMap R L).domain_nontrivial |
| 24 | change Module.finrank L (Hilbert.Polynomial.GradedHilbert.DegreeQuotient (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := L) I).toIdeal d) = _ |
| 25 | rw [← (Graded.BaseChange.GradedHilbert.degreeQuotientBaseChangeEquiv (S := L) I d).finrank_eq] |
| 26 | exact Module.finrank_baseChange |
| 27 | |
| 28 | variable {R K : Type u} [CommRing R] [IsDomain R] [ValuationRing R] |
| 29 | variable [Field K] [Algebra R K] [IsFractionRing R K] {n : ℕ} |
| 30 | variable (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) |
| 31 | |
| 32 | theorem valuationClosure_hilbertFunction_baseChange |
| 33 | (L : Type v) [Field L] [Algebra R L] (d : ℕ) : |
| 34 | Hilbert.Polynomial.GradedHilbert.hilbertFunction (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := L) |
| 35 | (ContractedHomogeneousQuotient.GradedHilbert.contractedHomogeneousIdeal (R := R) I)).toIdeal d = Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal d := by |
| 36 | let := ValuationClosureFlatness.GradedHilbert.valuationClosure_degree_free (R := R) I d |
| 37 | have hK := degreeQuotient_finrank_baseChange_of_free (L := K) (ContractedHomogeneousQuotient.GradedHilbert.contractedHomogeneousIdeal (R := R) I) d |
| 38 | rw [ContractedIdealLocalization.GradedHilbert.contractedHomogeneousIdeal_localization R⁰ I] at hK |
| 39 | exact (degreeQuotient_finrank_baseChange_of_free (L := L) (ContractedHomogeneousQuotient.GradedHilbert.contractedHomogeneousIdeal (R := R) I) d).trans hK.symm |
| 40 | |
| 41 | theorem valuationClosure_hasHilbertPolynomial_baseChange |
| 42 | (P : Polynomial ℚ) (hP : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P) |
| 43 | (L : Type v) [Field L] [Algebra R L] : |
| 44 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := L) |
| 45 | (ContractedHomogeneousQuotient.GradedHilbert.contractedHomogeneousIdeal (R := R) I)).toIdeal P := by |
| 46 | obtain ⟨N, hN⟩ := hP |
| 47 | refine ⟨N, fun d hd => ?_⟩ |
| 48 | rw [valuationClosure_hilbertFunction_baseChange I L d] |
| 49 | exact hN d hd |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ValuationClosureFunction.GradedHilbert |