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 Mathlib.Topology.Sheaves.LocallySurjective |
| 2 | import Mathlib.Topology.Sheaves.Limits |
| 3 | import Mathlib.Topology.Sheaves.Functors |
| 4 | import Mathlib.CategoryTheory.Limits.Preserves.FunctorCategory |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.Affine |
| 6 | import OAI.AlgebraicGeometry.SheafCohomology.AffineCover |
| 7 | |
| 8 | /-! # Affine Local Killing -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.SheafCohomology.AffineLocalKilling.Projective.LocalKilling |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # Local killing of degree-one scheme-module cohomology |
| 16 | |
| 17 | This file proves that a degree-one Zariski cohomology class on an affine |
| 18 | spectrum dies after restriction to each member of a suitable finite affine |
| 19 | open cover. The proof uses an injective embedding of the underlying |
| 20 | abelian sheaf, local surjectivity of its cokernel map, and compactness of an |
| 21 | affine spectrum. |
| 22 | |
| 23 | The upstream source derives this construction from its Mathlib. |
| 24 | This ProjectiveCohomology port retains that proof with the adaptations identified above. |
| 25 | -/ |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | open _root_.CategoryTheory Limits Opposite _root_.TopologicalSpace |
| 30 | open _root_.AlgebraicGeometry |
| 31 | |
| 32 | private abbrev AbSheaf (X : Scheme.{u}) := |
| 33 | CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} |
| 34 | |
| 35 | private abbrev ExtH {X : Scheme.{u}} |
| 36 | (F : AbSheaf X) (n : ℕ) : Type u := |
| 37 | Abelian.Ext |
| 38 | ((CategoryTheory.constantSheaf |
| 39 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).obj |
| 40 | (AddCommGrpCat.of (ULift ℤ))) F n |
| 41 | |
| 42 | private noncomputable def openSheafPullback |
| 43 | {X : Scheme.{u}} (U : X.Opens) : |
| 44 | AbSheaf X ⥤ AbSheaf U := |
| 45 | U.ι.isOpenEmbedding.sheafPullback AddCommGrpCat.{u} |
| 46 | |
| 47 | private noncomputable def openSheafPushforward |
| 48 | {X : Scheme.{u}} (U : X.Opens) : |
| 49 | AbSheaf U ⥤ AbSheaf X := |
| 50 | TopCat.Sheaf.pushforward AddCommGrpCat.{u} U.ι.base |
| 51 | |
| 52 | private noncomputable def openRestrictionPushforward |
| 53 | {X : Scheme.{u}} (U : X.Opens) : |
| 54 | AbSheaf X ⥤ AbSheaf X := |
| 55 | openSheafPullback U ⋙ openSheafPushforward U |
| 56 | |
| 57 | private noncomputable def openRestrictionPushforwardUnit |
| 58 | {X : Scheme.{u}} (U : X.Opens) : |
| 59 | 𝟭 (AbSheaf X) ⟶ |
| 60 | openRestrictionPushforward U where |
| 61 | app F := |
| 62 | { hom := |
| 63 | { app V := F.1.map |
| 64 | (homOfLE (U.ι.image_preimage_le V.unop)).op |
| 65 | naturality := by |
| 66 | intro V W i |
| 67 | change F.1.map i ≫ F.1.map _ = |
| 68 | F.1.map _ ≫ F.1.map _ |
| 69 | calc |
| 70 | _ = F.1.map (i ≫ _) := (F.1.map_comp _ _).symm |
| 71 | _ = F.1.map (_ ≫ _) := congrArg F.1.map (Subsingleton.elim _ _) |
| 72 | _ = _ := F.1.map_comp _ _ } } |
| 73 | naturality F G f := by |
| 74 | apply CategoryTheory.Sheaf.hom_ext |
| 75 | ext V x |
| 76 | change (f.hom.app V ≫ G.1.map _).hom x = |
| 77 | (F.1.map _ ≫ f.hom.app _).hom x |
| 78 | exact congrArg (fun k ↦ k.hom x) |
| 79 | (f.hom.naturality |
| 80 | (homOfLE (U.ι.image_preimage_le V.unop)).op).symm |
| 81 | |
| 82 | private noncomputable def openRestrictionPushforwardSection |
| 83 | {X : Scheme.{u}} (U : X.Opens) (F : AbSheaf X) |
| 84 | (t : F.1.obj (op U)) : |
| 85 | ((openRestrictionPushforward U).obj F).1.obj |
| 86 | (op (⊤ : Opens X)) := by |
| 87 | let W := U.ι.isOpenEmbedding.functor.obj |
| 88 | ((Opens.map U.ι.base).obj (⊤ : Opens X)) |
| 89 | change F.1.obj (op W) |
| 90 | have hW : W = U := by |
| 91 | ext x |
| 92 | simp [W] |
| 93 | exact F.1.map (eqToHom hW).op t |
| 94 | |
| 95 | private theorem openRestrictionPushforwardSection_map |
| 96 | {X : Scheme.{u}} (U : X.Opens) {F G : AbSheaf X} |
| 97 | (f : F ⟶ G) (t : F.1.obj (op U)) : |
| 98 | (((openRestrictionPushforward U).map f).hom.app (op (⊤ : Opens X))) |
| 99 | (openRestrictionPushforwardSection U F t) = |
| 100 | openRestrictionPushforwardSection U G (f.hom.app (op U) t) := by |
| 101 | let W := U.ι.isOpenEmbedding.functor.obj |
| 102 | ((Opens.map U.ι.base).obj (⊤ : Opens X)) |
| 103 | have hW : W = U := by |
| 104 | ext x |
| 105 | simp [W] |
| 106 | change f.hom.app (op W) (F.1.map (eqToHom hW).op t) = |
| 107 | G.1.map (eqToHom hW).op (f.hom.app (op U) t) |
| 108 | exact congrArg (fun k ↦ k.hom t) |
| 109 | (f.hom.naturality (eqToHom hW).op) |
| 110 | |
| 111 | private theorem openRestrictionPushforwardUnit_section |
| 112 | {X : Scheme.{u}} (U : X.Opens) (F : AbSheaf X) |
| 113 | (s : F.1.obj (op (⊤ : Opens X))) : |
| 114 | ((openRestrictionPushforwardUnit U).app F).hom.app |
| 115 | (op (⊤ : Opens X)) s = |
| 116 | openRestrictionPushforwardSection U F |
| 117 | (F.1.map (homOfLE le_top).op s) := by |
| 118 | have hW : U.ι ''ᵁ (U.ι ⁻¹ᵁ (⊤ : Opens X)) = U := by |
| 119 | ext x |
| 120 | simp |
| 121 | change F.1.map (homOfLE (U.ι.image_preimage_le (⊤ : Opens X))).op s = |
| 122 | F.1.map (eqToHom hW).op (F.1.map (homOfLE le_top).op s) |
| 123 | have hk : (homOfLE (U.ι.image_preimage_le (⊤ : Opens X))).op = |
| 124 | (homOfLE le_top).op ≫ (eqToHom hW).op := |
| 125 | Subsingleton.elim _ _ |
| 126 | rw [hk, F.1.map_comp, ConcreteCategory.comp_apply] |
| 127 | |
| 128 | private noncomputable def openRestrictionPushforwardHZeroOfSection |
| 129 | {X : Scheme.{u}} (U : X.Opens) (F : AbSheaf X) |
| 130 | (t : F.1.obj (op U)) : |
| 131 | ExtH ((openRestrictionPushforward U).obj F) 0 := |
| 132 | (CategoryTheory.Sheaf.H.equiv₀ |
| 133 | ((openRestrictionPushforward U).obj F) |
| 134 | (isTerminalTop : IsTerminal (⊤ : Opens X))).symm |
| 135 | (openRestrictionPushforwardSection U F t) |
| 136 | |
| 137 | private theorem openRestrictionPushforwardHZeroOfSection_map |
| 138 | {X : Scheme.{u}} (U : X.Opens) {F G : AbSheaf X} |
| 139 | (f : F ⟶ G) (t : F.1.obj (op U)) : |
| 140 | (openRestrictionPushforwardHZeroOfSection U F t).comp |
| 141 | (Abelian.Ext.mk₀ ((openRestrictionPushforward U).map f)) rfl = |
| 142 | openRestrictionPushforwardHZeroOfSection U G |
| 143 | (f.hom.app (op U) t) := by |
| 144 | change CategoryTheory.Sheaf.H.map |
| 145 | ((openRestrictionPushforward U).map f) 0 |
| 146 | (openRestrictionPushforwardHZeroOfSection U F t) = _ |
| 147 | apply (CategoryTheory.Sheaf.H.equiv₀ |
| 148 | ((openRestrictionPushforward U).obj G) |
| 149 | (isTerminalTop : IsTerminal (⊤ : Opens X))).injective |
| 150 | rw [← CategoryTheory.Sheaf.H.equiv₀_naturality] |
| 151 | dsimp [openRestrictionPushforwardHZeroOfSection] |
| 152 | simp only [AddEquiv.apply_symm_apply] |
| 153 | exact openRestrictionPushforwardSection_map U f t |
| 154 | |
| 155 | private theorem openRestrictionPushforwardUnit_HZero |
| 156 | {X : Scheme.{u}} (U : X.Opens) (F : AbSheaf X) |
| 157 | (q : ExtH F 0) : |
| 158 | q.comp (Abelian.Ext.mk₀ |
| 159 | ((openRestrictionPushforwardUnit U).app F)) rfl = |
| 160 | openRestrictionPushforwardHZeroOfSection U F |
| 161 | (F.1.map (homOfLE le_top).op |
| 162 | (CategoryTheory.Sheaf.H.equiv₀ F |
| 163 | (isTerminalTop : IsTerminal (⊤ : Opens X)) q)) := by |
| 164 | change CategoryTheory.Sheaf.H.map |
| 165 | ((openRestrictionPushforwardUnit U).app F) 0 q = _ |
| 166 | apply (CategoryTheory.Sheaf.H.equiv₀ |
| 167 | ((openRestrictionPushforward U).obj F) |
| 168 | (isTerminalTop : IsTerminal (⊤ : Opens X))).injective |
| 169 | rw [← CategoryTheory.Sheaf.H.equiv₀_naturality] |
| 170 | dsimp [openRestrictionPushforwardHZeroOfSection] |
| 171 | rw [AddEquiv.apply_symm_apply] |
| 172 | exact openRestrictionPushforwardUnit_section U F _ |
| 173 | |
| 174 | private noncomputable instance openSheafPullback_preservesFiniteLimits |
| 175 | {X : Scheme.{u}} (U : X.Opens) : |
| 176 | PreservesFiniteLimits (openSheafPullback U) := by |
| 177 | let := U.ι.isOpenEmbedding.functor_isContinuous |
| 178 | let E₁ := openSheafPullback U ⋙ |
| 179 | sheafToPresheaf (Opens.grothendieckTopology U) AddCommGrpCat.{u} |
| 180 | let E₂ := sheafToPresheaf |
| 181 | (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⋙ |
| 182 | (Functor.whiskeringLeft _ _ AddCommGrpCat.{u}).obj |
| 183 | U.ι.isOpenEmbedding.functor.op |
| 184 | let e : E₁ ≅ E₂ := |
| 185 | U.ι.isOpenEmbedding.functor.sheafPushforwardContinuousCompSheafToPresheafIso |
| 186 | AddCommGrpCat.{u} (Opens.grothendieckTopology U) |
| 187 | (Opens.grothendieckTopology X) |
| 188 | have : PreservesFiniteLimits |
| 189 | (sheafToPresheaf (Opens.grothendieckTopology X) |
| 190 | AddCommGrpCat.{u}) := by infer_instance |
| 191 | have : PreservesFiniteLimits |
| 192 | ((Functor.whiskeringLeft _ _ AddCommGrpCat.{u}).obj |
| 193 | U.ι.isOpenEmbedding.functor.op) := by infer_instance |
| 194 | have : PreservesFiniteLimits E₂ := by infer_instance |
| 195 | have : PreservesFiniteLimits E₁ := |
| 196 | preservesFiniteLimits_of_natIso e.symm |
| 197 | exact preservesFiniteLimits_of_reflects_of_preserves _ |
| 198 | (sheafToPresheaf (Opens.grothendieckTopology U) AddCommGrpCat.{u}) |
| 199 | |
| 200 | private noncomputable instance openSheafPushforward_preservesFiniteLimits |
| 201 | {X : Scheme.{u}} (U : X.Opens) : |
| 202 | PreservesFiniteLimits (openSheafPushforward U) := by |
| 203 | let E₁ := openSheafPushforward U ⋙ |
| 204 | sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} |
| 205 | let E₂ := sheafToPresheaf |
| 206 | (Opens.grothendieckTopology U) AddCommGrpCat.{u} ⋙ |
| 207 | TopCat.Presheaf.pushforward AddCommGrpCat.{u} U.ι.base |
| 208 | let e : E₁ ≅ E₂ := |
| 209 | TopCat.Sheaf.pushforwardForgetIso AddCommGrpCat.{u} U.ι.base |
| 210 | have : PreservesFiniteLimits |
| 211 | (sheafToPresheaf (Opens.grothendieckTopology U) |
| 212 | AddCommGrpCat.{u}) := by infer_instance |
| 213 | have : PreservesFiniteLimits |
| 214 | (TopCat.Presheaf.pushforward AddCommGrpCat.{u} U.ι.base) := by |
| 215 | dsimp [TopCat.Presheaf.pushforward] |
| 216 | exact ⟨fun J _ _ ↦ whiskeringLeft_preservesLimitsOfShape J _⟩ |
| 217 | have : PreservesFiniteLimits E₂ := by infer_instance |
| 218 | have : PreservesFiniteLimits E₁ := |
| 219 | preservesFiniteLimits_of_natIso e.symm |
| 220 | exact preservesFiniteLimits_of_reflects_of_preserves _ |
| 221 | (sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}) |
| 222 | |
| 223 | private noncomputable instance openRestrictionPushforward_preservesFiniteLimits |
| 224 | {X : Scheme.{u}} (U : X.Opens) : |
| 225 | PreservesFiniteLimits (openRestrictionPushforward U) := by |
| 226 | let : PreservesFiniteLimits |
| 227 | (openSheafPullback U) := |
| 228 | openSheafPullback_preservesFiniteLimits U |
| 229 | let : PreservesFiniteLimits |
| 230 | (openSheafPushforward U) := by |
| 231 | exact openSheafPushforward_preservesFiniteLimits U |
| 232 | exact comp_preservesFiniteLimits _ _ |
| 233 | |
| 234 | private theorem toSheaf_restrictAdjunction_unit |
| 235 | {X : Scheme.{u}} (U : X.Opens) (M : X.Modules) : |
| 236 | (SheafOfModules.toSheaf X.ringCatSheaf).map |
| 237 | ((Scheme.Modules.restrictAdjunction U.ι).unit.app M) = |
| 238 | (openRestrictionPushforwardUnit U).app |
| 239 | ((SheafOfModules.toSheaf X.ringCatSheaf).obj M) := rfl |
| 240 | |
| 241 | private theorem zariskiFunctor_map_restrictAdjunction_unit_eq_zero |
| 242 | {X : Scheme.{u}} {n : ℕ} (U : X.Opens) (M : X.Modules) (c : AffineH.Projective.H M n) |
| 243 | (hc : (c.comp (Abelian.Ext.mk₀ |
| 244 | ((openRestrictionPushforwardUnit U).app |
| 245 | ((SheafOfModules.toSheaf X.ringCatSheaf).obj M))) rfl : |
| 246 | ExtH ((openRestrictionPushforward U).obj |
| 247 | ((SheafOfModules.toSheaf X.ringCatSheaf).obj M)) n) = 0) : |
| 248 | (AffineH.Projective.zariskiFunctor X n).map |
| 249 | ((Scheme.Modules.restrictAdjunction U.ι).unit.app M) c = 0 := by |
| 250 | exact hc |
| 251 | |
| 252 | private theorem openRestrictionPushforward_map_mono {X : Scheme.{u}} |
| 253 | (U : X.Opens) |
| 254 | {F G : AbSheaf X} (f : F ⟶ G) [Mono f] : |
| 255 | Mono ((openRestrictionPushforward U).map f) := by |
| 256 | have : Mono f.hom := by |
| 257 | change Mono ((sheafToPresheaf (Opens.grothendieckTopology X) |
| 258 | AddCommGrpCat.{u}).map f) |
| 259 | infer_instance |
| 260 | have hmono : Mono ((openRestrictionPushforward U).map f).hom := by |
| 261 | exact (NatTrans.mono_iff_mono_app _).mpr fun V ↦ by |
| 262 | change Mono (f.hom.app _) |
| 263 | infer_instance |
| 264 | exact Functor.mono_of_mono_map |
| 265 | (sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}) hmono |
| 266 | |
| 267 | private theorem openRestrictionPushforward_map_epi_of_affine_app_surjective |
| 268 | {R : CommRingCat.{u}} (U : (Spec R).Opens) (hU : IsAffineOpen U) |
| 269 | {F G : AbSheaf (Spec R)} (f : F ⟶ G) |
| 270 | (hf : ∀ (W : (Spec R).Opens), IsAffineOpen W → |
| 271 | Function.Surjective (f.hom.app (op W))) : |
| 272 | Epi ((openRestrictionPushforward U).map f) := by |
| 273 | apply (TopCat.Sheaf.isLocallySurjective_iff_epi |
| 274 | ((openRestrictionPushforward U).map f)).1 |
| 275 | rw [TopCat.Presheaf.isLocallySurjective_iff] |
| 276 | intro W t x hxW |
| 277 | obtain ⟨V, hV, hxV, hVW⟩ := exists_isAffineOpen_mem_and_subset hxW |
| 278 | let A := U.ι.isOpenEmbedding.functor.obj |
| 279 | ((Opens.map U.ι.base).obj V) |
| 280 | have hA : A = U ⊓ V := by |
| 281 | ext y |
| 282 | change (∃ z : U, z.1 ∈ V ∧ z.1 = y) ↔ y ∈ U ∧ y ∈ V |
| 283 | constructor |
| 284 | · rintro ⟨z, hzV, rfl⟩ |
| 285 | exact ⟨z.2, hzV⟩ |
| 286 | · rintro ⟨hyU, hyV⟩ |
| 287 | exact ⟨⟨y, hyU⟩, hyV, rfl⟩ |
| 288 | have hAaffine : IsAffineOpen A := by |
| 289 | rw [hA] |
| 290 | exact hU.inf hV |
| 291 | let tV := ((openRestrictionPushforward U).obj G).1.map |
| 292 | (homOfLE hVW).op t |
| 293 | obtain ⟨s, hs⟩ := hf A hAaffine tV |
| 294 | refine ⟨V, hVW, ⟨s, ?_⟩, hxV⟩ |
| 295 | exact hs |
| 296 | |
| 297 | private theorem openRestrictionPushforward_cokernelComparison_mono |
| 298 | {X : Scheme.{u}} (U : X.Opens) |
| 299 | {F G : AbSheaf X} (f : F ⟶ G) [Mono f] : |
| 300 | Mono (cokernelComparison f (openRestrictionPushforward U)) := by |
| 301 | let E := openRestrictionPushforward U |
| 302 | let S := ShortComplex.mk f (cokernel.π f) (cokernel.condition f) |
| 303 | have hS : S.Exact := ShortComplex.cokernelSequence_exact f |
| 304 | have hT : (S.map E).Exact := |
| 305 | hS.map_of_mono_of_preservesKernel E (by infer_instance) (by infer_instance) |
| 306 | dsimp [S] at hT |
| 307 | change (ShortComplex.mk (E.map f) (E.map (cokernel.π f)) _).Exact at hT |
| 308 | let e : cokernel (E.map f) ≅ image (E.map (cokernel.π f)) := |
| 309 | IsColimit.coconePointUniqueUpToIso (cokernelIsCokernel (E.map f)) |
| 310 | hT.isColimitImage |
| 311 | have he_fac : cokernel.π (E.map f) ≫ e.hom = |
| 312 | factorThruImage (E.map (cokernel.π f)) := by |
| 313 | simpa [e] using |
| 314 | (IsColimit.comp_coconePointUniqueUpToIso_hom |
| 315 | (cokernelIsCokernel (E.map f)) hT.isColimitImage |
| 316 | WalkingParallelPair.one) |
| 317 | have he : cokernelComparison f E = |
| 318 | e.hom ≫ image.ι (E.map (cokernel.π f)) := by |
| 319 | rw [← cancel_epi (cokernel.π (E.map f))] |
| 320 | rw [π_comp_cokernelComparison] |
| 321 | symm |
| 322 | rw [← Category.assoc, he_fac, image.fac] |
| 323 | rw [he] |
| 324 | infer_instance |
| 325 | |
| 326 | private theorem openRestrictionPushforward_cokernelComparison_isIso_of_affine_app_surjective |
| 327 | {R : CommRingCat.{u}} (U : (Spec R).Opens) (hU : IsAffineOpen U) |
| 328 | {F G : AbSheaf (Spec R)} (f : F ⟶ G) [Mono f] |
| 329 | (hf : ∀ (W : (Spec R).Opens), IsAffineOpen W → |
| 330 | Function.Surjective ((cokernel.π f).hom.app (op W))) : |
| 331 | IsIso (cokernelComparison f (openRestrictionPushforward U)) := by |
| 332 | let E := openRestrictionPushforward U |
| 333 | let μ := cokernelComparison f E |
| 334 | let : Mono μ := by |
| 335 | dsimp [μ, E] |
| 336 | exact openRestrictionPushforward_cokernelComparison_mono U f |
| 337 | let : Epi (E.map (cokernel.π f)) := by |
| 338 | dsimp [E] |
| 339 | exact openRestrictionPushforward_map_epi_of_affine_app_surjective |
| 340 | U hU (cokernel.π f) hf |
| 341 | let : Epi μ := by |
| 342 | exact epi_of_epi_fac (π_comp_cokernelComparison f E) |
| 343 | exact isIso_of_mono_of_epi μ |
| 344 | |
| 345 | private theorem ext_postcomp_mk₀_injective_of_isIso |
| 346 | {X : Scheme.{u}} (L : AbSheaf X) {M N : AbSheaf X} |
| 347 | (f : M ⟶ N) [IsIso f] (n : ℕ) : |
| 348 | Function.Injective |
| 349 | ((Abelian.Ext.mk₀ f).postcomp L (add_zero n)) := by |
| 350 | intro x y hxy |
| 351 | have hxy' := congrArg |
| 352 | (fun z ↦ z.comp (Abelian.Ext.mk₀ (inv f)) rfl) hxy |
| 353 | change |
| 354 | (x.comp (Abelian.Ext.mk₀ f) rfl).comp |
| 355 | (Abelian.Ext.mk₀ (inv f)) rfl = |
| 356 | (y.comp (Abelian.Ext.mk₀ f) rfl).comp |
| 357 | (Abelian.Ext.mk₀ (inv f)) rfl at hxy' |
| 358 | simpa only [Abelian.Ext.comp_assoc_of_third_deg_zero, |
| 359 | Abelian.Ext.mk₀_comp_mk₀, IsIso.hom_inv_id, |
| 360 | Abelian.Ext.comp_mk₀_id] using hxy' |
| 361 | |
| 362 | private noncomputable abbrev injectiveCokernelSequence |
| 363 | {X : Scheme.{u}} (F : AbSheaf X) : |
| 364 | ShortComplex (AbSheaf X) := |
| 365 | ShortComplex.mk (Injective.ι F) (cokernel.π (Injective.ι F)) |
| 366 | (cokernel.condition (Injective.ι F)) |
| 367 | |
| 368 | private theorem injectiveCokernelSequence_shortExact |
| 369 | {X : Scheme.{u}} (F : AbSheaf X) : |
| 370 | (injectiveCokernelSequence F).ShortExact := by |
| 371 | let : Mono (injectiveCokernelSequence F).f := by |
| 372 | change Mono (Injective.ι F) |
| 373 | infer_instance |
| 374 | let : Epi (injectiveCokernelSequence F).g := by |
| 375 | change Epi (cokernel.π (Injective.ι F)) |
| 376 | infer_instance |
| 377 | exact ShortComplex.ShortExact.mk |
| 378 | (ShortComplex.cokernelSequence_exact (Injective.ι F)) |
| 379 | |
| 380 | /-- The exact affine section-surjectivity data needed for a finite number of |
| 381 | injective-cokernel dimension shifts. -/ |
| 382 | inductive AffineSyzygyAppSurjective {R : CommRingCat.{u}} : |
| 383 | AbSheaf (Spec R) → ℕ → Prop |
| 384 | | zero (F) : AffineSyzygyAppSurjective F 0 |
| 385 | | succ {F : AbSheaf (Spec R)} {n : ℕ} |
| 386 | (head : ∀ (W : (Spec R).Opens), IsAffineOpen W → |
| 387 | Function.Surjective |
| 388 | ((cokernel.π (Injective.ι F)).hom.app (op W))) |
| 389 | (tail : AffineSyzygyAppSurjective |
| 390 | (cokernel (Injective.ι F)) n) : |
| 391 | AffineSyzygyAppSurjective F (n + 1) |
| 392 | |
| 393 | private noncomputable abbrev openInjectiveCokernelSequence |
| 394 | {X : Scheme.{u}} (U : X.Opens) |
| 395 | (F : AbSheaf X) : |
| 396 | ShortComplex (AbSheaf X) := |
| 397 | let E := openRestrictionPushforward U |
| 398 | ShortComplex.mk (E.map (Injective.ι F)) |
| 399 | (cokernel.π (E.map (Injective.ι F))) |
| 400 | (cokernel.condition (E.map (Injective.ι F))) |
| 401 | |
| 402 | private theorem openInjectiveCokernelSequence_shortExact |
| 403 | {X : Scheme.{u}} (U : X.Opens) |
| 404 | (F : AbSheaf X) : |
| 405 | (openInjectiveCokernelSequence U F).ShortExact := by |
| 406 | let : Mono ((openRestrictionPushforward U).map (Injective.ι F)) := |
| 407 | openRestrictionPushforward_map_mono U (Injective.ι F) |
| 408 | let : Mono (openInjectiveCokernelSequence U F).f := by |
| 409 | change Mono ((openRestrictionPushforward U).map (Injective.ι F)) |
| 410 | infer_instance |
| 411 | let : Epi (openInjectiveCokernelSequence U F).g := by |
| 412 | change Epi (cokernel.π |
| 413 | ((openRestrictionPushforward U).map (Injective.ι F))) |
| 414 | infer_instance |
| 415 | exact ShortComplex.ShortExact.mk |
| 416 | (ShortComplex.cokernelSequence_exact |
| 417 | ((openRestrictionPushforward U).map (Injective.ι F))) |
| 418 | |
| 419 | private noncomputable def openInjectiveCokernelMap |
| 420 | {X : Scheme.{u}} (U : X.Opens) |
| 421 | (F : AbSheaf X) : |
| 422 | cokernel (Injective.ι F) ⟶ |
| 423 | cokernel ((openRestrictionPushforward U).map (Injective.ι F)) := |
| 424 | cokernel.map (Injective.ι F) |
| 425 | ((openRestrictionPushforward U).map (Injective.ι F)) |
| 426 | ((openRestrictionPushforwardUnit U).app F) |
| 427 | ((openRestrictionPushforwardUnit U).app (Injective.under F)) |
| 428 | ((openRestrictionPushforwardUnit U).naturality (Injective.ι F)) |
| 429 | |
| 430 | private noncomputable def injectiveCokernelSequenceToOpen |
| 431 | {X : Scheme.{u}} (U : X.Opens) |
| 432 | (F : AbSheaf X) : |
| 433 | injectiveCokernelSequence F ⟶ openInjectiveCokernelSequence U F where |
| 434 | τ₁ := (openRestrictionPushforwardUnit U).app F |
| 435 | τ₂ := (openRestrictionPushforwardUnit U).app (Injective.under F) |
| 436 | τ₃ := openInjectiveCokernelMap U F |
| 437 | comm₁₂ := by |
| 438 | simpa [injectiveCokernelSequence, openInjectiveCokernelSequence] using |
| 439 | ((openRestrictionPushforwardUnit U).naturality (Injective.ι F)).symm |
| 440 | comm₂₃ := by |
| 441 | simp [injectiveCokernelSequence, openInjectiveCokernelSequence, |
| 442 | openInjectiveCokernelMap] |
| 443 | |
| 444 | private theorem openInjectiveCokernelMap_comp_cokernelComparison |
| 445 | {X : Scheme.{u}} (U : X.Opens) (F : AbSheaf X) : |
| 446 | openInjectiveCokernelMap U F ≫ |
| 447 | cokernelComparison (Injective.ι F) |
| 448 | (openRestrictionPushforward U) = |
| 449 | (openRestrictionPushforwardUnit U).app |
| 450 | (cokernel (Injective.ι F)) := by |
| 451 | let E := openRestrictionPushforward U |
| 452 | let η := openRestrictionPushforwardUnit U |
| 453 | let i := Injective.ι F |
| 454 | let π := cokernel.π i |
| 455 | let ζ := openInjectiveCokernelMap U F |
| 456 | let μ := cokernelComparison i E |
| 457 | have hπζ : cokernel.π i ≫ ζ = |
| 458 | η.app (Injective.under F) ≫ cokernel.π (E.map i) := by |
| 459 | dsimp [ζ, η, E, i, openInjectiveCokernelMap] |
| 460 | apply cokernel.π_desc |
| 461 | rw [← cancel_epi (cokernel.π i)] |
| 462 | calc |
| 463 | cokernel.π i ≫ (ζ ≫ μ) = |
| 464 | (cokernel.π i ≫ ζ) ≫ μ := Category.assoc _ _ _ |>.symm |
| 465 | _ = (η.app (Injective.under F) ≫ |
| 466 | cokernel.π (E.map i)) ≫ μ := by rw [hπζ] |
| 467 | _ = η.app (Injective.under F) ≫ |
| 468 | (cokernel.π (E.map i) ≫ μ) := Category.assoc _ _ _ |
| 469 | _ = η.app (Injective.under F) ≫ E.map π := by |
| 470 | rw [π_comp_cokernelComparison] |
| 471 | _ = cokernel.π i ≫ η.app (cokernel i) := |
| 472 | (η.naturality (cokernel.π i)).symm |
| 473 | |
| 474 | private theorem openRestrictionPushforwardUnit_HSucc_eq_zero_of_cokernel_killed |
| 475 | {X : Scheme.{u}} {F : AbSheaf X} {n : ℕ} |
| 476 | (c : ExtH F (n + 1)) |
| 477 | (q : ExtH (cokernel (Injective.ι F)) n) |
| 478 | (hq : q.comp (injectiveCokernelSequence_shortExact F).extClass rfl = c) |
| 479 | (U : X.Opens) |
| 480 | (hqU : q.comp (Abelian.Ext.mk₀ |
| 481 | ((openRestrictionPushforwardUnit U).app |
| 482 | (cokernel (Injective.ι F)))) rfl = 0) |
| 483 | [IsIso (cokernelComparison (Injective.ι F) |
| 484 | (openRestrictionPushforward U))] : |
| 485 | (c.comp (Abelian.Ext.mk₀ |
| 486 | ((openRestrictionPushforwardUnit U).app F)) rfl : |
| 487 | ExtH ((openRestrictionPushforward U).obj F) (n + 1)) = 0 := by |
| 488 | let E := openRestrictionPushforward U |
| 489 | let η := openRestrictionPushforwardUnit U |
| 490 | let i := Injective.ι F |
| 491 | let ζ := openInjectiveCokernelMap U F |
| 492 | let μ := cokernelComparison i E |
| 493 | have hT := openInjectiveCokernelSequence_shortExact U F |
| 494 | change (ShortComplex.mk (E.map i) (cokernel.π (E.map i)) _).ShortExact at hT |
| 495 | have hζμ : ζ ≫ μ = η.app (cokernel i) := by |
| 496 | exact openInjectiveCokernelMap_comp_cokernelComparison U F |
| 497 | have hqζμ : |
| 498 | (q.comp (Abelian.Ext.mk₀ ζ) rfl).comp |
| 499 | (Abelian.Ext.mk₀ μ) rfl = 0 := by |
| 500 | rw [Abelian.Ext.comp_assoc_of_third_deg_zero, |
| 501 | Abelian.Ext.mk₀_comp_mk₀, hζμ] |
| 502 | exact hqU |
| 503 | have hqζ : q.comp (Abelian.Ext.mk₀ ζ) rfl = 0 := by |
| 504 | apply ext_postcomp_mk₀_injective_of_isIso |
| 505 | ((CategoryTheory.constantSheaf |
| 506 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).obj |
| 507 | (AddCommGrpCat.of (ULift ℤ))) μ n |
| 508 | change |
| 509 | (q.comp (Abelian.Ext.mk₀ ζ) rfl).comp |
| 510 | (Abelian.Ext.mk₀ μ) rfl = |
| 511 | (0 : ExtH (cokernel (E.map i)) n).comp |
| 512 | (Abelian.Ext.mk₀ μ) rfl |
| 513 | simpa using hqζμ |
| 514 | calc |
| 515 | c.comp (Abelian.Ext.mk₀ (η.app F)) rfl = |
| 516 | (q.comp (injectiveCokernelSequence_shortExact F).extClass rfl).comp |
| 517 | (Abelian.Ext.mk₀ (η.app F)) rfl := by rw [hq] |
| 518 | _ = q.comp |
| 519 | ((injectiveCokernelSequence_shortExact F).extClass.comp |
| 520 | (Abelian.Ext.mk₀ (η.app F)) rfl) rfl := by |
| 521 | rw [Abelian.Ext.comp_assoc_of_third_deg_zero] |
| 522 | _ = q.comp ((Abelian.Ext.mk₀ ζ).comp hT.extClass rfl) rfl := by |
| 523 | exact congrArg (fun x ↦ q.comp x rfl) |
| 524 | ((injectiveCokernelSequence_shortExact F).extClass_naturality |
| 525 | hT (injectiveCokernelSequenceToOpen U F)) |
| 526 | _ = (q.comp (Abelian.Ext.mk₀ ζ) rfl).comp hT.extClass rfl := by |
| 527 | simpa only using (Abelian.Ext.comp_assoc q |
| 528 | (Abelian.Ext.mk₀ ζ) hT.extClass rfl rfl rfl).symm |
| 529 | _ = 0 := by rw [hqζ]; simp |
| 530 | |
| 531 | private theorem openRestrictionPushforwardUnit_HOne_eq_zero_of_lift |
| 532 | {X : Scheme.{u}} {F : AbSheaf X} |
| 533 | (c : ExtH F 1) |
| 534 | (q : ExtH (cokernel (Injective.ι F)) 0) |
| 535 | (hq : q.comp (injectiveCokernelSequence_shortExact F).extClass rfl = c) |
| 536 | (U : X.Opens) |
| 537 | (t : ExtH |
| 538 | ((openRestrictionPushforward U).obj (Injective.under F)) 0) |
| 539 | (ht : t.comp |
| 540 | (Abelian.Ext.mk₀ ((openRestrictionPushforward U).map |
| 541 | (cokernel.π (Injective.ι F)))) rfl = |
| 542 | q.comp (Abelian.Ext.mk₀ |
| 543 | ((openRestrictionPushforwardUnit U).app |
| 544 | (cokernel (Injective.ι F)))) rfl) : |
| 545 | (c.comp (Abelian.Ext.mk₀ |
| 546 | ((openRestrictionPushforwardUnit U).app F)) rfl : |
| 547 | ExtH ((openRestrictionPushforward U).obj F) 1) = |
| 548 | (0 : ExtH ((openRestrictionPushforward U).obj F) 1) := by |
| 549 | let E := openRestrictionPushforward U |
| 550 | let η := openRestrictionPushforwardUnit U |
| 551 | let i := Injective.ι F |
| 552 | let π := cokernel.π i |
| 553 | let ζ := openInjectiveCokernelMap U F |
| 554 | let μ := cokernelComparison i E |
| 555 | have hT := openInjectiveCokernelSequence_shortExact U F |
| 556 | change (ShortComplex.mk (E.map i) (cokernel.π (E.map i)) _).ShortExact at hT |
| 557 | let : Mono μ := by |
| 558 | dsimp [μ, E, i] |
| 559 | exact openRestrictionPushforward_cokernelComparison_mono U (Injective.ι F) |
| 560 | have hπζ : cokernel.π i ≫ ζ = |
| 561 | η.app (Injective.under F) ≫ cokernel.π (E.map i) := by |
| 562 | dsimp [ζ, η, E, i, openInjectiveCokernelMap] |
| 563 | apply cokernel.π_desc |
| 564 | have hζμ : ζ ≫ μ = η.app (cokernel i) := by |
| 565 | rw [← cancel_epi (cokernel.π i)] |
| 566 | calc |
| 567 | cokernel.π i ≫ (ζ ≫ μ) = |
| 568 | (cokernel.π i ≫ ζ) ≫ μ := Category.assoc _ _ _ |>.symm |
| 569 | _ = (η.app (Injective.under F) ≫ |
| 570 | cokernel.π (E.map i)) ≫ μ := by rw [hπζ] |
| 571 | _ = η.app (Injective.under F) ≫ |
| 572 | (cokernel.π (E.map i) ≫ μ) := Category.assoc _ _ _ |
| 573 | _ = η.app (Injective.under F) ≫ E.map π := by |
| 574 | rw [π_comp_cokernelComparison] |
| 575 | _ = cokernel.π i ≫ η.app (cokernel i) := |
| 576 | (η.naturality (cokernel.π i)).symm |
| 577 | have hπμ : cokernel.π (E.map i) ≫ μ = E.map π := by |
| 578 | exact π_comp_cokernelComparison i E |
| 579 | have hqζ : q.comp (Abelian.Ext.mk₀ ζ) rfl = |
| 580 | t.comp (Abelian.Ext.mk₀ (cokernel.π (E.map i))) rfl := by |
| 581 | refine (Abelian.Ext.postcomp_mk₀_injective_of_mono |
| 582 | ((CategoryTheory.constantSheaf |
| 583 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).obj |
| 584 | (AddCommGrpCat.of (ULift ℤ))) μ) ?_ |
| 585 | change |
| 586 | (q.comp (Abelian.Ext.mk₀ ζ) rfl).comp |
| 587 | (Abelian.Ext.mk₀ μ) rfl = |
| 588 | (t.comp (Abelian.Ext.mk₀ (cokernel.π (E.map i))) rfl).comp |
| 589 | (Abelian.Ext.mk₀ μ) rfl |
| 590 | simpa only [Abelian.Ext.comp_assoc_of_third_deg_zero, |
| 591 | Abelian.Ext.mk₀_comp_mk₀, hζμ, hπμ] using ht.symm |
| 592 | calc |
| 593 | c.comp (Abelian.Ext.mk₀ (η.app F)) rfl = |
| 594 | (q.comp (injectiveCokernelSequence_shortExact F).extClass rfl).comp |
| 595 | (Abelian.Ext.mk₀ (η.app F)) rfl := by rw [hq] |
| 596 | _ = q.comp |
| 597 | ((injectiveCokernelSequence_shortExact F).extClass.comp |
| 598 | (Abelian.Ext.mk₀ (η.app F)) rfl) rfl := by |
| 599 | rw [Abelian.Ext.comp_assoc_of_third_deg_zero] |
| 600 | _ = q.comp ((Abelian.Ext.mk₀ ζ).comp hT.extClass rfl) rfl := by |
| 601 | exact congrArg (fun x ↦ q.comp x rfl) |
| 602 | ((injectiveCokernelSequence_shortExact F).extClass_naturality |
| 603 | hT (injectiveCokernelSequenceToOpen U F)) |
| 604 | _ = (q.comp (Abelian.Ext.mk₀ ζ) rfl).comp hT.extClass rfl := by |
| 605 | simpa only using (Abelian.Ext.comp_assoc q |
| 606 | (Abelian.Ext.mk₀ ζ) hT.extClass rfl rfl rfl).symm |
| 607 | _ = (t.comp (Abelian.Ext.mk₀ (cokernel.π (E.map i))) rfl).comp |
| 608 | hT.extClass rfl := by rw [hqζ] |
| 609 | _ = t.comp ((Abelian.Ext.mk₀ (cokernel.π (E.map i))).comp |
| 610 | hT.extClass rfl) rfl := by |
| 611 | simpa only using (Abelian.Ext.comp_assoc t |
| 612 | (Abelian.Ext.mk₀ (cokernel.π (E.map i))) |
| 613 | hT.extClass rfl rfl rfl) |
| 614 | _ = 0 := by simp only [hT.comp_extClass, Abelian.Ext.comp_zero] |
| 615 | |
| 616 | private theorem openRestrictionPushforwardUnit_HOne_eq_zero_of_section_lift |
| 617 | {X : Scheme.{u}} {F : AbSheaf X} |
| 618 | (c : ExtH F 1) |
| 619 | (q : ExtH (cokernel (Injective.ι F)) 0) |
| 620 | (hq : q.comp (injectiveCokernelSequence_shortExact F).extClass rfl = c) |
| 621 | (U : X.Opens) |
| 622 | (t : (Injective.under F).1.obj (op U)) |
| 623 | (ht : (cokernel.π (Injective.ι F)).hom.app (op U) t = |
| 624 | (cokernel (Injective.ι F)).1.map (homOfLE le_top).op |
| 625 | (CategoryTheory.Sheaf.H.equiv₀ (cokernel (Injective.ι F)) |
| 626 | (isTerminalTop : IsTerminal (⊤ : Opens X)) q)) : |
| 627 | (c.comp (Abelian.Ext.mk₀ |
| 628 | ((openRestrictionPushforwardUnit U).app F)) rfl : |
| 629 | ExtH ((openRestrictionPushforward U).obj F) 1) = 0 := by |
| 630 | apply openRestrictionPushforwardUnit_HOne_eq_zero_of_lift c q hq U |
| 631 | (openRestrictionPushforwardHZeroOfSection U (Injective.under F) t) |
| 632 | rw [openRestrictionPushforwardHZeroOfSection_map, |
| 633 | openRestrictionPushforwardUnit_HZero] |
| 634 | exact congrArg |
| 635 | (openRestrictionPushforwardHZeroOfSection U (cokernel (Injective.ι F))) ht |
| 636 | |
| 637 | private theorem exists_injectiveCokernel_class |
| 638 | {X : Scheme.{u}} {F : AbSheaf X} {n : ℕ} (c : ExtH F (n + 1)) : |
| 639 | ∃ q : ExtH (cokernel (Injective.ι F)) n, |
| 640 | q.comp (injectiveCokernelSequence_shortExact F).extClass rfl = c := by |
| 641 | let Z := (CategoryTheory.constantSheaf |
| 642 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).obj |
| 643 | (AddCommGrpCat.of (ULift ℤ)) |
| 644 | have hc : c.comp (Abelian.Ext.mk₀ (Injective.ι F)) rfl = 0 := |
| 645 | Abelian.Ext.eq_zero_of_injective _ |
| 646 | exact Abelian.Ext.covariant_sequence_exact₁ Z |
| 647 | (injectiveCokernelSequence_shortExact F) c hc rfl |
| 648 | |
| 649 | private theorem exists_affineOpen_HOne_killing |
| 650 | {X : Scheme.{u}} {F : AbSheaf X} |
| 651 | (c : ExtH F 1) |
| 652 | (q : ExtH (cokernel (Injective.ι F)) 0) |
| 653 | (hq : q.comp (injectiveCokernelSequence_shortExact F).extClass rfl = c) |
| 654 | (x : X) : |
| 655 | ∃ U : X.Opens, IsAffineOpen U ∧ x ∈ U ∧ |
| 656 | (c.comp (Abelian.Ext.mk₀ |
| 657 | ((openRestrictionPushforwardUnit U).app F)) rfl : |
| 658 | ExtH ((openRestrictionPushforward U).obj F) 1) = 0 := by |
| 659 | let π := cokernel.π (Injective.ι F) |
| 660 | have hπepi : Epi π := by |
| 661 | dsimp [π] |
| 662 | infer_instance |
| 663 | let s := CategoryTheory.Sheaf.H.equiv₀ (cokernel (Injective.ι F)) |
| 664 | (isTerminalTop : IsTerminal (⊤ : Opens X)) q |
| 665 | have hlocal : TopCat.Presheaf.IsLocallySurjective π.hom := |
| 666 | (TopCat.Sheaf.isLocallySurjective_iff_epi π).2 hπepi |
| 667 | have hex := (TopCat.Presheaf.isLocallySurjective_iff π.hom).1 hlocal |
| 668 | (⊤ : Opens X) s x (by simp) |
| 669 | rcases hex with ⟨V, hVtop, hpre, hxV⟩ |
| 670 | rcases hpre with ⟨t, ht⟩ |
| 671 | obtain ⟨U, hU, hxU, hUV⟩ := exists_isAffineOpen_mem_and_subset hxV |
| 672 | have hUV' : U ≤ V := hUV |
| 673 | let tU := (Injective.under F).1.map (homOfLE hUV').op t |
| 674 | have htU : π.hom.app (op U) tU = |
| 675 | (cokernel (Injective.ι F)).1.map (homOfLE le_top).op s := by |
| 676 | have ht' := congrArg |
| 677 | (fun y ↦ (cokernel (Injective.ι F)).1.map (homOfLE hUV').op y) ht |
| 678 | dsimp [tU] |
| 679 | rw [← ConcreteCategory.comp_apply, ← π.hom.naturality] at ht' |
| 680 | have hk : (homOfLE hVtop).op ≫ (homOfLE hUV').op = |
| 681 | (homOfLE le_top).op := Subsingleton.elim _ _ |
| 682 | simpa only [TopCat.Presheaf.restrict, ← ConcreteCategory.comp_apply, |
| 683 | ← (cokernel (Injective.ι F)).1.map_comp, hk] using ht' |
| 684 | refine ⟨U, hU, hxU, ?_⟩ |
| 685 | exact openRestrictionPushforwardUnit_HOne_eq_zero_of_section_lift |
| 686 | c q hq U tU htU |
| 687 | |
| 688 | private theorem exists_affineOpen_HTwo_killing_of_affine_cokernel_app_surjective |
| 689 | {R : CommRingCat.{u}} {F : AbSheaf (Spec R)} |
| 690 | (c : ExtH F 2) |
| 691 | (q : ExtH (cokernel (Injective.ι F)) 1) |
| 692 | (hq : q.comp (injectiveCokernelSequence_shortExact F).extClass rfl = c) |
| 693 | (hsurjective : ∀ (W : (Spec R).Opens), IsAffineOpen W → |
| 694 | Function.Surjective |
| 695 | ((cokernel.π (Injective.ι F)).hom.app (op W))) |
| 696 | (x : Spec R) : |
| 697 | ∃ U : (Spec R).Opens, IsAffineOpen U ∧ x ∈ U ∧ |
| 698 | (c.comp (Abelian.Ext.mk₀ |
| 699 | ((openRestrictionPushforwardUnit U).app F)) rfl : |
| 700 | ExtH ((openRestrictionPushforward U).obj F) 2) = 0 := by |
| 701 | obtain ⟨r, hr⟩ := exists_injectiveCokernel_class q |
| 702 | obtain ⟨U, hU, hxU, hqU⟩ := |
| 703 | exists_affineOpen_HOne_killing q r hr x |
| 704 | let : IsIso (cokernelComparison (Injective.ι F) |
| 705 | (openRestrictionPushforward U)) := |
| 706 | openRestrictionPushforward_cokernelComparison_isIso_of_affine_app_surjective |
| 707 | U hU (Injective.ι F) hsurjective |
| 708 | exact ⟨U, hU, hxU, |
| 709 | openRestrictionPushforwardUnit_HSucc_eq_zero_of_cokernel_killed |
| 710 | c q hq U hqU⟩ |
| 711 | |
| 712 | private theorem exists_affineOpen_H_succ_killing_of_affine_syzygy_app_surjective |
| 713 | {R : CommRingCat.{u}} {F : AbSheaf (Spec R)} (n : ℕ) |
| 714 | (c : ExtH F (n + 1)) |
| 715 | (hsurjective : LocalKilling.AffineSyzygyAppSurjective F n) |
| 716 | (x : Spec R) : |
| 717 | ∃ U : (Spec R).Opens, IsAffineOpen U ∧ x ∈ U ∧ |
| 718 | (c.comp (Abelian.Ext.mk₀ |
| 719 | ((openRestrictionPushforwardUnit U).app F)) rfl : |
| 720 | ExtH ((openRestrictionPushforward U).obj F) (n + 1)) = 0 := by |
| 721 | induction n generalizing F with |
| 722 | | zero => |
| 723 | obtain ⟨q, hq⟩ := exists_injectiveCokernel_class (F := F) c |
| 724 | exact exists_affineOpen_HOne_killing c q hq x |
| 725 | | succ n ih => |
| 726 | cases hsurjective with |
| 727 | | succ hfirst htail => |
| 728 | obtain ⟨q, hq⟩ := exists_injectiveCokernel_class (F := F) c |
| 729 | obtain ⟨U, hU, hxU, hqU⟩ := ih q htail |
| 730 | let : IsIso (cokernelComparison (Injective.ι F) |
| 731 | (openRestrictionPushforward U)) := |
| 732 | openRestrictionPushforward_cokernelComparison_isIso_of_affine_app_surjective |
| 733 | U hU (Injective.ι F) hfirst |
| 734 | exact ⟨U, hU, hxU, |
| 735 | openRestrictionPushforwardUnit_HSucc_eq_zero_of_cokernel_killed |
| 736 | c q hq U hqU⟩ |
| 737 | |
| 738 | private theorem zariskiFunctor_map_toAffineCoverModule_eq_zero |
| 739 | {R : CommRingCat.{u}} {I : Type u} [Finite I] |
| 740 | {n : ℕ} (M : (Spec R).Modules) (U : I → (Spec R).Opens) (c : AffineH.Projective.H M n) |
| 741 | (hc : ∀ i, (AffineH.Projective.zariskiFunctor (Spec R) n).map |
| 742 | ((Scheme.Modules.restrictAdjunction (U i).ι).unit.app M) c = 0) : |
| 743 | (AffineH.Projective.zariskiFunctor (Spec R) n).map (AffineCover.Projective.toAffineCoverModule M U) c = 0 := by |
| 744 | let : PreservesFiniteProducts (AffineH.Projective.zariskiFunctor (Spec R) n) := by |
| 745 | let : (CategoryTheory.Sheaf.functorH |
| 746 | (Opens.grothendieckTopology (Spec R)) n).Additive := by |
| 747 | infer_instance |
| 748 | change PreservesFiniteProducts |
| 749 | (SheafOfModules.toSheaf (Spec R).ringCatSheaf ⋙ |
| 750 | CategoryTheory.Sheaf.functorH |
| 751 | (Opens.grothendieckTopology (Spec R)) n) |
| 752 | exact comp_preservesFiniteProducts _ _ |
| 753 | unfold AffineCover.Projective.toAffineCoverModule AffineCover.Projective.affineCoverModule |
| 754 | apply Concrete.Pi.map_ext |
| 755 | (fun i ↦ (Scheme.Modules.restrictFunctor (U i).ι ⋙ |
| 756 | Scheme.Modules.pushforward (U i).ι).obj M) |
| 757 | (AffineH.Projective.zariskiFunctor (Spec R) n) |
| 758 | intro i |
| 759 | rw [← ConcreteCategory.comp_apply, ← Functor.map_comp, |
| 760 | limit.lift_π, Fan.mk_π_app, hc i] |
| 761 | simp |
| 762 | |
| 763 | /-- A positive-degree class is killed on a finite affine cover from the |
| 764 | section-surjectivity data for the preceding injective syzygies. -/ |
| 765 | theorem schemeHSucc_finiteAffineKillingCover_of_affine_syzygy_app_surjective |
| 766 | {R : CommRingCat.{u}} (M : (Spec R).Modules) (n : ℕ) |
| 767 | (c : AffineH.Projective.H M (n + 1)) |
| 768 | (hsurjective : LocalKilling.AffineSyzygyAppSurjective |
| 769 | ((SheafOfModules.toSheaf (Spec R).ringCatSheaf).obj M) n) : |
| 770 | ∃ (I : Type u) (U : I → (Spec R).Opens), |
| 771 | Finite I ∧ |
| 772 | IsOpenCover U ∧ |
| 773 | (∀ i, IsAffine (U i)) ∧ |
| 774 | (∀ i, (AffineH.Projective.zariskiFunctor (Spec R) (n + 1)).map |
| 775 | ((Scheme.Modules.restrictAdjunction (U i).ι).unit.app M) c = 0) ∧ |
| 776 | (AffineH.Projective.zariskiFunctor (Spec R) (n + 1)).map |
| 777 | (AffineCover.Projective.toAffineCoverModule M U) c = 0 := by |
| 778 | let F := (SheafOfModules.toSheaf (Spec R).ringCatSheaf).obj M |
| 779 | choose U hUaffine hxU hUkills using fun x : Spec R ↦ |
| 780 | exists_affineOpen_H_succ_killing_of_affine_syzygy_app_surjective |
| 781 | n c hsurjective x |
| 782 | have hUcover : IsOpenCover U := by |
| 783 | apply IsOpenCover.mk |
| 784 | apply le_antisymm le_top |
| 785 | rw [← SetLike.coe_subset_coe] |
| 786 | intro x hx |
| 787 | rw [Opens.coe_iSup] |
| 788 | exact Set.mem_iUnion.2 ⟨x, hxU x⟩ |
| 789 | obtain ⟨s, hs⟩ := hUcover.exists_finite_of_compactSpace |
| 790 | let V : s → (Spec R).Opens := fun i ↦ U i.1 |
| 791 | have hVkills (i : s) : |
| 792 | (AffineH.Projective.zariskiFunctor (Spec R) (n + 1)).map |
| 793 | ((Scheme.Modules.restrictAdjunction (V i).ι).unit.app M) c = 0 := by |
| 794 | exact zariskiFunctor_map_restrictAdjunction_unit_eq_zero |
| 795 | (V i) M c (hUkills i.1) |
| 796 | let : Finite s := inferInstance |
| 797 | refine ⟨s, V, inferInstance, hs, fun i ↦ hUaffine i.1, |
| 798 | hVkills, ?_⟩ |
| 799 | exact zariskiFunctor_map_toAffineCoverModule_eq_zero M V c hVkills |
| 800 | |
| 801 | /-- Every degree-one Zariski cohomology class on an affine spectrum is |
| 802 | killed by restriction to the members of a finite affine open cover. The |
| 803 | last conclusion records the same vanishing for the induced map to the |
| 804 | finite product of restriction-pushforwards. -/ |
| 805 | theorem schemeHOne_finiteAffineKillingCover |
| 806 | {R : CommRingCat.{u}} (M : (Spec R).Modules) (c : AffineH.Projective.H M 1) : |
| 807 | ∃ (I : Type u) (U : I → (Spec R).Opens), |
| 808 | Finite I ∧ |
| 809 | IsOpenCover U ∧ |
| 810 | (∀ i, IsAffine (U i)) ∧ |
| 811 | (∀ i, (AffineH.Projective.zariskiFunctor (Spec R) 1).map |
| 812 | ((Scheme.Modules.restrictAdjunction (U i).ι).unit.app M) c = 0) ∧ |
| 813 | (AffineH.Projective.zariskiFunctor (Spec R) 1).map (AffineCover.Projective.toAffineCoverModule M U) c = 0 := by |
| 814 | let F := (SheafOfModules.toSheaf (Spec R).ringCatSheaf).obj M |
| 815 | obtain ⟨q, hq⟩ := exists_injectiveCokernel_class (F := F) c |
| 816 | choose U hUaffine hxU hUkills using fun x : Spec R ↦ |
| 817 | exists_affineOpen_HOne_killing c q hq x |
| 818 | have hUcover : IsOpenCover U := by |
| 819 | apply IsOpenCover.mk |
| 820 | apply le_antisymm le_top |
| 821 | rw [← SetLike.coe_subset_coe] |
| 822 | intro x hx |
| 823 | rw [Opens.coe_iSup] |
| 824 | exact Set.mem_iUnion.2 ⟨x, hxU x⟩ |
| 825 | obtain ⟨s, hs⟩ := hUcover.exists_finite_of_compactSpace |
| 826 | let V : s → (Spec R).Opens := fun i ↦ U i.1 |
| 827 | have hVkills (i : s) : |
| 828 | (AffineH.Projective.zariskiFunctor (Spec R) 1).map |
| 829 | ((Scheme.Modules.restrictAdjunction (V i).ι).unit.app M) c = 0 := by |
| 830 | exact zariskiFunctor_map_restrictAdjunction_unit_eq_zero |
| 831 | (V i) M c (hUkills i.1) |
| 832 | let : Finite s := inferInstance |
| 833 | refine ⟨s, V, inferInstance, hs, fun i ↦ hUaffine i.1, |
| 834 | hVkills, ?_⟩ |
| 835 | exact zariskiFunctor_map_toAffineCoverModule_eq_zero M V c hVkills |
| 836 | |
| 837 | /-- A degree-two class is killed on a finite affine cover when the |
| 838 | injective-cokernel projection is surjective on the affine basis. This is |
| 839 | the first higher-degree consumer of the cokernel-comparison isomorphism. -/ |
| 840 | theorem schemeHTwo_finiteAffineKillingCover_of_affine_cokernel_app_surjective |
| 841 | {R : CommRingCat.{u}} (M : (Spec R).Modules) (c : AffineH.Projective.H M 2) |
| 842 | (hsurjective : ∀ (W : (Spec R).Opens), IsAffineOpen W → |
| 843 | Function.Surjective |
| 844 | ((cokernel.π (Injective.ι |
| 845 | ((SheafOfModules.toSheaf (Spec R).ringCatSheaf).obj M))).hom.app |
| 846 | (op W))) : |
| 847 | ∃ (I : Type u) (U : I → (Spec R).Opens), |
| 848 | Finite I ∧ |
| 849 | IsOpenCover U ∧ |
| 850 | (∀ i, IsAffine (U i)) ∧ |
| 851 | (∀ i, (AffineH.Projective.zariskiFunctor (Spec R) 2).map |
| 852 | ((Scheme.Modules.restrictAdjunction (U i).ι).unit.app M) c = 0) ∧ |
| 853 | (AffineH.Projective.zariskiFunctor (Spec R) 2).map (AffineCover.Projective.toAffineCoverModule M U) c = 0 := by |
| 854 | let F := (SheafOfModules.toSheaf (Spec R).ringCatSheaf).obj M |
| 855 | obtain ⟨q, hq⟩ := exists_injectiveCokernel_class (F := F) c |
| 856 | choose U hUaffine hxU hUkills using fun x : Spec R ↦ |
| 857 | exists_affineOpen_HTwo_killing_of_affine_cokernel_app_surjective |
| 858 | c q hq hsurjective x |
| 859 | have hUcover : IsOpenCover U := by |
| 860 | apply IsOpenCover.mk |
| 861 | apply le_antisymm le_top |
| 862 | rw [← SetLike.coe_subset_coe] |
| 863 | intro x hx |
| 864 | rw [Opens.coe_iSup] |
| 865 | exact Set.mem_iUnion.2 ⟨x, hxU x⟩ |
| 866 | obtain ⟨s, hs⟩ := hUcover.exists_finite_of_compactSpace |
| 867 | let V : s → (Spec R).Opens := fun i ↦ U i.1 |
| 868 | have hVkills (i : s) : |
| 869 | (AffineH.Projective.zariskiFunctor (Spec R) 2).map |
| 870 | ((Scheme.Modules.restrictAdjunction (V i).ι).unit.app M) c = 0 := by |
| 871 | exact zariskiFunctor_map_restrictAdjunction_unit_eq_zero |
| 872 | (V i) M c (hUkills i.1) |
| 873 | let : Finite s := inferInstance |
| 874 | refine ⟨s, V, inferInstance, hs, fun i ↦ hUaffine i.1, |
| 875 | hVkills, ?_⟩ |
| 876 | exact zariskiFunctor_map_toAffineCoverModule_eq_zero M V c hVkills |
| 877 | |
| 878 | /-- A degree-three class is killed on a finite affine cover when the first |
| 879 | two injective-cokernel projections are surjective on the affine basis. -/ |
| 880 | theorem schemeHThree_finiteAffineKillingCover_of_affine_cokernel_app_surjective |
| 881 | {R : CommRingCat.{u}} (M : (Spec R).Modules) (c : AffineH.Projective.H M 3) |
| 882 | (hfirst : ∀ (W : (Spec R).Opens), IsAffineOpen W → |
| 883 | Function.Surjective |
| 884 | ((cokernel.π (Injective.ι |
| 885 | ((SheafOfModules.toSheaf (Spec R).ringCatSheaf).obj M))).hom.app |
| 886 | (op W))) |
| 887 | (hsecond : ∀ (W : (Spec R).Opens), IsAffineOpen W → |
| 888 | Function.Surjective |
| 889 | ((cokernel.π (Injective.ι (cokernel (Injective.ι |
| 890 | ((SheafOfModules.toSheaf (Spec R).ringCatSheaf).obj M))))).hom.app |
| 891 | (op W))) : |
| 892 | ∃ (I : Type u) (U : I → (Spec R).Opens), |
| 893 | Finite I ∧ |
| 894 | IsOpenCover U ∧ |
| 895 | (∀ i, IsAffine (U i)) ∧ |
| 896 | (∀ i, (AffineH.Projective.zariskiFunctor (Spec R) 3).map |
| 897 | ((Scheme.Modules.restrictAdjunction (U i).ι).unit.app M) c = 0) ∧ |
| 898 | (AffineH.Projective.zariskiFunctor (Spec R) 3).map (AffineCover.Projective.toAffineCoverModule M U) c = 0 := by |
| 899 | apply schemeHSucc_finiteAffineKillingCover_of_affine_syzygy_app_surjective |
| 900 | M 2 c |
| 901 | exact LocalKilling.AffineSyzygyAppSurjective.succ hfirst |
| 902 | (LocalKilling.AffineSyzygyAppSurjective.succ hsecond |
| 903 | (LocalKilling.AffineSyzygyAppSurjective.zero _)) |
| 904 | |
| 905 | end |
| 906 | |
| 907 | end OAI.AlgebraicGeometry.SheafCohomology.AffineLocalKilling.Projective.LocalKilling |