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.OfFn |
| 2 | import Mathlib.Algebra.Polynomial.BigOperators |
| 3 | |
| 4 | /-! # Polynomial Coordinates -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.PolynomialCoordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite coefficient coordinates and their convolution, with bounds |
| 11 | large enough to contain the actual polynomial support. -/ |
| 12 | |
| 13 | open _root_.Polynomial |
| 14 | |
| 15 | variable {R : Type*} [CommSemiring R] |
| 16 | |
| 17 | theorem expansion (P : Polynomial R) (n : ℕ) (hn : P.natDegree ≤ n) : |
| 18 | P = ∑ i : Fin (n + 1), monomial i (P.coeff i) := by |
| 19 | classical |
| 20 | calc |
| 21 | P = ofFn (n + 1) (fun i => P.coeff i) := |
| 22 | (ofFn_comp_toFn_eq_id_of_natDegree_lt (Nat.lt_succ_of_le hn)).symm |
| 23 | _ = _ := ofFn_eq_sum_monomial _ |
| 24 | |
| 25 | theorem coeff_expansion (P : Polynomial R) (n : ℕ) (hn : P.natDegree ≤ n) (k : ℕ) : |
| 26 | P.coeff k = ∑ i : Fin (n + 1), if (i : ℕ) = k then P.coeff i else 0 := by |
| 27 | have h := congrArg (fun p : Polynomial R => p.coeff k) (expansion P n hn) |
| 28 | simpa only [finsetSum_coeff, coeff_monomial] using h |
| 29 | |
| 30 | theorem product_expansion (P Q : Polynomial R) (n m : ℕ) |
| 31 | (hn : P.natDegree ≤ n) (hm : Q.natDegree ≤ m) : |
| 32 | P * Q = ∑ t : Fin (n + 1) × Fin (m + 1), |
| 33 | monomial (t.1.val + t.2.val) (P.coeff t.1 * Q.coeff t.2) := by |
| 34 | conv_lhs => rw [expansion P n hn, expansion Q m hm] |
| 35 | rw [Fintype.sum_prod_type, Finset.sum_mul] |
| 36 | apply Finset.sum_congr rfl |
| 37 | intro i hi |
| 38 | rw [Finset.mul_sum] |
| 39 | apply Finset.sum_congr rfl |
| 40 | intro j hj |
| 41 | exact monomial_mul_monomial _ _ _ _ |
| 42 | |
| 43 | theorem coeff_product_expansion (P Q : Polynomial R) (n m : ℕ) |
| 44 | (hn : P.natDegree ≤ n) (hm : Q.natDegree ≤ m) (k : ℕ) : |
| 45 | (P * Q).coeff k = ∑ t : Fin (n + 1) × Fin (m + 1), |
| 46 | if t.1.val + t.2.val = k then P.coeff t.1 * Q.coeff t.2 else 0 := by |
| 47 | have h := congrArg (fun p : Polynomial R => p.coeff k) (product_expansion P Q n m hn hm) |
| 48 | simpa only [finsetSum_coeff, coeff_monomial] using h |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.PolynomialCoordinates |