mathlib documentation

category_theory.sites.grothendieck

Grothendieck topologies #

Definition and lemmas about Grothendieck topologies. A Grothendieck topology for a category C is a set of sieves on each object X satisfying certain closure conditions.

Alternate versions of the axioms (in arrow form) are also described. Two explicit examples of Grothendieck topologies are given:

A pretopology, or a basis for a topology is defined in pretopology.lean. The topology associated to a topological space is defined in spaces.lean.

Tags #

Grothendieck topology, coverage, pretopology, site

References #

Implementation notes #

We use the definition of [nlab] and [MM92][] (Chapter III, Section 2), where Grothendieck topologies are saturated collections of morphisms, rather than the notions of the Stacks project (00VG) and the Elephant, in which topologies are allowed to be unsaturated, and are then completed. TODO (BM): Add the definition from Stacks, as a pretopology, and complete to a topology.

This is so that we can produce a bijective correspondence between Grothendieck topologies on a small category and Lawvere-Tierney topologies on its presheaf topos, as well as the equivalence between Grothendieck topoi and left exact reflective subcategories of presheaf toposes.

structure category_theory.grothendieck_topology (C : Type u) [category_theory.category C] :
Type (max u v)

The definition of a Grothendieck topology: a set of sieves J X on each object X satisfying three axioms:

  1. For every object X, the maximal sieve is in J X.
  2. If S ∈ J X then its pullback along any h : Y ⟶ X is in J Y.
  3. If S ∈ J X and R is a sieve on X, then provided that the pullback of R along any arrow f : Y ⟶ X in S is in J Y, we have that R itself is in J X.

A sieve S on X is referred to as J-covering, (or just covering), if S ∈ J X.

See https://stacks.math.columbia.edu/tag/00Z4, or [nlab], or [MM92][] Chapter III, Section 2, Definition 1.

Instances for category_theory.grothendieck_topology
@[ext]
theorem category_theory.grothendieck_topology.ext {C : Type u} [category_theory.category C] {J₁ J₂ : category_theory.grothendieck_topology C} (h : J₁ = J₂) :
J₁ = J₂

An extensionality lemma in terms of the coercion to a pi-type. We prove this explicitly rather than deriving it so that it is in terms of the coercion rather than the projection .sieves.

theorem category_theory.grothendieck_topology.transitive {C : Type u} [category_theory.category C] {X : C} {S : category_theory.sieve X} (J : category_theory.grothendieck_topology C) (hS : S J X) (R : category_theory.sieve X) (h : ∀ ⦃Y : C⦄ ⦃f : Y X⦄, S fcategory_theory.sieve.pullback f R J Y) :
R J X

If S is a subset of R, and S is covering, then R is covering as well.

See https://stacks.math.columbia.edu/tag/00Z5 (2), or discussion after [MM92] Chapter III, Section 2, Definition 1.

The intersection of two covering sieves is covering.

See https://stacks.math.columbia.edu/tag/00Z5 (1), or [MM92] Chapter III, Section 2, Definition 1 (iv).

theorem category_theory.grothendieck_topology.bind_covering {C : Type u} [category_theory.category C] {X : C} (J : category_theory.grothendieck_topology C) {S : category_theory.sieve X} {R : Π ⦃Y : C⦄ ⦃f : Y X⦄, S fcategory_theory.sieve Y} (hS : S J X) (hR : ∀ ⦃Y : C⦄ ⦃f : Y X⦄ (H : S f), R H J Y) :

The sieve S on X J-covers an arrow f to X if S.pullback f ∈ J Y. This definition is an alternate way of presenting a Grothendieck topology.

Equations

The maximality axiom in 'arrow' form: Any arrow f in S is covered by S.

theorem category_theory.grothendieck_topology.arrow_stable {C : Type u} [category_theory.category C] {X Y : C} (J : category_theory.grothendieck_topology C) (f : Y X) (S : category_theory.sieve X) (h : J.covers S f) {Z : C} (g : Z Y) :
J.covers S (g f)

The stability axiom in 'arrow' form: If S covers f then S covers g ≫ f for any g.

theorem category_theory.grothendieck_topology.arrow_trans {C : Type u} [category_theory.category C] {X Y : C} (J : category_theory.grothendieck_topology C) (f : Y X) (S R : category_theory.sieve X) (h : J.covers S f) :
(∀ {Z : C} (g : Z X), S gJ.covers R g)J.covers R f

The transitivity axiom in 'arrow' form: If S covers f and every arrow in S is covered by R, then R covers f.

theorem category_theory.grothendieck_topology.arrow_intersect {C : Type u} [category_theory.category C] {X Y : C} (J : category_theory.grothendieck_topology C) (f : Y X) (S R : category_theory.sieve X) (hS : J.covers S f) (hR : J.covers R f) :
J.covers (S R) f

The trivial Grothendieck topology, in which only the maximal sieve is covering. This topology is also known as the indiscrete, coarse, or chaotic topology.

See [MM92] Chapter III, Section 2, example (a), or https://en.wikipedia.org/wiki/Grothendieck_topology#The_discrete_and_indiscrete_topologies

Equations
@[protected, instance]

Construct a complete lattice from the Inf, but make the trivial and discrete topologies definitionally equal to the bottom and top respectively.

Equations
@[simp]

The dense Grothendieck topology.

See https://ncatlab.org/nlab/show/dense+topology, or [MM92] Chapter III, Section 2, example (e).

Equations
theorem category_theory.grothendieck_topology.dense_covering {C : Type u} [category_theory.category C] {X : C} {S : category_theory.sieve X} :
S category_theory.grothendieck_topology.dense X ∀ {Y : C} (f : Y X), ∃ (Z : C) (g : Z Y), S (g f)

A category satisfies the right Ore condition if any span can be completed to a commutative square. NB. Any category with pullbacks obviously satisfies the right Ore condition, see right_ore_of_pullbacks.

Equations

The atomic Grothendieck topology: a sieve is covering iff it is nonempty. For the pullback stability condition, we need the right Ore condition to hold.

See https://ncatlab.org/nlab/show/atomic+site, or [MM92] Chapter III, Section 2, example (f).

Equations
@[protected, instance]
def category_theory.grothendieck_topology.cover.has_coe_to_fun {C : Type u} [category_theory.category C] {X : C} {J : category_theory.grothendieck_topology C} :
has_coe_to_fun (J.cover X) (λ (S : J.cover X), Π ⦃Y : C⦄, (Y X) → Prop)
Equations
@[ext]
theorem category_theory.grothendieck_topology.cover.ext {C : Type u} [category_theory.category C] {X : C} {J : category_theory.grothendieck_topology C} (S T : J.cover X) (h : ∀ ⦃Y : C⦄ (f : Y X), S f T f) :
S = T
theorem category_theory.grothendieck_topology.cover.arrow.ext_iff {C : Type u} {_inst_1 : category_theory.category C} {X : C} {J : category_theory.grothendieck_topology C} {S : J.cover X} (x y : S.arrow) :
x = y x.Y = y.Y x.f == y.f
theorem category_theory.grothendieck_topology.cover.arrow.ext {C : Type u} {_inst_1 : category_theory.category C} {X : C} {J : category_theory.grothendieck_topology C} {S : J.cover X} (x y : S.arrow) (h : x.Y = y.Y) (h_1 : x.f == y.f) :
x = y
@[nolint, ext]
  • Y : C
  • f : self.Y X
  • hf : S self.f

An auxiliary structure, used to define S.index in plus.lean.

Instances for category_theory.grothendieck_topology.cover.arrow
  • category_theory.grothendieck_topology.cover.arrow.has_sizeof_inst
@[nolint, ext]

An auxiliary structure, used to define S.index in plus.lean.

Instances for category_theory.grothendieck_topology.cover.relation
  • category_theory.grothendieck_topology.cover.relation.has_sizeof_inst
theorem category_theory.grothendieck_topology.cover.relation.ext {C : Type u} {_inst_1 : category_theory.category C} {X : C} {J : category_theory.grothendieck_topology C} {S : J.cover X} (x y : S.relation) (h : x.Y₁ = y.Y₁) (h_1 : x.Y₂ = y.Y₂) (h_2 : x.Z = y.Z) (h_3 : x.g₁ == y.g₁) (h_4 : x.g₂ == y.g₂) (h_5 : x.f₁ == y.f₁) (h_6 : x.f₂ == y.f₂) :
x = y
@[simp]
theorem category_theory.grothendieck_topology.cover.arrow.map_f {C : Type u} [category_theory.category C] {X : C} {J : category_theory.grothendieck_topology C} {S T : J.cover X} (I : S.arrow) (f : S T) :
(I.map f).f = I.f

Map a arrow along a refinement S ⟶ T.

Equations
@[simp]
theorem category_theory.grothendieck_topology.cover.arrow.map_Y {C : Type u} [category_theory.category C] {X : C} {J : category_theory.grothendieck_topology C} {S T : J.cover X} (I : S.arrow) (f : S T) :
(I.map f).Y = I.Y

Map a relation along a refinement S ⟶ T.

Equations
@[simp]

The first arrow associated to a relation. Used in defining index in plus.lean.

Equations

The second arrow associated to a relation. Used in defining index in plus.lean.

Equations
@[simp]
@[simp]

Pull back a cover along a morphism.

Equations
@[simp]
@[simp]

An arrow of S.pullback f gives rise to an arrow of S.

Equations

A relation of S.pullback f gives rise to a relation of S.

Equations
@[simp]
theorem category_theory.grothendieck_topology.cover.coe_pullback {C : Type u} [category_theory.category C] {X Y : C} {J : category_theory.grothendieck_topology C} {Z : C} (f : Y X) (g : Z Y) (S : J.cover X) :
(S.pullback f) g S (g f)

The isomorphism between S and the pullback of S w.r.t. the identity.

Equations

Pulling back with respect to a composition is the composition of the pullbacks.

Equations

Combine a family of covers over a cover.

Equations

The canonical moprhism from S.bind T to T.

Equations
noncomputable def category_theory.grothendieck_topology.cover.arrow.middle {C : Type u} [category_theory.category C] {J : category_theory.grothendieck_topology C} {X : C} {S : J.cover X} {T : Π (I : S.arrow), J.cover I.Y} (I : (S.bind T).arrow) :
C

An arrow in bind has the form A ⟶ B ⟶ X where A ⟶ B is an arrow in T I for some I. and B ⟶ X is an arrow of S. This is the object B.

Equations
noncomputable def category_theory.grothendieck_topology.cover.arrow.to_middle_hom {C : Type u} [category_theory.category C] {J : category_theory.grothendieck_topology C} {X : C} {S : J.cover X} {T : Π (I : S.arrow), J.cover I.Y} (I : (S.bind T).arrow) :

An arrow in bind has the form A ⟶ B ⟶ X where A ⟶ B is an arrow in T I for some I. and B ⟶ X is an arrow of S. This is the hom A ⟶ B.

Equations
noncomputable def category_theory.grothendieck_topology.cover.arrow.from_middle_hom {C : Type u} [category_theory.category C] {J : category_theory.grothendieck_topology C} {X : C} {S : J.cover X} {T : Π (I : S.arrow), J.cover I.Y} (I : (S.bind T).arrow) :

An arrow in bind has the form A ⟶ B ⟶ X where A ⟶ B is an arrow in T I for some I. and B ⟶ X is an arrow of S. This is the hom B ⟶ X.

Equations
noncomputable def category_theory.grothendieck_topology.cover.arrow.from_middle {C : Type u} [category_theory.category C] {J : category_theory.grothendieck_topology C} {X : C} {S : J.cover X} {T : Π (I : S.arrow), J.cover I.Y} (I : (S.bind T).arrow) :

An arrow in bind has the form A ⟶ B ⟶ X where A ⟶ B is an arrow in T I for some I. and B ⟶ X is an arrow of S. This is the hom B ⟶ X, as an arrow.

Equations
noncomputable def category_theory.grothendieck_topology.cover.arrow.to_middle {C : Type u} [category_theory.category C] {J : category_theory.grothendieck_topology C} {X : C} {S : J.cover X} {T : Π (I : S.arrow), J.cover I.Y} (I : (S.bind T).arrow) :

An arrow in bind has the form A ⟶ B ⟶ X where A ⟶ B is an arrow in T I for some I. and B ⟶ X is an arrow of S. This is the hom A ⟶ B, as an arrow.

Equations

To every S : J.cover X and presheaf P, associate a multicospan_index.

Equations
@[reducible]

The natural multifork associated to S : J.cover X for a presheaf P. Saying that this multifork is a limit is essentially equivalent to the sheaf condition at the given object for the given covering sieve. See sheaf.lean for an equivalent sheaf condition using this.

@[reducible]

The canonical map from P.obj (op X) to the multiequalizer associated to a covering sieve, assuming such a multiequalizer exists. This will be used in sheaf.lean to provide an equivalent sheaf condition in terms of multiequalizers.

@[simp]

Pull back a cover along a morphism.

Equations

Pulling back along the identity is naturally isomorphic to the identity functor.

Equations

Pulling back along a composition is naturally isomorphic to the composition of the pullbacks.

Equations