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.Flat.ProjectiveCoordinatePieces |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.QuotientFreeBaseChange |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Saturation.Polynomial |
| 4 | import Mathlib.RingTheory.Flat.LocallyFree |
| 5 | |
| 6 | /-! # Flat Polynomial Constancy -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Local.FlatPolynomialConstancy.GradedHilbert |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Flat projective families over Noetherian local rings have the same |
| 13 | eventual Hilbert function after every nonzero coefficient extension. -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u v |
| 18 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] [IsLocalRing R] {n : ℕ} |
| 19 | variable (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading R n)) [Flat (Projective.Flatness.GradedHilbert.projectiveStructureMap (Graded.Quotient.GradedHilbert.quotientGrading I))] |
| 20 | |
| 21 | theorem localFlat_eventual_hilbertFunction_baseChange |
| 22 | (A : Type v) [CommRing A] [Nontrivial A] [Algebra R A] : |
| 23 | ∃ N : ℕ, ∀ d ≥ N, |
| 24 | Hilbert.Polynomial.GradedHilbert.hilbertFunction (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := A) I).toIdeal d = Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal d := by |
| 25 | obtain ⟨N, hN⟩ := Presentations.Flat.ProjectiveCoordinatePieces.GradedHilbert.eventual_coordinatePieces_flat_of_projective_flat I |
| 26 | refine ⟨N, fun d hd => ?_⟩ |
| 27 | let : Module.Flat R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) := hN d hd |
| 28 | let : Module.Free R (Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d) := Module.free_of_flat_of_isLocalRing |
| 29 | exact QuotientFreeBaseChange.GradedHilbert.degreeQuotient_finrank_baseChange_of_free_ring I d |
| 30 | |
| 31 | theorem localFlat_hilbertPolynomial_baseChange_iff |
| 32 | (A : Type v) [CommRing A] [Nontrivial A] [Algebra R A] (P : Polynomial ℚ) : |
| 33 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := A) I).toIdeal P ↔ |
| 34 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P := by |
| 35 | obtain ⟨N, hN⟩ := localFlat_eventual_hilbertFunction_baseChange I A |
| 36 | constructor |
| 37 | · rintro ⟨D, hD⟩ |
| 38 | refine ⟨max N D, fun d hd => ?_⟩ |
| 39 | rw [← hN d ((le_max_left _ _).trans hd)] |
| 40 | exact hD d ((le_max_right _ _).trans hd) |
| 41 | · rintro ⟨D, hD⟩ |
| 42 | refine ⟨max N D, fun d hd => ?_⟩ |
| 43 | rw [hN d ((le_max_left _ _).trans hd)] |
| 44 | exact hD d ((le_max_right _ _).trans hd) |
| 45 | |
| 46 | theorem localFlat_saturated_fiber_polynomial_iff |
| 47 | (K : Type u) [Field K] [Algebra R K] (P : Polynomial ℚ) : |
| 48 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Projective.Saturation.GradedHilbert.projectiveSaturation (Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := K) I)).toIdeal P ↔ |
| 49 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P := |
| 50 | (Saturation.Polynomial.GradedHilbert.projectiveSaturation_hasHilbertPolynomial_iff _ P).trans |
| 51 | (localFlat_hilbertPolynomial_baseChange_iff I K P) |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Local.FlatPolynomialConstancy.GradedHilbert |