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.SplitEvaluationCokernel |
| 2 | |
| 3 | /-! # Basis Evaluation Retraction -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.BasisEvaluationRetraction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A left inverse of the evaluation matrix constructs a left inverse |
| 10 | of the evaluation map itself, using the chosen basis. -/ |
| 11 | universe u v w z |
| 12 | variable {R : Type u} [CommRing R] |
| 13 | variable {ι : Type v} {ν : Type w} [Fintype ι] [Fintype ν] [DecidableEq ι] [DecidableEq ν] |
| 14 | variable {V : Type z} [AddCommGroup V] [Module R V] |
| 15 | |
| 16 | theorem linearEvaluation_leftInverse_of_basisMatrix |
| 17 | (b : Module.Basis ν R V) (ev : V →ₗ[R] (ι → R)) |
| 18 | (B : Matrix ν ι R) (hB : B * BasisEvaluationMatrices.basisEvaluationMatrix b ev = 1) : |
| 19 | ∃ g : (ι → R) →ₗ[R] V, g.comp ev = LinearMap.id := by |
| 20 | let g := b.equivFun.symm.toLinearMap.comp (Matrix.toLin' B) |
| 21 | have hlin : (Matrix.toLin' B).comp (Matrix.toLin' (BasisEvaluationMatrices.basisEvaluationMatrix b ev)) = LinearMap.id := by |
| 22 | rw [← Matrix.toLin'_mul, hB, Matrix.toLin'_one] |
| 23 | refine ⟨g, ?_⟩ |
| 24 | apply LinearMap.ext |
| 25 | intro x |
| 26 | have h := LinearMap.congr_fun hlin (b.equivFun x) |
| 27 | rw [BasisEvaluationMatrices.basisEvaluationMatrix_linearMap] at h |
| 28 | simp only [LinearMap.comp_apply, LinearEquiv.coe_coe, LinearEquiv.symm_apply_apply, |
| 29 | LinearMap.id_apply] at h |
| 30 | change b.equivFun.symm (Matrix.toLin' B (ev x)) = x |
| 31 | rw [h, LinearEquiv.symm_apply_apply] |
| 32 | |
| 33 | theorem linearEvaluation_projective_cokernel_of_basisMatrix |
| 34 | (b : Module.Basis ν R V) (ev : V →ₗ[R] (ι → R)) |
| 35 | (B : Matrix ν ι R) (hB : B * BasisEvaluationMatrices.basisEvaluationMatrix b ev = 1) : |
| 36 | Module.Projective R ((ι → R) ⧸ ev.range) := by |
| 37 | obtain ⟨g, hg⟩ := linearEvaluation_leftInverse_of_basisMatrix b ev B hB |
| 38 | exact SplitEvaluationCokernel.projective_cokernel_of_leftInverse ev g hg |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.BasisEvaluationRetraction |