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.PELModuli.IntegralModel.UniformFiberHilbertFunction |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.ProjectiveCoordinatePieces |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.Coordinates |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Saturation.Polynomial |
| 5 | import Mathlib.RingTheory.Spectrum.Prime.FreeLocus |
| 6 | |
| 7 | /-! # Flat Hilbert Polynomial Locus -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.FlatHilbertPolynomialLocus.PolarizationEmbedding |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The locus of each actual residue-fiber Hilbert polynomial is open |
| 14 | and closed in a flat noetherian projective family. -/ |
| 15 | |
| 16 | open _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] {n : ℕ} |
| 20 | (I : HomogeneousIdeal (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.grading R n)) |
| 21 | [Flat (HilbertScheme.Presentations.Projective.Flatness.GradedHilbert.projectiveStructureMap (HilbertScheme.Presentations.Graded.Quotient.GradedHilbert.quotientGrading I))] |
| 22 | |
| 23 | theorem isClopen_residue_hilbertPolynomial (P : Polynomial ℚ) : |
| 24 | IsClopen {p : PrimeSpectrum R | HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 25 | (HilbertScheme.Presentations.Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) I).toIdeal P} := by |
| 26 | classical |
| 27 | obtain ⟨b, hb⟩ := UniformFiberHilbertFunction.PolarizationEmbedding.exists_uniform_field_specialization_hilbertFunction.{u, u} I |
| 28 | obtain ⟨c, hc⟩ := HilbertScheme.Presentations.Flat.ProjectiveCoordinatePieces.GradedHilbert.eventual_coordinatePieces_flat_of_projective_flat I |
| 29 | let a := max b c |
| 30 | have hflat (i : Fin (n + 1)) : Module.Flat R (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal (a + i.val)) := |
| 31 | hc _ ((le_max_right b c).trans (Nat.le_add_right _ _)) |
| 32 | have heq : {p : PrimeSpectrum R | HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 33 | (HilbertScheme.Presentations.Graded.BaseChange.GradedHilbert.extendedHomogeneousIdeal (S := p.asIdeal.ResidueField) I).toIdeal P} = |
| 34 | {p : PrimeSpectrum R | P.natDegree ≤ n ∧ ∀ i : Fin (n + 1), |
| 35 | (Module.rankAtStalk (R := R) (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal (a + i.val)) p : ℚ) = |
| 36 | P.eval ((a + i.val : ℕ) : ℚ)} := by |
| 37 | ext p |
| 38 | have h := UniformFiberHilbertFunction.PolarizationEmbedding.hilbertPolynomial_iff_uniform_values I hb (algebraMap R p.asIdeal.ResidueField) |
| 39 | P a (le_max_left b c) |
| 40 | change HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (I.map (HilbertScheme.Presentations.Graded.BaseChange.GradedHilbert.gradedCoefficientMap (algebraMap R p.asIdeal.ResidueField))).toIdeal P ↔ _ |
| 41 | rw [h] |
| 42 | apply and_congr_right |
| 43 | intro _ |
| 44 | apply forall_congr' |
| 45 | intro i |
| 46 | let := hflat i |
| 47 | rw [HilbertScheme.Presentations.Relative.Coordinates.GradedHilbert.degreeQuotient_rankAtStalk] |
| 48 | rfl |
| 49 | rw [heq] |
| 50 | by_cases hdeg : P.natDegree ≤ n |
| 51 | · have hsets : {p : PrimeSpectrum R | P.natDegree ≤ n ∧ ∀ i : Fin (n + 1), |
| 52 | (Module.rankAtStalk (R := R) (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal (a + i.val)) p : ℚ) = |
| 53 | P.eval ((a + i.val : ℕ) : ℚ)} = |
| 54 | ⋂ i : Fin (n + 1), {p : PrimeSpectrum R | |
| 55 | (Module.rankAtStalk (R := R) (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal (a + i.val)) p : ℚ) = |
| 56 | P.eval ((a + i.val : ℕ) : ℚ)} := by |
| 57 | ext p |
| 58 | simp only [Set.mem_ofPred_eq, hdeg, true_and, Set.mem_iInter] |
| 59 | rw [hsets] |
| 60 | apply isClopen_iInter_of_finite |
| 61 | intro i |
| 62 | let := hflat i |
| 63 | let : Module.FinitePresentation R (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal (a + i.val)) := |
| 64 | Module.finitePresentation_of_finite R _ |
| 65 | exact (Module.isLocallyConstant_rankAtStalk |
| 66 | (R := R) (M := HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal (a + i.val))).comp |
| 67 | (fun r : ℕ => (r : ℚ)) |>.isClopen_fiber _ |
| 68 | · simpa only [hdeg, false_and, Set.ofPred_false] using |
| 69 | (isClopen_empty : IsClopen (∅ : Set (PrimeSpectrum R))) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.FlatHilbertPolynomialLocus.PolarizationEmbedding |