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 | import Mathlib.LinearAlgebra.Quotient.Basic |
| 3 | |
| 4 | /-! # Cokernel Coordinates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Matrix.CokernelCoordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Changing to basis coordinates identifies the actual cokernel of a linear |
| 11 | map with the cokernel of its coordinate matrix. -/ |
| 12 | |
| 13 | open _root_.Module |
| 14 | |
| 15 | universe u v w z t |
| 16 | variable {R : Type u} [CommRing R] |
| 17 | variable {V : Type v} {W : Type w} [AddCommGroup V] [AddCommGroup W] [Module R V] [Module R W] |
| 18 | variable {ι : Type z} {κ : Type t} [Fintype ι] [Fintype κ] [DecidableEq ι] |
| 19 | |
| 20 | theorem matrix_range_map_basis (bV : Basis ι R V) (bW : Basis κ R W) (f : V →ₗ[R] W) : |
| 21 | (Matrix.toLin' (LinearMap.toMatrix bV bW f)).range.map bW.equivFun.symm.toLinearMap = f.range := by |
| 22 | have hm : Matrix.toLin' (LinearMap.toMatrix bV bW f) = |
| 23 | bW.equivFun.toLinearMap.comp (f.comp bV.equivFun.symm.toLinearMap) := by |
| 24 | rw [LinearMap.toMatrix, LinearEquiv.trans_apply, Matrix.toLin'_toMatrix'] |
| 25 | rfl |
| 26 | have hc : bW.equivFun.symm.toLinearMap.comp (Matrix.toLin' (LinearMap.toMatrix bV bW f)) = |
| 27 | f.comp bV.equivFun.symm.toLinearMap := by |
| 28 | rw [hm] |
| 29 | apply LinearMap.ext |
| 30 | intro x |
| 31 | exact bW.equivFun.symm_apply_apply (f (bV.equivFun.symm x)) |
| 32 | rw [← LinearMap.range_comp, hc] |
| 33 | ext w |
| 34 | constructor |
| 35 | · rintro ⟨x, rfl⟩ |
| 36 | exact ⟨bV.equivFun.symm x, rfl⟩ |
| 37 | · rintro ⟨v, rfl⟩ |
| 38 | refine ⟨bV.equivFun v, ?_⟩ |
| 39 | exact congrArg f (bV.equivFun.symm_apply_apply v) |
| 40 | |
| 41 | def matrixCokernelBasisEquiv (bV : Basis ι R V) (bW : Basis κ R W) (f : V →ₗ[R] W) : |
| 42 | ((κ → R) ⧸ (Matrix.toLin' (LinearMap.toMatrix bV bW f)).range) ≃ₗ[R] (W ⧸ f.range) := |
| 43 | Submodule.Quotient.equiv _ _ bW.equivFun.symm (matrix_range_map_basis bV bW f) |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Matrix.CokernelCoordinates |