/- Copyright 2026 The Formal Conjectures Authors. Released under Apache 2.0 license as described in the file LICENSE. This file has been modified. -/ import OAI.Algebra.Homology.Notation import OAI.AlgebraicTopology.Sheaf.CohomologyStalkIs import OAI.AlgebraicTopology.Sheaf.OpenRestriction import OAI.AlgebraicTopology.Sheaf.FlasqueLowestIsoHom /-! # Open Restricted Vanishing -/ namespace OAI.AlgebraicTopology.Sheaf.OpenRestrictedVanishing.TopCat noncomputable section open _root_.TopCat open _root_.TopCat.Sheaf /-! # Local vanishing on an open subset and restricted section complexes Cofinal calculations are performed on opens of the original ambient space. The image/preimage identities identify these section complexes with sections of the open-restricted sheaf complex. For a bounded-below flasque complex, lower local vanishing therefore implies lower cohomology vanishing of sections on that open. -/ open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite universe u variable (X : TopCat.{u}) (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) (U : Opens X) /-- Cofinal ambient calculations on points of `U` imply cohomology-sheaf vanishing of the restricted complex. -/ theorem openRestriction_homology_isZero_of_cofinal_sections (n : ℤ) (hlocal : ∀ (x : X), x ∈ U → ∀ (V : Opens X), x ∈ V → ∃ W : Opens X, W ≤ V ∧ x ∈ W ∧ IsZero ((((Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W).mapHomologicalComplex ℤᵘᵖ).obj K).homology n)) : IsZero ((((U.isOpenEmbedding.sheafPullback AddCommGrpCat.{u}).mapHomologicalComplex ℤᵘᵖ).obj K).homology n) := by apply CohomologyStalkIs.TopCat.cohomologySheaf_isZero_of_cofinal_sections intro x V hxV let V' := U.isOpenEmbedding.functor.obj V have hxV' : x.1 ∈ V' := ⟨x, hxV, rfl⟩ obtain ⟨W, hWV', hxW, hW⟩ := hlocal x.1 x.2 V' hxV' let W' := (Opens.map U.inclusion').obj W have hWU : W ≤ U := by intro y hy obtain ⟨v, _, hv⟩ := hWV' hy exact hv ▸ v.2 have he : U.isOpenEmbedding.functor.obj W' = W := by rw [Opens.functor_map_eq_inf, inf_eq_left.mpr hWU] refine ⟨W', ?_, hxW, ?_⟩ · intro y hy obtain ⟨v, hv, hvy⟩ := hWV' hy exact (Subtype.ext hvy : v = y) ▸ hv · change IsZero ((((Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X (U.isOpenEmbedding.functor.obj W')).mapHomologicalComplex ℤᵘᵖ).obj K).homology n) rwa [he] set_option backward.isDefEq.respectTransparency false in set_option backward.defeqAttrib.useBackward true in /-- On a bounded-below flasque complex, lower local vanishing on `U` implies vanishing of the section-complex cohomology on `U`. -/ theorem sectionCohomology_isZero_of_cofinal_lower_vanishing (N n : ℤ) [K.IsStrictlyGE N] (hflasque : ∀ j, (K.X j).IsFlasque) (hlocal : ∀ j : ℤ, j ≤ n → ∀ (x : X), x ∈ U → ∀ (V : Opens X), x ∈ V → ∃ W : Opens X, W ≤ V ∧ x ∈ W ∧ IsZero ((((Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W).mapHomologicalComplex ℤᵘᵖ).obj K).homology j)) : IsZero ((((Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X U).mapHomologicalComplex ℤᵘᵖ).obj K).homology n) := by let L := ((U.isOpenEmbedding.sheafPullback AddCommGrpCat.{u}).mapHomologicalComplex ℤᵘᵖ).obj K have hL (j : ℤ) (hj : j ≤ n) : IsZero (L.homology j) := openRestriction_homology_isZero_of_cofinal_sections X K U j (hlocal j hj) have hLF (j : ℤ) : (L.X j).IsFlasque := by let := hflasque j exact OpenRestriction.TopCat.openSheafRestriction_isFlasque X U (K.X j) let e := FlasqueLowestCohomology.TopCat.lowestSectionCohomologyIso (TopCat.of U) L N n (fun j hj => hL j hj.le) hLF ⊤ have hzero := ((Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation (TopCat.of U) ⊤).map_isZero (hL n le_rfl)).of_iso e change IsZero ((((Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X (U.isOpenEmbedding.functor.obj ⊤)).mapHomologicalComplex ℤᵘᵖ).obj K).homology n) at hzero rwa [Opens.isOpenEmbedding_obj_top] at hzero end end OAI.AlgebraicTopology.Sheaf.OpenRestrictedVanishing.TopCat