Skip to content

[claim] 00XA, 00XC: Morphisms of topoi (StacksFrontier → StacksCore) #25

Open

Description

@mycaule

Task, tag or exercise

00XA, 00XC

Target tier

Moving StacksFrontier code into StacksCore

Statement

  • 00XA (Sites and Sheaves, definition of a morphism of topoi). For sites C and D, a morphism
    of topoi Sh(D) → Sh(C) is a pair of functors f_* : Sh(D) → Sh(C) and f⁻¹ : Sh(C) → Sh(D),
    with an adjunction f⁻¹ ⊣ f_*, such that f⁻¹ commutes with finite limits (1). Morphisms
    compose by composing the direct images and, in the opposite order, the inverse images (2).
  • 00XC (Sites and Sheaves, lemma). A morphism of sites f : D → C given by u : C → D
    induces a morphism of topoi Sh(D) → Sh(C), with f⁻¹ = u_s and f_* = u^s.

Proposed Lean statement

-- No new statement: the claim moves these declarations, with their current signatures.

-- StacksFrontier/CategoryTheory/Sites/Topos/MorphismOfTopoi.lean
structure MorphismOfTopoi (E : Type u) [Category.{v} E] (F : Type u') [Category.{v'} F] where
  pushforward : E ⥤ F
  inverseImage : F ⥤ E
  adj : inverseImage ⊣ pushforward
  preservesFiniteLimits : PreservesFiniteLimits inverseImage

@[stacks 00XC]
noncomputable def CategoryTheory.Functor.IsMorphismOfSites.morphismOfTopoi
    {C : Type w} [SmallCategory C] {D : Type w} [SmallCategory D]
    {J : GrothendieckTopology C} {K : GrothendieckTopology D} {u : C ⥤ D}
    (h : u.IsMorphismOfSites J K) :
    MorphismOfTopoi (Sheaf K (Type w)) (Sheaf J (Type w))

-- StacksFrontier/CategoryTheory/Sites/Topos/ToposDefs.lean
@[stacks 00XA "(1); …"]
abbrev SheafToposMorphism (J : GrothendieckTopology C) (K : GrothendieckTopology D) :=
  MorphismOfTopoi (Sheaf K (Type w)) (Sheaf J (Type w))

@[stacks 00XA "(2)"]
abbrev SheafToposMorphism.comp (f : SheafToposMorphism J K) (g : SheafToposMorphism K L) :
    SheafToposMorphism J L

-- One addition, kept in StacksFrontier: a bridge lemma, so that 00XC covers the
-- morphisms of sites of 00X1.
theorem Stacks.Sites.Site.IsMorphismOfSites.toFunctor
    {SC : Site C} {SD : Site D} {u : C ⥤ D} (h : Site.IsMorphismOfSites SC SD u) :
    u.IsMorphismOfSites SC.topology SD.topology

Existing work

  • The three files to move: StacksFrontier/CategoryTheory/Sites/MorphismOfSites.lean (for
    Functor.IsMorphismOfSites), …/Sites/Topos/MorphismOfTopoi.lean and …/Sites/Topos/ToposDefs.lean.
    Their closure inside the library is these three files. They import only Mathlib and
    StacksCore.Tactic.*, so the move needs nothing else from Frontier.
  • MorphismOfTopoi is used by 716 Frontier files, and IsMorphismOfSites.morphismOfTopoi by 19.
    Moving it to Core changes their imports and nothing else.
  • Stacks.Sites.Site.IsMorphismOfSites (00X1) and Stacks.Sites.Site.IsContinuous (00WV), in
    StacksFrontier/CategoryTheory/Sites/FamilySite.lean, for the bridge lemma.
  • Mathlib: Functor.sheafPullback, Functor.sheafPushforwardContinuous,
    Functor.sheafAdjunctionContinuous, Functor.IsContinuous.

Proof outline

No proof changes for 00XA, which is definitional, or for 00XC, which assembles
Mathlib's adjunction. The bridge lemma uses 00WW: a functor continuous in the sense of 00WV
satisfies Mathlib's Functor.IsContinuous. The two exactness fields then carry over, after
identifying Functor.sheafPullbackConstruction.sheafPullback with Mathlib's Functor.sheafPullback
(both are left adjoints of the same pushforward). 00WW is in Frontier only:
isContinuous_toGrothendieck_of_preservesLimit_cospan, in
StacksFrontier/CategoryTheory/Sites/Continuous/SheafRestriction.lean, stated for pretopologies.
Since FamilySite.lean is Frontier too, the bridge lemma stays in Frontier, which may import Core.
Moving it to Core would pull in 00WV, 00WW and 00X1 and enlarge the claim.

Points the review should settle before the move (the reason for this claim):

  1. 00XC is proved in SGA 4's generality, which is wider than the Stacks Project's.
    Functor.IsMorphismOfSites asks for Mathlib's Functor.IsContinuous: restriction along u
    sends sheaves to sheaves. That is the continuity of SGA 4 III 1.1, the one SGA 4 IV 4.9.1 uses,
    and the conclusion of Stacks 00WW. It is weaker than continuity in the sense of Stacks 00WV.
    The file's own docstring says so. That is allowed, since the result is more general. But the
    tagged declaration is not about the 00X1 notion until the bridge lemma above exists.

  2. Parallel definitions. Frontier has four notions named IsMorphismOfSites:

    • Functor.IsMorphismOfSites (Sites/MorphismOfSites.lean, @[sga "4 IV 4.9.1"]);
    • Stacks.Sites.Site.IsMorphismOfSites (Sites/FamilySite.lean, @[stacks 00X1]);
    • the class IsMorphismOfSites (Sites/MorphismOfSites/MorphismDefs.lean, also
      @[sga "4 IV 4.9.1"], defined as the existence of a left exact left adjoint of the
      pushforward);
    • a ringed version in Sites/Modules/LocallyRingedSites/MorphismsGeneral.lean, with its own
      morphismOfTopoi.

    The convention « reuse existing definitions rather than introducing parallel ones » asks which
    one Core keeps. The two definitions tagged sga "4 IV 4.9.1" are both faithful to SGA 4, in two
    equivalent forms (point 4): one asks that the given left adjoint u.sheafPullback be left exact,
    the other that some left exact left adjoint exist. Left adjoints are unique up to isomorphism,
    so the two agree (not checked in Lean). The class allows any categories and sheaves in
    Type w; the structure asks for small categories in the universe of the sheaves.

  3. LeftAdjointsPreserveFiniteLimits (ToposDefs.lean) formalises no tag, and its own
    docstring calls it false in general. On the one-point site, X × - is left adjoint to X ⟹ -
    but does not preserve the terminal object unless X is a singleton. It should stay behind or be
    removed rather than move to Core.

  4. SGA references, checked (23 Nov). Checked against the numbering of SGA 4 IV in the
    English translation by KokunoYumeto (KokunoYumeto/sga-en,
    sources/native/SGA4/…/source/04/), which keeps the original numbering. Not yet checked against
    a scan of the 1972 edition.

    • @[sga "4 IV 3.3.1"] on MorphismOfTopoi.id and MorphismOfTopoi.comp: correct. 3.3.1
      defines the composite vu (direct images composed, inverse images composed in the opposite
      order, a left exact composite) and the identity morphism (id, id, φ). 3.3.2 adds the
      2-category structure. The structure MorphismOfTopoi itself carries no sga attribute; its
      source is IV 3.1 (Definition 3.1), which could be added.
    • @[sga "4 IV 4.9.1"] on Functor.IsMorphismOfSites: correct in substance. In 4.9.1 a
      continuous functor f : C → C' is a morphism of sites from C' to C when the left adjoint
      f^s of the restriction f_s is left exact. That left exactness is the only condition. The
      structure's third field, preservesFiniteColimits, is redundant: a left adjoint preserves
      colimits, and the same file proves it (preservesFiniteColimits_sheafPullback). Core could
      drop the field, or keep it and say it is automatic.
    • @[sga "4 IV 4.9.1"] on the class IsMorphismOfSites (MorphismDefs.lean): also correct.
      Its « there is a left exact left adjoint » is the « in other words » form 4.9.1 gives
      (existence of a morphism of topoi whose inverse image extends f), without the extension
      condition, which holds automatically.
    • @[sga "4 IV 4.9" "morphism of sites def"]: correct, as a section reference.
  5. Argument order. SheafToposMorphism.comp f g is f ∘ g (f : Sh(D) → Sh(C),
    g : Sh(E) → Sh(D)), whereas MorphismOfTopoi.comp g f takes the second morphism first.
    Mathlib naming would want a single convention.

  6. Universes. SheafToposMorphism allows sites in any universes, with sheaves in Type w.
    morphismOfTopoi asks for SmallCategory C, SmallCategory D in Type w. That matches the
    Stacks Project's set-theoretic conventions for 00XC. A large-sections variant exists
    (IsMorphismOfSites.morphismOfTopoiLargeSections, Sites/MorphismOfSitesLargeSections.lean)
    and stays in Frontier.

References

Stacks Project, Tags 00XA, 00XC, 00X1, 00WV, 00WW. SGA 4, Exposé IV, 3.1–3.3 and
4.9 (numbering checked in the English translation KokunoYumeto/sga-en).

Before submitting

  • I checked the open claims and the library for existing work on this.
  • I will wait for blueprint-approved before opening a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    claim

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions