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.InitialIdeal |
| 2 | |
| 3 | /-! # Groebner Generators -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.GroebnerGenerators.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Lifting generators of an initial ideal to homogeneous generators of the |
| 11 | original ideal. The leading-term cover is proved to generate the ideal |
| 12 | using division and the vanishing of a standard remainder in the ideal. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.MvPolynomial |
| 16 | open scoped MonomialOrder |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {K : Type u} [Field K] {n : ℕ} |
| 21 | |
| 22 | theorem leadingDegree_homogeneousComponent (m : MonomialOrder (Fin (n + 1))) |
| 23 | {f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n} (hf : f ≠ 0) : |
| 24 | let d := (m.degree f).degree |
| 25 | homogeneousComponent d f ≠ 0 ∧ m.degree (homogeneousComponent d f) = m.degree f := by |
| 26 | classical |
| 27 | dsimp only |
| 28 | have hs : m.degree f ∈ (homogeneousComponent (m.degree f).degree f).support := by |
| 29 | rw [support_homogeneousComponent] |
| 30 | exact Finset.mem_filter.mpr ⟨m.degree_mem_support hf, rfl⟩ |
| 31 | refine ⟨?_, m.toSyn.injective ?_⟩ |
| 32 | · intro hzero |
| 33 | simp only [hzero, support_zero, Finset.notMem_empty] at hs |
| 34 | · apply le_antisymm |
| 35 | · apply m.degree_le_iff.mpr |
| 36 | intro a ha |
| 37 | rw [support_homogeneousComponent] at ha |
| 38 | exact m.le_degree (Finset.mem_filter.mp ha).1 |
| 39 | · exact m.le_degree hs |
| 40 | |
| 41 | theorem lift_initial_monomial (m : MonomialOrder (Fin (n + 1))) |
| 42 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) (a : Fin (n + 1) →₀ ℕ) |
| 43 | (ha : monomial a (1 : K) ∈ InitialIdeal.GradedHilbert.initialIdeal m I.toIdeal) : |
| 44 | ∃ f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n, f ∈ I.toIdeal ∧ f ≠ 0 ∧ |
| 45 | f.IsHomogeneous (m.degree f).degree ∧ m.degree f ≤ a := by |
| 46 | obtain ⟨f, hf, hf0, hfa⟩ := (InitialIdeal.GradedHilbert.monomial_mem_initialIdeal_iff m I.toIdeal a).mp ha |
| 47 | obtain ⟨hc0, hdeg⟩ := leadingDegree_homogeneousComponent m hf0 |
| 48 | refine ⟨homogeneousComponent (m.degree f).degree f, |
| 49 | homogeneousComponent_mem_of_mem I.isHomogeneous hf _, hc0, ?_, ?_⟩ |
| 50 | · rw [hdeg] |
| 51 | exact homogeneousComponent_isHomogeneous _ _ |
| 52 | · rw [hdeg] |
| 53 | exact hfa |
| 54 | |
| 55 | theorem ideal_eq_span_of_leading_cover (m : MonomialOrder (Fin (n + 1))) |
| 56 | (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (B : Finset (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) |
| 57 | (hB : ∀ b ∈ B, b ∈ I ∧ b ≠ 0) |
| 58 | (hcover : ∀ f ∈ I, f ≠ 0 → ∃ b ∈ B, m.degree b ≤ m.degree f) : |
| 59 | I = Ideal.span (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) := by |
| 60 | classical |
| 61 | have hspan : Ideal.span (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) ≤ I := |
| 62 | Ideal.span_le.mpr fun b hb => (hB b hb).1 |
| 63 | apply le_antisymm _ hspan |
| 64 | intro f hf |
| 65 | obtain ⟨g, r, hfr, _, hr⟩ := m.div_set (B := (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n))) |
| 66 | (fun b hb => m.isUnit_leadingCoeff.mpr (hB b hb).2) f |
| 67 | have hg : Finsupp.linearCombination (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) |
| 68 | (fun b : (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) => b.val) g ∈ |
| 69 | Ideal.span (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) := by |
| 70 | rw [Finsupp.linearCombination_apply, Finsupp.sum] |
| 71 | exact Ideal.sum_mem _ fun b _ => Ideal.mul_mem_left _ (g b) (Ideal.subset_span b.property) |
| 72 | have hrI : r ∈ I := by |
| 73 | have h := I.sub_mem hf (hspan hg) |
| 74 | rwa [hfr, add_sub_cancel_left] at h |
| 75 | have hr0 : r = 0 := by |
| 76 | by_contra hr0 |
| 77 | obtain ⟨b, hb, hbr⟩ := hcover r hrI hr0 |
| 78 | exact hr (m.degree r) (m.degree_mem_support hr0) b hb hbr |
| 79 | rw [hfr, hr0, add_zero] |
| 80 | exact hg |
| 81 | |
| 82 | /-- A bound on the degrees of monomial generators of the initial ideal |
| 83 | lifts to a bound on homogeneous generators of the original ideal. -/ |
| 84 | theorem homogeneous_generators_of_initial_generators |
| 85 | (m : MonomialOrder (Fin (n + 1))) (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) |
| 86 | (G : Finset (Fin (n + 1) →₀ ℕ)) (N : ℕ) |
| 87 | (hG : InitialIdeal.GradedHilbert.initialIdeal m I.toIdeal = |
| 88 | Ideal.span ((fun a => monomial a (1 : K)) '' (G : Set (Fin (n + 1) →₀ ℕ)))) |
| 89 | (hN : ∀ a ∈ G, a.degree ≤ N) : |
| 90 | ∃ B : Finset (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n), I.toIdeal = Ideal.span (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) ∧ |
| 91 | ∀ b ∈ B, b ≠ 0 ∧ ∃ d ≤ N, b.IsHomogeneous d := by |
| 92 | classical |
| 93 | have hlift (a : G) : ∃ f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n, f ∈ I.toIdeal ∧ f ≠ 0 ∧ |
| 94 | f.IsHomogeneous (m.degree f).degree ∧ m.degree f ≤ a.val := by |
| 95 | apply lift_initial_monomial m I a.val |
| 96 | rw [hG] |
| 97 | exact Ideal.subset_span ⟨a.val, a.property, rfl⟩ |
| 98 | choose f hf using hlift |
| 99 | let B := Finset.univ.image f |
| 100 | have hB (b : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) (hb : b ∈ B) : b ∈ I.toIdeal ∧ b ≠ 0 := by |
| 101 | obtain ⟨a, _, rfl⟩ := Finset.mem_image.mp hb |
| 102 | exact ⟨(hf a).1, (hf a).2.1⟩ |
| 103 | refine ⟨B, ideal_eq_span_of_leading_cover m I.toIdeal B hB ?_, ?_⟩ |
| 104 | · intro p hp hp0 |
| 105 | have hlead := InitialIdeal.GradedHilbert.leading_monomial_mem_initialIdeal m hp hp0 |
| 106 | rw [hG, mem_ideal_span_monomial_image] at hlead |
| 107 | have hmem : m.degree p ∈ (monomial (m.degree p) (1 : K)).support := by simp |
| 108 | obtain ⟨a, ha, hpa⟩ := hlead (m.degree p) hmem |
| 109 | exact ⟨f ⟨a, ha⟩, Finset.mem_image.mpr ⟨⟨a, ha⟩, Finset.mem_univ _, rfl⟩, |
| 110 | (hf ⟨a, ha⟩).2.2.2.trans hpa⟩ |
| 111 | · intro b hb |
| 112 | obtain ⟨a, _, rfl⟩ := Finset.mem_image.mp hb |
| 113 | exact ⟨(hf a).2.1, (m.degree (f a)).degree, |
| 114 | (Finsupp.degree_mono (hf a).2.2.2).trans (hN a.val a.property), (hf a).2.2.1⟩ |
| 115 | |
| 116 | theorem exists_finite_homogeneous_generators (m : MonomialOrder (Fin (n + 1))) |
| 117 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) : |
| 118 | ∃ (N : ℕ) (B : Finset (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)), |
| 119 | I.toIdeal = Ideal.span (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) ∧ |
| 120 | ∀ b ∈ B, b ≠ 0 ∧ ∃ d ≤ N, b.IsHomogeneous d := by |
| 121 | classical |
| 122 | obtain ⟨G, hG⟩ := (InitialIdeal.GradedHilbert.initialIdeal_isMonomial m I.toIdeal).finite_generators |
| 123 | obtain ⟨B, hB⟩ := homogeneous_generators_of_initial_generators m I G (G.sup Finsupp.degree) |
| 124 | hG (fun a ha => Finset.le_sup (f := Finsupp.degree) ha) |
| 125 | exact ⟨G.sup Finsupp.degree, B, hB⟩ |
| 126 | |
| 127 | end |
| 128 | |
| 129 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.GroebnerGenerators.GradedHilbert |