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.AnisotropicAdjointNilpotents |
| 2 | import Mathlib.LinearAlgebra.Matrix.Charpoly.Univ |
| 3 | import Mathlib.Topology.Algebra.MvPolynomial |
| 4 | |
| 5 | /-! # Characteristic Invariant -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.CharacteristicInvariant.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The non-leading characteristic coefficients are continuous integral |
| 12 | polynomial invariants that detect nilpotence. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | open _root_.Matrix _root_.Polynomial |
| 16 | |
| 17 | def characteristicInvariant {R : Type} [CommRing R] {n : ℕ} |
| 18 | (A : Matrix (Fin n) (Fin n) R) : Fin (n + 1) → R := |
| 19 | fun i => (A.charpoly - Polynomial.X ^ n).coeff i.val |
| 20 | |
| 21 | theorem characteristicInvariant_map |
| 22 | {R S : Type} [CommRing R] [CommRing S] {n : ℕ} (ι : R →+* S) |
| 23 | (A : Matrix (Fin n) (Fin n) R) : |
| 24 | characteristicInvariant (A.map ι) = fun i => ι (characteristicInvariant A i) := by |
| 25 | funext i |
| 26 | simp only [characteristicInvariant, Matrix.charpoly_map, Polynomial.coeff_sub, |
| 27 | Polynomial.coeff_map, map_sub, Polynomial.coeff_X_pow, apply_ite ι, map_one, map_zero] |
| 28 | |
| 29 | theorem characteristicInvariant_conjugate |
| 30 | {R : Type} [CommRing R] {n : ℕ} |
| 31 | (g : Matrix.GeneralLinearGroup (Fin n) R) (A : Matrix (Fin n) (Fin n) R) : |
| 32 | characteristicInvariant (g.val * A * (g⁻¹).val) = characteristicInvariant A := by |
| 33 | unfold characteristicInvariant |
| 34 | rw [Matrix.GeneralLinearGroup.coe_inv, Matrix.charpoly_units_conj] |
| 35 | |
| 36 | theorem characteristicInvariant_zero |
| 37 | {R : Type} [CommRing R] {n : ℕ} : |
| 38 | characteristicInvariant (0 : Matrix (Fin n) (Fin n) R) = 0 := by |
| 39 | funext i |
| 40 | change ((0 : Matrix (Fin n) (Fin n) R).charpoly - Polynomial.X ^ n).coeff i.val = 0 |
| 41 | rw [Matrix.charpoly_zero, Fintype.card_fin, sub_self, Polynomial.coeff_zero] |
| 42 | |
| 43 | theorem nilpotent_of_characteristicInvariant_eq_zero |
| 44 | {k : Type} [Field k] {n : ℕ} (A : Matrix (Fin n) (Fin n) k) |
| 45 | (hA : characteristicInvariant A = 0) : IsNilpotent A := by |
| 46 | have hp : A.charpoly = Polynomial.X ^ n := by |
| 47 | apply Polynomial.ext |
| 48 | intro i |
| 49 | by_cases hi : i < n + 1 |
| 50 | · have h := congrFun hA ⟨i, hi⟩ |
| 51 | change (A.charpoly - Polynomial.X ^ n).coeff i = 0 at h |
| 52 | rw [Polynomial.coeff_sub] at h |
| 53 | exact sub_eq_zero.mp h |
| 54 | · have hni : n < i := by omega |
| 55 | rw [Polynomial.coeff_eq_zero_of_natDegree_lt (by simpa using hni : A.charpoly.natDegree < i)] |
| 56 | symm |
| 57 | exact Polynomial.coeff_eq_zero_of_natDegree_lt (by simpa using hni) |
| 58 | refine ⟨n, ?_⟩ |
| 59 | rw [← Polynomial.aeval_X_pow (R := k), ← hp] |
| 60 | exact Matrix.aeval_self_charpoly A |
| 61 | |
| 62 | theorem continuous_characteristicInvariant |
| 63 | {R : Type} [CommRing R] [TopologicalSpace R] [IsTopologicalRing R] {n : ℕ} : |
| 64 | Continuous (characteristicInvariant : Matrix (Fin n) (Fin n) R → Fin (n + 1) → R) := by |
| 65 | apply continuous_pi |
| 66 | intro i |
| 67 | change Continuous (fun A : Matrix (Fin n) (Fin n) R => |
| 68 | (A.charpoly - Polynomial.X ^ n).coeff i.val) |
| 69 | simp_rw [Polynomial.coeff_sub] |
| 70 | apply Continuous.sub _ continuous_const |
| 71 | have he (A : Matrix (Fin n) (Fin n) R) : |
| 72 | MvPolynomial.eval (fun ij : Fin n × Fin n => A ij.1 ij.2) |
| 73 | ((Matrix.charpoly.univ R (Fin n)).coeff i.val) = A.charpoly.coeff i.val := |
| 74 | Matrix.charpoly.univ_coeff_eval₂Hom (Fin n) (RingHom.id R) _ i.val |
| 75 | simp_rw [← he] |
| 76 | apply (MvPolynomial.continuous_eval _).comp |
| 77 | apply continuous_pi |
| 78 | intro ij |
| 79 | exact (continuous_apply ij.2).comp (continuous_apply ij.1) |
| 80 | |
| 81 | theorem anisotropic_characteristicInvariant_ne_zero |
| 82 | {k : Type} [Field k] [NumberField k] (G : Algebraic.ConnectedSemisimpleKGroup k) |
| 83 | (haniso : Algebraic.IsAnisotropic G) |
| 84 | (A : Matrix (Fin G.dimension) (Fin G.dimension) k) |
| 85 | (hA : A ∈ Infinitesimal.Action.Construction.infinitesimalStabilizer G.matrixGroup) (hA0 : A ≠ 0) : |
| 86 | characteristicInvariant A ≠ 0 := by |
| 87 | intro h |
| 88 | exact hA0 (AnisotropicAdjointNilpotents.Construction.anisotropic_infinitesimal_nilpotent_eq_zero G haniso A hA |
| 89 | (nilpotent_of_characteristicInvariant_eq_zero A h)) |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.NumberTheory.ArithmeticGroups.Lattices.CharacteristicInvariant.Construction |