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.RingTheory.Trace.Basic |
| 2 | import Mathlib.LinearAlgebra.StdBasis |
| 3 | |
| 4 | /-! # Finite Product Trace -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteProductTrace |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # The canonical algebra trace on a finite product -/ |
| 11 | |
| 12 | open _root_.Module |
| 13 | |
| 14 | variable (K : Type*) [CommRing K] {ι : Type*} [Fintype ι] |
| 15 | (B : ι → Type*) [∀ i, CommRing (B i)] [∀ i, Algebra K (B i)] |
| 16 | {κ : ι → Type*} [∀ i, Fintype (κ i)] |
| 17 | |
| 18 | theorem of_basis (b : ∀ i, Basis (κ i) K (B i)) (x : ∀ i, B i) : |
| 19 | Algebra.trace K (∀ i, B i) x = ∑ i, Algebra.trace K (B i) (x i) := by |
| 20 | classical |
| 21 | rw [Algebra.trace_eq_matrix_trace (Pi.basis b)] |
| 22 | simp only [Matrix.trace, Matrix.diag, Algebra.leftMulMatrix_eq_repr_mul, |
| 23 | Pi.basis_repr, Pi.basis_apply, Pi.mul_apply, Pi.single_eq_same] |
| 24 | rw [Fintype.sum_sigma] |
| 25 | apply Finset.sum_congr rfl |
| 26 | intro i _ |
| 27 | simpa only [Matrix.trace, Matrix.diag, Algebra.leftMulMatrix_eq_repr_mul] using |
| 28 | (Algebra.trace_eq_matrix_trace (b i) (x i)).symm |
| 29 | |
| 30 | theorem of_field (K : Type*) [Field K] {ι : Type*} [Fintype ι] |
| 31 | (B : ι → Type*) [∀ i, CommRing (B i)] [∀ i, Algebra K (B i)] |
| 32 | [∀ i, FiniteDimensional K (B i)] (x : ∀ i, B i) : |
| 33 | Algebra.trace K (∀ i, B i) x = ∑ i, Algebra.trace K (B i) (x i) := |
| 34 | of_basis K B (fun i => Module.finBasis K (B i)) x |
| 35 | |
| 36 | end |
| 37 | |
| 38 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteProductTrace |