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 Mathlib.Algebra.Polynomial.Div |
| 2 | import Mathlib.Algebra.Polynomial.Eval.Degree |
| 3 | import Mathlib.Tactic.LinearCombination |
| 4 | import Mathlib.Tactic.FieldSimp |
| 5 | import Mathlib.Tactic.Ring |
| 6 | |
| 7 | /-! # Polynomial Division Kernel -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Comparison.Betti.PolynomialDivisionKernel.Weierstrass |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The exact polynomial divided-difference kernel used for holomorphic |
| 14 | division, including its strict degree bound. -/ |
| 15 | |
| 16 | open _root_.Polynomial |
| 17 | |
| 18 | variable {R : Type*} [CommRing R] |
| 19 | |
| 20 | theorem polynomial_division_kernel (P : Polynomial R) (z w : R) : |
| 21 | (z - w) * (P /ₘ (X - C z)).eval w = P.eval z - P.eval w := by |
| 22 | have h := congrArg (fun Q : Polynomial R => Q.eval w) (P.modByMonic_add_div (X - C z)) |
| 23 | rw [modByMonic_X_sub_C_eq_C_eval, eval_add, eval_C, eval_mul, eval_sub, eval_X, eval_C] at h |
| 24 | linear_combination -h |
| 25 | |
| 26 | theorem division_kernel_coeff_zero (P : Polynomial R) (z : R) (k : ℕ) |
| 27 | (hk : P.natDegree ≤ k) : (P /ₘ (X - C z)).coeff k = 0 := by |
| 28 | rw [coeff_divByMonic_X_sub_C] |
| 29 | apply Finset.sum_eq_zero |
| 30 | intro j hj |
| 31 | have h := Finset.mem_Icc.mp hj |
| 32 | omega |
| 33 | |
| 34 | variable {K : Type*} [Field K] |
| 35 | |
| 36 | theorem polynomial_division_kernel_fraction (P : Polynomial K) (g z w : K) |
| 37 | (hP : P.eval z ≠ 0) (hzw : z - w ≠ 0) : |
| 38 | g / P.eval z * (P /ₘ (X - C z)).eval w + P.eval w * (g / (P.eval z * (z - w))) = |
| 39 | g / (z - w) := by |
| 40 | have hker : (P /ₘ (X - C z)).eval w = (P.eval z - P.eval w) / (z - w) := |
| 41 | (eq_div_iff hzw).2 (by simpa only [mul_comm] using polynomial_division_kernel P z w) |
| 42 | rw [hker] |
| 43 | field_simp |
| 44 | ring |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.Comparison.Betti.PolynomialDivisionKernel.Weierstrass |