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.IntegerWeightDerivation |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.BoundedNilpotentAction |
| 3 | import OAI.NumberTheory.ArithmeticGroups.Lattices.BoundedMonomialBasis |
| 4 | import OAI.NumberTheory.ArithmeticGroups.Lattices.EigenbasisSemisimple |
| 5 | |
| 6 | /-! # Bounded Diagonal Action -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.BoundedDiagonalAction.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Diagonal matrices act semisimply on bounded coordinate polynomials. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | open _root_.MvPolynomial |
| 16 | |
| 17 | def scalarWeightDerivation {k σ : Type*} [Field k] [Fintype σ] (w : σ → k) : |
| 18 | Derivation k (MvPolynomial σ k) (MvPolynomial σ k) := |
| 19 | ∑ i, (C (w i) * X i) • pderiv i |
| 20 | |
| 21 | theorem scalarWeightDerivation_apply {k σ : Type*} [Field k] [Fintype σ] |
| 22 | (w : σ → k) (p : MvPolynomial σ k) : |
| 23 | scalarWeightDerivation w p = ∑ i, w i • (X i * pderiv i p) := by |
| 24 | unfold scalarWeightDerivation |
| 25 | rw [IntegerWeightDerivation.Construction.sum_polynomial_derivations_apply] |
| 26 | apply Finset.sum_congr rfl |
| 27 | intro i _ |
| 28 | simp only [Derivation.smul_apply, smul_eq_mul, MvPolynomial.smul_eq_C_mul, mul_assoc] |
| 29 | |
| 30 | theorem scalarWeightDerivation_X {k σ : Type*} [Field k] [Fintype σ] |
| 31 | (w : σ → k) (i : σ) : |
| 32 | scalarWeightDerivation w (X i) = C (w i) * X i := by |
| 33 | rw [scalarWeightDerivation_apply] |
| 34 | simp [MvPolynomial.pderiv_X, Pi.single_apply, MvPolynomial.smul_eq_C_mul] |
| 35 | |
| 36 | theorem rightInfinitesimal_diagonal |
| 37 | {k : Type} [Field k] {n : ℕ} (w : Fin n → k) : |
| 38 | Infinitesimal.Action.Construction.rightInfinitesimal (Matrix.diagonal w) = |
| 39 | scalarWeightDerivation (fun ij : Fin n × Fin n => w ij.2) := by |
| 40 | apply MvPolynomial.derivation_ext |
| 41 | rintro ⟨i, j⟩ |
| 42 | rw [scalarWeightDerivation_X, Infinitesimal.Action.Construction.rightInfinitesimal_X] |
| 43 | simp only [Matrix.diagonal_apply, apply_ite MvPolynomial.C, map_zero, mul_ite, mul_zero, |
| 44 | Finset.sum_ite_eq', Finset.mem_univ, ite_true] |
| 45 | exact mul_comm _ _ |
| 46 | |
| 47 | theorem scalarWeightDerivation_monomial |
| 48 | {k σ : Type*} [Field k] [Fintype σ] (w : σ → k) (m : σ →₀ ℕ) (c : k) : |
| 49 | scalarWeightDerivation w (monomial m c) = Finsupp.weight w m • monomial m c := by |
| 50 | rw [scalarWeightDerivation_apply] |
| 51 | simp only [MvPolynomial.X_mul_pderiv_monomial, ← Nat.cast_smul_eq_nsmul k, |
| 52 | smul_smul, ← Finset.sum_smul] |
| 53 | congr 1 |
| 54 | rw [Finsupp.weight_eq_sum] |
| 55 | apply Finset.sum_congr rfl |
| 56 | intro i _ |
| 57 | simp only [nsmul_eq_mul] |
| 58 | exact mul_comm _ _ |
| 59 | |
| 60 | theorem boundedInfinitesimal_diagonal_isSemisimple |
| 61 | {k : Type} [Field k] {n : ℕ} (d : ℕ) (w : Fin n → k) : |
| 62 | (Infinitesimal.Degree.Construction.boundedInfinitesimal d (Matrix.diagonal w)).IsSemisimple := by |
| 63 | apply EigenbasisSemisimple.Construction.isSemisimple_of_finite_eigenbasis (BoundedMonomialBasis.Construction.boundedMonomialBasisRaw k n d) _ |
| 64 | (fun m => Finsupp.weight (fun ij : Fin n × Fin n => w ij.2) m.val) |
| 65 | intro m |
| 66 | apply Subtype.ext |
| 67 | change Infinitesimal.Action.Construction.rightInfinitesimal (Matrix.diagonal w) (BoundedMonomialBasis.Construction.boundedMonomialBasisRaw k n d m).val = |
| 68 | Finsupp.weight (fun ij : Fin n × Fin n => w ij.2) m.val • |
| 69 | (BoundedMonomialBasis.Construction.boundedMonomialBasisRaw k n d m).val |
| 70 | rw [BoundedMonomialBasis.Construction.boundedMonomialBasisRaw_val, rightInfinitesimal_diagonal, |
| 71 | scalarWeightDerivation_monomial] |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.NumberTheory.ArithmeticGroups.Lattices.BoundedDiagonalAction.Construction |