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.Matrices |
| 2 | import Mathlib.RingTheory.Grassmannian |
| 3 | |
| 4 | /-! # Quotients -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.Quotients.Grassmannian |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Normalized matrices classify genuine quotient submodules. Their quotient is |
| 12 | finite free, and fixed selected columns determine the matrix from its kernel. |
| 13 | -/ |
| 14 | |
| 15 | universe u v w |
| 16 | |
| 17 | variable {R : Type u} [CommRing R] |
| 18 | variable {ι : Type v} {ν : Type w} [Fintype ι] [Fintype ν] [DecidableEq ι] [DecidableEq ν] |
| 19 | |
| 20 | def selectedBasisMap (a : ι → ν) : (ι → R) →ₗ[R] (ν → R) := |
| 21 | Matrix.toLin' ((1 : Matrix ν ν R).submatrix id a) |
| 22 | |
| 23 | theorem matrix_comp_selectedBasisMap (a : ι → ν) (Q : Matrix ι ν R) : |
| 24 | (Matrix.toLin' Q).comp (selectedBasisMap a) = Matrix.toLin' (Matrices.Grassmannian.selectedColumns a Q) := by |
| 25 | change (Matrix.toLin' Q).comp (Matrix.toLin' ((1 : Matrix ν ν R).submatrix id a)) = _ |
| 26 | rw [← Matrix.toLin'_mul] |
| 27 | exact congrArg Matrix.toLin' (Matrix.mul_submatrix_one (Equiv.refl ν) a Q) |
| 28 | |
| 29 | theorem normalizedMatrix_comp_selectedBasisMap (a : ι → ν) (Q : Matrix ι ν R) |
| 30 | (h : Matrices.Grassmannian.IsNormalized a Q) : (Matrix.toLin' Q).comp (selectedBasisMap a) = LinearMap.id := by |
| 31 | rw [matrix_comp_selectedBasisMap, h, Matrix.toLin'_one] |
| 32 | |
| 33 | theorem normalizedMatrix_section (a : ι → ν) (Q : Matrix ι ν R) |
| 34 | (h : Matrices.Grassmannian.IsNormalized a Q) (x : ι → R) : |
| 35 | Matrix.toLin' Q (selectedBasisMap a x) = x := |
| 36 | LinearMap.congr_fun (normalizedMatrix_comp_selectedBasisMap a Q h) x |
| 37 | |
| 38 | theorem normalizedMatrix_surjective (a : ι → ν) (Q : Matrix ι ν R) |
| 39 | (h : Matrices.Grassmannian.IsNormalized a Q) : Function.Surjective (Matrix.toLin' Q) := |
| 40 | fun x => ⟨selectedBasisMap a x, normalizedMatrix_section a Q h x⟩ |
| 41 | |
| 42 | def normalizedQuotientEquiv (a : ι → ν) (Q : Matrix ι ν R) (h : Matrices.Grassmannian.IsNormalized a Q) : |
| 43 | ((ν → R) ⧸ (Matrix.toLin' Q).ker) ≃ₗ[R] (ι → R) := |
| 44 | (Matrix.toLin' Q).quotKerEquivOfSurjective (normalizedMatrix_surjective a Q h) |
| 45 | |
| 46 | theorem normalizedMatrix_eq_of_kernel_eq (a : ι → ν) (Q K : Matrix ι ν R) |
| 47 | (hQ : Matrices.Grassmannian.IsNormalized a Q) (hK : Matrices.Grassmannian.IsNormalized a K) |
| 48 | (hker : (Matrix.toLin' Q).ker = (Matrix.toLin' K).ker) : Q = K := by |
| 49 | apply Matrix.toLin'.injective |
| 50 | apply LinearMap.ext |
| 51 | intro x |
| 52 | have hx : x - selectedBasisMap a (Matrix.toLin' Q x) ∈ (Matrix.toLin' Q).ker := by |
| 53 | change Matrix.toLin' Q (x - selectedBasisMap a (Matrix.toLin' Q x)) = 0 |
| 54 | rw [map_sub, normalizedMatrix_section a Q hQ, sub_self] |
| 55 | rw [hker] at hx |
| 56 | change Matrix.toLin' K (x - selectedBasisMap a (Matrix.toLin' Q x)) = 0 at hx |
| 57 | rw [map_sub, normalizedMatrix_section a K hK, sub_eq_zero] at hx |
| 58 | exact hx.symm |
| 59 | |
| 60 | def normalizedGrassmannian (a : ι → ν) (Q : Matrix ι ν R) (h : Matrices.Grassmannian.IsNormalized a Q) : |
| 61 | Module.Grassmannian R (ν → R) (Fintype.card ι) where |
| 62 | toSubmodule := (Matrix.toLin' Q).ker |
| 63 | finite_quotient := Module.Finite.equiv (normalizedQuotientEquiv a Q h).symm |
| 64 | projective_quotient := Module.Projective.of_equiv (normalizedQuotientEquiv a Q h).symm |
| 65 | rankAtStalk_eq p := by |
| 66 | have : Nontrivial R := Function.Surjective.nontrivial |
| 67 | (f := Ideal.Quotient.mk p.asIdeal) Ideal.Quotient.mk_surjective |
| 68 | rw [congrFun (Module.rankAtStalk_eq_of_equiv (normalizedQuotientEquiv a Q h)) p, |
| 69 | Module.rankAtStalk_eq_finrank_of_free] |
| 70 | simp |
| 71 | |
| 72 | theorem normalizedGrassmannian_injective (a : ι → ν) : |
| 73 | Function.Injective (fun Q : {Q : Matrix ι ν R // Matrices.Grassmannian.IsNormalized a Q} => |
| 74 | normalizedGrassmannian a Q.val Q.property) := by |
| 75 | intro Q K h |
| 76 | apply Subtype.ext |
| 77 | exact normalizedMatrix_eq_of_kernel_eq a Q.val K.val Q.property K.property |
| 78 | (congrArg Module.Grassmannian.toSubmodule h) |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Normalized.Quotients.Grassmannian |