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 Map Evaluation -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.LinearMapEvaluation.TestTransport |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Evaluation of a linear operator is multiplication by the evaluated |
| 10 | matrix of its values on the standard basis. -/ |
| 11 | |
| 12 | open scoped Classical _root_.Matrix |
| 13 | |
| 14 | theorem linearMap_evaluate {R S I : Type*} [CommRing R] [CommRing S] |
| 15 | [Fintype I] [DecidableEq I] (ρ : R →+* S) (f : (I → R) →ₗ[R] (I → R)) (x : I → R) : |
| 16 | (fun i => ρ (f x i)) = |
| 17 | (fun i j => ρ (f (Pi.single j 1) i)) *ᵥ (fun i => ρ (x i)) := by |
| 18 | have he := LinearMap.toMatrix'_mulVec f x |
| 19 | funext i |
| 20 | exact (congrArg (fun y : I → R => ρ (y i)) he).symm.trans |
| 21 | (RingHom.map_mulVec ρ (LinearMap.toMatrix' f) x i) |
| 22 | |
| 23 | theorem linearMap_on_scalar_vectors {R S I : Type*} [CommRing R] [CommRing S] |
| 24 | [Fintype I] [DecidableEq I] (ρ : R →+* S) (M : Matrix I I R) |
| 25 | (f : (I → S) →ₗ[S] (I → S)) |
| 26 | (hf : ∀ i j, f (Pi.single j 1) i = ρ (M i j)) (x : I → R) : |
| 27 | f (fun i => ρ (x i)) = fun i => ρ ((M *ᵥ x) i) := by |
| 28 | have hm : LinearMap.toMatrix' f = M.map ρ := by |
| 29 | ext i j |
| 30 | exact hf i j |
| 31 | rw [← LinearMap.toMatrix'_mulVec f, hm] |
| 32 | funext i |
| 33 | exact (RingHom.map_mulVec ρ M x i).symm |
| 34 | |
| 35 | end |
| 36 | |
| 37 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.LinearMapEvaluation.TestTransport |