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.SaturatedMonomialIdeals |
| 2 | import Mathlib.RingTheory.MvPolynomial.Groebner |
| 3 | import Mathlib.LinearAlgebra.Projection |
| 4 | |
| 5 | /-! # Initial Ideal -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.InitialIdeal.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | Initial ideals and graded quotient dimensions. Division is applied to |
| 13 | the actual nonzero elements of an ideal. Taking homogeneous components |
| 14 | then gives degree-preserving remainder representatives. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.MvPolynomial _root_.Module |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {K : Type u} [Field K] {n : ℕ} |
| 22 | |
| 23 | def initialIdeal (m : MonomialOrder (Fin (n + 1))) |
| 24 | (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) := |
| 25 | Ideal.span ((fun a => monomial a (1 : K)) '' |
| 26 | (m.degree '' {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n | f ∈ I ∧ f ≠ 0})) |
| 27 | |
| 28 | theorem initialIdeal_isMonomial (m : MonomialOrder (Fin (n + 1))) |
| 29 | (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) : SaturatedMonomialIdeals.GradedHilbert.IsMonomial (initialIdeal m I) := ⟨_, rfl⟩ |
| 30 | |
| 31 | theorem monomial_mem_initialIdeal_iff (m : MonomialOrder (Fin (n + 1))) |
| 32 | (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (a : Fin (n + 1) →₀ ℕ) : |
| 33 | monomial a (1 : K) ∈ initialIdeal m I ↔ |
| 34 | ∃ f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n, f ∈ I ∧ f ≠ 0 ∧ m.degree f ≤ a := by |
| 35 | classical |
| 36 | simp only [initialIdeal, mem_ideal_span_monomial_image, support_monomial, |
| 37 | one_ne_zero, ↓reduceIte, Finset.mem_singleton, forall_eq, Set.mem_image, |
| 38 | Set.mem_ofPred_eq] |
| 39 | constructor |
| 40 | · rintro ⟨b, ⟨f, hf, rfl⟩, hba⟩ |
| 41 | exact ⟨f, hf.1, hf.2, hba⟩ |
| 42 | · rintro ⟨f, hf, hf0, hfa⟩ |
| 43 | exact ⟨m.degree f, ⟨f, ⟨hf, hf0⟩, rfl⟩, hfa⟩ |
| 44 | |
| 45 | theorem leading_monomial_mem_initialIdeal (m : MonomialOrder (Fin (n + 1))) |
| 46 | {I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)} {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n} (hf : f ∈ I) (hf0 : f ≠ 0) : |
| 47 | monomial (m.degree f) (1 : K) ∈ initialIdeal m I := |
| 48 | (monomial_mem_initialIdeal_iff m I _).mpr ⟨f, hf, hf0, le_rfl⟩ |
| 49 | |
| 50 | def standardSpace (m : MonomialOrder (Fin (n + 1))) |
| 51 | (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) : Submodule K (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) := |
| 52 | restrictSupport K {a | monomial a (1 : K) ∉ initialIdeal m I} |
| 53 | |
| 54 | theorem standardSpace_disjoint (m : MonomialOrder (Fin (n + 1))) |
| 55 | (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) : Disjoint (I.restrictScalars K) (standardSpace m I) := by |
| 56 | apply Submodule.disjoint_def.mpr |
| 57 | intro f hf hs |
| 58 | by_contra hf0 |
| 59 | exact hs (m.degree_mem_support hf0) (leading_monomial_mem_initialIdeal m hf hf0) |
| 60 | |
| 61 | theorem exists_standard_remainder (m : MonomialOrder (Fin (n + 1))) |
| 62 | (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) : |
| 63 | ∃ r : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n, r ∈ standardSpace m I ∧ f - r ∈ I := by |
| 64 | classical |
| 65 | let B := {b : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n | b ∈ I ∧ b ≠ 0} |
| 66 | obtain ⟨g, r, hfr, _, hr⟩ := m.div_set (B := B) |
| 67 | (fun b hb => m.isUnit_leadingCoeff.mpr hb.2) f |
| 68 | refine ⟨r, ?_, ?_⟩ |
| 69 | · intro a ha hma |
| 70 | obtain ⟨b, hb, hb0, hba⟩ := (monomial_mem_initialIdeal_iff m I a).mp hma |
| 71 | exact hr a ha b ⟨hb, hb0⟩ hba |
| 72 | · rw [hfr, add_sub_cancel_right] |
| 73 | rw [Finsupp.linearCombination_apply, Finsupp.sum] |
| 74 | exact I.sum_mem fun b _ => I.mul_mem_left (g b) b.property.1 |
| 75 | |
| 76 | theorem initialIdeal_eq_self_of_isMonomial (m : MonomialOrder (Fin (n + 1))) |
| 77 | {I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)} (hI : SaturatedMonomialIdeals.GradedHilbert.IsMonomial I) : initialIdeal m I = I := by |
| 78 | classical |
| 79 | apply le_antisymm |
| 80 | · apply (initialIdeal_isMonomial m I).le_of_monomialExponents_subset |
| 81 | intro a ha |
| 82 | obtain ⟨f, hf, hf0, hfa⟩ := (monomial_mem_initialIdeal_iff m I _).mp ha |
| 83 | have hlead := (hI.mem_iff_support f).mp hf (m.degree f) (m.degree_mem_support hf0) |
| 84 | have hupper := SaturatedMonomialIdeals.GradedHilbert.monomialExponents_isUpperSet I |
| 85 | have hmem : Finsupp.equivFunOnFinite (m.degree f) ∈ SaturatedMonomialIdeals.GradedHilbert.monomialExponents I := by |
| 86 | simpa only [SaturatedMonomialIdeals.GradedHilbert.monomialExponents, Set.mem_ofPred_eq, Equiv.symm_apply_apply] using hlead |
| 87 | exact hupper hfa hmem |
| 88 | · apply hI.le_of_monomialExponents_subset |
| 89 | intro a ha |
| 90 | apply (monomial_mem_initialIdeal_iff m I _).mpr |
| 91 | refine ⟨monomial (Finsupp.equivFunOnFinite.symm a) (1 : K), ha, ?_, ?_⟩ |
| 92 | · simp only [ne_eq, monomial_eq_zero, one_ne_zero, not_false_eq_true] |
| 93 | · change m.degree (monomial (Finsupp.equivFunOnFinite.symm a) (1 : K)) ≤ |
| 94 | Finsupp.equivFunOnFinite.symm a |
| 95 | rw [m.degree_monomial] |
| 96 | simp |
| 97 | |
| 98 | def standardDegreeSpace (m : MonomialOrder (Fin (n + 1))) |
| 99 | (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (d : ℕ) : Submodule K (Hilbert.Polynomial.GradedHilbert.grading K n d) := |
| 100 | (standardSpace m I).comap (Hilbert.Polynomial.GradedHilbert.grading K n d).subtype |
| 101 | |
| 102 | theorem standardDegreeSpace_isCompl (m : MonomialOrder (Fin (n + 1))) |
| 103 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) (d : ℕ) : |
| 104 | IsCompl (Hilbert.Polynomial.GradedHilbert.degreeRelations I.toIdeal d) (standardDegreeSpace m I.toIdeal d) := by |
| 105 | constructor |
| 106 | · apply Submodule.disjoint_def.mpr |
| 107 | intro f hf hs |
| 108 | apply Subtype.ext |
| 109 | exact (Submodule.disjoint_def.mp (standardSpace_disjoint m I.toIdeal)) f.val hf hs |
| 110 | · apply codisjoint_iff.mpr |
| 111 | apply eq_top_iff.mpr |
| 112 | intro f _ |
| 113 | obtain ⟨r, hr, hfr⟩ := exists_standard_remainder m I.toIdeal f.val |
| 114 | let s : Hilbert.Polynomial.GradedHilbert.grading K n d := ⟨homogeneousComponent d r, homogeneousComponent_mem d r⟩ |
| 115 | have hs : s ∈ standardDegreeSpace m I.toIdeal d := by |
| 116 | intro a ha |
| 117 | have ha' : a ∈ r.support := by |
| 118 | change a ∈ (homogeneousComponent d r).support at ha |
| 119 | rw [support_homogeneousComponent] at ha |
| 120 | exact (Finset.mem_filter.mp ha).1 |
| 121 | exact hr ha' |
| 122 | apply Submodule.mem_sup.mpr |
| 123 | refine ⟨f - s, ?_, s, hs, sub_add_cancel f s⟩ |
| 124 | have hcomp := homogeneousComponent_mem_of_mem I.isHomogeneous hfr d |
| 125 | rw [map_sub, homogeneousComponent_eq_self f.property] at hcomp |
| 126 | exact hcomp |
| 127 | |
| 128 | /-- The quotient in each degree has the standard-monomial complement as |
| 129 | its actual space of representatives. -/ |
| 130 | def degreeQuotientEquivStandard (m : MonomialOrder (Fin (n + 1))) |
| 131 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) (d : ℕ) : |
| 132 | Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.toIdeal d ≃ₗ[K] standardDegreeSpace m I.toIdeal d := |
| 133 | Submodule.quotientEquivOfIsCompl _ _ (standardDegreeSpace_isCompl m I d) |
| 134 | |
| 135 | def initialHomogeneousIdeal (m : MonomialOrder (Fin (n + 1))) |
| 136 | (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n) := |
| 137 | ⟨initialIdeal m I, (initialIdeal_isMonomial m I).isHomogeneous⟩ |
| 138 | |
| 139 | /-- Passing to the initial ideal preserves the entire Hilbert function. -/ |
| 140 | theorem hilbertFunction_initialIdeal (m : MonomialOrder (Fin (n + 1))) |
| 141 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) (d : ℕ) : |
| 142 | Hilbert.Polynomial.GradedHilbert.hilbertFunction (initialIdeal m I.toIdeal) d = Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal d := by |
| 143 | have hinit := initialIdeal_eq_self_of_isMonomial m (initialIdeal_isMonomial m I.toIdeal) |
| 144 | have heq : standardDegreeSpace m (initialIdeal m I.toIdeal) d = |
| 145 | standardDegreeSpace m I.toIdeal d := by |
| 146 | unfold standardDegreeSpace standardSpace |
| 147 | rw [hinit] |
| 148 | exact ((degreeQuotientEquivStandard m (initialHomogeneousIdeal m I.toIdeal) d).trans |
| 149 | ((LinearEquiv.ofEq _ _ heq).trans (degreeQuotientEquivStandard m I d).symm)).finrank_eq |
| 150 | |
| 151 | theorem hasHilbertPolynomial_initialIdeal_iff (m : MonomialOrder (Fin (n + 1))) |
| 152 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) (P : Polynomial ℚ) : |
| 153 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (initialIdeal m I.toIdeal) P ↔ Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P := by |
| 154 | simp only [Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial, hilbertFunction_initialIdeal] |
| 155 | |
| 156 | end |
| 157 | |
| 158 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.InitialIdeal.GradedHilbert |