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.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.MatrixSplitting |
| 2 | import Mathlib.LinearAlgebra.Basis.Defs |
| 3 | |
| 4 | /-! # Basis Evaluation Matrices -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.BasisEvaluationMatrices |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Evaluating a basis gives the matrix of the evaluation map. |
| 11 | Injection survives arbitrary unit rescaling of its rows. -/ |
| 12 | open scoped BigOperators |
| 13 | universe u v w z |
| 14 | variable {R : Type u} [CommRing R] |
| 15 | variable {ι : Type v} {ν : Type w} [Fintype ι] [Fintype ν] [DecidableEq ι] [DecidableEq ν] |
| 16 | variable {V : Type z} [AddCommGroup V] [Module R V] |
| 17 | |
| 18 | def basisEvaluationMatrix (b : Module.Basis ν R V) (ev : V →ₗ[R] (ι → R)) : Matrix ι ν R := |
| 19 | fun i j => ev (b j) i |
| 20 | |
| 21 | omit [Fintype ι] [DecidableEq ι] in |
| 22 | theorem basisEvaluationMatrix_linearMap (b : Module.Basis ν R V) (ev : V →ₗ[R] (ι → R)) : |
| 23 | Matrix.toLin' (basisEvaluationMatrix b ev) = ev.comp b.equivFun.symm.toLinearMap := by |
| 24 | apply LinearMap.ext |
| 25 | intro x |
| 26 | funext i |
| 27 | simp only [LinearMap.comp_apply, LinearEquiv.coe_coe, Module.Basis.equivFun_symm_apply, |
| 28 | map_sum, map_smul, Finset.sum_apply, Pi.smul_apply, smul_eq_mul, |
| 29 | Matrix.toLin'_apply, Matrix.mulVec, dotProduct, basisEvaluationMatrix] |
| 30 | apply Finset.sum_congr rfl |
| 31 | intro j _ |
| 32 | exact mul_comm _ _ |
| 33 | |
| 34 | omit [Fintype ι] [DecidableEq ι] in |
| 35 | theorem basisEvaluationMatrix_injective (b : Module.Basis ν R V) (ev : V →ₗ[R] (ι → R)) |
| 36 | (hev : Function.Injective ev) : Function.Injective (Matrix.toLin' (basisEvaluationMatrix b ev)) := by |
| 37 | rw [basisEvaluationMatrix_linearMap] |
| 38 | exact hev.comp b.equivFun.symm.injective |
| 39 | |
| 40 | omit [Fintype ι] [DecidableEq ι] in |
| 41 | theorem matrix_rowUnits_injective (F : Matrix ι ν R) (u : ι → Rˣ) |
| 42 | (hF : Function.Injective (Matrix.toLin' F)) : |
| 43 | Function.Injective (Matrix.toLin' (fun i j => (u i : R) * F i j)) := by |
| 44 | intro x y hxy |
| 45 | apply hF |
| 46 | funext i |
| 47 | apply (u i).isUnit.mul_left_cancel |
| 48 | have h := congrFun hxy i |
| 49 | change (∑ j, ((u i : R) * F i j) * x j) = ∑ j, ((u i : R) * F i j) * y j at h |
| 50 | simpa only [Matrix.toLin'_apply, Matrix.mulVec, dotProduct, Finset.mul_sum, mul_assoc] using h |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.BasisEvaluationMatrices |