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.Bounded.InitialGenerators |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.Existence |
| 3 | |
| 4 | /-! # Generator Function -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Bounded.GeneratorFunction.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The Hilbert function of an ideal generated in bounded degrees stabilizes at a field-independent degree, without a saturation hypothesis. -/ |
| 11 | |
| 12 | open _root_.MvPolynomial |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem exponent_sup_degree_le {n : ℕ} (G : Finset (Fin (n + 1) →₀ ℕ)) (B : ℕ) |
| 17 | (hG : ∀ a ∈ G, a.degree ≤ B) : (G.sup id).degree ≤ (n + 1) * B := by |
| 18 | have hcoord (i : Fin (n + 1)) : (G.sup id) i ≤ B := by |
| 19 | apply Finset.sup_induction (p := fun a : Fin (n + 1) →₀ ℕ => a i ≤ B) |
| 20 | · exact Nat.zero_le B |
| 21 | · intro a ha c hc |
| 22 | exact max_le ha hc |
| 23 | · intro a ha |
| 24 | exact (Finsupp.le_degree i a).trans (hG a ha) |
| 25 | rw [Finsupp.degree_eq_sum] |
| 26 | calc |
| 27 | _ ≤ ∑ _i : Fin (n + 1), B := Finset.sum_le_sum (fun i _ => hcoord i) |
| 28 | _ = (n + 1) * B := by simp |
| 29 | |
| 30 | def generatorHilbertFunctionBound (n D : ℕ) : ℕ := (n + 1) * Uniform.GroebnerCompletion.GradedHilbert.homogeneousGroebnerDegreeBound n D |
| 31 | |
| 32 | variable {K : Type u} [Field K] {n : ℕ} |
| 33 | |
| 34 | theorem bounded_generators_hilbertFunction_eq |
| 35 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) (B : Finset (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) |
| 36 | (hB : I.toIdeal = Ideal.span (B : Set (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n))) |
| 37 | (D : ℕ) (hb : ∀ b ∈ B, b ≠ 0 ∧ ∃ d ≤ D, b.IsHomogeneous d) |
| 38 | (P : Polynomial ℚ) (hP : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P) |
| 39 | (d : ℕ) (hd : generatorHilbertFunctionBound n D ≤ d) : |
| 40 | (Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal d : ℚ) = P.eval (d : ℚ) := by |
| 41 | let m : MonomialOrder (Fin (n + 1)) := MonomialOrder.lex |
| 42 | obtain ⟨G, hG, hGdeg⟩ := InitialGenerators.GradedHilbert.exists_uniform_initial_generators m I B hB D hb |
| 43 | have hPG : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal (Hilbert.Existence.GradedHilbert.monomialHilbertPolynomial G) := by |
| 44 | apply (InitialIdeal.GradedHilbert.hasHilbertPolynomial_initialIdeal_iff m I _).mp |
| 45 | rw [hG] |
| 46 | exact Hilbert.Existence.GradedHilbert.monomialSpan_hasHilbertPolynomial G |
| 47 | have heq : Hilbert.Existence.GradedHilbert.monomialHilbertPolynomial G = P := Hilbert.Polynomial.GradedHilbert.hilbertPolynomial_unique hPG hP |
| 48 | rw [← heq, ← InitialIdeal.GradedHilbert.hilbertFunction_initialIdeal m I d, hG] |
| 49 | change (Hilbert.Polynomial.GradedHilbert.hilbertFunction (Hilbert.MonomialBasis.GradedHilbert.monomialSpan K (G : Set (Fin (n + 1) →₀ ℕ))).toIdeal d : ℚ) = _ |
| 50 | rw [Hilbert.MonomialBasis.GradedHilbert.hilbertFunction_monomialSpan] |
| 51 | exact Hilbert.Existence.GradedHilbert.card_standard_eventually_polynomial G d ((exponent_sup_degree_le G _ hGdeg).trans hd) |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Bounded.GeneratorFunction.GradedHilbert |