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.NumberTheory.Quaternion.Arithmetic.BinomialPolynomials |
| 2 | import Mathlib.LinearAlgebra.Matrix.ToLin |
| 3 | |
| 4 | /-! # Polynomial Matrix Curves -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.Quaternion.Arithmetic.PolynomialMatrixCurves |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Polynomial matrix curves are determined by their natural-number |
| 13 | values. A curve interpolating powers therefore satisfies the additive |
| 14 | one-parameter group law over the entire field. -/ |
| 15 | |
| 16 | open scoped Classical |
| 17 | |
| 18 | variable {K : Type*} [Field K] [CharZero K] {n : ℕ} |
| 19 | |
| 20 | def evalPolynomialMatrix (P : Matrix (Fin n) (Fin n) (Polynomial K)) (t : K) : |
| 21 | Matrix (Fin n) (Fin n) K := P.map (Polynomial.evalRingHom t) |
| 22 | |
| 23 | def translatePolynomialMatrix (P : Matrix (Fin n) (Fin n) (Polynomial K)) (t : K) : |
| 24 | Matrix (Fin n) (Fin n) (Polynomial K) := |
| 25 | P.map (fun p => p.comp (Polynomial.X + Polynomial.C t)) |
| 26 | |
| 27 | omit [CharZero K] in |
| 28 | theorem evalPolynomialMatrix_translate (P : Matrix (Fin n) (Fin n) (Polynomial K)) (t x : K) : |
| 29 | evalPolynomialMatrix (translatePolynomialMatrix P t) x = evalPolynomialMatrix P (x + t) := by |
| 30 | ext i j |
| 31 | simp [evalPolynomialMatrix, translatePolynomialMatrix, Polynomial.eval_comp] |
| 32 | |
| 33 | omit [CharZero K] in |
| 34 | theorem evalPolynomialMatrix_constant (M : Matrix (Fin n) (Fin n) K) (t : K) : |
| 35 | evalPolynomialMatrix (M.map Polynomial.C) t = M := by |
| 36 | ext i j |
| 37 | exact Polynomial.eval_C |
| 38 | |
| 39 | omit [CharZero K] in |
| 40 | theorem evalPolynomialMatrix_mul (P Q : Matrix (Fin n) (Fin n) (Polynomial K)) (t : K) : |
| 41 | evalPolynomialMatrix (P * Q) t = evalPolynomialMatrix P t * evalPolynomialMatrix Q t := |
| 42 | Matrix.map_mul |
| 43 | |
| 44 | theorem polynomialMatrix_eq_of_nat_evaluations (P Q : Matrix (Fin n) (Fin n) (Polynomial K)) |
| 45 | (h : ∀ m : ℕ, evalPolynomialMatrix P (m : K) = evalPolynomialMatrix Q (m : K)) : P = Q := by |
| 46 | apply Matrix.ext |
| 47 | intro i j |
| 48 | apply BinomialPolynomials.polynomial_eq_of_nat_evaluations |
| 49 | intro m |
| 50 | exact congrFun (congrFun (h m) i) j |
| 51 | |
| 52 | theorem polynomialMatrix_add_law_of_nat_powers |
| 53 | (P : Matrix (Fin n) (Fin n) (Polynomial K)) (g : Matrix (Fin n) (Fin n) K) |
| 54 | (hP : ∀ m : ℕ, evalPolynomialMatrix P (m : K) = g ^ m) (s t : K) : |
| 55 | evalPolynomialMatrix P (s + t) = evalPolynomialMatrix P s * evalPolynomialMatrix P t := by |
| 56 | have hn (m : ℕ) : translatePolynomialMatrix P (m : K) = P * ((g ^ m).map Polynomial.C) := by |
| 57 | apply polynomialMatrix_eq_of_nat_evaluations |
| 58 | intro k |
| 59 | rw [evalPolynomialMatrix_translate, ← Nat.cast_add, hP, pow_add, |
| 60 | evalPolynomialMatrix_mul, evalPolynomialMatrix_constant, hP] |
| 61 | have hshift (x : K) (m : ℕ) : evalPolynomialMatrix P (x + (m : K)) = |
| 62 | evalPolynomialMatrix P x * g ^ m := by |
| 63 | rw [← evalPolynomialMatrix_translate, hn, evalPolynomialMatrix_mul, evalPolynomialMatrix_constant] |
| 64 | have hs : translatePolynomialMatrix P s = (evalPolynomialMatrix P s).map Polynomial.C * P := by |
| 65 | apply polynomialMatrix_eq_of_nat_evaluations |
| 66 | intro m |
| 67 | rw [evalPolynomialMatrix_translate, add_comm, hshift, evalPolynomialMatrix_mul, |
| 68 | evalPolynomialMatrix_constant, hP] |
| 69 | rw [add_comm s t, ← evalPolynomialMatrix_translate, hs, evalPolynomialMatrix_mul, |
| 70 | evalPolynomialMatrix_constant] |
| 71 | |
| 72 | end |
| 73 | |
| 74 | /-! A unipotent matrix's natural powers are the values of one |
| 75 | polynomial matrix curve, using the finite binomial expansion. -/ |
| 76 | |
| 77 | open scoped Classical |
| 78 | |
| 79 | variable {K : Type*} [Field K] [CharZero K] {n : ℕ} |
| 80 | |
| 81 | def nilpotentPowerPolynomial (N : Matrix (Fin n) (Fin n) K) (d : ℕ) : |
| 82 | Matrix (Fin n) (Fin n) (Polynomial K) := |
| 83 | fun i j => ∑ k ∈ Finset.range d, |
| 84 | BinomialPolynomials.binomialCoefficientPolynomial (K := K) k * Polynomial.C ((N ^ k) i j) |
| 85 | |
| 86 | theorem nilpotentPowerPolynomial_eval_nat (N : Matrix (Fin n) (Fin n) K) (d : ℕ) |
| 87 | (hd : N ^ d = 0) (m : ℕ) : |
| 88 | evalPolynomialMatrix (nilpotentPowerPolynomial N d) (m : K) = (1 + N) ^ m := by |
| 89 | apply Eq.trans ?_ (BinomialPolynomials.nilpotent_binomial_sum_nat (K := K) N d hd m) |
| 90 | ext i j |
| 91 | simp [evalPolynomialMatrix, nilpotentPowerPolynomial, BinomialPolynomials.binomialCoefficientPolynomial_eval_nat, |
| 92 | Matrix.sum_apply, Polynomial.eval_finsetSum] |
| 93 | |
| 94 | theorem unipotent_has_polynomial_powers (g : Matrix (Fin n) (Fin n) K) (hg : IsNilpotent (g - 1)) : |
| 95 | ∃ P : Matrix (Fin n) (Fin n) (Polynomial K), ∀ m : ℕ, evalPolynomialMatrix P (m : K) = g ^ m := by |
| 96 | obtain ⟨d, hd⟩ := hg |
| 97 | refine ⟨nilpotentPowerPolynomial (g - 1) d, fun m => ?_⟩ |
| 98 | have he : 1 + (g - 1) = g := by abel |
| 99 | simpa only [he] using nilpotentPowerPolynomial_eval_nat (g - 1) d hd m |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.NumberTheory.Quaternion.Arithmetic.PolynomialMatrixCurves |