forked from leanprover-community/mathlib4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPullbackContinuous.lean
More file actions
213 lines (166 loc) · 8.51 KB
/
Copy pathPullbackContinuous.lean
File metadata and controls
213 lines (166 loc) · 8.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
/-
Copyright (c) 2024 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
module
public import Mathlib.Algebra.Category.ModuleCat.Presheaf.Pullback
public import Mathlib.Algebra.Category.ModuleCat.Presheaf.Sheafification
public import Mathlib.Algebra.Category.ModuleCat.Sheaf.PushforwardContinuous
/-!
# Pullback of sheaves of modules
Let `S` and `R` be sheaves of rings over sites `(C, J)` and `(D, K)` respectively.
Let `F : C ⥤ D` be a continuous functor between these sites, and
let `φ : S ⟶ (F.sheafPushforwardContinuous RingCat.{u} J K).obj R` be a morphism
of sheaves of rings.
In this file, we define the pullback functor for sheaves of modules
`pullback.{v} φ : SheafOfModules.{v} S ⥤ SheafOfModules.{v} R`
that is left adjoint to `pushforward.{v} φ`. We show that it exists
under suitable assumptions, and prove that the pullback of (pre)sheaves of
modules commutes with the sheafification.
From the compatibility of `pushforward` with respect to composition, we deduce
similar pseudofunctor-like properties of the `pullback` functors.
-/
@[expose] public section
universe v v₁ v₂ v₃ v₄ u₁ u₂ u₃ u₄ u
open CategoryTheory Functor
namespace SheafOfModules
variable {C : Type u₁} [Category.{v₁} C] {D : Type u₂} [Category.{v₂} D]
{D' : Type u₃} [Category.{v₃} D'] {D'' : Type u₄} [Category.{v₄} D'']
{J : GrothendieckTopology C} {K : GrothendieckTopology D} {F : C ⥤ D}
{S : Sheaf J RingCat.{u}} {R : Sheaf K RingCat.{u}}
[Functor.IsContinuous F J K]
(φ : S ⟶ (F.sheafPushforwardContinuous RingCat.{u} J K).obj R)
section
variable [(pushforward.{v} φ).IsRightAdjoint]
/-- The pullback functor `SheafOfModules S ⥤ SheafOfModules R` induced by
a morphism of sheaves of rings `S ⟶ (F.sheafPushforwardContinuous RingCat.{u} J K).obj R`,
defined as the left adjoint functor to the pushforward, when it exists. -/
noncomputable def pullback : SheafOfModules.{v} S ⥤ SheafOfModules.{v} R :=
(pushforward.{v} φ).leftAdjoint
/-- Given a continuous functor between sites `F`, and a morphism of sheaves of rings
`S ⟶ (F.sheafPushforwardContinuous RingCat.{u} J K).obj R`, this is the adjunction
between the corresponding pullback and pushforward functors on the categories
of sheaves of modules. -/
noncomputable def pullbackPushforwardAdjunction : pullback.{v} φ ⊣ pushforward.{v} φ :=
Adjunction.ofIsRightAdjoint (pushforward φ)
instance : (pullback.{v} φ).IsLeftAdjoint :=
(pullbackPushforwardAdjunction φ).isLeftAdjoint
end
section
variable [(PresheafOfModules.pushforward.{v} φ.hom).IsRightAdjoint]
[HasWeakSheafify K AddCommGrpCat.{v}] [K.WEqualsLocallyBijective AddCommGrpCat.{v}]
namespace PullbackConstruction
set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
/-- Construction of a left adjoint to the functor `pushforward.{v} φ` by using the
pullback of presheaves of modules and the sheafification. -/
noncomputable def adjunction :
(forget S ⋙ PresheafOfModules.pullback.{v} φ.hom ⋙
PresheafOfModules.sheafification (R₀ := R.obj) (𝟙 R.obj)) ⊣ pushforward.{v} φ :=
Adjunction.mkOfHomEquiv
{ homEquiv := fun F G ↦
((PresheafOfModules.sheafificationAdjunction (𝟙 R.obj)).homEquiv _ _).trans
(((PresheafOfModules.pullbackPushforwardAdjunction φ.hom).homEquiv F.val G.val).trans
((fullyFaithfulForget S).homEquiv (Y := (pushforward φ).obj G)).symm)
homEquiv_naturality_left_symm := by
intros
dsimp [Functor.FullyFaithful.homEquiv]
-- these erw seem difficult to remove
erw [Adjunction.homEquiv_naturality_left_symm, Adjunction.homEquiv_naturality_left_symm]
dsimp [pushforward_obj_val]
simp only [Functor.map_comp, Category.assoc]
homEquiv_naturality_right := by
tauto }
end PullbackConstruction
instance : (pushforward.{v} φ).IsRightAdjoint :=
(PullbackConstruction.adjunction.{v} φ).isRightAdjoint
/-- The pullback functor on sheaves of modules can be described as a composition
of the forget functor to presheaves, the pullback on presheaves of modules, and
the sheafification functor. -/
noncomputable def pullbackIso :
pullback.{v} φ ≅
forget S ⋙ PresheafOfModules.pullback.{v} φ.hom ⋙
PresheafOfModules.sheafification (R₀ := R.obj) (𝟙 R.obj) :=
Adjunction.leftAdjointUniq (pullbackPushforwardAdjunction φ)
(PullbackConstruction.adjunction φ)
section
variable [HasWeakSheafify J AddCommGrpCat.{v}] [J.WEqualsLocallyBijective AddCommGrpCat.{v}]
/-- The pullback of (pre)sheaves of modules commutes with the sheafification. -/
noncomputable def sheafificationCompPullback :
PresheafOfModules.sheafification (𝟙 S.obj) ⋙ pullback.{v} φ ≅
PresheafOfModules.pullback.{v} φ.hom ⋙
PresheafOfModules.sheafification (R₀ := R.obj) (𝟙 R.obj) :=
Adjunction.leftAdjointUniq
((PresheafOfModules.sheafificationAdjunction (𝟙 S.obj)).comp
(pullbackPushforwardAdjunction φ))
((PresheafOfModules.pullbackPushforwardAdjunction φ.hom).comp
(PresheafOfModules.sheafificationAdjunction (𝟙 R.obj)))
end
end
instance : (pushforward.{v} (F := 𝟭 C) (𝟙 S)).IsRightAdjoint :=
Functor.isRightAdjoint_of_iso (pushforwardId S).symm
variable (S) in
/-- The pullback by the identity morphism identifies to the identity functor of the
category of sheaves of modules. -/
noncomputable def pullbackId : pullback.{v} (F := 𝟭 C) (𝟙 S) ≅ 𝟭 _ :=
((pullbackPushforwardAdjunction.{v} (F := 𝟭 C) (𝟙 S))).leftAdjointIdIso (pushforwardId S)
variable (S) in
@[simp]
lemma conjugateEquiv_pullbackId_hom :
conjugateEquiv .id (pullbackPushforwardAdjunction.{v} _) (pullbackId S).hom =
(pushforwardId S).inv :=
Adjunction.conjugateEquiv_leftAdjointIdIso_hom _ _
variable [(pushforward.{v} φ).IsRightAdjoint]
section
variable {K' : GrothendieckTopology D'} {K'' : GrothendieckTopology D''}
{G : D ⥤ D'} {R' : Sheaf K' RingCat.{u}}
[Functor.IsContinuous G K K']
[Functor.IsContinuous (F ⋙ G) J K']
(ψ : R ⟶ (G.sheafPushforwardContinuous RingCat.{u} K K').obj R')
variable [(pushforward.{v} ψ).IsRightAdjoint]
instance : (pushforward.{v} (F := F ⋙ G)
(φ ≫ (F.sheafPushforwardContinuous RingCat.{u} J K).map ψ)).IsRightAdjoint :=
Functor.isRightAdjoint_of_iso (pushforwardComp.{v} φ ψ)
/-- The composition of two pullback functors on sheaves of modules identifies
to the pullback for the composition. -/
noncomputable def pullbackComp :
pullback.{v} φ ⋙ pullback.{v} ψ ≅
pullback.{v} (F := F ⋙ G) (φ ≫ (F.sheafPushforwardContinuous RingCat.{u} J K).map ψ) :=
Adjunction.leftAdjointCompIso
(pullbackPushforwardAdjunction.{v} φ) (pullbackPushforwardAdjunction.{v} ψ)
(pullbackPushforwardAdjunction.{v} (F := F ⋙ G)
(φ ≫ (F.sheafPushforwardContinuous RingCat.{u} J K).map ψ))
(pushforwardComp φ ψ)
@[simp]
lemma conjugateEquiv_pullbackComp_inv :
conjugateEquiv ((pullbackPushforwardAdjunction.{v} φ).comp
(pullbackPushforwardAdjunction.{v} ψ))
(pullbackPushforwardAdjunction.{v} _) (pullbackComp.{v} φ ψ).inv =
(pushforwardComp.{v} φ ψ).hom :=
Adjunction.conjugateEquiv_leftAdjointCompIso_inv _ _ _ _
variable {G' : D' ⥤ D''} {R'' : Sheaf K'' RingCat.{u}}
[Functor.IsContinuous G' K' K'']
[Functor.IsContinuous (G ⋙ G') K K'']
[Functor.IsContinuous ((F ⋙ G) ⋙ G') J K'']
[Functor.IsContinuous (F ⋙ G ⋙ G') J K'']
(ψ' : R' ⟶ (G'.sheafPushforwardContinuous RingCat.{u} K' K'').obj R'')
variable [(pushforward.{v} ψ').IsRightAdjoint]
lemma pullback_assoc :
isoWhiskerLeft _ (pullbackComp.{v} ψ ψ') ≪≫
pullbackComp.{v} (G := G ⋙ G') φ
(ψ ≫ (G.sheafPushforwardContinuous RingCat.{u} K K').map ψ') =
(associator _ _ _).symm ≪≫ isoWhiskerRight (pullbackComp.{v} φ ψ) _ ≪≫
pullbackComp.{v} (F := F ⋙ G)
(φ ≫ (F.sheafPushforwardContinuous RingCat.{u} J K).map ψ) ψ' :=
Adjunction.leftAdjointCompIso_assoc _ _ _ _ _ _ _ _ _ _ (pushforward_assoc φ ψ ψ')
end
lemma pullback_id_comp :
pullbackComp.{v} (F := 𝟭 C) (𝟙 S) φ =
isoWhiskerRight (pullbackId S) (pullback φ) ≪≫ Functor.leftUnitor _ :=
Adjunction.leftAdjointCompIso_id_comp _ _ _ _ (pushforward_comp_id φ)
lemma pullback_comp_id :
pullbackComp.{v} (G := 𝟭 _) φ (𝟙 R) =
isoWhiskerLeft _ (pullbackId R) ≪≫ Functor.rightUnitor _ :=
Adjunction.leftAdjointCompIso_comp_id _ _ _ _ (pushforward_id_comp φ)
end SheafOfModules