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.Matrix.ToLin |
| 2 | |
| 3 | /-! # Linear Matrix Support -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.LinearMatrixSupport.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Scalar support of matrix entries implies the same support for the |
| 10 | value of the linear operator on every vector. -/ |
| 11 | |
| 12 | theorem apply {R S : Type*} [CommRing R] [CommRing S] [Algebra R S] |
| 13 | {I : Type*} [Fintype I] [DecidableEq I] |
| 14 | (a : R) (f g : (I → S) →ₗ[S] (I → S)) |
| 15 | (h : ∀ i j, a • (f (Pi.single j 1) i - g (Pi.single j 1) i) = |
| 16 | f (Pi.single j 1) i - g (Pi.single j 1) i) (x : I → S) : |
| 17 | a • (f x - g x) = f x - g x := by |
| 18 | have he (F : (I → S) →ₗ[S] (I → S)) : F x = ∑ j, x j • F (Pi.single j 1) := by |
| 19 | simp_rw [← F.map_smul] |
| 20 | rw [← map_sum] |
| 21 | congr 1 |
| 22 | funext i |
| 23 | simp [Pi.single_apply] |
| 24 | rw [he f, he g, ← Finset.sum_sub_distrib, Finset.smul_sum] |
| 25 | apply Finset.sum_congr rfl |
| 26 | intro j _ |
| 27 | rw [← smul_sub, smul_comm] |
| 28 | congr 1 |
| 29 | funext i |
| 30 | exact h i j |
| 31 | |
| 32 | end |
| 33 | |
| 34 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.LinearMatrixSupport.CM |