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.AbelianModuli.HilbertConstruction.Polynomial.EventualGrid |
| 2 | import Mathlib.Algebra.Polynomial.Degree.Lemmas |
| 3 | |
| 4 | /-! # First Difference -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Polynomial.FirstDifference |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The first difference lowers the degree of every nonconstant rational polynomial. Substitution by a nonzero dilation preserves degree. These operations describe the actual Euler polynomial after passing to a positive line-bundle power and taking a regular-section cokernel. -/ |
| 11 | open _root_.Polynomial |
| 12 | |
| 13 | def polynomialFirstDifference (P : Polynomial ℚ) : Polynomial ℚ := P.comp (X + C 1) - P |
| 14 | |
| 15 | theorem polynomialFirstDifference_eval (P : Polynomial ℚ) (x : ℚ) : |
| 16 | (polynomialFirstDifference P).eval x = P.eval (x + 1) - P.eval x := by |
| 17 | simp [polynomialFirstDifference] |
| 18 | |
| 19 | theorem polynomialFirstDifference_eq_zero_of_natDegree_zero |
| 20 | (P : Polynomial ℚ) (hP : P.natDegree = 0) : polynomialFirstDifference P = 0 := by |
| 21 | have he := eq_C_of_natDegree_eq_zero hP |
| 22 | rw [he] |
| 23 | simp [polynomialFirstDifference] |
| 24 | |
| 25 | theorem polynomialFirstDifference_natDegree_lt |
| 26 | (P : Polynomial ℚ) (hP : 0 < P.natDegree) : |
| 27 | (polynomialFirstDifference P).natDegree < P.natDegree := by |
| 28 | have hcomp : (P.comp (X + C 1)).natDegree = P.natDegree := by |
| 29 | rw [natDegree_comp, natDegree_X_add_C, mul_one] |
| 30 | have hlead : (P.comp (X + C 1)).leadingCoeff = P.leadingCoeff := by |
| 31 | rw [leadingCoeff_comp (by rw [natDegree_X_add_C]; exact one_ne_zero), |
| 32 | leadingCoeff_X_add_C, one_pow, mul_one] |
| 33 | have hcoeff : (P.comp (X + C 1)).coeff P.natDegree = P.coeff P.natDegree := by |
| 34 | calc |
| 35 | (P.comp (X + C 1)).coeff P.natDegree = |
| 36 | (P.comp (X + C 1)).coeff (P.comp (X + C 1)).natDegree := |
| 37 | congrArg (P.comp (X + C 1)).coeff hcomp.symm |
| 38 | _ = (P.comp (X + C 1)).leadingCoeff := rfl |
| 39 | _ = P.leadingCoeff := hlead |
| 40 | _ = P.coeff P.natDegree := rfl |
| 41 | have htop : (polynomialFirstDifference P).coeff P.natDegree = 0 := by |
| 42 | rw [polynomialFirstDifference, coeff_sub, hcoeff, sub_self] |
| 43 | have hle : (polynomialFirstDifference P).natDegree ≤ P.natDegree := by |
| 44 | exact (natDegree_sub_le _ _).trans (by rw [hcomp, max_self]) |
| 45 | apply lt_of_le_of_ne hle |
| 46 | intro heq |
| 47 | have hz : polynomialFirstDifference P = 0 := leadingCoeff_eq_zero.mp (by |
| 48 | change (polynomialFirstDifference P).coeff (polynomialFirstDifference P).natDegree = 0 |
| 49 | rw [heq] |
| 50 | exact htop) |
| 51 | rw [hz, natDegree_zero] at heq |
| 52 | exact (Nat.ne_of_gt hP) heq.symm |
| 53 | |
| 54 | theorem polynomial_nonzero_dilation_natDegree (P : Polynomial ℚ) (d : ℚ) (hd : d ≠ 0) : |
| 55 | (P.comp (C d * X)).natDegree = P.natDegree := by |
| 56 | rw [natDegree_comp, natDegree_C_mul_of_isUnit (isUnit_iff_ne_zero.mpr hd), natDegree_X, mul_one] |
| 57 | |
| 58 | theorem polynomialFirstDifference_dilation_natDegree_lt |
| 59 | (P : Polynomial ℚ) (hP : 0 < P.natDegree) (d : ℚ) (hd : d ≠ 0) : |
| 60 | (polynomialFirstDifference (P.comp (C d * X))).natDegree < P.natDegree := by |
| 61 | have hD := polynomial_nonzero_dilation_natDegree P d hd |
| 62 | exact (polynomialFirstDifference_natDegree_lt (P.comp (C d * X)) (hD.symm ▸ hP)).trans_eq hD |
| 63 | |
| 64 | theorem polynomialFirstDifference_dilation_eval (P : Polynomial ℚ) (d x : ℚ) : |
| 65 | (polynomialFirstDifference (P.comp (C d * X))).eval x = |
| 66 | P.eval (d * (x + 1)) - P.eval (d * x) := by |
| 67 | simp [polynomialFirstDifference] |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Polynomial.FirstDifference |