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 Mathlib.LinearAlgebra.Charpoly.ToMatrix |
| 2 | |
| 3 | /-! # Charpoly Intertwining Core -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.CharpolyIntertwiningCore.CharpolyIntertwining |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! An actual equivalence intertwining two operators identifies their characteristic polynomials. -/ |
| 10 | |
| 11 | variable {K V W : Type*} [Field K] [AddCommGroup V] [Module K V] |
| 12 | [AddCommGroup W] [Module K W] [FiniteDimensional K V] [FiniteDimensional K W] |
| 13 | |
| 14 | theorem charpoly (e : V ≃ₗ[K] W) (T : Module.End K V) (U : Module.End K W) |
| 15 | (h : e.toLinearMap.comp T = U.comp e.toLinearMap) : T.charpoly = U.charpoly := by |
| 16 | have he : e.conj T = U := by |
| 17 | ext w |
| 18 | change e (T (e.symm w)) = U w |
| 19 | have hw := LinearMap.congr_fun h (e.symm w) |
| 20 | simpa only [LinearMap.comp_apply, LinearEquiv.coe_coe, LinearEquiv.apply_symm_apply] using hw |
| 21 | exact (e.charpoly_conj T).symm.trans (congrArg LinearMap.charpoly he) |
| 22 | |
| 23 | end |
| 24 | |
| 25 | end OAI.NumberTheory.PadicHodge.GeometricComparison.CharpolyIntertwiningCore.CharpolyIntertwining |