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.Affine.ModuleZeroCriterion |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Quasicoherent.Kernels |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AssociatedPrimeScalarInjectivity |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.ModuleScalars |
| 5 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Limits |
| 6 | |
| 7 | /-! # Module Monomorphisms -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.ModuleMonomorphisms |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! On an affine scheme, a map of quasicoherent modules is a monomorphism exactly when its actual global-section map is injective. Scalar multiplication can therefore be tested on the associated primes of the actual section module. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | universe u |
| 16 | |
| 17 | theorem module_globalSections_injective_of_mono |
| 18 | {X : Scheme.{u}} {M N : X.Modules} (f : M ⟶ N) [Mono f] : |
| 19 | Function.Injective (f.app ⊤) := by |
| 20 | let F : X.Modules ⥤ ModuleCat.{u} Γ(X, ⊤) := |
| 21 | SheafOfModules.evaluation X.ringCatSheaf (.op ⊤) |
| 22 | have : PreservesFiniteLimits F := |
| 23 | SheafOfModules.Finite.evaluationPreservesFiniteLimits X.ringCatSheaf (.op ⊤) |
| 24 | have : Mono (F.map f) := by infer_instance |
| 25 | exact (ModuleCat.mono_iff_injective (F.map f)).mp inferInstance |
| 26 | |
| 27 | theorem affineModule_mono_iff_globalSections_injective |
| 28 | {X : Scheme.{u}} [IsAffine X] {M N : X.Modules} |
| 29 | [M.IsQuasicoherent] [N.IsQuasicoherent] (f : M ⟶ N) : |
| 30 | Mono f ↔ Function.Injective (f.app ⊤) := by |
| 31 | refine ⟨fun h => @module_globalSections_injective_of_mono X M N f h, fun hf => ?_⟩ |
| 32 | have : (kernel f).IsQuasicoherent := Quasicoherent.Kernels.module_quasicoherent_kernel f |
| 33 | have hi := module_globalSections_injective_of_mono (kernel.ι f) |
| 34 | have hzero (x : Γ(kernel f, ⊤)) : x = 0 := by |
| 35 | apply hi |
| 36 | apply hf |
| 37 | have hcomp := congrArg (fun q : kernel f ⟶ N => q.app ⊤ x) (kernel.condition f) |
| 38 | change f.app ⊤ ((kernel.ι f).app ⊤ x) = 0 at hcomp |
| 39 | exact hcomp.trans (by rw [map_zero, map_zero]) |
| 40 | have hsub : Subsingleton Γ(kernel f, ⊤) := |
| 41 | ⟨fun x y => (hzero x).trans (hzero y).symm⟩ |
| 42 | have hk : IsZero (kernel f) := |
| 43 | (ModuleZeroCriterion.affineModule_isZero_iff_globalSections_subsingleton (kernel f)).mpr hsub |
| 44 | exact Abelian.mono_of_kernel_ι_eq_zero f (hk.eq_of_src _ _) |
| 45 | |
| 46 | theorem affineModuleScalar_mono_iff_avoids_associatedPrimes |
| 47 | {X : Scheme.{u}} [IsAffine X] [IsNoetherianRing Γ(X, ⊤)] |
| 48 | (M : X.Modules) [M.IsQuasicoherent] (r : Γ(X, ⊤)) : |
| 49 | Mono (Global.ModuleScalars.globalModuleScalar M r) ↔ |
| 50 | ∀ P ∈ associatedPrimes Γ(X, ⊤) Γ(M, ⊤), r ∉ P := by |
| 51 | rw [affineModule_mono_iff_globalSections_injective] |
| 52 | have he : (fun x : Γ(M, ⊤) => (Global.ModuleScalars.globalModuleScalar M r).app ⊤ x) = |
| 53 | (fun x : Γ(M, ⊤) => r • x) := by |
| 54 | funext x |
| 55 | change X.presheaf.map (𝟙 (.op (⊤ : X.Opens))) r • x = r • x |
| 56 | rw [X.presheaf.map_id] |
| 57 | rfl |
| 58 | change Function.Injective (fun x : Γ(M, ⊤) => (Global.ModuleScalars.globalModuleScalar M r).app ⊤ x) ↔ _ |
| 59 | rw [he] |
| 60 | exact AssociatedPrimeScalarInjectivity.scalar_injective_iff_avoids_associatedPrimes r |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.ModuleMonomorphisms |