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.Divisors.LineBundles.Polynomial.ZeroSection |
| 2 | import Mathlib.RingTheory.Ideal.KrullsHeightTheorem |
| 3 | |
| 4 | /-! # Zero Prime -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Polynomial.ZeroPrime.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # LineBundleCycles: the actual generic point of the polynomial zero divisor has height one -/ |
| 11 | |
| 12 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 13 | |
| 14 | variable (R : Type) [CommRing R] [IsDomain R] |
| 15 | |
| 16 | def polynomialZeroPrime : Spec (.of (Polynomial R)) := ZeroSection.BundleCycles.polynomialZeroSection R (genericPoint (Spec (.of R))) |
| 17 | |
| 18 | theorem polynomialZeroPrime_asIdeal : (polynomialZeroPrime R).asIdeal = Ideal.span {Polynomial.X} := by |
| 19 | change (PrimeSpectrum.comap (Polynomial.constantCoeff : Polynomial R →+* R) |
| 20 | (genericPoint (Spec (.of R)))).asIdeal = _ |
| 21 | rw [genericPoint_eq_bot_of_affine] |
| 22 | exact Polynomial.ker_constantCoeff |
| 23 | |
| 24 | theorem polynomialZeroPrime_coheight [IsNoetherianRing R] : Order.coheight (polynomialZeroPrime R) = 1 := by |
| 25 | rw [← idealHeight_eq_coheight, polynomialZeroPrime_asIdeal] |
| 26 | exact Ideal.height_span_singleton_eq_one_of_mem_nonZeroDivisors |
| 27 | (mem_nonZeroDivisors_iff_ne_zero.mpr Polynomial.X_ne_zero) Polynomial.not_isUnit_X |
| 28 | |
| 29 | theorem polynomialZeroPrime_unique_height_one [IsNoetherianRing R] (p : Spec (.of (Polynomial R))) |
| 30 | (hp : Order.coheight p = 1) (hX : Polynomial.X ∈ p.asIdeal) : p = polynomialZeroPrime R := by |
| 31 | let : p.asIdeal.IsPrime := (show PrimeSpectrum (Polynomial R) from p).isPrime |
| 32 | let : (polynomialZeroPrime R).asIdeal.IsPrime := (show PrimeSpectrum (Polynomial R) from polynomialZeroPrime R).isPrime |
| 33 | have hle : (polynomialZeroPrime R).asIdeal ≤ p.asIdeal := by |
| 34 | rw [polynomialZeroPrime_asIdeal] |
| 35 | exact (Ideal.span_singleton_le_iff_mem (I := p.asIdeal)).mpr hX |
| 36 | apply PrimeSpectrum.ext |
| 37 | apply Eq.symm |
| 38 | apply Ideal.eq_of_le_of_height_le (polynomialZeroPrime R).asIdeal hle |
| 39 | rw [idealHeight_eq_coheight, idealHeight_eq_coheight, hp, polynomialZeroPrime_coheight] |
| 40 | |
| 41 | end |
| 42 | |
| 43 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Polynomial.ZeroPrime.BundleCycles |