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.Quotients |
| 2 | |
| 3 | /-! # Incidence -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Normalized.Incidence |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Incidence equations in the normalized charts of the constructed Grassmannian. |
| 11 | The equations express actual containment of quotient kernels under a linear map. |
| 12 | -/ |
| 13 | |
| 14 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.Quotients.Grassmannian |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable {R : Type u} [CommRing R] |
| 19 | variable {ι ν κ μ : Type v} |
| 20 | variable [Fintype ι] [Fintype ν] [Fintype μ] |
| 21 | variable [DecidableEq ι] [DecidableEq ν] |
| 22 | |
| 23 | def normalizedKernelProjector (a : ι → ν) (Q : Matrix ι ν R) : |
| 24 | (ν → R) →ₗ[R] (ν → R) := |
| 25 | LinearMap.id - (HilbertScheme.Presentations.Normalized.Quotients.Grassmannian.selectedBasisMap a).comp (Matrix.toLin' Q) |
| 26 | |
| 27 | theorem normalizedKernelProjector_range (a : ι → ν) (Q : Matrix ι ν R) |
| 28 | (hQ : HilbertScheme.Presentations.Normalized.Matrices.Grassmannian.IsNormalized a Q) : |
| 29 | (normalizedKernelProjector a Q).range = (Matrix.toLin' Q).ker := by |
| 30 | apply le_antisymm |
| 31 | · rintro _ ⟨x, rfl⟩ |
| 32 | change Matrix.toLin' Q (x - HilbertScheme.Presentations.Normalized.Quotients.Grassmannian.selectedBasisMap a (Matrix.toLin' Q x)) = 0 |
| 33 | rw [map_sub, HilbertScheme.Presentations.Normalized.Quotients.Grassmannian.normalizedMatrix_section a Q hQ, sub_self] |
| 34 | · intro x hx |
| 35 | refine ⟨x, ?_⟩ |
| 36 | change x - HilbertScheme.Presentations.Normalized.Quotients.Grassmannian.selectedBasisMap a (Matrix.toLin' Q x) = x |
| 37 | rw [show Matrix.toLin' Q x = 0 from hx, map_zero, sub_zero] |
| 38 | |
| 39 | variable [DecidableEq μ] |
| 40 | |
| 41 | theorem normalizedKernel_incidence_iff (a : ι → ν) (Q : Matrix ι ν R) |
| 42 | (hQ : HilbertScheme.Presentations.Normalized.Matrices.Grassmannian.IsNormalized a Q) (K : Matrix κ μ R) (F : (ν → R) →ₗ[R] (μ → R)) : |
| 43 | (Matrix.toLin' Q).ker ≤ ((Matrix.toLin' K).ker).comap F ↔ |
| 44 | (Matrix.toLin' K).comp (F.comp (normalizedKernelProjector a Q)) = 0 := by |
| 45 | rw [← normalizedKernelProjector_range a Q hQ] |
| 46 | change (normalizedKernelProjector a Q).range ≤ ((Matrix.toLin' K).comp F).ker ↔ _ |
| 47 | rw [LinearMap.range_le_ker_iff, LinearMap.comp_assoc] |
| 48 | |
| 49 | def normalizedIncidenceMatrix (a : ι → ν) (Q : Matrix ι ν R) |
| 50 | (K : Matrix κ μ R) (F : Matrix μ ν R) : Matrix κ ν R := |
| 51 | K * F * (1 - ((1 : Matrix ν ν R).submatrix id a) * Q) |
| 52 | |
| 53 | theorem normalizedIncidenceMatrix_eq_zero_iff (a : ι → ν) (Q : Matrix ι ν R) |
| 54 | (hQ : HilbertScheme.Presentations.Normalized.Matrices.Grassmannian.IsNormalized a Q) (K : Matrix κ μ R) (F : Matrix μ ν R) : |
| 55 | normalizedIncidenceMatrix a Q K F = 0 ↔ |
| 56 | (Matrix.toLin' Q).ker ≤ ((Matrix.toLin' K).ker).comap (Matrix.toLin' F) := by |
| 57 | rw [normalizedKernel_incidence_iff a Q hQ] |
| 58 | have he : Matrix.toLin' (normalizedIncidenceMatrix a Q K F) = |
| 59 | (Matrix.toLin' K).comp ((Matrix.toLin' F).comp (normalizedKernelProjector a Q)) := by |
| 60 | simp only [normalizedIncidenceMatrix, normalizedKernelProjector, HilbertScheme.Presentations.Normalized.Quotients.Grassmannian.selectedBasisMap, |
| 61 | Matrix.toLin'_mul, map_sub, Matrix.toLin'_one, LinearMap.comp_assoc] |
| 62 | rw [← he] |
| 63 | exact Matrix.toLin'.map_eq_zero_iff.symm |
| 64 | |
| 65 | omit [DecidableEq ι] [DecidableEq μ] in |
| 66 | theorem normalizedIncidenceMatrix_map {T : Type*} [CommRing T] (φ : R →+* T) |
| 67 | (a : ι → ν) (Q : Matrix ι ν R) (K : Matrix κ μ R) (F : Matrix μ ν R) : |
| 68 | (normalizedIncidenceMatrix a Q K F).map φ = |
| 69 | normalizedIncidenceMatrix a (Q.map φ) (K.map φ) (F.map φ) := by |
| 70 | have he : ((1 : Matrix ν ν R).submatrix id a).map φ = |
| 71 | (1 : Matrix ν ν T).submatrix id a := by |
| 72 | change ((1 : Matrix ν ν R).map φ).submatrix id a = _ |
| 73 | rw [Matrix.map_one φ φ.map_zero φ.map_one] |
| 74 | simp only [normalizedIncidenceMatrix, Matrix.map_mul, Matrix.map_sub _ φ.map_sub, |
| 75 | Matrix.map_one φ φ.map_zero φ.map_one, he] |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Normalized.Incidence |