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.GroebnerCompletion |
| 2 | |
| 3 | /-! # Initial Generators -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Bounded.InitialGenerators.GradedHilbert |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Bounded homogeneous generators give a field-independent degree bound for generators of the actual initial ideal. -/ |
| 10 | |
| 11 | open _root_.MvPolynomial |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable {K : Type u} [Field K] {n : ℕ} |
| 16 | variable (m : MonomialOrder (Fin (n + 1))) |
| 17 | |
| 18 | theorem initialIdeal_eq_of_leading_cover {ι : Type v} (c : ι → Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) |
| 19 | (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (hc : ∀ i, c i ∈ I ∧ c i ≠ 0) |
| 20 | (hcover : ∀ f ∈ I, f ≠ 0 → ∃ i, m.degree (c i) ≤ m.degree f) : |
| 21 | InitialIdeal.GradedHilbert.initialIdeal m I = Ideal.span (Set.range (fun i => monomial (m.degree (c i)) (1 : K))) := by |
| 22 | classical |
| 23 | apply le_antisymm |
| 24 | · apply Ideal.span_le.mpr |
| 25 | rintro _ ⟨a, ⟨f, ⟨hf, hf0⟩, rfl⟩, rfl⟩ |
| 26 | obtain ⟨i, hi⟩ := hcover f hf hf0 |
| 27 | have h := (Ideal.span (Set.range (fun j => monomial (m.degree (c j)) (1 : K)))).mul_mem_left |
| 28 | (monomial (m.degree f - m.degree (c i)) (1 : K)) (Ideal.subset_span (Set.mem_range_self i)) |
| 29 | change monomial (m.degree f) (1 : K) ∈ Ideal.span (Set.range (fun j => monomial (m.degree (c j)) (1 : K))) |
| 30 | simpa only [monomial_mul_monomial, one_mul, tsub_add_cancel_of_le hi] using h |
| 31 | · apply Ideal.span_le.mpr |
| 32 | rintro _ ⟨i, rfl⟩ |
| 33 | exact InitialIdeal.GradedHilbert.leading_monomial_mem_initialIdeal m (hc i).1 (hc i).2 |
| 34 | |
| 35 | theorem exists_uniform_initial_generators |
| 36 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) (B : Finset (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) |
| 37 | (hB : I.toIdeal = Ideal.span (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n))) |
| 38 | (D : ℕ) (hb : ∀ b ∈ B, b ≠ 0 ∧ ∃ d ≤ D, b.IsHomogeneous d) : |
| 39 | ∃ G : Finset (Fin (n + 1) →₀ ℕ), |
| 40 | InitialIdeal.GradedHilbert.initialIdeal m I.toIdeal = Ideal.span ((fun a => monomial a (1 : K)) '' (G : Set (Fin (n + 1) →₀ ℕ))) ∧ |
| 41 | ∀ a ∈ G, a.degree ≤ Uniform.GroebnerCompletion.GradedHilbert.homogeneousGroebnerDegreeBound n D := by |
| 42 | classical |
| 43 | choose e he hh using fun b : B => (hb b.val b.property).2 |
| 44 | obtain ⟨k, c, hspan, hc, hcover⟩ := Uniform.GroebnerCompletion.GradedHilbert.exists_uniform_homogeneous_groebner_completion m |
| 45 | (fun b : B => b.val) e hh (fun b => (hb b.val b.property).1) D he |
| 46 | have hB' : Set.range (fun b : B => b.val) = (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) := Subtype.range_coe_subtype |
| 47 | have hI : Ideal.span (Set.range c) = I.toIdeal := by rw [hspan, hB', ← hB] |
| 48 | let G := Finset.univ.image (fun j => m.degree (c j)) |
| 49 | refine ⟨G, ?_, ?_⟩ |
| 50 | · rw [initialIdeal_eq_of_leading_cover m c I.toIdeal (fun j => ⟨by |
| 51 | rw [← hI] |
| 52 | exact Ideal.subset_span (Set.mem_range_self j), (hc j).1⟩) (by simpa only [hB', ← hB] using hcover)] |
| 53 | apply congrArg Ideal.span |
| 54 | ext a |
| 55 | simp only [G, Finset.coe_image, Finset.coe_univ, Set.image_univ, Set.mem_range, Set.mem_image] |
| 56 | aesop |
| 57 | · intro a ha |
| 58 | obtain ⟨j, _, rfl⟩ := Finset.mem_image.mp ha |
| 59 | obtain ⟨d, hd, hhom⟩ := (hc j).2 |
| 60 | rw [Homogeneous.Polynomials.GradedHilbert.homogeneous_leadingDegree m hhom (hc j).1] |
| 61 | exact hd |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Bounded.InitialGenerators.GradedHilbert |