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.Coordinate.SubmoduleExtension |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.RightExactness |
| 3 | import Mathlib.RingTheory.TensorProduct.Pi |
| 4 | |
| 5 | /-! # Grassmannian Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.GrassmannianBaseChange.Grassmannian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | Base change of actual coordinate Grassmannian quotients. Their relations |
| 13 | extend as submodules, and the new quotient is the tensor product of the |
| 14 | original finite projective quotient. |
| 15 | -/ |
| 16 | |
| 17 | open TensorProduct |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {R S ν : Type u} [CommRing R] [CommRing S] [Algebra R S] |
| 22 | variable [Fintype ν] [DecidableEq ν] |
| 23 | |
| 24 | theorem coordinateSubmoduleExtension_eq_baseChange (N : Submodule R (ν → R)) : |
| 25 | Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension (algebraMap R S) N = |
| 26 | (N.baseChange S).map (TensorProduct.piScalarRight R S S ν).toLinearMap := by |
| 27 | rw [Submodule.baseChange_eq_span, Submodule.map_span, Submodule.map_coe, ← Set.image_comp] |
| 28 | have hc : (fun x : ν → R => algebraMap R S ∘ x) = |
| 29 | (TensorProduct.piScalarRight R S S ν).toLinearMap ∘ TensorProduct.mk R S (ν → R) 1 := by |
| 30 | funext x j |
| 31 | simp [TensorProduct.piScalarRight_apply, TensorProduct.piScalarRightHom_tmul, |
| 32 | Function.comp_apply, Algebra.smul_def] |
| 33 | exact congrArg (Submodule.span S) (congrArg (fun f => f '' (N : Set (ν → R))) hc) |
| 34 | |
| 35 | omit [Fintype ν] [DecidableEq ν] in |
| 36 | theorem quotientMk_baseChange_kernel (N : Submodule R (ν → R)) : |
| 37 | (N.mkQ.baseChange S).ker = N.baseChange S := by |
| 38 | apply Submodule.restrictScalars_injective R |
| 39 | exact lTensor_mkQ S N |
| 40 | |
| 41 | def coordinateBaseChangeQuotientMap (N : Submodule R (ν → R)) : |
| 42 | (ν → S) →ₗ[S] S ⊗[R] ((ν → R) ⧸ N) := |
| 43 | (N.mkQ.baseChange S).comp (TensorProduct.piScalarRight R S S ν).symm.toLinearMap |
| 44 | |
| 45 | theorem coordinateBaseChangeQuotientMap_surjective (N : Submodule R (ν → R)) : |
| 46 | Function.Surjective (coordinateBaseChangeQuotientMap (S := S) N) := |
| 47 | (LinearMap.baseChange_surjective S N.mkQ_surjective).comp |
| 48 | (TensorProduct.piScalarRight R S S ν).symm.surjective |
| 49 | |
| 50 | theorem coordinateBaseChangeQuotientMap_kernel (N : Submodule R (ν → R)) : |
| 51 | (coordinateBaseChangeQuotientMap (S := S) N).ker = Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension (algebraMap R S) N := by |
| 52 | rw [coordinateBaseChangeQuotientMap, LinearMap.ker_comp, quotientMk_baseChange_kernel, |
| 53 | Submodule.comap_equiv_eq_map_symm, coordinateSubmoduleExtension_eq_baseChange] |
| 54 | rfl |
| 55 | |
| 56 | def coordinateBaseChangeQuotientEquiv (N : Submodule R (ν → R)) : |
| 57 | ((ν → S) ⧸ Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension (algebraMap R S) N) ≃ₗ[S] S ⊗[R] ((ν → R) ⧸ N) := |
| 58 | (Submodule.quotEquivOfEq _ _ (coordinateBaseChangeQuotientMap_kernel (S := S) N).symm) ≪≫ₗ |
| 59 | (coordinateBaseChangeQuotientMap (S := S) N).quotKerEquivOfSurjective |
| 60 | (coordinateBaseChangeQuotientMap_surjective N) |
| 61 | |
| 62 | def coordinateGrassmannianBaseChange {k : ℕ} (N : Module.Grassmannian R (ν → R) k) : |
| 63 | Module.Grassmannian S (ν → S) k where |
| 64 | toSubmodule := Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension (algebraMap R S) N.toSubmodule |
| 65 | finite_quotient := Module.Finite.equiv (coordinateBaseChangeQuotientEquiv (S := S) N.toSubmodule).symm |
| 66 | projective_quotient := Module.Projective.of_equiv (coordinateBaseChangeQuotientEquiv (S := S) N.toSubmodule).symm |
| 67 | rankAtStalk_eq p := by |
| 68 | rw [congrFun (Module.rankAtStalk_eq_of_equiv |
| 69 | (coordinateBaseChangeQuotientEquiv (S := S) N.toSubmodule)) p, |
| 70 | Module.rankAtStalk_baseChange] |
| 71 | exact N.rankAtStalk_eq _ |
| 72 | |
| 73 | omit [Algebra R S] in |
| 74 | def coordinateGrassmannianMap {k : ℕ} (φ : R →+* S) (N : Module.Grassmannian R (ν → R) k) : |
| 75 | Module.Grassmannian S (ν → S) k := |
| 76 | letI := φ.toAlgebra |
| 77 | coordinateGrassmannianBaseChange N |
| 78 | |
| 79 | omit [Algebra R S] in |
| 80 | theorem coordinateGrassmannianMap_toSubmodule {k : ℕ} (φ : R →+* S) |
| 81 | (N : Module.Grassmannian R (ν → R) k) : |
| 82 | (coordinateGrassmannianMap φ N).toSubmodule = Normalized.KernelBaseChange.Grassmannian.coordinateSubmoduleExtension φ N.toSubmodule := rfl |
| 83 | |
| 84 | theorem coordinateGrassmannianMap_id {k : ℕ} (N : Module.Grassmannian R (ν → R) k) : |
| 85 | coordinateGrassmannianMap (RingHom.id R) N = N := by |
| 86 | apply Module.Grassmannian.ext |
| 87 | exact SubmoduleExtension.Grassmannian.coordinateSubmoduleExtension_id N.toSubmodule |
| 88 | |
| 89 | omit [Algebra R S] in |
| 90 | theorem coordinateGrassmannianMap_comp {A : Type u} [CommRing A] {k : ℕ} |
| 91 | (φ : R →+* S) (ψ : S →+* A) (N : Module.Grassmannian R (ν → R) k) : |
| 92 | coordinateGrassmannianMap (ψ.comp φ) N = coordinateGrassmannianMap ψ (coordinateGrassmannianMap φ N) := by |
| 93 | apply Module.Grassmannian.ext |
| 94 | exact SubmoduleExtension.Grassmannian.coordinateSubmoduleExtension_comp φ ψ N.toSubmodule |
| 95 | |
| 96 | omit [Algebra R S] in |
| 97 | theorem coordinateGrassmannianMap_normalized {ι : Type u} [Fintype ι] [DecidableEq ι] |
| 98 | (φ : R →+* S) (a : ι → ν) (Q : Matrix ι ν R) (hQ : Normalized.Matrices.Grassmannian.IsNormalized a Q) : |
| 99 | coordinateGrassmannianMap φ (Normalized.Quotients.Grassmannian.normalizedGrassmannian a Q hQ) = |
| 100 | Normalized.Quotients.Grassmannian.normalizedGrassmannian a (Q.map φ) (hQ.map φ) := by |
| 101 | apply Module.Grassmannian.ext |
| 102 | exact Normalized.KernelBaseChange.Grassmannian.normalizedKernel_baseChange φ a Q hQ |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Coordinate.GrassmannianBaseChange.Grassmannian |