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.HilbertScheme.Presentations.Normalized.OverlapEquations |
| 2 | |
| 3 | /-! # Kernel Base Change -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.KernelBaseChange.Grassmannian |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | The kernel of a normalized quotient matrix commutes with every coefficient |
| 11 | ring map, as extension of its actual submodule of relations. The proof uses |
| 12 | the explicit projection onto the kernel furnished by the selected columns. |
| 13 | -/ |
| 14 | |
| 15 | universe u v w |
| 16 | |
| 17 | variable {R S : Type u} [CommRing R] [CommRing S] |
| 18 | variable {ι : Type v} {ν : Type w} [Fintype ι] [Fintype ν] [DecidableEq ι] [DecidableEq ν] |
| 19 | |
| 20 | def coordinateSubmoduleExtension (φ : R →+* S) (N : Submodule R (ν → R)) : |
| 21 | Submodule S (ν → S) := Submodule.span S ((fun x : ν → R => φ ∘ x) '' (N : Set (ν → R))) |
| 22 | |
| 23 | def normalizedKernelMatrix (a : ι → ν) (Q : Matrix ι ν R) : Matrix ν ν R := |
| 24 | 1 - (1 : Matrix ν ν R).submatrix id a * Q |
| 25 | |
| 26 | theorem normalizedKernelMatrix_mul (a : ι → ν) (Q : Matrix ι ν R) (hQ : Matrices.Grassmannian.IsNormalized a Q) : |
| 27 | Q * normalizedKernelMatrix a Q = 0 := by |
| 28 | have hs : Q * (1 : Matrix ν ν R).submatrix id a = Matrices.Grassmannian.selectedColumns a Q := |
| 29 | Matrix.mul_submatrix_one (Equiv.refl ν) a Q |
| 30 | rw [normalizedKernelMatrix, Matrix.mul_sub, Matrix.mul_one, ← Matrix.mul_assoc, |
| 31 | hs, hQ, Matrix.one_mul, sub_self] |
| 32 | |
| 33 | theorem normalizedKernelMatrix_range (a : ι → ν) (Q : Matrix ι ν R) (hQ : Matrices.Grassmannian.IsNormalized a Q) : |
| 34 | (Matrix.toLin' (normalizedKernelMatrix a Q)).range = (Matrix.toLin' Q).ker := by |
| 35 | apply le_antisymm |
| 36 | · rw [LinearMap.range_le_ker_iff, ← Matrix.toLin'_mul, normalizedKernelMatrix_mul a Q hQ, map_zero] |
| 37 | · intro x hx |
| 38 | refine ⟨x, ?_⟩ |
| 39 | change Matrix.toLin' Q x = 0 at hx |
| 40 | rw [normalizedKernelMatrix, map_sub, Matrix.toLin'_one, LinearMap.sub_apply, |
| 41 | Matrix.toLin'_mul, LinearMap.comp_apply, hx, map_zero, sub_zero] |
| 42 | rfl |
| 43 | |
| 44 | omit [Fintype ν] [DecidableEq ι] in |
| 45 | theorem normalizedKernelMatrix_map (φ : R →+* S) (a : ι → ν) (Q : Matrix ι ν R) : |
| 46 | (normalizedKernelMatrix a Q).map φ = normalizedKernelMatrix a (Q.map φ) := by |
| 47 | ext i j |
| 48 | simp [normalizedKernelMatrix, Matrix.mul_apply, Matrix.one_apply, Matrix.submatrix_apply, |
| 49 | Matrix.map_apply, map_sub, map_sum, apply_ite] |
| 50 | |
| 51 | omit [Fintype ι] [DecidableEq ι] in |
| 52 | theorem coordinateSubmoduleExtension_le_kernel (φ : R →+* S) (Q : Matrix ι ν R) : |
| 53 | coordinateSubmoduleExtension φ (Matrix.toLin' Q).ker ≤ (Matrix.toLin' (Q.map φ)).ker := by |
| 54 | apply Submodule.span_le.mpr |
| 55 | rintro _ ⟨x, hx, rfl⟩ |
| 56 | change (Q.map φ).mulVec (φ ∘ x) = 0 |
| 57 | ext i |
| 58 | rw [← RingHom.map_mulVec] |
| 59 | change Matrix.toLin' Q x = 0 at hx |
| 60 | change φ (Matrix.toLin' Q x i) = 0 |
| 61 | rw [hx] |
| 62 | exact φ.map_zero |
| 63 | |
| 64 | /-- Coefficient extension of the relation submodule is exactly the kernel |
| 65 | of the coefficient-extended quotient matrix, without a flatness hypothesis. -/ |
| 66 | theorem normalizedKernel_baseChange (φ : R →+* S) (a : ι → ν) (Q : Matrix ι ν R) |
| 67 | (hQ : Matrices.Grassmannian.IsNormalized a Q) : |
| 68 | coordinateSubmoduleExtension φ (Matrix.toLin' Q).ker = (Matrix.toLin' (Q.map φ)).ker := by |
| 69 | apply le_antisymm (coordinateSubmoduleExtension_le_kernel φ Q) |
| 70 | rw [← normalizedKernelMatrix_range a (Q.map φ) (hQ.map φ), |
| 71 | ← normalizedKernelMatrix_map, Matrix.range_toLin'] |
| 72 | apply Submodule.span_le.mpr |
| 73 | rintro _ ⟨j, rfl⟩ |
| 74 | apply Submodule.subset_span |
| 75 | refine ⟨(normalizedKernelMatrix a Q).col j, ?_, rfl⟩ |
| 76 | rw [← normalizedKernelMatrix_range a Q hQ, Matrix.range_toLin'] |
| 77 | exact Submodule.subset_span ⟨j, rfl⟩ |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.KernelBaseChange.Grassmannian |