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 |
| 2 | |
| 3 | /-! # Trace Restriction -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.TraceRestriction.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Restricting scalars composes the trace of a linear endomorphism |
| 10 | with the trace of the coefficient field. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | open _root_.Module |
| 14 | |
| 15 | theorem linear_trace_restrictScalars |
| 16 | {k K V : Type*} [Field k] [Field K] [Algebra k K] |
| 17 | [AddCommGroup V] [Module k V] [Module K V] [IsScalarTower k K V] |
| 18 | [Module.Finite k K] [Module.Finite K V] (f : Module.End K V) : |
| 19 | LinearMap.trace k V (f.restrictScalars k) = Algebra.trace k K (LinearMap.trace K V f) := by |
| 20 | let bK := Module.finBasis k K |
| 21 | let bV := Module.finBasis K V |
| 22 | rw [LinearMap.trace_eq_matrix_trace k (bK.smulTower' bV), |
| 23 | LinearMap.restrictScalars_toMatrix, LinearMap.trace_eq_matrix_trace K bV] |
| 24 | simp only [Matrix.trace, Matrix.diag, Matrix.comp_apply, Matrix.map_apply, Fintype.sum_prod_type, map_sum] |
| 25 | apply Finset.sum_congr rfl |
| 26 | intro i _ |
| 27 | exact (Algebra.trace_eq_matrix_trace bK _).symm |
| 28 | |
| 29 | end |
| 30 | |
| 31 | end OAI.NumberTheory.ArithmeticGroups.Lattices.TraceRestriction.Construction |