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.PELModuli.IntegralModel.Affine.ModuleVanishing |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.AnnihilatorLocalization |
| 3 | import Mathlib.AlgebraicGeometry.IdealSheaf.Basic |
| 4 | |
| 5 | /-! # Coherent Annihilator -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.CoherentAnnihilator |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual annihilator ideal sheaf of a finite quasicoherent module, |
| 12 | with its closed support identified by the maximal vanishing open. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 17 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | def coherentAnnihilator {X : Scheme.{u}} (M : X.Modules) |
| 22 | [M.IsQuasicoherent] [M.IsFiniteType] : X.IdealSheafData where |
| 23 | ideal U := Module.annihilator Γ(X, U.1) Γ(M, U.1) |
| 24 | map_ideal_basicOpen U r := by |
| 25 | let : Module.Finite Γ(X, U.1) Γ(M, U.1) := |
| 26 | SheafCohomology.Projective.Quasicoherent.Scheme.Modules.sections_module_finite_of_isFiniteType_of_isAffineOpen M U |
| 27 | let : Module Γ(X, U.1) Γ(M, X.basicOpen r) := |
| 28 | Module.compHom _ (algebraMap Γ(X, U.1) Γ(X, X.basicOpen r)) |
| 29 | let : IsScalarTower Γ(X, U.1) Γ(X, X.basicOpen r) Γ(M, X.basicOpen r) := |
| 30 | .of_algebraMap_smul fun _ _ => rfl |
| 31 | let : IsLocalization.Away r Γ(X, X.basicOpen r) := U.2.isLocalization_basicOpen r |
| 32 | let g : Γ(M, U.1) →ₗ[Γ(X, U.1)] Γ(M, X.basicOpen r) := |
| 33 | { toFun := M.presheaf.map (homOfLE (X.basicOpen_le r)).op |
| 34 | map_add' := (M.presheaf.map (homOfLE (X.basicOpen_le r)).op).hom.map_add |
| 35 | map_smul' := fun a x => M.map_smul (homOfLE (X.basicOpen_le r)) a x } |
| 36 | have : IsLocalizedModule.Away r g := |
| 37 | SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isLocalizedModuleAway_basicOpen_of_isQuasicoherent_of_isAffineOpen M U r |
| 38 | change (Module.annihilator Γ(X, U.1) Γ(M, U.1)).map |
| 39 | (X.presheaf.map (homOfLE (X.basicOpen_le r)).op).hom = |
| 40 | Module.annihilator Γ(X, X.basicOpen r) Γ(M, X.basicOpen r) |
| 41 | exact AnnihilatorLocalization.annihilator_map_eq_of_isLocalizedModule (Submonoid.powers r) |
| 42 | Γ(X, X.basicOpen r) g |
| 43 | |
| 44 | theorem coherentAnnihilator_mem_support_iff {X : Scheme.{u}} (M : X.Modules) |
| 45 | [M.IsQuasicoherent] [M.IsFiniteType] (x : X) : |
| 46 | x ∈ (coherentAnnihilator M).support ↔ x ∉ ModuleVanishingOpen.moduleVanishingOpen M := by |
| 47 | constructor |
| 48 | · intro hx hv |
| 49 | obtain ⟨V, hxV, hV⟩ := (ModuleVanishingOpen.mem_moduleVanishingOpen M x).mp hv |
| 50 | let U : X.affineOpens := |
| 51 | ⟨(X.affineCover.f (X.affineCover.idx x)).opensRange, isAffineOpen_opensRange _⟩ |
| 52 | have hxU : x ∈ U.1 := X.affineCover.covers x |
| 53 | obtain ⟨r, hrV, hxr⟩ := U.2.exists_basicOpen_le ⟨x, hxV⟩ hxU |
| 54 | obtain ⟨n, hn⟩ := (Affine.ModuleVanishing.affineOpenModule_basicOpen_isZero_iff_pow_annihilator M U r).mp |
| 55 | (ModuleVanishingOpen.module_restrict_isZero_of_le M hrV hV) |
| 56 | have hz : x ∈ X.zeroLocus (U := U.1) |
| 57 | (Module.annihilator Γ(X, U.1) Γ(M, U.1)).radical := by |
| 58 | rw [X.zeroLocus_radical] |
| 59 | exact (coherentAnnihilator M).mem_support_iff_of_mem hxU |>.mp hx |
| 60 | exact (X.mem_zeroLocus_iff _ x).mp hz r ⟨n, hn⟩ hxr |
| 61 | · intro hx |
| 62 | rw [(coherentAnnihilator M).mem_support_iff] |
| 63 | intro U |
| 64 | rw [X.mem_zeroLocus_iff] |
| 65 | intro r hr hxr |
| 66 | change r ∈ Module.annihilator Γ(X, U.1) Γ(M, U.1) at hr |
| 67 | apply hx |
| 68 | exact (ModuleVanishingOpen.mem_moduleVanishingOpen M x).mpr ⟨X.basicOpen r, hxr, |
| 69 | (Affine.ModuleVanishing.affineOpenModule_basicOpen_isZero_iff_pow_annihilator M U r).mpr |
| 70 | ⟨1, by simpa using hr⟩⟩ |
| 71 | |
| 72 | theorem coherentAnnihilator_support_eq {X : Scheme.{u}} (M : X.Modules) |
| 73 | [M.IsQuasicoherent] [M.IsFiniteType] : |
| 74 | ((coherentAnnihilator M).support : Set X) = |
| 75 | ((ModuleVanishingOpen.moduleVanishingOpen M : X.Opens) : Set X)ᶜ := by |
| 76 | ext x |
| 77 | exact coherentAnnihilator_mem_support_iff M x |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.CoherentAnnihilator |