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.Finite.PolynomialLeadingCover |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.LocalizationNumerator |
| 3 | import Mathlib.RingTheory.Localization.FractionRing |
| 4 | |
| 5 | /-! # Integral Polynomial Leading Cover -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.IntegralPolynomialLeadingCover.GradedHilbert |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finite leading-term cover over the fraction field can be chosen |
| 12 | with numerators in the original polynomial ideal. -/ |
| 13 | |
| 14 | open _root_.MvPolynomial |
| 15 | |
| 16 | universe u |
| 17 | variable {R : Type u} [CommRing R] [IsDomain R] {n : ℕ} |
| 18 | |
| 19 | theorem exists_integral_polynomial_leading_cover |
| 20 | (m : MonomialOrder (Fin (n + 1))) (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n)) : |
| 21 | ∃ B : Finset (Hilbert.Polynomial.GradedHilbert.CoordinateRing R n), |
| 22 | (∀ b ∈ B, b ∈ I ∧ b ≠ 0) ∧ |
| 23 | ∀ g ∈ I.map (MvPolynomial.map (algebraMap R (FractionRing R))), g ≠ 0 → |
| 24 | ∃ b ∈ B, m.degree (MvPolynomial.map (algebraMap R (FractionRing R)) b) ≤ m.degree g := by |
| 25 | classical |
| 26 | let K := FractionRing R |
| 27 | let J := I.map (MvPolynomial.map (algebraMap R K)) |
| 28 | obtain ⟨G, hG, hcover⟩ := Finite.PolynomialLeadingCover.GradedHilbert.exists_finite_polynomial_leading_cover m J |
| 29 | have hnum (g : G) : ∃ f : Hilbert.Polynomial.GradedHilbert.CoordinateRing R n, f ∈ I ∧ ∃ s : nonZeroDivisors R, |
| 30 | MvPolynomial.map (algebraMap R K) f = g.val * C (algebraMap R K s.val) := |
| 31 | Polynomial.LocalizationNumerator.polynomial_ideal_localization_numerator (nonZeroDivisors R) K I g.val (hG g.val g.property).1 |
| 32 | choose f hf s hs using hnum |
| 33 | have hmap0 (g : G) : MvPolynomial.map (algebraMap R K) (f g) ≠ 0 := by |
| 34 | rw [hs g] |
| 35 | apply mul_ne_zero (hG g.val g.property).2 |
| 36 | apply C_ne_zero.mpr |
| 37 | intro hzero |
| 38 | exact mem_nonZeroDivisors_iff_ne_zero.mp (s g).property |
| 39 | (IsFractionRing.injective R K (hzero.trans (map_zero _).symm)) |
| 40 | have hdeg (g : G) : m.degree (MvPolynomial.map (algebraMap R K) (f g)) = m.degree g.val := by |
| 41 | rw [hs g, m.degree_mul (hG g.val g.property).2] |
| 42 | · rw [m.degree_C, add_zero] |
| 43 | · apply C_ne_zero.mpr |
| 44 | intro hzero |
| 45 | exact mem_nonZeroDivisors_iff_ne_zero.mp (s g).property |
| 46 | (IsFractionRing.injective R K (hzero.trans (map_zero _).symm)) |
| 47 | let B := Finset.univ.image f |
| 48 | refine ⟨B, ?_, ?_⟩ |
| 49 | · intro b hb |
| 50 | obtain ⟨g, _, rfl⟩ := Finset.mem_image.mp hb |
| 51 | exact ⟨hf g, fun h => hmap0 g (h ▸ map_zero _)⟩ |
| 52 | · intro g hg hg0 |
| 53 | obtain ⟨b, hb, hbg⟩ := hcover g hg hg0 |
| 54 | refine ⟨f ⟨b, hb⟩, Finset.mem_image.mpr ⟨⟨b, hb⟩, Finset.mem_univ _, rfl⟩, ?_⟩ |
| 55 | rw [hdeg] |
| 56 | exact hbg |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.IntegralPolynomialLeadingCover.GradedHilbert |