/- 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.Support.NestedOnOpen import OAI.AlgebraicTopology.Support.FlasqueComparison /-! # Finite Filtration Vanishing -/ namespace OAI.AlgebraicTopology.Support.FiniteFiltrationVanishing.TopCat.Sheaf noncomputable section open _root_.TopCat open _root_.TopCat.Sheaf /-! # Vanishing through a finite closed-support filtration The localization sequence for two nested supports is short exact on every open for termwise-flasque coefficients. A finite filtration ending in the empty support therefore propagates cohomological vanishing from its open layers to the whole support. Layer vanishing is an explicit hypothesis of this general lemma, not an asserted purity or dimension theorem. -/ open _root_.CategoryTheory Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex universe u variable (X : TopCat.{u}) set_option backward.isDefEq.respectTransparency false in set_option backward.defeqAttrib.useBackward true in /-- Restriction to the whole space is an isomorphism on each open-set section group. -/ theorem toOpenRestrictionPushforward_top_app_isIso (F : Sheaf AddCommGrpCat.{u} X) (W : Opens X) : IsIso (((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F).hom.app (op W)) := by have hw : DerivedSectionsNaturality.TopCat.Sheaf.openRestrictionImage X ⊤ W = W := by simpa only [inf_top_eq] using Opens.functor_map_eq_inf (⊤ : Opens X) W have heq : (((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F).hom.app (op W)) = F.obj.map (eqToHom (congrArg op hw.symm)) := by change F.obj.map _ = F.obj.map _ congr 1 rw [heq] infer_instance /-- The whole-space restriction morphism is an isomorphism of sheaves. -/ theorem toOpenRestrictionPushforward_top_isIso (F : Sheaf AddCommGrpCat.{u} X) : IsIso ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F) := by let : ∀ W, IsIso (((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F).hom.app W) := fun W => toOpenRestrictionPushforward_top_app_isIso X F W.unop let : IsIso ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F).hom := NatIso.isIso_of_isIso_app _ let : IsIso ((forget AddCommGrpCat.{u} X).map ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F)) := by change IsIso ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F).hom infer_instance exact isIso_of_reflects_iso ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F) (forget AddCommGrpCat.{u} X) /-- The kernel defining sections with empty support is zero. -/ theorem isZero_sheafSectionsSupportedOutside_top (F : Sheaf AddCommGrpCat.{u} X) : IsZero ((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X ⊤).obj F) := by let := toOpenRestrictionPushforward_top_isIso X F exact isZero_kernel_of_mono ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X ⊤).app F) /-- In particular the empty supported-section complex has zero cohomology, for arbitrary coefficients. -/ theorem supportedSections_top_homology_isZero (W : Opens X) (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) (n : ℤ) : IsZero ((((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W).mapHomologicalComplex ℤᵘᵖ).obj (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X ⊤).mapHomologicalComplex ℤᵘᵖ).obj K)).homology n) := ShortComplex.isZero_homology_of_isZero_X₂ _ ((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W).map_isZero (isZero_sheafSectionsSupportedOutside_top X (K.X n))) variable {U V : Opens X} (h : V ≤ U) /-- Flasqueness suffices for the nested-support sequence to be short exact on every open. -/ theorem nestedSupportRestrictionSectionsShortComplex_shortExact_of_flasque (W : Opens X) (F : Sheaf AddCommGrpCat.{u} X) [F.IsFlasque] : ((NestedLocalization.TopCat.Sheaf.nestedSupportRestrictionShortComplex X h F).map (DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W)).ShortExact := by rw [NestedLocalization.TopCat.Sheaf.nestedSupportRestrictionShortComplex_eq] let : Epi ((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X W).map ((DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app F)) := DerivedSectionsLocalization.TopCat.Sheaf.toOpenRestrictionPushforward_app_epi X U F W exact CategoryTheory.Abelian.KernelCompositionShortExact.kernelFactorizationShortComplex_map_shortExact _ _ _ _ _ /-- The same exact sequence for section complexes of flasque sheaves. -/ theorem nestedSupportRestrictionSectionsComplexShortComplex_shortExact_of_flasque (W : Opens X) (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) (hK : ∀ n, (K.X n).IsFlasque) : (NestedLocalization.TopCat.Sheaf.nestedSupportRestrictionSectionsComplexShortComplex X h W K).ShortExact := by apply HomologicalComplex.shortExact_of_degreewise_shortExact intro n exact nestedSupportRestrictionSectionsShortComplex_shortExact_of_flasque X h W (K.X n) include h in /-- Vanishing of the smaller support and the open layer implies vanishing of the larger support in the same degree. -/ theorem nestedSupportRestriction_middle_homology_isZero (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) (hK : ∀ n, (K.X n).IsFlasque) (n : ℤ) (hsmall : IsZero ((((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X ⊤).mapHomologicalComplex ℤᵘᵖ).obj (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).mapHomologicalComplex ℤᵘᵖ).obj K)).homology n)) (hlayer : IsZero ((((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X U).mapHomologicalComplex ℤᵘᵖ).obj (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X V).mapHomologicalComplex ℤᵘᵖ).obj K)).homology n)) : IsZero ((((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X ⊤).mapHomologicalComplex ℤᵘᵖ).obj (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X V).mapHomologicalComplex ℤᵘᵖ).obj K)).homology n) := by let S := NestedLocalization.TopCat.Sheaf.nestedSupportRestrictionSectionsComplexShortComplex X h ⊤ K have hS := nestedSupportRestrictionSectionsComplexShortComplex_shortExact_of_flasque X h ⊤ K hK have hlast : IsZero (S.X₃.homology n) := hlayer.of_iso ((HomologicalComplex.homologyFunctor _ _ n).mapIso (NestedOnOpen.TopCat.Sheaf.nestedSupportRestrictionLastComplexIso X h K)) exact (hS.homology_exact₂ n).isZero_X₂ (hsmall.eq_zero_of_src _) (hlast.eq_zero_of_tgt _) /-- A finite increasing sequence of open complements, terminating at the whole space, gives vanishing on every corresponding closed support once the open layers vanish. The induction uses only the localization sequence; the layer hypotheses still have to be discharged geometrically. -/ theorem finiteNestedSupport_homology_isZero (O : ℕ → Opens X) (hO : Monotone O) (N : ℕ) (hN : O N = ⊤) (K : CochainComplex (Sheaf AddCommGrpCat.{u} X) ℤ) (hK : ∀ n, (K.X n).IsFlasque) (n : ℤ) (hlayer : ∀ k, k < N → IsZero ((((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X (O (k + 1))).mapHomologicalComplex ℤᵘᵖ).obj (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X (O k)).mapHomologicalComplex ℤᵘᵖ).obj K)).homology n)) (k : ℕ) (hk : k ≤ N) : IsZero ((((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X ⊤).mapHomologicalComplex ℤᵘᵖ).obj (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X (O k)).mapHomologicalComplex ℤᵘᵖ).obj K)).homology n) := by induction hk using Nat.decreasingInduction with | self => rw [hN] exact supportedSections_top_homology_isZero X ⊤ K n | of_succ k hk ih => exact nestedSupportRestriction_middle_homology_isZero X (hO (Nat.le_succ k)) K hK n ih (hlayer k (by omega)) end end OAI.AlgebraicTopology.Support.FiniteFiltrationVanishing.TopCat.Sheaf