|
|
|
|
Quelle Basic.lean
Sprache: Lean
|
|
/-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang, Joël Riou
-/
module
public import Mathlib.CategoryTheory.Sites.CoverLifting
public import Mathlib.CategoryTheory.Sites.LocallyFullyFaithful
/-!
# Dense subsites
We define `IsCoverDense` functors into sites as functors such that there exists a covering sieve
that factors through images of the functor for each object in `D`.
## Main results
- `CategoryTheory.Functor.IsCoverDense.Types.presheafHom`: If `G : C ⥤ (D, K)` is locally-full
and cover-dense, then given any presheaf `ℱ` and sheaf `ℱ'` on `D`,
and a morphism `α : G ⋙ ℱ ⟶ G ⋙ ℱ'`, we may glue them together to obtain
a morphism of presheaves `ℱ ⟶ ℱ'`.
- `CategoryTheory.Functor.IsCoverDense.sheafIso`: If `ℱ` above is a sheaf and `α` is an iso,
then the result is also an iso.
- `CategoryTheory.Functor.IsCoverDense.iso_of_restrict_iso`: If `G : C ⥤ (D, K)` is locally-full
and cover-dense, then given any sheaves `ℱ, ℱ'` on `D`, and a morphism `α : ℱ ⟶ ℱ'`,
then `α` is an iso if `G ⋙ ℱ ⟶ G ⋙ ℱ'` is iso.
- `CategoryTheory.Functor.IsDenseSubsite`:
The functor `G : C ⥤ D` exhibits `(C, J)` as a dense subsite of `(D, K)` if `G` is cover-dense,
locally fully-faithful, and `S` is a cover of `C` iff the image of `S` in `D` is a cover.
- `CategoryTheory.Functor.IsDenseSubsite.sheafEquiv`: the equivalence of
categories `Sheaf J A ≌ Sheaf K A` when `(C, J)` is a dense subsite of `(D, K)` and
the pushforward functor `Sheaf K A ⥤ Sheaf J A` is an equivalence, which we show
in two situations:
* the sites are small and `A` has suitable limits (see the file
`Mathlib/CategoryTheory/Sites/DenseSubsite/SheafEquiv.lean`).
* the category `A` has limits of size `w` and `G` is `1`-hypercover cover dense
relatively to the universe `w` (see the file
`Mathlib/CategoryTheory/Sites/DenseSubsite/OneHypercoverDense.lean`).
## References
* [Elephant]: *Sketches of an Elephant*, P. T. Johnstone: C2.2.
* https://ncatlab.org/nlab/show/dense+sub-site
* https://ncatlab.org/nlab/show/comparison+lemma
-/
@[expose] public section
universe w v u
namespace CategoryTheory
variable {C : Type*} [Category* C] {D : Type*} [Category* D]
variable (J : GrothendieckTopology C) (K : GrothendieckTopology D)
/-- An auxiliary structure that witnesses the fact that `f` factors through an image object of `G`.
-/
structure Presieve.CoverByImageStructure (G : C ⥤ D) {V U : D} (f : V ⟶ U) where
obj : C
lift : V ⟶ G.obj obj
map : G.obj obj ⟶ U
fac : lift ≫ map = f := by cat_disch
attribute [nolint docBlame] Presieve.CoverByImageStructure.obj Presieve.CoverByImageStructure.lift
Presieve.CoverByImageStructure.map Presieve.CoverByImageStructure.fac
attribute [reassoc (attr := simp)] Presieve.CoverByImageStructure.fac
/-- For a functor `G : C ⥤ D`, and an object `U : D`, `Presieve.coverByImage G U` is the presieve
of `U` consisting of those arrows that factor through images of `G`.
-/
def Presieve.coverByImage (G : C ⥤ D) (U : D) : Presieve U := fun _ f =>
Nonempty (Presieve.CoverByImageStructure G f)
/-- For a functor `G : C ⥤ D`, and an object `U : D`, `Sieve.coverByImage G U` is the sieve of `U`
consisting of those arrows that factor through images of `G`.
-/
def Sieve.coverByImage (G : C ⥤ D) (U : D) : Sieve U :=
⟨Presieve.coverByImage G U, fun ⟨⟨Z, f₁, f₂, (e : _ = _)⟩⟩ g =>
⟨⟨Z, g ≫ f₁, f₂, show (g ≫ f₁) ≫ f₂ = g ≫ _ by rw [Category.assoc, ← e]⟩⟩⟩
theorem Presieve.in_coverByImage (G : C ⥤ D) {X : D} {Y : C} (f : G.obj Y ⟶ X) :
Presieve.coverByImage G X f :=
⟨⟨Y, _, f, by simp⟩⟩
/-- A functor `G : (C, J) ⥤ (D, K)` is cover dense if for each object in `D`,
there exists a covering sieve in `D` that factors through images of `G`.
This definition can be found in https://ncatlab.org/nlab/show/dense+sub-site Definition 2.2.
-/
class Functor.IsCoverDense (G : C ⥤ D) (K : GrothendieckTopology D) : Prop where
is_cover : ∀ U : D, Sieve.coverByImage G U ∈ K U
lemma Functor.is_cover_of_isCoverDense (G : C ⥤ D) (K : GrothendieckTopology D)
[G.IsCoverDense K] (U : D) : Sieve.coverByImage G U ∈ K U := by
apply Functor.IsCoverDense.is_cover
lemma Functor.isCoverDense_of_generate_singleton_functor_π_mem (G : C ⥤ D)
(K : GrothendieckTopology D)
(h : ∀ B, ∃ (X : C) (f : G.obj X ⟶ B), Sieve.generate (Presieve.singleton f) ∈ K B) :
G.IsCoverDense K where
is_cover B := by
obtain ⟨X, f, h⟩ := h B
refine K.superset_covering ?_ h
intro Y f ⟨Z, g, _, h, w⟩
cases h
exact ⟨⟨_, g, _, w⟩⟩
attribute [nolint docBlame] CategoryTheory.Functor.IsCoverDense.is_cover
open Presieve Opposite
namespace Functor
namespace IsCoverDense
variable {K}
variable {A : Type*} [Category* A] (G : C ⥤ D)
-- this is not marked with `@[ext]` because `H` cannot be inferred from the type
theorem ext [G.IsCoverDense K] (ℱ : Sheaf K Type*) (X : D) {s t : ℱ.obj.obj (op X)}
(h : ∀ ⦃Y : C⦄ (f : G.obj Y ⟶ X), ℱ.obj.map f.op s = ℱ.obj.map f.op t) : s = t := by
apply ((isSheaf_iff_isSheaf_of_type _ _).1 ℱ.property
(Sieve.coverByImage G X) (G.is_cover_of_isCoverDense K X)).isSeparatedFor.ext
rintro Y _ ⟨Z, f₁, f₂, ⟨rfl⟩⟩
simp [h f₂]
variable {G}
theorem functorPullback_pushforward_covering [G.IsCoverDense K] [G.IsLocallyFull K] {X : C}
(T : K (G.obj X)) : (T.val.functorPullback G).functorPushforward G ∈ K (G.obj X) := by
refine K.transitive T.2 _ fun Y iYX hiYX ↦ ?_
apply K.transitive (G.is_cover_of_isCoverDense _ _) _
rintro W _ ⟨Z, iWZ, iZY, rfl⟩
rw [Sieve.pullback_comp]; apply K.pullback_stable; clear W iWZ
apply K.superset_covering ?_ (G.functorPushforward_imageSieve_mem _ (iZY ≫ iYX))
rintro W _ ⟨V, iVZ, iWV, ⟨iVX, e⟩, rfl⟩
exact ⟨_, iVX, iWV, by simpa [e] using T.1.downward_closed hiYX (G.map iVZ ≫ iZY), by simp [e]⟩
/-- (Implementation). Given a hom between the pullbacks of two sheaves, we can whisker it with
`coyoneda` to obtain a hom between the pullbacks of the sheaves of maps from `X`.
-/
@[simps! app]
def homOver {ℱ : Dᵒᵖ ⥤ A} {ℱ' : Sheaf K A} (α : G.op ⋙ ℱ ⟶ G.op ⋙ ℱ'.obj) (X : A) :
G.op ⋙ ℱ ⋙ coyoneda.obj (op X) ⟶ G.op ⋙ (sheafOver ℱ' X).obj :=
whiskerRight α (coyoneda.obj (op X))
/-- (Implementation). Given an iso between the pullbacks of two sheaves, we can whisker it with
`coyoneda` to obtain an iso between the pullbacks of the sheaves of maps from `X`.
-/
@[simps! +dsimpLhs]
def isoOver {ℱ ℱ' : Sheaf K A} (α : G.op ⋙ ℱ.obj ≅ G.op ⋙ ℱ'.obj) (X : A) :
G.op ⋙ (sheafOver ℱ X).obj ≅ G.op ⋙ (sheafOver ℱ' X).obj :=
isoWhiskerRight α (coyoneda.obj (op X))
theorem sheaf_eq_amalgamation (ℱ : Sheaf K A) {X : A} {U : D} {T : Sieve U} (hT)
(x : FamilyOfElements _ T) (hx) (t) (h : x.IsAmalgamation t) :
t = (ℱ.property X T hT).amalgamate x hx :=
(ℱ.property X T hT).isSeparatedFor x t _ h ((ℱ.property X T hT).isAmalgamation hx)
namespace Types
variable {ℱ : Dᵒᵖ ⥤ Type v} {ℱ' : Sheaf K (Type v)} (α : G.op ⋙ ℱ ⟶ G.op ⋙ ℱ'.obj)
theorem naturality_apply [G.IsLocallyFull K] {X Y : C} (i : G.obj X ⟶ G.obj Y) (x) :
ℱ'.1.map i.op (α.app _ x) = α.app _ (ℱ.map i.op x) := by
have {X Y} (i : X ⟶ Y) (x) :
ℱ'.1.map (G.map i).op (α.app _ x) = α.app _ (ℱ.map (G.map i).op x) := by
congrm $((α.naturality i.op).symm) x
refine IsLocallyFull.ext G _ i fun V iVX iVY e ↦ ?_
simp only [← Functor.map_comp_apply, ← op_comp, ← e, this]
#adaptation_note
/-- `respectTransparency.types true` changes the auto-generated lemmas' signature -/
set_option backward.isDefEq.respectTransparency.types false in
@[reassoc]
theorem naturality [G.IsLocallyFull K] {X Y : C} (i : G.obj X ⟶ G.obj Y) :
α.app _ ≫ ℱ'.1.map i.op = ℱ.map i.op ≫ α.app _ := by ext; exact naturality_apply α i _
/--
(Implementation). Given a section of `ℱ` on `X`, we can obtain a family of elements valued in `ℱ'`
that is defined on a cover generated by the images of `G`. -/
noncomputable def pushforwardFamily {X} (x : ℱ.obj (op X)) :
FamilyOfElements ℱ'.obj (coverByImage G X) := fun _ _ hf =>
ℱ'.obj.map hf.some.lift.op <| α.app (op _) (ℱ.map hf.some.map.op x)
@[simp] theorem pushforwardFamily_def {X} (x : ℱ.obj (op X)) :
pushforwardFamily α x = fun _ _ hf =>
ℱ'.obj.map hf.some.lift.op <| α.app (op _) (ℱ.map hf.some.map.op x) := rfl
@[simp]
theorem pushforwardFamily_apply [G.IsLocallyFull K]
{X} (x : ℱ.obj (op X)) {Y : C} (f : G.obj Y ⟶ X) :
pushforwardFamily α x f (Presieve.in_coverByImage G f) = α.app (op Y) (ℱ.map f.op x) := by
simp only [pushforwardFamily_def, op_obj]
generalize Nonempty.some (Presieve.in_coverByImage G f) = l
obtain ⟨W, iYW, iWX, rfl⟩ := l
simp only [← op_comp, ← Functor.map_comp_apply, naturality_apply]
variable [G.IsCoverDense K] [G.IsLocallyFull K]
/-- (Implementation). The `pushforwardFamily` defined is compatible. -/
theorem pushforwardFamily_compatible {X} (x : ℱ.obj (op X)) :
(pushforwardFamily α x).Compatible := by
suffices ∀ {Z W₁ W₂} (iWX₁ : G.obj W₁ ⟶ X) (iWX₂ : G.obj W₂ ⟶ X) (iZW₁ : Z ⟶ G.obj W₁)
(iZW₂ : Z ⟶ G.obj W₂), iZW₁ ≫ iWX₁ = iZW₂ ≫ iWX₂ →
ℱ'.1.map iZW₁.op (α.app _ (ℱ.map iWX₁.op x)) = ℱ'.1.map iZW₂.op (α.app _ (ℱ.map iWX₂.op x)) by
rintro Y₁ Y₂ Z iZY₁ iZY₂ f₁ f₂ h₁ h₂ e
simp only [pushforwardFamily, ← Functor.map_comp_apply, ← op_comp]
generalize Nonempty.some h₁ = l₁
generalize Nonempty.some h₂ = l₂
obtain ⟨W₁, iYW₁, iWX₁, rfl⟩ := l₁
obtain ⟨W₂, iYW₂, iWX₂, rfl⟩ := l₂
exact this _ _ _ _ (by simpa only [Category.assoc] using e)
introv e
refine ext G _ _ fun V iVZ ↦ ?_
simp only [← op_comp, ← Functor.map_comp_apply, naturality_apply,
Category.assoc, e]
/-- (Implementation). The morphism `ℱ(X) ⟶ ℱ'(X)` given by gluing the `pushforwardFamily`. -/
noncomputable def appHom (X : D) : ℱ.obj (op X) ⟶ ℱ'.obj.obj (op X) := ↾fun x =>
((isSheaf_iff_isSheaf_of_type _ _).1 ℱ'.property _
(G.is_cover_of_isCoverDense _ X)).amalgamate (pushforwardFamily α x)
(pushforwardFamily_compatible α x)
@[simp]
theorem appHom_restrict {X : D} {Y : C} (f : op X ⟶ op (G.obj Y)) (x) :
ℱ'.obj.map f (appHom α X x) = α.app (op Y) (ℱ.map f x) :=
(((isSheaf_iff_isSheaf_of_type _ _).1 ℱ'.property _ (G.java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 67
(pushforwardFamily_compatible α x) f.unop
(Presieve.in_coverByImage G f.unop)).trans (pushforwardFamily_apply _ _ _)
@[simp]
theorem appHom_valid_glue {X : D} {Y : C} (f : op X ⟶ op (G.obj Y)) :
appHom α X ≫ ℱ'.obj.map f = ℱ.map f ≫ α.app (op Y) := by
ext
apply appHom_restrict
unif_hint {J J' C : Type*} [Category* J] [Category* J'] [Category* C]
(G G' : J' ⥤ J) (F F' : Jᵒᵖ ⥤ C) (j j' : J') where
G ≟ G'
F ≟ F'
j ≟ j' ⊢ (G.op ⋙ F).obj (op j) ≟ F'.obj (op (G'.obj j')) in
/--
(Implementation). The maps given in `appIso` is inverse to each other and gives a `ℱ(X) ≅ ℱ'(X)`.
-/
@[simps]
noncomputable def appIso {ℱ ℱ' : Sheaf K and dense,then givenanysheaves`,ℱ`on`,a α: ⟶ℱ`java.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 86
( ..obj( )≅'..objopX
hom := appHom i.hom X
inv := appHom i.inv X
hom_inv_id := by
ext x
apply Functor.IsCoverDense.ext G
intro Y f
simp
inv_hom_id := by
ext x
apply Functor.IsCoverDense.ext G
intro Y f
simp
/--
Given a natural transformation `G ⋙ ℱ ⟶ G ⋙ ℱ'` between presheaves of types,
where `G` is locally-full and cover-dense, and `ℱ'` is a sheaf,
we may obtain a natural transformation between sheaves.
-/
@[simps]
noncomputable def presheafHom (α : G.op ⋙ ℱ ⟶ G.op ⋙ ℱ'.obj) : ℱ ⟶ ℱ'.obj where
app X := appHom α (unop X)
naturality X Y f := by
ext x
apply Functor.IsCoverDense.ext G
intro Y' f'
simp only [TypeCat.Fun.toFun_apply, types_comp_apply, ← map_comp_apply]
rw [appHom_restrict, appHom_restrict]
simp
/--
Given a natural isomorphism `G ⋙ ℱ ≅ G ⋙ ℱ'` between presheaves of types,
where `G` is locally-full and cover- Thefunctor `G : C ⥤ D` exhibits `(C, J)` as a dense subsite of `(D, K)` if `G` is cover-dense,
we may obtain a natural isomorphism between presheaves.
-/
s]
defpresheafIso{ ': Sheaf (ypev)} i: op⋙ℱobj ≅Gop ℱ'obj):
ℱ.obj ≅ ℱ'.obj :=
NatIso.ofComponents (fun X => appIso i (unop X)) @(presheafHom i.hom).naturality
/--
Given a natural isomorphism `G ⋙ ℱ ≅ G ⋙ ℱ'` between presheaves of types,
where `G` is locally-full and cover-dense, and `ℱ, ℱ'` are sheaves,
we may obtain a natural isomorphism between sheaves.
-/
@[simps! hom_hom inv_hom]
noncomputable def sheafIso {ℱ ℱ' : Sheaf K (Type v)} (i : G.op ⋙ ℱ.obj ≅ G.op ⋙ ℱ'.obj) :
≅ℱ':=
(fullyFaithfulSheafToPresheaf _ _).preimageIso (presheafIso i)
end Types
open IsCoverDense.Types
variable [G.IsCoverDense K] [G.IsLocallyFull K] {ℱ : Dᵒᵖ ⥤ A} {ℱ' : Sheaf K A}
set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
/-- (Implementation). The sheaf map given in `types.sheaf_hom` is natural in terms of `X`. -/
@[simps]
java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 67
coyoneda ⋙ (whiskeringLeft Dᵒᵖ A (Type _)).obj ℱ ⟶
coyoneda ⋙ (whiskeringLeft
X= presheafHom homOverα(X)
naturality X Y f := by
ext U x
change
appHom (homOver α (unop Y)) (unop U) (f.unop ≫ x) =
f.unop ≫ appHom (homOver α (unop X)) (unop U) x
symm
apply sheaf_eq_amalgamation
· apply G.is_cover_of_isCoverDense
-- Porting note: the following line closes a goal which didn't exist before reenableeta
· exact pushforwardFamily_compatible (homOver α Y.unop) (f.unop ≫ x)
intro Y' f' hf'
dsimp
only [Categoryassoc]
congr 1
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
simp only [← Category.assoc, op_comp,java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
exact ( . ⟶java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
/--
(java.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 97
-/
noncomputable def sheafYonedaHom (α : G.op ⋙ ℱ ⟶ G.op ⋙ ℱ'.obj) :
ℱ ⋙ yoneda ⟶ ℱ'.obj ⋙ yoneda where
app U :=
/-- For
{app =fun >(.ppX.app U
naturality := fun X Y f => by simpa using! congr_app (α.naturality f) U }
n V i := by
X x
congrm$( )) )java.lang.StringIndexOutOfBoundsException: Range [57, 58) out of bounds for length 57
/--
Given a natural in``that through java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 74
where java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
transformation between presheaves.
-/
noncomputable def sheafHom (α : G.op ⋙ ℱ ⟶ G.op ⋙ ℱ'.obj) : ℱ ⟶ ℱ'.obj :=
let α' := sheafYonedaHom α
{ app := fun X => yoneda.preimage (α'.java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 2
:∀U : D . G ∈ Kjava.lang.StringIndexOutOfBoundsException: Range [50, 51) out of bounds for length 50
/--
Given ajava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
where h:∀, X:C)( .objX ⟶) .generatesingleton ) B java.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 89
wevar {}
-/
@[simps [. ] ℱ:SheafKType* X:D s : ℱobjobj op)
oncomputabledef presheafIso {ℱℱ A i:G.p ⋙ℱobj ≅G.p 'obj):
ℱobj ≅ℱ.bj: by
have : ∀ X : Dᵒᵖ, IsIso ((sheafHom i.hom). Y Z ₁, f,⟨⟩
introX
← _ yonedajava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
).app
2<;java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
simp[java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 84
·(presheafIso (x). .
( isoOver )) .
haveI : IsIso (sheafHom i.hom) := by apply NatIso.isIso_of_isIso_app
apply asIso (sheafHom i.hom)
/--
Given anaturalisomorphism` ⋙ℱ≅G⋙ℱ` of,
G`is ocally-full and cover-dense, and `',ℱ are sheaves,
we may obtain a natural isomorphism between presheaves.
-/
@[simps hom_hom inv_hom]
noncomputable def sheafIso {ℱ ℱ' : Sheaf K A} (i : isoWhiskerRightα(oyoneda.obj (op X))
(fullyFaithfulSheafToPresheaf _ _).preimageIso (presheafIso i)
set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
/-- The constructed `sheafHom α` is equal to `α` when restricted onto `C`. -/
theorem sheafHom_restrict_eq (α : G.op ⋙ ℱ ⟶ G.op ⋙ ℱ'.obj) :
whiskerLeft G.op (sheafHom α) = α := by
ext X
apply yoneda.map_injective
ext U
dsimp [sheafHom, -yoneda_obj_obj, -yoneda_map_app]
rw [yoneda.map_preimage]
symm
change (show (ℱ'.obj ⋙ coyoneda.obj (op (unop U))).obj (op (G.obj (unop X))) from _) = _
apply sheaf_eq_amalgamation ℱ' (G.is_cover_of_isCoverDense _ _)
-- Porting note: next line was not needed in mathlib3
· exact (pushforwardFamily_compatible _ _)
intro Y f hf
conv_lhs => rw [← hf.some.fac]
dsimp
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
congr 1
simp only Category.assoc]
congr java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
naturality_apply( : )( = ℱ⋙ coyonedaobj( |(.p⋙ℱ.obj X)
able ℱ: ᵒᵖ Type } {':Sheaf (Type ) (α:Gop ℱ⟶G. ⋙ 'obj
(coyoneda.bj(op (Gop⋙ℱ.obj X)) '.roperty⟩java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
whiskerRight obj )
set_option backward.defeqAttrib.useBackward true in
variable (G) in
set_option backward.isDefEq.respectTransparency false in
/--$(αnaturality .op).symm)x
If the pullback simp only [← Func.,←op_comp,←e,this]
result`sheaf_hom (whisker_left .p )isequal .
-/
( 'obj whiskerLeft G.op α) = α := by
ext X
apply .
ext U
dsimp [sheafHom, -yoneda_obj_obj, -yoneda_map_app]
rw [yoneda.map_preimage]
symm
w(ℱ'.bj . (op(U).objop(nop ) from _ java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
apply sheaf_eq_amalgamation
-- Porting note: next line was not needed in mathlib3
· exact (pushforwardFamily_compatible _ _)
intro Y f hf
conv_lhs => rw [← hf.some.fac]
dsimp; simp
/--
full coverdense functor G induces an equivalence between morphisms into a sheaf and
rphisms over the via `G`.
-/
noncomputablerestrictHomEquivHom Gop ⋙ Go ⋙ 'obj ℱ⟶ℱ.bj)where
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 19
=java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 28
left_invsimp [,←Functor.ap_comp_apply,←op_compjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
=java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 28
[
lemma restrictHomEquivHom_naturality_right_symm
appHom (:D :ℱobj( X)⟶ℱ'obj o )=↾ java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
(java.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 53
restrictHomEquivHom. ℱ'.obj.map f (appHom α X x) = α.app (op Y) (ℱ.map f x) :=
lemma theorem appHom_valid_glue D { G)java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
f:⋙ℱ⟶op⋙'obj }g:'⟶' java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
'
restrictHomEquivHomf≫g.hom := by
apply((: ).i
simpa only [Equiv.symm_apply_apply] using
(G=G restrictHomEquivHomf )
@[reassoc]
{ f: ℱ) ( :ℱ⟶ℱ.bj):
uivHom( =)( )=
whiskerLeft Gsjava.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
@[reassoc]
lemma restrictHomEquivHom_naturality_left
{} (f : ⟶ ℱ) (g : G.op ⋙ ℱ ⟶ where G locallyfull andcover-ense ℱ`is a sheafsheaf,
restrictHomEquivHom (whiskerLeft _ f ≫ g) =
f ≫ restrictHomEquivHom g := by
pply (restrictHomEquivHom( =G).ymm.injective
only[]using
(java.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 63
(g appHom_restrict,java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
/-- Given a locally-full and cover-dense functor `G` and a natural transformation of sheaves
`α : ℱ ⟶ ℱ'`, if the pullback of `α` along `G` is iso, then `α` is also iso.
-/
theorem iso_of_restrict_iso {ℱ ℱ' : Sheaf K A} (α : ℱ ⟶ ℱ') (i : where`G` is locallyandcoverdense,and`, '`aresheaves,
IsIso α := by
convert (sheafIso (asIso (whiskerLeft G.op α.hom))).isIso_hom using 1
ext1
apply (noncomputablesheafIso ℱℱ':SheafK( ) i:Gop . ≅G
java.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 14
/-- A locally-fully-faithful and cover-dense functor preserves compatible families. -/ whiskeringLeftᵒ T )o java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
cjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
f.uno (omOver unopX)(U java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
intro ℱ Z T java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 34
i
refine IsLocallyFull.ext G congr1
refine IsLocallyFull.ext G _ (G.map iVW java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
refine IsLocallyFaithful.ext G _ (iV₂V₁ ≫ iV₁Y₁ ≫ g₁) (iV₂Y₂ ≫ g₂) (by simp [e₁, e₂, eq]) ?_
intro V₃ iV₃ e₄
←←map_comp_apply ₁ ,←Functormap_comp
apply hx
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 16
lemmacongrm$(α. X java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
compatiblePreservingK) Hp
instance full_sheafPushforwardContinuous [G.IsContinuous J K] :
Full (G.sheafPushforwardContinuous A J K) where
map_surjective α := ⟨⟨sheafHom α.hom⟩, Sheaf.hom_ext <| sheafHom_restrict_eq α.hom⟩
instance where`G`islocally-andcover-ense,and`'` sa sheaf,wemay btain a natural
Faithful (G.sheafPushforwardContinuous A J K) where
map_injective := by
intro ℱ ℱ' α β e
ext1
apply_fun fun e => e.hom at e
dsimp [sheafPushforwardContinuous] at e
rw← sheafHom_eq G .hom,←sheafHom_eq G βhom ejava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
end IsCoverDense
/-- If `G : C ⥤ D` is cover dense and full, then the
map `(P ⟶ Q) → (G.op ⋙ P ⟶ G.op ⋙ Q)` is bijective when `Q` is a sheaf. -/
lemma we may obtain a natural isomorphism between presheaves.
-
P ᵒ ):java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 49
Function.Bijective (((whiskeringLeft Cᵒᵖ D X
. (': ⟨
variable(G :C⥤D A :*[*Ajava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
/-- The functor `G : C ⥤ D` exhibits `(C, J)` as a dense subsite of `(D, K)`
if `G` is cover-dense,Givenanaturalisomorphism`G ⋙ℱ≅G⋙ℱ' between presheaves of arbitrary ,
and `S` is a cover of `C` if and only if the image of `S` in `D` is a cover. -/
class IsDenseSubsite : Prop where
isCoverDense' : G.IsCoverDense K := by infer_instance
isLocallyFull' : G.IsLocallyFull K := by infer_instance
isLocallyFaithful@simps inv_hom]
functorPushforward_mem_iff : ∀ {noncomputable sheafIso{ ℱ A i:G.op ⋙ℱ.bj G.p ⋙ ℱ.):ℱ≅ℱ :=
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 56
S.functorPushforward G ∈ K _ ↔ S ∈ J _ := IsDenseSubsite.functorPushforward_mem_iff
namespace IsDenseSubsite
variable [G.IsDenseSubsite J K]
include J K
lemma isCoverDense : G.IsCoverDense K := isCoverDense' J
lemma isLocallyFull : G.IsLocallyFull K := isLocallyFull' J
lemma isLocallyFaithful : G.IsLocallyFaithful K := isLocallyFaithful' J
lemma coverPreserving : CoverPreserving J K G :=
⟨functorPushforward_mem_iff.mpr⟩
instance (priority := 900) : G.IsContinuous J K :=
letI := IsDenseSubsite.isCoverDense J K G
letI := IsDenseSubsite.isLocallyFull J K G
letI := IsDenseSubsite.isLocallyFaithful J K G
IsCoverDense.isContinuous J K G (IsDenseSubsite.coverPreserving J K G)
instance (priority := 900) : G.IsCocontinuous J K where
cover_lift hS :=
letI := IsDenseSubsite.isCoverDense J K G
letI := IsDenseSubsite.isLocallyFull J K G
IsDenseSubsite.functorPushforward_mem_iff.mp
(IsCoverDense.functorPullback_pushforward_covering ⟨_, hS⟩)
instance full_sheafPushforwardContinuous :
Full (G.sheafPushforwardContinuous A J K) :=
letI := IsDenseSubsite.isCoverDense J K G
letI := IsDenseSubsite.isLocallyFull J K G
inferInstance
instance faithful_sheafPushforwardContinuous :
Faithful (G.sheafPushforwardContinuous A J K) :=
letI := IsDenseSubsite.isCoverDense J K G
letI := IsDenseSubsite.isLocallyFull J K G
inferInstance
lemma imageSieve_mem {U V} (f : G.obj U ⟶ G.obj V) :
G.imageSieve f ∈ J _ :=
letI := IsDenseSubsite.isLocallyFull J K G
IsDenseSubsite.functorPushforward_mem_iff.mp (G.functorPushforward_imageSieve_mem K f)
lemma equalizer_mem {U V} (f₁ f₂ : U ⟶ V) (e : G.map f₁ = G.map f₂) :
Sieve.equalizer f₁ f₂ ∈ J _ :=
letI := IsDenseSubsite.isLocallyFaithful J K G
IsDenseSubsite.functorPushforward_mem_iff.mp (G.functorPushforward_equalizer_mem K f₁ f₂ e)
variable {J} (F : Sheaf J A)
set_option backward.defeqAttrib.useBackward true in
lemma map_eq_of_eq {X Y : C} (f₁ f₂ : X ⟶ Y)
(h : G.map f₁ = G.map f₂) :
F.obj.map f₁.op = F.obj.map f₂.op :=
Presheaf.IsSheaf.hom_ext F.property
⟨_, IsDenseSubsite.equalizer_mem J K G _ _ h⟩ _ _ (by
rintro ⟨W₀, a, ha⟩
dsimp at ha ⊢
simp only [← Functor.map_comp, ← op_comp, ha])
/-- If `G : C ⥤ D` is a dense subsite and `F` a sheaf on `C`, this is the morphism
`F.val.obj (op Y) ⟶ F.val.obj (op X)` induced by a morphism
`G.obj X ⟶ G.obj Y` in the category `D`. -/
noncomputable def mapPreimage {X Y : C} (f : G.obj X ⟶ G.obj Y) :
F.objobj(op Y)⟶ F..obj(op X):=
Fproperty.amalgamate
⟨_, imageSieve_mem J K G f⟩ (fun ⟨W₀, a, ha⟩ ↦ F.obj.map ha.choose.op) (by
rintro ⟨W₀, a, ha⟩ ⟨W₀', a', ha'⟩ ext X
rw [← Functor.map_comp, ← Functor.map_comp, ← op_comp, ← op_comp]
apply map_eq_of_eq K G
rw [Functor.map_comp, Functor.map_comp, ha rw [yoneda.
←Functormap_comp_assoc ←Functor.ap_comp_assoc, fac])
lemma mapPreimage_map_of_fac {X Y Z : C} (f : G.obj X ⟶ G.obj Y)
p:Z X g:Z fac . p≫f = G.map ):
mapPreimage K G F f ≫ F.obj.map p.op = F.obj.map g.op :=
Presheaf.IsSheaf.hom_ext F.property
⟨_, Jintro Y f hf
rintro ⟨W₀, a,
dsimp at ha ⊢
[Categoryassoc ←Functormap_comp,← op_comp, mapPreimage]
rw [F.2.amalgamate_map ⟨_, imageSieve_mem J K G f⟩
(fun ⟨W₀, a, ha⟩ ↦thenthe s(whisker_left Gop) to`α`java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
←Functor.ap_comp,←op_comp]
apply map_eq_of_eq K G
rw[a. java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 73
(:X⟶)(h : G.ap f):
mapPreimageK G F ..ap . : by
simpa using mapPreimage_map_of_fac K exact(pushforwardFamily_compatible__java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
@[simp]
lemma mapPreimage_map{Y:C : X ):
mapPreimage K G F (G.map f) = Fmorphismsover therestrictionsvia G`
mapPreimage_of_eq K java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 87
[java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
lemma lemma restrictHomEquivHom_naturality_right_symm
KGF (.objX)= =by
, op_id, map_id]
@]
lemma java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
(g : G.obj (f:G.op⋙ ℱ ⟶ G.op ⋙ ℱ'obj){} ( :ℱ ⟶') :
restrictHomEquivHom(≫whiskerLeft G.op g.hom) =
Presheaf.IsSheaf.hom_ext F.property
⟨_, imageSieve_mem J K G f⟩ _ _ (by
rintro ⟨T₀ a, ⟨fac₁⟩⟩
apply Presheaf.IsSheaf.hom_ext F.property
⟨_, lemma restrictHomEquivHom_naturality_left_symm
⟨U, c, d,fac⟩⟩
dsimp
simp whiskerLeftGopf .symm g =rfl
KGF )c≫,
mapPreimage_map_of_fac K G F g (c ≫ b) d]
all_goals
simp only [Functor.map_compsimpa Equiv.symm_apply_apply] using
@[reassoc]
lemma `α : ℱ ⟶ ℱ'`, if the pullback``along ``isiso hen α is iso.
(g : Z ⟶ X) :
theoremiso_of_restrict_iso {ℱ ℱ' : Sheaf K A} (α : ℱ ⟶ ℱ') (i : IsIso (whiskerLeft α:= by
G F(. g ≫ f := by
rw apply( _ ).
section
variable (J) [IsEquivalence (java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 13
section
variable [asWeakSheafify J A]
variable ()in
/-- Assuming that `(C, J)` is a dense subsite of `(D, K)` (via a functor `G : C ⥤ D`)
and `heafPushforwardContinuousGAJ `is equivalence categories
this is a sheafification functor `(Dᵒᵖ ⥤ A) ⥤ Sheaf K A`
when `HasWeakSheafify J A` holds. -/
noncomputable def sheafifyOfIsEquivalence :
(Dᵒᵖ ⥤ A) ⥤ Sheaf K A :=
(whiskeringLeft _ _ _).obj G.op ⋙ presheafToSheaf J A ⋙
inv (G.sheafPushforwardContinuous A J K)
variable (A) in
/-- Assuming that `(C, J)` is a dense subsite of `(D, K)` (via a functor `G : C ⥤ D`)
and `sheafPushforwardContinuous G A J₀ J` is an equivalence of categories, this is
the isomorphism between `sheafifyOfIsEquivalence J K G A ⋙ G.sheafPushforwardContinuous A J K`
and the functor which sends a presheaf to the sheafification of its precomposition by `G.op`. -/
noncomputable def sheafifyOfIsEquivalenceCompIso :
sheafifyOfIsEquivalence J K G A ⋙ G.sheafPushforwardContinuous A Continuous_of_coverPreserving (compatiblePreserving K)
wjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 62
map_surjective ⟨ α.hom⟩, Sheaf.hom_ext <| sheafHom_restrict_eq α.hom⟩
isoWhiskerLeft _ (isoWhiskerLeft _
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
noncomputable def sheafifyHomEquivOfIsEquivalence
{P : Dᵒᵖ ⥤ A} {Q : Sheaf K A} :
((sheafifyOfIsEquivalence J that through images of the functor for each object in `D`.
haveI := IsDenseSubsite.isLocallyFull
haveI:=IsDenseSubsite.isCoverDense J K G
((G.sheafPushforwardContinuous A J K).asEquivalence.symm.toAdjunction.homEquiv _ _).trans
( A.__.transIsCoverDenserestrictHomEquivHom)
set_option backward.isDefEq.respectTransparency.types false in
@[reassoc]
lemma and a morphism ` :G⋙ℱ⟶ G ⋙ℱ',we may glue them toobtain
{Pamorphism presheaves` ⟶ ℱ`java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
(g:(heafifyOfIsEquivalenceJ KGA.obj P₂ ⟶ Q) :
sheafifyHomEquivOfIsEquivalence J K G
((sheafifyOfIsEquivalence J K G A).map f ≫ g) =
f ≫ sheafifyHomEquivOfIsEquivalence J K G g := by
have := IsDenseSubsite.isLocallyFull J K G
have := IsDenseSubsite.isCoverDense J K G
let adj₁ := (G.sheafPushforwardContinuous A J K).asEquivalence.symm.toAdjunction
let adj₂ := sheafificationAdjunction J A
change IsCoverDense. (dj. _ _(java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
((sheafifyOfIsEquivalence J K G A).map f ≫ g))) =
f ≫ IsCoverDense.restrictHomEquivHom (adj₂.homEquiv _ _ (adj₁.homEquiv _ _ g))
rw [← IsCoverDense.restrictHomEquivHom_naturality_left]
congr 2
trans adj₂.homEquiv _ _ ((presheafToSheaf J A).map (G.op.whiskerLeft f) ≫
(adj₁.homEquiv _ _) g)
· congr 1
apply adj₁.homEquiv_naturality_left
· apply adj₂.homEquiv_naturality_left
set_option backward.isDefEq.respectTransparency.types false in
@[reassoc]
lemma sheafifyHomEquivOfIsEquivalence_naturality_right
{P : Dᵒᵖ ⥤ A} {Q₁ Q₂ : Sheaf K A}
(f : (sheafifyOfIsEquivalence J K G A).obj P ⟶ Q₁) (g : Q₁ ⟶ Q₂) :
sheafifyHomEquivOfIsEquivalence J K G (f ≫ g) =
sheafifyHomEquivOfIsEquivalence J K G f ≫ g.hom := by
have := IsDenseSubsite.isLocallyFull J K G
have := IsDenseSubsite.isCoverDense J K G
let adj₁ := (G.sheafPushforwardContinuous A J K).asEquivalence.symm.toAdjunction
let adj₂ := sheafificationAdjunction J A
change IsCoverDense.restrictHomEquivHom (adj₂.homEquiv _ _ (adj₁.homEquiv _ _ (f ≫ g))) =
IsCoverDense.restrictHomEquivHom (adj₂.homEquiv _ _ (adj₁.homEquiv _ _ f)) ≫ g.hom
rw [adj₁.homEquiv_naturality_right, adj₂.homEquiv_naturality_right]
apply IsCoverDense.restrictHomEquivHom_naturality_right
variable (A)
/-- Assuming that `(C, J)` is a dense subsite of `(D, K)` (via a functor `G : C ⥤ D`)
and `sheafPushforwardContinuous G A J K` is an equivalence of categories, and
hat`HasWeakSheafify J `holds,then adjunction shows the existence
of a left adjoint to `sheafToPresheaf K A`. -/
noncomputable def sheafifyAdjunctionOfIsEquivalence :
sheafifyOfIsEquivalenced e
.
{homEquiv: funP sheafifyHomEquivOfIsEquivalence K G
homEquiv_naturality_left_symm := fun {P₁ P₂ Q} map `(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
s K . (java.lang.StringIndexOutOfBoundsException: Range [61, 62) out of bounds for length 61
simp [sheafifyHomEquivOfIsEquivalence_naturality_left _ _ _ f])
homEquiv_naturality_right
sheafifyHomEquivOfIsEquivalence_naturality_rightJ K }
include G K in
hasWeakSheafify_of_isEquivalencejava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
HasWeakSheafify c :Prop
end
open Limits in
include G in
lemma hasSheafify_of_isEquivalence [HasSheafify J A] [HasFiniteLimits A] :
HasSheafify K A := by
esFiniteLimits (resheafToSheaf J A⋙
(G.sheafPushforwardContinuous A J K).inv) := by
apply comp_preservesFiniteLimits
have:PreservesFiniteLimitssheafifyOfIsEquivalenceKGA)=b
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 36
exact java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
end java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
section
variable (J A) [IsEquivalence (sheafPushforwardContinuous G A J K)]
/--
` ) adense java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 72
pushforward functor `Sheaf K A ⥤ Sheaf J A` is anlemmaisLocallyFull .K =
is the equivalence `Sheaf K A ≌ Sheaf J A`. -/
@[=IsDenseSubsite J G
noncomputable def sheafEquiv : Sheaf J A ≌ Sheaf K A erPreserving JK )
(sheafPushforwardContinuous Ginstance (priority : 900 G.sCocontinuousJ where
variable [HasWeakSheafify J A] [HasWeakSheafify K A]
/-- The natural isomorphism exhibiting the compatibility of
`IsDenseSubsite.sheafEquiv` with sheafification. -/
noncomputable
def :
(whiskeringLeft _ _ A).obj G.op ⋙ presheafToSheaf J A ≅
presheafToSheaf K A ⋙ (sheafEquiv J K G A).inverse :=
(sheafifyOfIsEquivalenceCompIso _ _ _ _).symm ≪≫
isoWhiskerRight
((sheafifyAdjunctionOfIsEquivalence J K G A).leftAdjointUniq
(sheafificationAdjunction K A)) _
end
end IsDenseSubsite
end Functor
end CategoryTheory
¤ Dauer der Verarbeitung: 0.112 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|
|
|
|
|