-
Notifications
You must be signed in to change notification settings - Fork 2
/
Equivalence.lean
206 lines (162 loc) · 6.35 KB
/
Equivalence.lean
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
/-
Copyright (c) 2023 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import Profinite.Coherent
import ExtrDisc.Coherent
import ExtrDisc.Topologies
import Mathlib.Condensed.Basic
import Mathlib.CategoryTheory.Sites.DenseSubsite
import Mathlib.CategoryTheory.Sites.InducedTopology
import Mathlib.CategoryTheory.Sites.Closed
import FindWithGpt
import Mathlib.Topology.Category.CompHaus.Basic
import Mathlib.CategoryTheory.Preadditive.Projective
/-!
# Sheaves on CompHaus are equivalent to sheaves on ExtrDisc
The forgetful functor from extremally disconnected spaces `ExtrDisc` to compact
Hausdorff spaces `CompHaus` has the marvellous property that it induces an equivalence of categories
between sheaves on these two sites. With the terminology of nLab, `ExtrDisc` is a
*dense subsite* of `CompHaus`: see https://ncatlab.org/nlab/show/dense+sub-site
Mathlib has isolated three properties called `CoverDense`, `CoverPreserving` and `CoverLifting`,
which between them imply that `ExtrDisc` is a dense subsite, and it also has the
construction of the equivalence of the categories of sheaves, given these three properties.
## Main theorems
* `Condensed.coverDense`, `Condensed.coverPreserving`, `Condensed.coverLifting`: the
three conditions needed to guarantee the equivalence of the categories of sheaves
on the two sites.
## TODO
Prove the three main theorems!
-/
open CategoryTheory Limits
namespace Condensed
universe u w
namespace ExtrDiscCompHaus
#check Sieve.coverByImage
lemma coverDense :
CoverDense (coherentTopology _) ExtrDisc.toCompHaus := by
constructor
intro B
let T := Presieve.singleton B.presentationπ
let S := Sieve.generate T
have hS : S ∈ coherentTopology CompHaus B := by
apply Coverage.saturate.of
change ∃ _, _
refine ⟨Unit, inferInstance,
fun _ => B.presentation.compHaus, fun _ => B.presentationπ, ?_ , ?_⟩
· funext X f
ext
constructor
· rintro ⟨⟩
refine ⟨()⟩
· rintro ⟨⟩
simp
· have := CompHaus.effectiveEpiFamily_tfae
(fun (_ : Unit) => B.presentation.compHaus)
(fun (_ : Unit) => B.presentationπ)
apply (this.out 0 2).mpr
intro b
refine ⟨(), ?_⟩
have hπ :
Function.Surjective B.presentationπ := by
rw [← CompHaus.epi_iff_surjective B.presentationπ]
exact CompHaus.epiPresentπ B
exact hπ b
convert hS
ext Y f
constructor
· rintro ⟨⟨obj, lift, map, fact⟩⟩
obtain ⟨obj_factors⟩ : Projective obj.compHaus := by
infer_instance
obtain ⟨p, p_factors⟩ := obj_factors map B.presentationπ
refine ⟨(CompHaus.presentation B).compHaus ,?_⟩
refine ⟨lift ≫ p, ⟨ B.presentationπ
, {
left := Presieve.singleton.mk
right := by
rw [Category.assoc, p_factors, fact]
} ⟩
⟩
· rintro ⟨Z, h, g, hypo1, ⟨_⟩⟩
cases hypo1
constructor
refine
{ obj := CompHaus.presentation B
lift := h
map := CompHaus.presentationπ B
fac := rfl }
theorem coverDense.inducedTopology_Sieve_iff_EffectiveEpiFamily (X : ExtrDisc) (S : Sieve X) :
(∃ (α : Type) (_ : Fintype α) (Y : α → ExtrDisc) (π : (a : α) → (Y a ⟶ X)),
EffectiveEpiFamily Y π ∧ (∀ a : α, (S.arrows) (π a)) ) ↔
(S ∈ coverDense.inducedTopology X) := by
constructor
· rintro ⟨α, _, Y, π, ⟨H₁, H₂⟩⟩
unfold CoverDense.inducedTopology
unfold LocallyCoverDense.inducedTopology
simp only [ExtrDisc.toCompHaus_obj]
change _ ∈ GrothendieckTopology.sieves _ _
apply (coherentTopology.Sieve_iff_hasEffectiveEpiFamily (Sieve.functorPushforward _ S)).mp
use α, inferInstance
use fun i => ExtrDisc.toCompHaus.obj (Y i)
use fun i => ExtrDisc.toCompHaus.map (π i)
constructor
· simp only [ExtrDisc.toCompHaus_obj, ExtrDisc.toCompHaus_map]
-- Show that an `effectiveEpiFamily` pushes forward to one
simp only [(ExtrDisc.effectiveEpiFamily_tfae _ _).out 0 2] at H₁
exact CompHaus.effectiveEpiFamily_of_jointly_surjective
(fun i => (Y i).compHaus) (fun i => π i) H₁
· exact fun a => Sieve.image_mem_functorPushforward ExtrDisc.toCompHaus S (H₂ a)
· intro hS
unfold CoverDense.inducedTopology at hS
unfold LocallyCoverDense.inducedTopology at hS
simp only [ExtrDisc.toCompHaus_obj] at hS
change _ ∈ GrothendieckTopology.sieves _ _ at hS
replace hS := (coherentTopology.Sieve_iff_hasEffectiveEpiFamily _).mpr hS
rcases hS with ⟨α, _, Y, π, ⟨H₁, H₂⟩⟩
use α, inferInstance
change ∀ a, ∃ (Y₀: ExtrDisc) (π₀ : Y₀⟶ X) (f₀: Y a ⟶ Y₀.compHaus), S.arrows π₀ ∧
π a = f₀ ≫ ExtrDisc.toCompHaus.map π₀ at H₂
rw [Classical.skolem] at H₂
rcases H₂ with ⟨Y₀, H₂⟩
rw [Classical.skolem] at H₂
rcases H₂ with ⟨π₀, H₂⟩
rw [Classical.skolem] at H₂
rcases H₂ with ⟨f₀, H₂⟩
use Y₀ , π₀
constructor
· simp only [(ExtrDisc.effectiveEpiFamily_tfae _ _).out 0 2]
simp only [(CompHaus.effectiveEpiFamily_tfae _ _).out 0 2] at H₁
intro b
replace H₁ := H₁ b
rcases H₁ with ⟨i, x, H₁⟩
use i, f₀ i x
aesop_cat
· intro i
exact (H₂ i).1
lemma coherentTopology_is_induced :
coherentTopology ExtrDisc.{u} = coverDense.inducedTopology := by
ext X S
rw [← coverDense.inducedTopology_Sieve_iff_EffectiveEpiFamily X]
rw [← coherentTopology.Sieve_iff_hasEffectiveEpiFamily S]
lemma coverPreserving :
CoverPreserving
(coherentTopology _)
(coherentTopology _)
ExtrDisc.toCompHaus := by
rw [coherentTopology_is_induced]
exact LocallyCoverDense.inducedTopology_coverPreserving (CoverDense.locallyCoverDense coverDense)
lemma coverLifting :
CoverLifting
(coherentTopology _)
(coherentTopology _)
ExtrDisc.toCompHaus := by
rw [coherentTopology_is_induced]
exact LocallyCoverDense.inducedTopology_coverLifting (CoverDense.locallyCoverDense coverDense)
noncomputable
def equivalence (A : Type _) [Category.{u+1} A] [HasLimits A] :
Sheaf (coherentTopology ExtrDisc) A ≌ Condensed.{u} A :=
CoverDense.sheafEquivOfCoverPreservingCoverLifting
coverDense coverPreserving coverLifting
end ExtrDiscCompHaus
end Condensed