forked from leanprover-community/mathlib4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCharacterization.lean
More file actions
270 lines (230 loc) · 11.4 KB
/
Characterization.lean
File metadata and controls
270 lines (230 loc) · 11.4 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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
/-
Copyright (c) 2024 Dagur Asgeirsson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dagur Asgeirsson
-/
module
public import Mathlib.Condensed.Discrete.Colimit
public import Mathlib.Condensed.Discrete.Module
/-!
# Characterizing discrete condensed sets and `R`-modules.
This file proves a characterization of discrete condensed sets, discrete condensed `R`-modules over
a ring `R`, discrete light condensed sets, and discrete light condensed `R`-modules over a ring `R`.
see `CondensedSet.isDiscrete_tfae`, `CondensedMod.isDiscrete_tfae`, `LightCondSet.isDiscrete_tfae`,
and `LightCondMod.isDiscrete_tfae`.
Informally, we can say: The following conditions characterize a condensed set `X` as discrete
(`CondensedSet.isDiscrete_tfae`):
1. There exists a set `X'` and an isomorphism `X ≅ cst X'`, where `cst X'` denotes the constant
sheaf on `X'`.
2. The counit induces an isomorphism `cst X(*) ⟶ X`.
3. There exists a set `X'` and an isomorphism `X ≅ LocallyConstant · X'`.
4. The counit induces an isomorphism `LocallyConstant · X(*) ⟶ X`.
5. For every profinite set `S = limᵢSᵢ`, the canonical map `colimᵢX(Sᵢ) ⟶ X(S)` is an isomorphism.
The analogues for light condensed sets, condensed `R`-modules over any ring, and light
condensed `R`-modules are nearly identical (`CondensedMod.isDiscrete_tfae`,
`LightCondSet.isDiscrete_tfae`, and `LightCondMod.isDiscrete_tfae`).
-/
@[expose] public section
universe u
open CategoryTheory Limits Functor FintypeCat
namespace Condensed
variable {C : Type*} [Category* C] [HasWeakSheafify (coherentTopology CompHaus.{u}) C]
/--
A condensed object is *discrete* if it is constant as a sheaf, i.e. isomorphic to a constant sheaf.
-/
abbrev IsDiscrete (X : Condensed.{u} C) := X.IsConstant (coherentTopology CompHaus)
end Condensed
namespace CondensedSet
open CompHausLike.LocallyConstant
lemma mem_locallyConstant_essImage_of_isColimit_mapCocone (X : CondensedSet.{u})
(h : ∀ S : Profinite.{u}, IsColimit <|
(profiniteToCompHaus.op ⋙ X.val).mapCocone S.asLimitCone.op) :
CondensedSet.LocallyConstant.functor.essImage X := by
let e : CondensedSet.{u} ≌ Sheaf (coherentTopology Profinite) _ :=
(Condensed.ProfiniteCompHaus.equivalence (Type (u + 1))).symm
let i : (e.functor.obj X).val ≅ (e.functor.obj (LocallyConstant.functor.obj _)).val :=
Condensed.isoLocallyConstantOfIsColimit _ h
exact ⟨_, ⟨e.functor.preimageIso ((sheafToPresheaf _ _).preimageIso i.symm)⟩⟩
/--
`CondensedSet.LocallyConstant.functor` is left adjoint to the forgetful functor from condensed
sets to sets.
-/
noncomputable abbrev LocallyConstant.adjunction :
CondensedSet.LocallyConstant.functor ⊣ Condensed.underlying (Type (u + 1)) :=
CompHausLike.LocallyConstant.adjunction _ _
open Condensed
set_option backward.isDefEq.respectTransparency false in
open CondensedSet.LocallyConstant List in
theorem isDiscrete_tfae (X : CondensedSet.{u}) :
TFAE
[ X.IsDiscrete
, IsIso ((Condensed.discreteUnderlyingAdj _).counit.app X)
, (Condensed.discrete _).essImage X
, CondensedSet.LocallyConstant.functor.essImage X
, IsIso (CondensedSet.LocallyConstant.adjunction.counit.app X)
, Sheaf.IsConstant (coherentTopology Profinite)
((Condensed.ProfiniteCompHaus.equivalence _).inverse.obj X)
, ∀ S : Profinite.{u}, Nonempty
(IsColimit <| (profiniteToCompHaus.op ⋙ X.val).mapCocone S.asLimitCone.op)
] := by
tfae_have 1 ↔ 2 := Sheaf.isConstant_iff_isIso_counit_app _ _ _
tfae_have 1 ↔ 3 := ⟨fun ⟨h⟩ ↦ h, fun h ↦ ⟨h⟩⟩
tfae_have 1 ↔ 4 := Sheaf.isConstant_iff_mem_essImage _ CompHaus.isTerminalPUnit adjunction _
tfae_have 1 ↔ 5 :=
have : functor.Faithful := inferInstance
have : functor.Full := inferInstance
-- These `have` statements above shouldn't be needed, but they are.
Sheaf.isConstant_iff_isIso_counit_app' _ CompHaus.isTerminalPUnit adjunction _
tfae_have 1 ↔ 6 :=
(Sheaf.isConstant_iff_of_equivalence (coherentTopology Profinite)
(coherentTopology CompHaus) profiniteToCompHaus Profinite.isTerminalPUnit
CompHaus.isTerminalPUnit _).symm
tfae_have 7 → 4 := fun h ↦
mem_locallyConstant_essImage_of_isColimit_mapCocone X (fun S ↦ (h S).some)
tfae_have 4 → 7 := fun ⟨Y, ⟨i⟩⟩ S ↦
⟨IsColimit.mapCoconeEquiv (isoWhiskerLeft profiniteToCompHaus.op
((sheafToPresheaf _ _).mapIso i))
(Condensed.isColimitLocallyConstantPresheafDiagram Y S)⟩
tfae_finish
end CondensedSet
namespace CondensedMod
variable (R : Type (u + 1)) [Ring R]
lemma isDiscrete_iff_isDiscrete_forget (M : CondensedMod R) :
M.IsDiscrete ↔ ((Condensed.forget R).obj M).IsDiscrete :=
Sheaf.isConstant_iff_forget (coherentTopology CompHaus)
(forget (ModuleCat R)) M CompHaus.isTerminalPUnit
instance : HasLimitsOfSize.{u, u + 1} (ModuleCat.{u + 1} R) :=
hasLimitsOfSizeShrink.{u, u + 1, u + 1, u + 1} _
set_option backward.isDefEq.respectTransparency false in
open CondensedMod.LocallyConstant List in
theorem isDiscrete_tfae (M : CondensedMod.{u} R) :
TFAE
[ M.IsDiscrete
, IsIso ((Condensed.discreteUnderlyingAdj _).counit.app M)
, (Condensed.discrete _).essImage M
, (CondensedMod.LocallyConstant.functor R).essImage M
, IsIso ((CondensedMod.LocallyConstant.adjunction R).counit.app M)
, Sheaf.IsConstant (coherentTopology Profinite)
((Condensed.ProfiniteCompHaus.equivalence _).inverse.obj M)
, ∀ S : Profinite.{u}, Nonempty
(IsColimit <| (profiniteToCompHaus.op ⋙ M.val).mapCocone S.asLimitCone.op)
] := by
tfae_have 1 ↔ 2 := Sheaf.isConstant_iff_isIso_counit_app _ _ _
tfae_have 1 ↔ 3 := ⟨fun ⟨h⟩ ↦ h, fun h ↦ ⟨h⟩⟩
tfae_have 1 ↔ 4 := Sheaf.isConstant_iff_mem_essImage _ CompHaus.isTerminalPUnit (adjunction R) _
tfae_have 1 ↔ 5 :=
have : (functor R).Faithful := inferInstance
have : (functor R).Full := inferInstance
-- These `have` statements above shouldn't be needed, but they are.
Sheaf.isConstant_iff_isIso_counit_app' _ CompHaus.isTerminalPUnit (adjunction R) _
tfae_have 1 ↔ 6 :=
(Sheaf.isConstant_iff_of_equivalence (coherentTopology Profinite)
(coherentTopology CompHaus) profiniteToCompHaus Profinite.isTerminalPUnit
CompHaus.isTerminalPUnit _).symm
tfae_have 7 → 1 := by
intro h
rw [isDiscrete_iff_isDiscrete_forget, ((CondensedSet.isDiscrete_tfae _).out 0 6 :)]
intro S
letI : PreservesFilteredColimitsOfSize.{u, u} (forget (ModuleCat R)) :=
preservesFilteredColimitsOfSize_shrink.{u, u + 1, u, u + 1} _
exact ⟨isColimitOfPreserves (forget (ModuleCat R)) (h S).some⟩
tfae_have 1 → 7 := by
intro h S
rw [isDiscrete_iff_isDiscrete_forget, ((CondensedSet.isDiscrete_tfae _).out 0 6 :)] at h
letI : ReflectsFilteredColimitsOfSize.{u, u} (forget (ModuleCat R)) :=
reflectsFilteredColimitsOfSize_shrink.{u, u + 1, u, u + 1} _
exact ⟨isColimitOfReflects (forget (ModuleCat R)) (h S).some⟩
tfae_finish
end CondensedMod
namespace LightCondensed
variable {C : Type*} [Category* C] [HasWeakSheafify (coherentTopology LightProfinite.{u}) C]
/--
A light condensed object is *discrete* if it is constant as a sheaf, i.e. isomorphic to a constant
sheaf.
-/
abbrev IsDiscrete (X : LightCondensed.{u} C) := X.IsConstant (coherentTopology LightProfinite)
end LightCondensed
namespace LightCondSet
lemma mem_locallyConstant_essImage_of_isColimit_mapCocone (X : LightCondSet.{u})
(h : ∀ S : LightProfinite.{u}, IsColimit <|
X.val.mapCocone (coconeRightOpOfCone S.asLimitCone)) :
LightCondSet.LocallyConstant.functor.essImage X := by
let i : X.val ≅ (LightCondSet.LocallyConstant.functor.obj _).val :=
LightCondensed.isoLocallyConstantOfIsColimit _ h
exact ⟨_, ⟨((sheafToPresheaf _ _).preimageIso i.symm)⟩⟩
/--
`LightCondSet.LocallyConstant.functor` is left adjoint to the forgetful functor from light condensed
sets to sets.
-/
noncomputable abbrev LocallyConstant.adjunction :
LightCondSet.LocallyConstant.functor ⊣ LightCondensed.underlying (Type u) :=
CompHausLike.LocallyConstant.adjunction _ _
set_option backward.isDefEq.respectTransparency false in
open LightCondSet.LocallyConstant List in
theorem isDiscrete_tfae (X : LightCondSet.{u}) :
TFAE
[ X.IsDiscrete
, IsIso ((LightCondensed.discreteUnderlyingAdj _).counit.app X)
, (LightCondensed.discrete _).essImage X
, LightCondSet.LocallyConstant.functor.essImage X
, IsIso (LightCondSet.LocallyConstant.adjunction.counit.app X)
, ∀ S : LightProfinite.{u}, Nonempty
(IsColimit <| X.val.mapCocone (coconeRightOpOfCone S.asLimitCone))
] := by
tfae_have 1 ↔ 2 := Sheaf.isConstant_iff_isIso_counit_app _ _ _
tfae_have 1 ↔ 3 := ⟨fun ⟨h⟩ ↦ h, fun h ↦ ⟨h⟩⟩
tfae_have 1 ↔ 4 := Sheaf.isConstant_iff_mem_essImage _ LightProfinite.isTerminalPUnit adjunction X
tfae_have 1 ↔ 5 :=
have : functor.Faithful := inferInstance
have : functor.Full := inferInstance
-- These `have` statements above shouldn't be needed, but they are.
Sheaf.isConstant_iff_isIso_counit_app' _ LightProfinite.isTerminalPUnit adjunction X
tfae_have 6 → 4 := fun h ↦
mem_locallyConstant_essImage_of_isColimit_mapCocone X (fun S ↦ (h S).some)
tfae_have 4 → 6 := fun ⟨Y, ⟨i⟩⟩ S ↦
⟨IsColimit.mapCoconeEquiv ((sheafToPresheaf _ _).mapIso i)
(LightCondensed.isColimitLocallyConstantPresheafDiagram Y S)⟩
tfae_finish
end LightCondSet
namespace LightCondMod
variable (R : Type u) [Ring R]
lemma isDiscrete_iff_isDiscrete_forget (M : LightCondMod R) :
M.IsDiscrete ↔ ((LightCondensed.forget R).obj M).IsDiscrete :=
Sheaf.isConstant_iff_forget (coherentTopology LightProfinite)
(forget (ModuleCat R)) M LightProfinite.isTerminalPUnit
set_option backward.isDefEq.respectTransparency false in
open LightCondMod.LocallyConstant List in
theorem isDiscrete_tfae (M : LightCondMod.{u} R) :
TFAE
[ M.IsDiscrete
, IsIso ((LightCondensed.discreteUnderlyingAdj _).counit.app M)
, (LightCondensed.discrete _).essImage M
, (LightCondMod.LocallyConstant.functor R).essImage M
, IsIso ((LightCondMod.LocallyConstant.adjunction R).counit.app M)
, ∀ S : LightProfinite.{u}, Nonempty
(IsColimit <| M.val.mapCocone (coconeRightOpOfCone S.asLimitCone))
] := by
tfae_have 1 ↔ 2 := Sheaf.isConstant_iff_isIso_counit_app _ _ _
tfae_have 1 ↔ 3 := ⟨fun ⟨h⟩ ↦ h, fun h ↦ ⟨h⟩⟩
tfae_have 1 ↔ 4 := Sheaf.isConstant_iff_mem_essImage _
LightProfinite.isTerminalPUnit (adjunction R) _
tfae_have 1 ↔ 5 :=
have : (functor R).Faithful := inferInstance
have : (functor R).Full := inferInstance
-- These `have` statements above shouldn't be needed, but they are.
Sheaf.isConstant_iff_isIso_counit_app' _ LightProfinite.isTerminalPUnit (adjunction R) _
tfae_have 6 → 1 := by
intro h
rw [isDiscrete_iff_isDiscrete_forget, ((LightCondSet.isDiscrete_tfae _).out 0 5 :)]
intro S
letI : PreservesFilteredColimitsOfSize.{0, 0} (forget (ModuleCat R)) :=
preservesFilteredColimitsOfSize_shrink.{0, u, 0, u} _
exact ⟨isColimitOfPreserves (forget (ModuleCat R)) (h S).some⟩
tfae_have 1 → 6 := by
intro h S
rw [isDiscrete_iff_isDiscrete_forget, ((LightCondSet.isDiscrete_tfae _).out 0 5 :)] at h
letI : ReflectsFilteredColimitsOfSize.{0, 0} (forget (ModuleCat R)) :=
reflectsFilteredColimitsOfSize_shrink.{0, u, 0, u} _
exact ⟨isColimitOfReflects (forget (ModuleCat R)) (h S).some⟩
tfae_finish
end LightCondMod