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.Matrix.SurjectivityBaseChange |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.CokernelSplittingEquation |
| 3 | |
| 4 | /-! # Cokernel Kernel Base Change -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Flat.CokernelKernelBaseChange |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite matrix with flat cokernel has a split kernel projector. |
| 11 | The projector proves that its kernel commutes with every coefficient |
| 12 | map, including nonflat maps and maps between nonreduced rings. -/ |
| 13 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.CokernelSplittingEquation |
| 14 | universe u v w |
| 15 | variable {R : Type u} [CommRing R] |
| 16 | |
| 17 | theorem kernel_eq_range_of_splitting_equation |
| 18 | {M : Type v} [AddCommGroup M] [Module R M] |
| 19 | {N : Type w} [AddCommGroup N] [Module R N] |
| 20 | (f : M →ₗ[R] N) (g : N →ₗ[R] M) (h : f.comp (g.comp f) = f) : |
| 21 | f.ker = (LinearMap.id - g.comp f).range := by |
| 22 | ext x |
| 23 | constructor |
| 24 | · intro hx |
| 25 | refine ⟨x, ?_⟩ |
| 26 | change x - g (f x) = x |
| 27 | rw [LinearMap.mem_ker.mp hx, map_zero, sub_zero] |
| 28 | · rintro ⟨y, rfl⟩ |
| 29 | change f (y - g (f y)) = 0 |
| 30 | rw [map_sub] |
| 31 | have hh : f (g (f y)) = f y := LinearMap.congr_fun h y |
| 32 | rw [hh, sub_self] |
| 33 | |
| 34 | theorem matrix_kernel_projector_range |
| 35 | {μ : Type v} {ν : Type w} [Fintype μ] [Fintype ν] [DecidableEq μ] [DecidableEq ν] |
| 36 | (A : Matrix ν μ R) (X : Matrix μ ν R) (h : A * X * A = A) : |
| 37 | (Matrix.toLin' A).ker = (Matrix.toLin' (1 - X * A)).range := by |
| 38 | have hh : (Matrix.toLin' A).comp ((Matrix.toLin' X).comp (Matrix.toLin' A)) = Matrix.toLin' A := by |
| 39 | simpa only [Matrix.toLin'_mul, LinearMap.comp_assoc] using congrArg Matrix.toLin' h |
| 40 | simpa only [map_sub, Matrix.toLin'_one, Matrix.toLin'_mul] using |
| 41 | kernel_eq_range_of_splitting_equation (Matrix.toLin' A) (Matrix.toLin' X) hh |
| 42 | |
| 43 | variable {S μ ν : Type u} [CommRing S] |
| 44 | variable [Fintype μ] [Fintype ν] [DecidableEq μ] [DecidableEq ν] |
| 45 | |
| 46 | theorem matrix_kernel_baseChange_of_flat_cokernel |
| 47 | (φ : R →+* S) (A : Matrix ν μ R) |
| 48 | (hflat : Module.Flat R ((ν → R) ⧸ (Matrix.toLin' A).range)) : |
| 49 | HilbertScheme.Presentations.Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension φ (Matrix.toLin' A).ker = (Matrix.toLin' (A.map φ)).ker := by |
| 50 | obtain ⟨X, hX⟩ := (HilbertScheme.Presentations.CokernelSplittingEquation.matrix_cokernel_flat_iff_splitting_equation A).mp hflat |
| 51 | have hXS : A.map φ * X.map φ * A.map φ = A.map φ := by |
| 52 | simpa only [Matrix.map_mul] using congrArg (fun B => B.map φ) hX |
| 53 | rw [matrix_kernel_projector_range A X hX, HilbertConstruction.Matrix.SurjectivityBaseChange.coordinateSubmoduleExtension_matrixRange, |
| 54 | matrix_kernel_projector_range (A.map φ) (X.map φ) hXS] |
| 55 | have he : (1 - X * A).map φ = 1 - X.map φ * A.map φ := by |
| 56 | ext i j |
| 57 | simp [Matrix.sub_apply, Matrix.mul_apply, Matrix.one_apply] |
| 58 | rw [he] |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Flat.CokernelKernelBaseChange |