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.ModuleVanishingOpen |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.ModuleAnnihilation |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent |
| 4 | |
| 5 | /-! # Module Vanishing -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Affine.ModuleVanishing |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! On an affine scheme the vanishing open of a finite quasicoherent |
| 12 | module is the complement of the zero locus of its actual annihilator. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 15 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | theorem module_sections_subsingleton_of_isZero {X : Scheme.{u}} |
| 20 | (M : X.Modules) (hM : IsZero M) (U : X.Opens) : Subsingleton Γ(M, U) := by |
| 21 | have hz (x : Γ(M, U)) : x = 0 := by |
| 22 | have h := congrArg (fun a : M ⟶ M => a.app U x) (hM.eq_of_src (𝟙 M) 0) |
| 23 | exact h |
| 24 | exact ⟨fun x y => (hz x).trans (hz y).symm⟩ |
| 25 | |
| 26 | theorem affineModule_isZero_iff_globalSections_subsingleton |
| 27 | {X : Scheme.{u}} [IsAffine X] (M : X.Modules) [M.IsQuasicoherent] : |
| 28 | IsZero M ↔ Subsingleton Γ(M, ⊤) := by |
| 29 | refine ⟨fun h => module_sections_subsingleton_of_isZero M h ⊤, fun h => ?_⟩ |
| 30 | let := h |
| 31 | have ha : IsIso ((0 : M ⟶ M).val.app (op ⊤)) := by |
| 32 | rw [ConcreteCategory.isIso_iff_bijective] |
| 33 | change Function.Bijective (fun _ : Γ(M, ⊤) => (0 : Γ(M, ⊤))) |
| 34 | exact ⟨fun _ _ _ => Subsingleton.elim _ _, fun y => ⟨0, Subsingleton.elim _ _⟩⟩ |
| 35 | have : IsIso (0 : M ⟶ M) := SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isIso_of_isQuasicoherent_of_isIso_app_top 0 ha |
| 36 | exact IsZero.of_mono_zero M M |
| 37 | |
| 38 | theorem module_restrict_isZero_iff_sections_subsingleton |
| 39 | {X : Scheme.{u}} (M : X.Modules) [M.IsQuasicoherent] |
| 40 | (U : X.Opens) (hU : IsAffineOpen U) : |
| 41 | IsZero (M.restrict U.ι) ↔ Subsingleton Γ(M, U) := by |
| 42 | let : IsAffine U.toScheme := hU |
| 43 | rw [affineModule_isZero_iff_globalSections_subsingleton] |
| 44 | let e := M.restrictAppIso U.ι ⊤ ≪≫ |
| 45 | M.presheaf.mapIso (eqToIso U.ι_image_top.symm).op |
| 46 | exact ⟨fun h => by |
| 47 | let := h |
| 48 | exact (ConcreteCategory.bijective_of_isIso e.inv).injective.subsingleton, |
| 49 | fun h => by |
| 50 | let := h |
| 51 | exact (ConcreteCategory.bijective_of_isIso e.hom).injective.subsingleton⟩ |
| 52 | |
| 53 | theorem affineOpenModule_basicOpen_isZero_iff_pow_annihilator |
| 54 | {X : Scheme.{u}} (M : X.Modules) |
| 55 | [M.IsQuasicoherent] [M.IsFiniteType] (U : X.affineOpens) (r : Γ(X, U.1)) : |
| 56 | IsZero (M.restrict (X.basicOpen r).ι) ↔ |
| 57 | ∃ n : ℕ, r ^ n ∈ Module.annihilator Γ(X, U.1) Γ(M, U.1) := by |
| 58 | rw [module_restrict_isZero_iff_sections_subsingleton M _ (U.2.basicOpen r)] |
| 59 | let : Module.Finite Γ(X, U.1) Γ(M, U.1) := |
| 60 | SheafCohomology.Projective.Quasicoherent.Scheme.Modules.sections_module_finite_of_isFiniteType_of_isAffineOpen M U |
| 61 | let : Module Γ(X, U.1) Γ(M, X.basicOpen r) := |
| 62 | Module.compHom _ (algebraMap Γ(X, U.1) Γ(X, X.basicOpen r)) |
| 63 | let g : Γ(M, U.1) →ₗ[Γ(X, U.1)] Γ(M, X.basicOpen r) := |
| 64 | { toFun := M.presheaf.map (homOfLE (X.basicOpen_le r)).op |
| 65 | map_add' := (M.presheaf.map (homOfLE (X.basicOpen_le r)).op).hom.map_add |
| 66 | map_smul' := fun a x => M.map_smul (homOfLE (X.basicOpen_le r)) a x } |
| 67 | have : IsLocalizedModule.Away r g := |
| 68 | SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isLocalizedModuleAway_basicOpen_of_isQuasicoherent_of_isAffineOpen M U r |
| 69 | exact IntegralModel.Finite.ModuleAnnihilation.finite_away_subsingleton_iff_pow_annihilator r g |
| 70 | |
| 71 | theorem affineModule_basicOpen_isZero_iff_pow_annihilator |
| 72 | {X : Scheme.{u}} [IsAffine X] (M : X.Modules) |
| 73 | [M.IsQuasicoherent] [M.IsFiniteType] (r : Γ(X, ⊤)) : |
| 74 | IsZero (M.restrict (X.basicOpen r).ι) ↔ |
| 75 | ∃ n : ℕ, r ^ n ∈ Module.annihilator Γ(X, ⊤) Γ(M, ⊤) := |
| 76 | affineOpenModule_basicOpen_isZero_iff_pow_annihilator M ⟨⊤, isAffineOpen_top X⟩ r |
| 77 | |
| 78 | theorem affineModule_mem_vanishingOpen_iff |
| 79 | {X : Scheme.{u}} [IsAffine X] (M : X.Modules) |
| 80 | [M.IsQuasicoherent] [M.IsFiniteType] (x : X) : |
| 81 | x ∈ ModuleVanishingOpen.moduleVanishingOpen M ↔ |
| 82 | ¬ Module.annihilator Γ(X, ⊤) Γ(M, ⊤) ≤ (X.isoSpec.hom x).asIdeal := by |
| 83 | have hbasic (r : Γ(X, ⊤)) : |
| 84 | x ∈ X.basicOpen r ↔ r ∉ (X.isoSpec.hom x).asIdeal := by |
| 85 | rw [← Scheme.map_PrimeSpectrum_basicOpen_of_affine X r] |
| 86 | rfl |
| 87 | constructor |
| 88 | · intro hx hann |
| 89 | obtain ⟨U, hxU, hU⟩ := (ModuleVanishingOpen.mem_moduleVanishingOpen M x).mp hx |
| 90 | obtain ⟨r, hrU, hxr⟩ := (isAffineOpen_top X).exists_basicOpen_le ⟨x, hxU⟩ (by trivial) |
| 91 | have hz := ModuleVanishingOpen.module_restrict_isZero_of_le M hrU hU |
| 92 | obtain ⟨n, hn⟩ := (affineModule_basicOpen_isZero_iff_pow_annihilator M r).mp hz |
| 93 | exact (hbasic r).mp hxr ((X.isoSpec.hom x).isPrime.mem_of_pow_mem n (hann hn)) |
| 94 | · intro h |
| 95 | obtain ⟨r, hr, hxr⟩ := SetLike.not_le_iff_exists.mp h |
| 96 | exact (ModuleVanishingOpen.mem_moduleVanishingOpen M x).mpr ⟨X.basicOpen r, (hbasic r).mpr hxr, |
| 97 | (affineModule_basicOpen_isZero_iff_pow_annihilator M r).mpr ⟨1, by simpa using hr⟩⟩ |
| 98 | |
| 99 | theorem affineModule_vanishingOpen_compl_eq_support |
| 100 | {X : Scheme.{u}} [IsAffine X] (M : X.Modules) |
| 101 | [M.IsQuasicoherent] [M.IsFiniteType] : |
| 102 | ((ModuleVanishingOpen.moduleVanishingOpen M : X.Opens) : Set X)ᶜ = |
| 103 | X.isoSpec.hom ⁻¹' Module.support Γ(X, ⊤) Γ(M, ⊤) := by |
| 104 | have : Module.Finite Γ(X, ⊤) Γ(M, ⊤) := |
| 105 | SheafCohomology.Projective.Quasicoherent.Scheme.Modules.globalSections_module_finite_of_isFiniteType_of_isAffine M |
| 106 | ext x |
| 107 | change (¬ x ∈ ModuleVanishingOpen.moduleVanishingOpen M) ↔ |
| 108 | X.isoSpec.hom x ∈ Module.support Γ(X, ⊤) Γ(M, ⊤) |
| 109 | rw [affineModule_mem_vanishingOpen_iff, not_not] |
| 110 | exact (Module.mem_support_iff_of_finite (R := Γ(X, ⊤)) |
| 111 | (M := Γ(M, ⊤)) (p := X.isoSpec.hom x)).symm |
| 112 | |
| 113 | end |
| 114 | |
| 115 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Affine.ModuleVanishing |