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.DiagonalConjugatorNormalization |
| 2 | import Mathlib.RingTheory.Localization.Integer |
| 3 | import Mathlib.RingTheory.Localization.Rat |
| 4 | |
| 5 | /-! # Anisotropic Rational Spectrum -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.AnisotropicRationalSpectrum.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Clearing rational eigenvalue denominators turns a split |
| 12 | infinitesimal matrix into integer cocharacter weights. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | attribute [local instance] LieRing.ofAssociativeRing |
| 17 | |
| 18 | theorem finite_rational_weights_integer_multiple |
| 19 | {ι : Type*} [Finite ι] (w : ι → ℚ) : |
| 20 | ∃ d : ℤ, d ≠ 0 ∧ ∃ z : ι → ℤ, ∀ i, (z i : ℚ) = (d : ℚ) * w i := by |
| 21 | obtain ⟨d, hd⟩ := IsLocalization.exist_integer_multiples_of_finite (nonZeroDivisors ℤ) w |
| 22 | choose z hz using hd |
| 23 | refine ⟨d.val, mem_nonZeroDivisors_iff_ne_zero.mp d.property, z, fun i => ?_⟩ |
| 24 | have hi : (z i : ℚ) = d.val • w i := hz i |
| 25 | simpa only [zsmul_eq_mul] using hi |
| 26 | |
| 27 | theorem anisotropic_rational_eigenbasis_matrix_zero |
| 28 | {k : Type} [Field k] [CharZero k] (G : Algebraic.ConnectedSemisimpleKGroup k) |
| 29 | (haniso : Algebraic.IsAnisotropic G) (A : Matrix (Fin G.dimension) (Fin G.dimension) k) |
| 30 | (hA : A ∈ Infinitesimal.Action.Construction.infinitesimalStabilizer G.matrixGroup) |
| 31 | (b : Module.Basis (Fin G.dimension) k (Fin G.dimension → k)) (w : Fin G.dimension → ℚ) |
| 32 | (hb : ∀ i, Matrix.toLin' A (b i) = (w i : k) • b i) : A = 0 := by |
| 33 | obtain ⟨d, hd, z, hz⟩ := finite_rational_weights_integer_multiple w |
| 34 | have hdk : (d : k) ≠ 0 := Int.cast_ne_zero.mpr hd |
| 35 | have hcast (i) : (z i : k) = (d : k) * (w i : k) := by |
| 36 | exact_mod_cast hz i |
| 37 | have hscaled (i) : Matrix.toLin' ((d : k) • A) (b i) = (z i : k) • b i := by |
| 38 | rw [map_smul, LinearMap.smul_apply, hb i, smul_smul, ← hcast i] |
| 39 | let g := EigenbasisMatrixSpectral.Construction.eigenbasisMatrixUnit b |
| 40 | have heq : (d : k) • A = g.val * Matrix.diagonal (fun i => (z i : k)) * (g⁻¹).val := |
| 41 | EigenbasisMatrixSpectral.Construction.matrix_eq_eigenbasis_conjugate _ b _ hscaled |
| 42 | have hmem : g.val * Matrix.diagonal (fun i => (z i : k)) * (g⁻¹).val ∈ |
| 43 | Infinitesimal.Action.Construction.infinitesimalStabilizer G.matrixGroup := by |
| 44 | rw [← heq] |
| 45 | exact (Infinitesimal.Action.Construction.infinitesimalStabilizer G.matrixGroup).smul_mem (d : k) hA |
| 46 | have hz0 := DiagonalConjugatorNormalization.Construction.anisotropic_unit_conjugated_integer_weights_zero G haniso g z hmem |
| 47 | have hzero : (d : k) • A = 0 := by |
| 48 | rw [heq, hz0] |
| 49 | simp |
| 50 | exact (smul_eq_zero.mp hzero).resolve_left hdk |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.NumberTheory.ArithmeticGroups.Lattices.AnisotropicRationalSpectrum.Construction |