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.Trace |
| 2 | |
| 3 | /-! # Eigenbasis Trace -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.EigenbasisTrace.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The trace of an operator diagonal in a finite basis is the sum |
| 10 | of its eigenvalues, counted with their basis multiplicities. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | |
| 14 | theorem linear_trace_eq_sum_eigenvalues |
| 15 | {k V ι : Type*} [Field k] [AddCommGroup V] [Module k V] [Fintype ι] |
| 16 | (b : Module.Basis ι k V) (A : V →ₗ[k] V) (w : ι → k) |
| 17 | (heig : ∀ i, A (b i) = w i • b i) : LinearMap.trace k V A = ∑ i, w i := by |
| 18 | rw [LinearMap.trace_eq_matrix_trace k b] |
| 19 | change (∑ i, LinearMap.toMatrix b b A i i) = _ |
| 20 | apply Finset.sum_congr rfl |
| 21 | intro i _ |
| 22 | rw [LinearMap.toMatrix_apply, heig] |
| 23 | simp only [map_smul, Finsupp.smul_apply, b.repr_self_apply, ite_true, smul_eq_mul, mul_one] |
| 24 | |
| 25 | end |
| 26 | |
| 27 | end OAI.NumberTheory.ArithmeticGroups.Lattices.EigenbasisTrace.Construction |