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.RingTheory.Polynomial.Pochhammer |
| 2 | import Mathlib.Data.Nat.Choose.Sum |
| 3 | import Mathlib.Algebra.Polynomial.Roots |
| 4 | |
| 5 | /-! # Binomial Polynomials -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.Quaternion.Arithmetic.BinomialPolynomials |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Polynomial interpolation of binomial coefficients and of powers |
| 12 | of a unipotent element over a characteristic-zero field. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | variable {K : Type*} [Field K] [CharZero K] |
| 17 | |
| 18 | def binomialCoefficientPolynomial (j : ℕ) : Polynomial K := |
| 19 | Polynomial.C ((j.factorial : K)⁻¹) * descPochhammer K j |
| 20 | |
| 21 | theorem binomialCoefficientPolynomial_eval_nat (j m : ℕ) : |
| 22 | (binomialCoefficientPolynomial (K := K) j).eval (m : K) = (m.choose j : K) := by |
| 23 | rw [binomialCoefficientPolynomial, Polynomial.eval_mul, Polynomial.eval_C, |
| 24 | descPochhammer_eval_eq_descFactorial, Nat.descFactorial_eq_factorial_mul_choose, |
| 25 | Nat.cast_mul, inv_mul_cancel_left₀ (Nat.cast_ne_zero.mpr j.factorial_ne_zero)] |
| 26 | |
| 27 | theorem polynomial_eq_of_nat_evaluations (p q : Polynomial K) |
| 28 | (h : ∀ m : ℕ, p.eval (m : K) = q.eval (m : K)) : p = q := by |
| 29 | apply p.eq_of_infinite_eval_eq q |
| 30 | apply (Set.infinite_range_of_injective (Nat.cast_injective (R := K))).mono |
| 31 | rintro x ⟨m, rfl⟩ |
| 32 | exact h m |
| 33 | |
| 34 | variable {A : Type*} [Ring A] [Algebra K A] |
| 35 | |
| 36 | omit [CharZero K] in |
| 37 | theorem nilpotent_binomial_sum_nat (N : A) (d : ℕ) (hd : N ^ d = 0) (m : ℕ) : |
| 38 | (∑ j ∈ Finset.range d, (m.choose j : K) • N ^ j) = (1 + N) ^ m := by |
| 39 | let f := fun j => (m.choose j : K) • N ^ j |
| 40 | have hdmax : (∑ j ∈ Finset.range d, f j) = ∑ j ∈ Finset.range (max d (m + 1)), f j := by |
| 41 | apply Finset.sum_subset (Finset.range_mono (le_max_left _ _)) |
| 42 | intro j _ hj |
| 43 | have hdj : d ≤ j := Nat.le_of_not_gt (fun h => hj (Finset.mem_range.mpr h)) |
| 44 | simp only [f, pow_eq_zero_of_le hdj hd, smul_zero] |
| 45 | have hmmax : (∑ j ∈ Finset.range (m + 1), f j) = ∑ j ∈ Finset.range (max d (m + 1)), f j := by |
| 46 | apply Finset.sum_subset (Finset.range_mono (le_max_right _ _)) |
| 47 | intro j _ hj |
| 48 | have hmj : m < j := by |
| 49 | have h := Nat.le_of_not_gt (fun h => hj (Finset.mem_range.mpr h)) |
| 50 | omega |
| 51 | simp only [f, Nat.choose_eq_zero_of_lt hmj, Nat.cast_zero, zero_smul] |
| 52 | rw [hdmax, ← hmmax] |
| 53 | have hb := (Commute.one_right N).add_pow m |
| 54 | simpa only [f, one_pow, mul_one, Nat.cast_smul_eq_nsmul, nsmul_eq_mul, add_comm, |
| 55 | Nat.cast_comm] using hb.symm |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.NumberTheory.Quaternion.Arithmetic.BinomialPolynomials |