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.BaseChange |
| 2 | import Mathlib.LinearAlgebra.Matrix.Dual |
| 3 | |
| 4 | /-! # Dual Characteristic Polynomial -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.DualCharacteristicPolynomial |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Characteristic polynomials of dual maps and intertwined operators. -/ |
| 11 | |
| 12 | variable {R M N : Type*} [CommRing R] |
| 13 | [AddCommGroup M] [Module R M] [Module.Free R M] [Module.Finite R M] |
| 14 | [AddCommGroup N] [Module R N] [Module.Free R N] [Module.Finite R N] |
| 15 | |
| 16 | theorem dual (f : Module.End R M) : f.dualMap.charpoly = f.charpoly := by |
| 17 | let b := Module.Free.chooseBasis R M |
| 18 | rw [← LinearMap.charpoly_toMatrix f b, ← LinearMap.charpoly_toMatrix f.dualMap b.dualBasis] |
| 19 | simp only [LinearMap.dualMap_def, LinearMap.toMatrix_transpose, Matrix.charpoly_transpose] |
| 20 | |
| 21 | theorem of_intertwines (e : M ≃ₗ[R] N) (f : Module.End R M) (g : Module.End R N) |
| 22 | (h : e.toLinearMap.comp f = g.comp e.toLinearMap) : f.charpoly = g.charpoly := by |
| 23 | have he : e.conj f = g := by |
| 24 | apply LinearMap.ext |
| 25 | intro x |
| 26 | change e (f (e.symm x)) = g x |
| 27 | have hx := congrArg (fun t : M →ₗ[R] N => t (e.symm x)) h |
| 28 | simpa only [LinearMap.comp_apply, LinearEquiv.coe_coe, LinearEquiv.apply_symm_apply] using hx |
| 29 | rw [← he, LinearEquiv.charpoly_conj] |
| 30 | |
| 31 | end |
| 32 | |
| 33 | end OAI.NumberTheory.PadicHodge.IntegralComparison.DualCharacteristicPolynomial |