/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. This file has been modified. -/ import OAI.Algebra.Homology.Notation import Mathlib.Algebra.Homology.Embedding.CochainComplex import Mathlib.Topology.Sheaves.Flasque /-! # Flasque Bounded Below -/ namespace OAI.AlgebraicTopology.Sheaf.FlasqueBoundedBelow.TopCat.IsFlasque noncomputable section open _root_.TopCat open _root_.TopCat.Sheaf /-! # Global sections of bounded-below exact flasque complexes An exact bounded-below cochain complex of flasque sheaves remains exact after taking global sections. The proof is elementary: starting at the lower bound, the cycle sheaves are flasque by induction through their short exact sequences. Global sections are then exact on each of those sequences. This is the acyclic-complex lemma needed to compare a bounded-below flasque resolution with a termwise-injective replacement. -/ open _root_.CategoryTheory Limits Opposite _root_.TopologicalSpace open _root_.TopCat.Sheaf.IsFlasque universe u variable {X : TopCat.{u}} namespace BoundedBelowComplex variable (K : CochainComplex (TopCat.Sheaf AddCommGrpCat.{u} X) ℤ) /-- Let `X` be a topological space. The global sections functor sends a sheaf of abelian groups `F` to `F(X)` and a sheaf morphism to its map on sections over the whole space. -/ def globalSectionsFunctor (X : TopCat.{u}) : TopCat.Sheaf AddCommGrpCat.{u} X ⥤ AddCommGrpCat.{u} := (sheafSections (Opens.grothendieckTopology X) AddCommGrpCat.{u}).obj (op (⊤ : Opens X)) noncomputable instance globalSectionsFunctor_additive : (globalSectionsFunctor X).Additive := by constructor intro A B f g change (((evaluation (Opens X)ᵒᵖ AddCommGrpCat.{u}).obj (op (⊤ : Opens X))).map ((TopCat.Sheaf.forget AddCommGrpCat.{u} X).map (f + g))) = _ rw [Functor.map_add, Functor.map_add] rfl noncomputable instance globalSectionsFunctor_preservesFiniteLimits : PreservesFiniteLimits (globalSectionsFunctor X) := by let : PreservesFiniteLimits ((evaluation (Opens X)ᵒᵖ AddCommGrpCat.{u}).obj (op (⊤ : Opens X))) := inferInstance exact comp_preservesFiniteLimits (TopCat.Sheaf.forget AddCommGrpCat.{u} X) ((evaluation (Opens X)ᵒᵖ AddCommGrpCat.{u}).obj (op (⊤ : Opens X))) /-- Let `X` be a topological space and `K` an integer-indexed cochain complex of sheaves of abelian groups on `X`. This is the complex of abelian groups with `K^n(X)` in degree `n` and differentials obtained by evaluating those of `K` on the whole space. -/ def globalSectionsComplex (K : CochainComplex (TopCat.Sheaf AddCommGrpCat.{u} X) ℤ) : CochainComplex AddCommGrpCat.{u} ℤ := ((globalSectionsFunctor X).mapHomologicalComplex ℤᵘᵖ).obj K end BoundedBelowComplex end end OAI.AlgebraicTopology.Sheaf.FlasqueBoundedBelow.TopCat.IsFlasque