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