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.Infinitesimal.Action |
| 2 | |
| 3 | /-! # Integer Weight Derivation -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.IntegerWeightDerivation.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The Euler derivation for arbitrary integer weights agrees with |
| 10 | right infinitesimal translation by an integer diagonal matrix. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | open _root_.MvPolynomial |
| 14 | |
| 15 | theorem sum_polynomial_derivations_apply |
| 16 | {k σ ι : Type*} [Field k] (s : Finset ι) |
| 17 | (D : ι → Derivation k (MvPolynomial σ k) (MvPolynomial σ k)) (p : MvPolynomial σ k) : |
| 18 | (∑ i ∈ s, D i) p = ∑ i ∈ s, D i p := by |
| 19 | induction s using Finset.induction_on with |
| 20 | | empty => simp only [Finset.sum_empty, Derivation.zero_apply] |
| 21 | | @insert i s hi ih => simp only [Finset.sum_insert hi, Derivation.add_apply, ih] |
| 22 | |
| 23 | def integerWeightDerivation {k σ : Type*} [Field k] [Fintype σ] (w : σ → ℤ) : |
| 24 | Derivation k (MvPolynomial σ k) (MvPolynomial σ k) := |
| 25 | ∑ i, (C (w i : k) * X i) • pderiv i |
| 26 | |
| 27 | theorem integerWeightDerivation_apply {k σ : Type*} [Field k] [Fintype σ] |
| 28 | (w : σ → ℤ) (p : MvPolynomial σ k) : |
| 29 | integerWeightDerivation w p = ∑ i, (w i : k) • (X i * pderiv i p) := by |
| 30 | unfold integerWeightDerivation |
| 31 | rw [sum_polynomial_derivations_apply] |
| 32 | apply Finset.sum_congr rfl |
| 33 | intro i _ |
| 34 | simp only [Derivation.smul_apply, smul_eq_mul, MvPolynomial.smul_eq_C_mul, mul_assoc] |
| 35 | |
| 36 | theorem integerWeightDerivation_X {k σ : Type*} [Field k] [Fintype σ] |
| 37 | (w : σ → ℤ) (i : σ) : |
| 38 | integerWeightDerivation (k := k) w (X i) = C (w i : k) * X i := by |
| 39 | rw [integerWeightDerivation_apply] |
| 40 | simp [MvPolynomial.pderiv_X, Pi.single_apply, MvPolynomial.smul_eq_C_mul] |
| 41 | |
| 42 | theorem rightInfinitesimal_integer_diagonal |
| 43 | {k : Type} [Field k] {n : ℕ} (w : Fin n → ℤ) : |
| 44 | Infinitesimal.Action.Construction.rightInfinitesimal (Matrix.diagonal (fun i => (w i : k))) = |
| 45 | integerWeightDerivation (fun ij : Fin n × Fin n => w ij.2) := by |
| 46 | apply MvPolynomial.derivation_ext |
| 47 | rintro ⟨i, j⟩ |
| 48 | rw [integerWeightDerivation_X, Infinitesimal.Action.Construction.rightInfinitesimal_X] |
| 49 | simp only [Matrix.diagonal_apply, apply_ite MvPolynomial.C, map_zero, mul_ite, mul_zero, |
| 50 | Finset.sum_ite_eq', Finset.mem_univ, ite_true] |
| 51 | exact mul_comm _ _ |
| 52 | |
| 53 | theorem integerWeightDerivation_monomial |
| 54 | {k σ : Type*} [Field k] [Fintype σ] (w : σ → ℤ) (m : σ →₀ ℕ) (c : k) : |
| 55 | integerWeightDerivation w (monomial m c) = (Finsupp.weight w m : k) • monomial m c := by |
| 56 | rw [integerWeightDerivation_apply] |
| 57 | simp only [MvPolynomial.X_mul_pderiv_monomial, ← Nat.cast_smul_eq_nsmul k, |
| 58 | smul_smul, ← Finset.sum_smul] |
| 59 | congr 1 |
| 60 | rw [Finsupp.weight_eq_sum, Int.cast_sum] |
| 61 | apply Finset.sum_congr rfl |
| 62 | intro i _ |
| 63 | simp only [nsmul_eq_mul, Int.cast_mul, Int.cast_natCast] |
| 64 | exact mul_comm _ _ |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.NumberTheory.ArithmeticGroups.Lattices.IntegerWeightDerivation.Construction |