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.Uniform.Function |
| 2 | import Mathlib.RingTheory.Grassmannian |
| 3 | |
| 4 | /-! # Truncation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.Truncation.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | A single sufficiently high homogeneous degree determines a saturated |
| 12 | ideal with fixed Hilbert polynomial. This gives the finite-dimensional |
| 13 | Grassmannian coordinates of Hilbert points over every coefficient field. |
| 14 | The relative scheme construction requires, in addition, compatibility of |
| 15 | these quotients with flat families and base change. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.MvPolynomial |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | theorem ideal_le_of_degreeRelations_le {R : Type u} [CommRing R] {n : ℕ} |
| 23 | (I J : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n)) (N : ℕ) |
| 24 | (B : Finset (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n)) (hB : I = Ideal.span (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n))) |
| 25 | (hdeg : ∀ b ∈ B, ∃ d ≤ N, b.IsHomogeneous d) (hJ : Hilbert.Polynomial.GradedHilbert.IsSaturated J) |
| 26 | (hle : Hilbert.Polynomial.GradedHilbert.degreeRelations I N ≤ Hilbert.Polynomial.GradedHilbert.degreeRelations J N) : I ≤ J := by |
| 27 | rw [hB] |
| 28 | apply Ideal.span_le.mpr |
| 29 | intro b hb |
| 30 | obtain ⟨d, hd, hbd⟩ := hdeg b hb |
| 31 | apply hJ b d hbd |
| 32 | refine ⟨N - d, fun g hg => ?_⟩ |
| 33 | have hgb : g * b ∈ Hilbert.Polynomial.GradedHilbert.grading R n N := by |
| 34 | change (g * b).IsHomogeneous N |
| 35 | have h := hg.mul hbd |
| 36 | simpa only [Nat.sub_add_cancel hd] using h |
| 37 | have hbI : b ∈ I := by rw [hB]; exact Ideal.subset_span hb |
| 38 | have hm : (⟨g * b, hgb⟩ : Hilbert.Polynomial.GradedHilbert.grading R n N) ∈ Hilbert.Polynomial.GradedHilbert.degreeRelations I N := I.mul_mem_left g hbI |
| 39 | exact hle hm |
| 40 | |
| 41 | theorem exists_uniform_hilbert_data_degree (n : ℕ) (P : Polynomial ℚ) : |
| 42 | ∃ N : ℕ, ∀ (K : Type u) [Field K] (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)), |
| 43 | Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal → Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P → |
| 44 | (∃ B : Finset (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n), I.toIdeal = Ideal.span (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) ∧ |
| 45 | ∀ b ∈ B, b ≠ 0 ∧ ∃ d ≤ N, b.IsHomogeneous d) ∧ |
| 46 | ∀ d ≥ N, (Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal d : ℚ) = P.eval (d : ℚ) := by |
| 47 | obtain ⟨a, ha⟩ := Uniform.Bound.GradedHilbert.exists_uniform_homogeneous_degree_bound.{u} n P |
| 48 | obtain ⟨b, hb⟩ := Uniform.Function.GradedHilbert.exists_uniform_hilbertFunction_bound.{u} n P |
| 49 | refine ⟨max a b, fun K _ I hSat hP => ⟨?_, ?_⟩⟩ |
| 50 | · obtain ⟨B, hB, hhom⟩ := ha K I hSat hP |
| 51 | refine ⟨B, hB, fun f hf => ?_⟩ |
| 52 | obtain ⟨hf0, d, hd, hfd⟩ := hhom f hf |
| 53 | exact ⟨hf0, d, hd.trans (le_max_left a b), hfd⟩ |
| 54 | · intro d hd |
| 55 | exact hb K I hSat hP d ((le_max_right a b).trans hd) |
| 56 | |
| 57 | def hilbertParameterDegree (n : ℕ) (P : Polynomial ℚ) : ℕ := |
| 58 | (exists_uniform_hilbert_data_degree.{u} n P).choose |
| 59 | |
| 60 | theorem hilbertParameterDegree_spec (n : ℕ) (P : Polynomial ℚ) |
| 61 | (K : Type u) [Field K] (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) |
| 62 | (hSat : Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal) (hP : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P) : |
| 63 | (∃ B : Finset (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n), I.toIdeal = Ideal.span (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) ∧ |
| 64 | ∀ b ∈ B, b ≠ 0 ∧ ∃ d ≤ hilbertParameterDegree.{u} n P, b.IsHomogeneous d) ∧ |
| 65 | ∀ d ≥ hilbertParameterDegree.{u} n P, (Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal d : ℚ) = P.eval (d : ℚ) := |
| 66 | (exists_uniform_hilbert_data_degree.{u} n P).choose_spec K I hSat hP |
| 67 | |
| 68 | def SaturatedHilbertIdeals (K : Type u) [Field K] (n : ℕ) (P : Polynomial ℚ) := |
| 69 | {I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n) // Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal ∧ Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P} |
| 70 | |
| 71 | theorem hilbert_degreeRelations_injective (K : Type u) [Field K] (n : ℕ) (P : Polynomial ℚ) |
| 72 | (N : ℕ) (hN : hilbertParameterDegree.{u} n P ≤ N) : |
| 73 | Function.Injective (fun I : SaturatedHilbertIdeals K n P => Hilbert.Polynomial.GradedHilbert.degreeRelations I.val.toIdeal N) := by |
| 74 | intro I J h |
| 75 | apply Subtype.ext |
| 76 | apply HomogeneousIdeal.ext |
| 77 | apply le_antisymm |
| 78 | · obtain ⟨B, hB, hhom⟩ := (hilbertParameterDegree_spec n P K I.val I.property.1 I.property.2).1 |
| 79 | apply ideal_le_of_degreeRelations_le I.val.toIdeal J.val.toIdeal N B hB _ J.property.1 h.le |
| 80 | intro f hf |
| 81 | obtain ⟨_, d, hd, hfd⟩ := hhom f hf |
| 82 | exact ⟨d, hd.trans hN, hfd⟩ |
| 83 | · obtain ⟨B, hB, hhom⟩ := (hilbertParameterDegree_spec n P K J.val J.property.1 J.property.2).1 |
| 84 | apply ideal_le_of_degreeRelations_le J.val.toIdeal I.val.toIdeal N B hB _ I.property.1 h.ge |
| 85 | intro f hf |
| 86 | obtain ⟨_, d, hd, hfd⟩ := hhom f hf |
| 87 | exact ⟨d, hd.trans hN, hfd⟩ |
| 88 | |
| 89 | def fieldHilbertGrassmannian (K : Type u) [Field K] (n : ℕ) (P : Polynomial ℚ) |
| 90 | (I : SaturatedHilbertIdeals K n P) : |
| 91 | Module.Grassmannian K (Hilbert.Polynomial.GradedHilbert.grading K n (hilbertParameterDegree.{u} n P)) |
| 92 | (P.eval (hilbertParameterDegree.{u} n P : ℚ)).num.toNat where |
| 93 | toSubmodule := Hilbert.Polynomial.GradedHilbert.degreeRelations I.val.toIdeal (hilbertParameterDegree.{u} n P) |
| 94 | finite_quotient := Hilbert.Polynomial.GradedHilbert.degreeQuotient_finite _ _ |
| 95 | projective_quotient := inferInstance |
| 96 | rankAtStalk_eq p := by |
| 97 | rw [Module.rankAtStalk_eq_finrank_of_free] |
| 98 | have h := (hilbertParameterDegree_spec n P K I.val I.property.1 I.property.2).2 |
| 99 | (hilbertParameterDegree.{u} n P) le_rfl |
| 100 | rw [← h] |
| 101 | simp only [Rat.num_natCast, Int.toNat_natCast] |
| 102 | rfl |
| 103 | |
| 104 | /-- The finite-degree Grassmannian coordinates distinguish all Hilbert |
| 105 | points over every field. This is an injection on field-valued points. -/ |
| 106 | theorem fieldHilbertGrassmannian_injective (K : Type u) [Field K] (n : ℕ) (P : Polynomial ℚ) : |
| 107 | Function.Injective (fieldHilbertGrassmannian K n P) := by |
| 108 | intro I J h |
| 109 | apply hilbert_degreeRelations_injective K n P (hilbertParameterDegree.{u} n P) le_rfl |
| 110 | exact congrArg Module.Grassmannian.toSubmodule h |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.Truncation.GradedHilbert |