Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Relative constant sheaf on the small étale site

Definition
AlgebraicGeometry_SmallEtaleRelativeConstant

by tomasz · Nov 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebraic-geometryetale-cohomology

For a closed immersion i ⁣:Z↪Xi\colon Z\hookrightarrow Xi:Z↪X and an abelian group AAA, the relative constant sheaf is the kernel of the restriction morphism A‾X→i∗A‾Z\underline A_X\to i_*\underline A_ZA​X​→i∗​A​Z​. On an étale XXX-scheme VVV, its sections are locally constant functions from VVV to AAA that vanish on the inverse image V×XZV\times_X ZV×X​Z. This realizes extension by zero of the constant sheaf on the complement.

Definition code
import Definitions.Def_AlgebraicGeometry_SmallEtaleAbelianDirectImage
import Mathlib.AlgebraicGeometry.Sites.ConstantSheaf

noncomputable section

section

section

set_option autoImplicit false
set_option backward.isDefEq.respectTransparency false
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits
namespace PhilipponKummerSequence
universe u
def underlying (X : Scheme.{u}) : X.Etale ⥤ Scheme.{u} :=
  Scheme.Etale.forget X ⋙ Over.forget X

instance continuous_underlying (X : Scheme.{u}) :
    (underlying X).IsContinuous X.smallEtaleTopology Scheme.etaleTopology := by
  have hle : Scheme.precoverage (@Etale.{u}) ≤ (MorphismProperty.precoverage (@Etale.{u})) :=
    inf_le_right
  have hc := MorphismProperty.isContinuous_comap_forget (S := X) (P := @Etale)
    (Scheme.precoverage @Etale) hle
  rw [MorphismProperty.toGrothendieck_comap_forget_eq_restrictedTopology _ hle] at hc
  letI : (Scheme.Etale.forget X).IsContinuous X.smallEtaleTopology (Scheme.etaleTopology.over X) := hc
  exact Functor.isContinuous_comp _ _ _ (Scheme.etaleTopology.over X) _


end PhilipponKummerSequence

end

section

set_option autoImplicit false
set_option backward.isDefEq.respectTransparency false
set_option maxHeartbeats 1000000

open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace


namespace PhilipponEtaleConstantDegreeZero

universe u
variable (X : Scheme.{u}) (A : Type u) [AddCommGroup A] [TopologicalSpace A] [DiscreteTopology A]

/-- Continuous functions with values in the discrete coefficient group form
an étale sheaf by restriction of the fpqc sheaf of continuous functions. -/
def continuousSheaf : Sheaf X.smallEtaleTopology AddCommGrpCat.{u} :=
  ((PhilipponKummerSequence.underlying X).sheafPushforwardContinuous AddCommGrpCat
    X.smallEtaleTopology Scheme.etaleTopology).obj
    ⟨continuousMapPresheafAb A, (isSheaf_fpqcTopology_continuousMapPresheafAb A).of_le
      (Scheme.etaleTopology_le_proetaleTopology.trans Scheme.proetaleTopology_le_fpqcTopology)⟩

end PhilipponEtaleConstantDegreeZero

end

section

set_option autoImplicit false
set_option backward.isDefEq.respectTransparency false
set_option backward.isDefEq.respectTransparency.types false
set_option maxHeartbeats 850000

open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite
open PhilipponEtaleBaseChangeComparison (baseChange)
open PhilipponEtaleClosedPushforward (pushforward)
open PhilipponEtaleConstantDegreeZero (continuousSheaf)


namespace PhilipponEtaleClosedCover

universe u
variable {X Y Z : Scheme.{u}}
variable (A : Type u) [AddCommGroup A] [TopologicalSpace A] [DiscreteTopology A]

private def precompose (f : Y ⟶ Z) : C(Z, A) →+ C(Y, A) where
  toFun h := h.comp ⟨f, f.continuous⟩
  map_zero' := rfl
  map_add' _ _ := rfl

private theorem projection_naturality (f : Y ⟶ X) {U V : X.Etale} (g : U ⟶ V) :
    ((baseChange f).map g).left ≫ pullback.fst V.hom f =
      pullback.fst U.hom f ≫ g.left :=
  pullback.lift_fst _ _ _

/-- Restriction of continuous coefficient functions to the pullback of a
scheme morphism. -/
def restriction (i : Y ⟶ X) :
    continuousSheaf X A ⟶ (pushforward i).obj (continuousSheaf Y A) :=
  ⟨{
    app W := AddCommGrpCat.ofHom (precompose A (pullback.fst W.unop.hom i))
    naturality {U V} f := by
      apply ConcreteCategory.hom_ext
      intro s
      change C(U.unop.left, A) at s
      apply ContinuousMap.ext
      intro x
      change s (f.unop.left (pullback.fst V.unop.hom i x)) =
        s (pullback.fst U.unop.hom i (((baseChange i).map f.unop).left x))
      exact congrArg s (congrArg (fun k : (_ : Scheme) ⟶ (_ : Scheme) => k x)
        (projection_naturality i f.unop).symm)
  }⟩

end PhilipponEtaleClosedCover

end

section

set_option autoImplicit false
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits
open PhilipponEtaleClosedCover (restriction)

namespace PhilipponEtaleRelativeCohomology
universe u
private abbrev AbelianSheaves (X : Scheme.{u}) := Sheaf X.smallEtaleTopology AddCommGrpCat.{u}

section Restriction
variable {X Z : Scheme.{u}} (i : Z ⟶ X)
variable (A : Type u) [AddCommGroup A] [TopologicalSpace A] [DiscreteTopology A]
/-- Relative constant sheaf for a closed subscheme, defined as the kernel
of the restriction map to its direct image. -/
def relativeSheaf : AbelianSheaves X := kernel (restriction A i)

end Restriction

/-- The canonical relative constant sheaf, using the discrete topology on
the underlying abelian group of coefficients. -/
def relativeConstant {X Z : Scheme.{u}} (i : Z ⟶ X) (A : Type u) [AddCommGroup A] :
    AbelianSheaves X :=
  letI : TopologicalSpace A := ⊥
  letI : DiscreteTopology A := ⟨rfl⟩
  relativeSheaf i A

end PhilipponEtaleRelativeCohomology

end

end
Source
Stacks Project, Lemma 59.70.8, https://stacks.math.columbia.edu/tag/095L.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me