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.ArithmeticGroups.Lattices.Laurent |
| 2 | import OAI.NumberTheory.Quaternion.Arithmetic.BinomialPolynomials |
| 3 | |
| 4 | /-! # Laurent Evaluation -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.Quaternion.Arithmetic.LaurentEvaluation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Laurent polynomials over characteristic-zero fields are determined |
| 13 | by evaluation at nonzero field elements. -/ |
| 14 | |
| 15 | open scoped Classical LaurentPolynomial |
| 16 | open LaurentPolynomial |
| 17 | |
| 18 | theorem laurent_eq_zero_of_unit_evaluations |
| 19 | {K : Type*} [Field K] [CharZero K] (p : LaurentPolynomial K) |
| 20 | (hp : ∀ t : Kˣ, LaurentPolynomial.eval₂ (RingHom.id K) t p = 0) : p = 0 := by |
| 21 | obtain ⟨d, P, hP⟩ := p.exists_T_pow |
| 22 | have hPX : P * Polynomial.X = 0 := by |
| 23 | apply BinomialPolynomials.polynomial_eq_of_nat_evaluations |
| 24 | intro m |
| 25 | by_cases hm : m = 0 |
| 26 | · subst m |
| 27 | simp |
| 28 | · let t : Kˣ := Units.mk0 (m : K) (Nat.cast_ne_zero.mpr hm) |
| 29 | have he := congrArg (LaurentPolynomial.eval₂ (RingHom.id K) t) hP |
| 30 | rw [LaurentPolynomial.eval₂_toLaurent, Polynomial.eval₂_id, map_mul, hp, zero_mul] at he |
| 31 | change P.eval (m : K) = 0 at he |
| 32 | rw [Polynomial.eval_mul, he, zero_mul, Polynomial.eval_zero] |
| 33 | have hP0 : P = 0 := (mul_eq_zero.mp hPX).resolve_right Polynomial.X_ne_zero |
| 34 | have he : p * LaurentPolynomial.T d = 0 := by rw [← hP, hP0, map_zero] |
| 35 | exact (LaurentPolynomial.isUnit_T (R := K) d).mul_left_eq_zero.mp he |
| 36 | |
| 37 | theorem laurent_eq_of_unit_evaluations |
| 38 | {K : Type*} [Field K] [CharZero K] (p q : LaurentPolynomial K) |
| 39 | (hpq : ∀ t : Kˣ, LaurentPolynomial.eval₂ (RingHom.id K) t p = |
| 40 | LaurentPolynomial.eval₂ (RingHom.id K) t q) : p = q := by |
| 41 | apply sub_eq_zero.mp |
| 42 | apply laurent_eq_zero_of_unit_evaluations |
| 43 | intro t |
| 44 | rw [map_sub, hpq, sub_self] |
| 45 | |
| 46 | theorem laurent_eq_sum_coefficients |
| 47 | {K : Type*} [Field K] (p : LaurentPolynomial K) : |
| 48 | p = ∑ z ∈ p.coeff.support, LaurentPolynomial.C (p.coeff z) * LaurentPolynomial.T z := by |
| 49 | apply LaurentPolynomial.ext |
| 50 | intro z |
| 51 | simp only [← LaurentPolynomial.single_eq_C_mul_T, AddMonoidAlgebra.coeff_sum, |
| 52 | AddMonoidAlgebra.coeff_single, Finset.sum_apply'] |
| 53 | rw [Finset.sum_eq_single z] |
| 54 | · simp |
| 55 | · intro w _ hw |
| 56 | simp [hw] |
| 57 | · intro hz |
| 58 | simp [Finsupp.notMem_support_iff.mp hz] |
| 59 | |
| 60 | end |
| 61 | |
| 62 | /-! Rescaling a Laurent-polynomial parameter multiplies its weight-z |
| 63 | coefficient by the z-th power of the scaling unit. -/ |
| 64 | |
| 65 | open scoped Classical LaurentPolynomial |
| 66 | |
| 67 | def laurentWeightScale {K : Type*} [Field K] (s : Kˣ) (p : LaurentPolynomial K) : |
| 68 | LaurentPolynomial K := |
| 69 | ∑ z ∈ p.coeff.support, |
| 70 | LaurentPolynomial.C (p.coeff z * (s ^ z).val) * LaurentPolynomial.T z |
| 71 | |
| 72 | theorem laurentWeightScale_coeff {K : Type*} [Field K] |
| 73 | (s : Kˣ) (p : LaurentPolynomial K) (z : ℤ) : |
| 74 | (laurentWeightScale s p).coeff z = p.coeff z * (s ^ z).val := by |
| 75 | simp only [laurentWeightScale, ← LaurentPolynomial.single_eq_C_mul_T, |
| 76 | AddMonoidAlgebra.coeff_sum, AddMonoidAlgebra.coeff_single, Finset.sum_apply'] |
| 77 | rw [Finset.sum_eq_single z] |
| 78 | · simp |
| 79 | · intro w _ hw |
| 80 | simp [hw] |
| 81 | · intro hz |
| 82 | simp [Finsupp.notMem_support_iff.mp hz] |
| 83 | |
| 84 | theorem laurentWeightScale_eval {K : Type*} [Field K] |
| 85 | (s t : Kˣ) (p : LaurentPolynomial K) : |
| 86 | LaurentPolynomial.eval₂ (RingHom.id K) t (laurentWeightScale s p) = |
| 87 | LaurentPolynomial.eval₂ (RingHom.id K) (s * t) p := by |
| 88 | conv_rhs => rw [laurent_eq_sum_coefficients p] |
| 89 | simp only [laurentWeightScale, map_sum, LaurentPolynomial.eval₂_C_mul_T, |
| 90 | RingHom.id_apply, mul_zpow, Units.val_mul] |
| 91 | apply Finset.sum_congr rfl |
| 92 | intro z _ |
| 93 | exact mul_assoc _ _ _ |
| 94 | |
| 95 | theorem laurent_constant_mul_coeff {K : Type*} [Field K] |
| 96 | (a : K) (p : LaurentPolynomial K) (z : ℤ) : |
| 97 | (LaurentPolynomial.C a * p).coeff z = a * p.coeff z := |
| 98 | AddMonoidAlgebra.coeff_single_zero_mul p a z |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.NumberTheory.Quaternion.Arithmetic.LaurentEvaluation |