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 OAI.NumberTheory.Quaternion.Arithmetic.LocalUnitPowers |
| 2 | import Mathlib.Analysis.Calculus.Deriv.Prod |
| 3 | import Mathlib.Analysis.Matrix.Normed |
| 4 | import Mathlib.Topology.Algebra.Module.FiniteDimension |
| 5 | |
| 6 | /-! # Local Weight Curves -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.Quaternion.Arithmetic.LocalWeightCurves |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Local integer-weight curves in a finite-dimensional complete |
| 13 | commutative algebra, with their concrete matrix derivative at the identity. -/ |
| 14 | |
| 15 | open scoped Classical _root_.Matrix.Norms.Operator |
| 16 | |
| 17 | variable {K A : Type*} [NontriviallyNormedField K] [NormedCommRing A] |
| 18 | [NormedAlgebra K A] [CompleteSpace K] [CompleteSpace A] [FiniteDimensional K A] {n : ℕ} |
| 19 | |
| 20 | def localWeightCurve (B C : Matrix (Fin n) (Fin n) A) (a : A) (m : Fin n → ℤ) (t : K) : |
| 21 | Matrix (Fin n) (Fin n) A := |
| 22 | B * Matrix.diagonal (fun i => LocalUnitPowers.unitPower (1 + t • a) (m i)) * C |
| 23 | |
| 24 | omit [CompleteSpace K] [CompleteSpace A] [FiniteDimensional K A] in |
| 25 | theorem localWeightCurve_zero (B C : Matrix (Fin n) (Fin n) A) (a : A) (m : Fin n → ℤ) : |
| 26 | localWeightCurve (K := K) B C a m 0 = B * C := by |
| 27 | simp only [localWeightCurve, zero_smul, add_zero, LocalUnitPowers.unitPower_one, Matrix.diagonal_one, mul_one] |
| 28 | |
| 29 | theorem diagonalWeightCurve_hasDerivAt (a : A) (m : Fin n → ℤ) : |
| 30 | HasDerivAt (fun t : K => Matrix.diagonal (fun i => LocalUnitPowers.unitPower (1 + t • a) (m i))) |
| 31 | (Matrix.diagonal (fun i => (m i : K) • a)) 0 := by |
| 32 | let d : (Fin n → A) →L[K] Matrix (Fin n) (Fin n) A := |
| 33 | (Matrix.diagonalLinearMap (Fin n) K A).toContinuousLinearMap |
| 34 | have h : HasDerivAt (fun t : K => fun i : Fin n => LocalUnitPowers.unitPower (1 + t • a) (m i)) |
| 35 | (fun i => (m i : K) • a) 0 := hasDerivAt_pi.mpr (fun i => LocalUnitPowers.unitPower_affine_hasDerivAt a (m i)) |
| 36 | simpa only [d, Function.comp_def, LinearMap.coe_toContinuousLinearMap, |
| 37 | Matrix.diagonalLinearMap_apply] using! d.hasFDerivAt.comp_hasDerivAt 0 h |
| 38 | |
| 39 | omit [CompleteSpace K] [CompleteSpace A] [FiniteDimensional K A] in |
| 40 | theorem diagonalWeight_scalar (a : A) (m : Fin n → ℤ) : |
| 41 | Matrix.diagonal (fun i => (m i : K) • a) = a • Matrix.diagonal (fun i => (m i : A)) := by |
| 42 | rw [← Matrix.diagonal_smul] |
| 43 | congr 1 |
| 44 | funext i |
| 45 | simp only [Pi.smul_apply, smul_eq_mul, Int.cast_smul_eq_zsmul, zsmul_eq_mul, mul_comm] |
| 46 | |
| 47 | theorem localWeightCurve_hasDerivAt (B C : Matrix (Fin n) (Fin n) A) (a : A) (m : Fin n → ℤ) : |
| 48 | HasDerivAt (localWeightCurve (K := K) B C a m) |
| 49 | (a • (B * Matrix.diagonal (fun i => (m i : A)) * C)) 0 := by |
| 50 | have h := ((diagonalWeightCurve_hasDerivAt (K := K) a m).const_mul B).mul_const C |
| 51 | simpa only [localWeightCurve, diagonalWeight_scalar, Matrix.mul_smul, Matrix.smul_mul] using! h |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.NumberTheory.Quaternion.Arithmetic.LocalWeightCurves |