-
Notifications
You must be signed in to change notification settings - Fork 259
/
UniformConvergence.lean
297 lines (218 loc) · 11.6 KB
/
UniformConvergence.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
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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
/-
Copyright (c) 2022 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import Mathlib.Topology.Algebra.UniformMulAction
#align_import topology.algebra.uniform_convergence from "leanprover-community/mathlib"@"f2ce6086713c78a7f880485f7917ea547a215982"
/-!
# Algebraic facts about the topology of uniform convergence
This file contains algebraic compatibility results about the uniform structure of uniform
convergence / `𝔖`-convergence. They will mostly be useful for defining strong topologies on the
space of continuous linear maps between two topological vector spaces.
## Main statements
* `UniformFun.uniform_group` : if `G` is a uniform group, then `α →ᵤ G` a uniform group
* `UniformOnFun.uniform_group` : if `G` is a uniform group, then for any `𝔖 : Set (Set α)`,
`α →ᵤ[𝔖] G` a uniform group.
## Implementation notes
Like in `Mathlib.Topology.UniformSpace.UniformConvergenceTopology`, we use the type aliases
`UniformFun` (denoted `α →ᵤ β`) and `UniformOnFun` (denoted `α →ᵤ[𝔖] β`) for functions from `α`
to `β` endowed with the structures of uniform convergence and `𝔖`-convergence.
## References
* [N. Bourbaki, *General Topology, Chapter X*][bourbaki1966]
* [N. Bourbaki, *Topological Vector Spaces*][bourbaki1987]
## Tags
uniform convergence, strong dual
-/
open Filter
open scoped Topology Pointwise UniformConvergence Uniformity
section AlgebraicInstances
variable {α β ι R : Type*} {𝔖 : Set <| Set α} {x : α}
@[to_additive] instance [One β] : One (α →ᵤ β) := Pi.instOne
@[to_additive (attr := simp)]
lemma UniformFun.toFun_one [One β] : toFun (1 : α →ᵤ β) = 1 := rfl
@[to_additive (attr := simp)]
lemma UniformFun.ofFun_one [One β] : ofFun (1 : α → β) = 1 := rfl
@[to_additive] instance [One β] : One (α →ᵤ[𝔖] β) := Pi.instOne
@[to_additive (attr := simp)]
lemma UniformOnFun.toFun_one [One β] : toFun 𝔖 (1 : α →ᵤ[𝔖] β) = 1 := rfl
@[to_additive (attr := simp)]
lemma UniformOnFun.one_apply [One β] : ofFun 𝔖 (1 : α → β) = 1 := rfl
@[to_additive] instance [Mul β] : Mul (α →ᵤ β) := Pi.instMul
@[to_additive (attr := simp)]
lemma UniformFun.toFun_mul [Mul β] (f g : α →ᵤ β) : toFun (f * g) = toFun f * toFun g := rfl
@[to_additive (attr := simp)]
lemma UniformFun.ofFun_mul [Mul β] (f g : α → β) : ofFun (f * g) = ofFun f * ofFun g := rfl
@[to_additive] instance [Mul β] : Mul (α →ᵤ[𝔖] β) := Pi.instMul
@[to_additive (attr := simp)]
lemma UniformOnFun.toFun_mul [Mul β] (f g : α →ᵤ[𝔖] β) :
toFun 𝔖 (f * g) = toFun 𝔖 f * toFun 𝔖 g :=
rfl
@[to_additive (attr := simp)]
lemma UniformOnFun.ofFun_mul [Mul β] (f g : α → β) : ofFun 𝔖 (f * g) = ofFun 𝔖 f * ofFun 𝔖 g := rfl
@[to_additive] instance [Inv β] : Inv (α →ᵤ β) := Pi.instInv
@[to_additive (attr := simp)]
lemma UniformFun.toFun_inv [Inv β] (f : α →ᵤ β) : toFun (f⁻¹) = (toFun f)⁻¹ := rfl
@[to_additive (attr := simp)]
lemma UniformFun.ofFun_inv [Inv β] (f : α → β) : ofFun (f⁻¹) = (ofFun f)⁻¹ := rfl
@[to_additive] instance [Inv β] : Inv (α →ᵤ[𝔖] β) := Pi.instInv
@[to_additive (attr := simp)]
lemma UniformOnFun.toFun_inv [Inv β] (f : α →ᵤ[𝔖] β) : toFun 𝔖 (f⁻¹) = (toFun 𝔖 f)⁻¹ := rfl
@[to_additive (attr := simp)]
lemma UniformOnFun.ofFun_inv [Inv β] (f : α → β) : ofFun 𝔖 (f⁻¹) = (ofFun 𝔖 f)⁻¹ := rfl
@[to_additive] instance [Div β] : Div (α →ᵤ β) := Pi.instDiv
@[to_additive (attr := simp)]
lemma UniformFun.toFun_div [Div β] (f g : α →ᵤ β) : toFun (f / g) = toFun f / toFun g := rfl
@[to_additive (attr := simp)]
lemma UniformFun.ofFun_div [Div β] (f g : α → β) : ofFun (f / g) = ofFun f / ofFun g := rfl
@[to_additive] instance [Div β] : Div (α →ᵤ[𝔖] β) := Pi.instDiv
@[to_additive (attr := simp)]
lemma UniformOnFun.toFun_div [Div β] (f g : α →ᵤ[𝔖] β) :
toFun 𝔖 (f / g) = toFun 𝔖 f / toFun 𝔖 g :=
rfl
@[to_additive (attr := simp)]
lemma UniformOnFun.ofFun_div [Div β] (f g : α → β) : ofFun 𝔖 (f / g) = ofFun 𝔖 f / ofFun 𝔖 g := rfl
@[to_additive]
instance [Monoid β] : Monoid (α →ᵤ β) :=
Pi.monoid
@[to_additive]
instance [Monoid β] : Monoid (α →ᵤ[𝔖] β) :=
Pi.monoid
@[to_additive]
instance [CommMonoid β] : CommMonoid (α →ᵤ β) :=
Pi.commMonoid
@[to_additive]
instance [CommMonoid β] : CommMonoid (α →ᵤ[𝔖] β) :=
Pi.commMonoid
@[to_additive]
instance [Group β] : Group (α →ᵤ β) :=
Pi.group
@[to_additive]
instance [Group β] : Group (α →ᵤ[𝔖] β) :=
Pi.group
@[to_additive]
instance [CommGroup β] : CommGroup (α →ᵤ β) :=
Pi.commGroup
@[to_additive]
instance [CommGroup β] : CommGroup (α →ᵤ[𝔖] β) :=
Pi.commGroup
instance {M : Type*} [SMul M β] : SMul M (α →ᵤ β) := Pi.instSMul
@[simp]
lemma UniformFun.toFun_smul {M : Type*} [SMul M β] (c : M) (f : α →ᵤ β) :
toFun (c • f) = c • toFun f :=
rfl
@[simp]
lemma UniformFun.ofFun_smul {M : Type*} [SMul M β] (c : M) (f : α → β) :
ofFun (c • f) = c • ofFun f :=
rfl
instance {M : Type*} [SMul M β] : SMul M (α →ᵤ[𝔖] β) := Pi.instSMul
@[simp]
lemma UniformOnFun.toFun_smul {M : Type*} [SMul M β] (c : M) (f : α →ᵤ[𝔖] β) :
toFun 𝔖 (c • f) = c • toFun 𝔖 f :=
rfl
@[simp]
lemma UniformOnFun.ofFun_smul {M : Type*} [SMul M β] (c : M) (f : α → β) :
ofFun 𝔖 (c • f) = c • ofFun 𝔖 f :=
rfl
instance {M N : Type*} [SMul M N] [SMul M β] [SMul N β] [IsScalarTower M N β] :
IsScalarTower M N (α →ᵤ β) :=
Pi.isScalarTower
instance {M N : Type*} [SMul M N] [SMul M β] [SMul N β] [IsScalarTower M N β] :
IsScalarTower M N (α →ᵤ[𝔖] β) :=
Pi.isScalarTower
instance {M N : Type*} [SMul M β] [SMul N β] [SMulCommClass M N β] :
SMulCommClass M N (α →ᵤ β) :=
Pi.smulCommClass
instance {M N : Type*} [SMul M β] [SMul N β] [SMulCommClass M N β] :
SMulCommClass M N (α →ᵤ[𝔖] β) :=
Pi.smulCommClass
instance {M : Type*} [Monoid M] [MulAction M β] : MulAction M (α →ᵤ β) := Pi.mulAction _
instance {M : Type*} [Monoid M] [MulAction M β] : MulAction M (α →ᵤ[𝔖] β) := Pi.mulAction _
instance {M : Type*} [Monoid M] [AddMonoid β] [DistribMulAction M β] :
DistribMulAction M (α →ᵤ β) :=
Pi.distribMulAction _
instance {M : Type*} [Monoid M] [AddMonoid β] [DistribMulAction M β] :
DistribMulAction M (α →ᵤ[𝔖] β) :=
Pi.distribMulAction _
instance [Semiring R] [AddCommMonoid β] [Module R β] : Module R (α →ᵤ β) :=
Pi.module _ _ _
instance [Semiring R] [AddCommMonoid β] [Module R β] : Module R (α →ᵤ[𝔖] β) :=
Pi.module _ _ _
end AlgebraicInstances
section Group
variable {α G ι : Type*} [Group G] {𝔖 : Set <| Set α} [UniformSpace G] [UniformGroup G]
/-- If `G` is a uniform group, then `α →ᵤ G` is a uniform group as well. -/
@[to_additive "If `G` is a uniform additive group,
then `α →ᵤ G` is a uniform additive group as well."]
instance : UniformGroup (α →ᵤ G) :=
⟨(-- Since `(/) : G × G → G` is uniformly continuous,
-- `UniformFun.postcomp_uniformContinuous` tells us that
-- `((/) ∘ —) : (α →ᵤ G × G) → (α →ᵤ G)` is uniformly continuous too. By precomposing with
-- `UniformFun.uniformEquivProdArrow`, this gives that
-- `(/) : (α →ᵤ G) × (α →ᵤ G) → (α →ᵤ G)` is also uniformly continuous
UniformFun.postcomp_uniformContinuous uniformContinuous_div).comp
UniformFun.uniformEquivProdArrow.symm.uniformContinuous⟩
@[to_additive]
protected theorem UniformFun.hasBasis_nhds_one_of_basis {p : ι → Prop} {b : ι → Set G}
(h : (𝓝 1 : Filter G).HasBasis p b) :
(𝓝 1 : Filter (α →ᵤ G)).HasBasis p fun i => { f : α →ᵤ G | ∀ x, toFun f x ∈ b i } := by
have := h.comap fun p : G × G => p.2 / p.1
rw [← uniformity_eq_comap_nhds_one] at this
convert UniformFun.hasBasis_nhds_of_basis α _ (1 : α →ᵤ G) this
-- Porting note: removed `ext i f` here, as it has already been done by `convert`.
simp
#align uniform_fun.has_basis_nhds_one_of_basis UniformFun.hasBasis_nhds_one_of_basis
#align uniform_fun.has_basis_nhds_zero_of_basis UniformFun.hasBasis_nhds_zero_of_basis
@[to_additive]
protected theorem UniformFun.hasBasis_nhds_one :
(𝓝 1 : Filter (α →ᵤ G)).HasBasis (fun V : Set G => V ∈ (𝓝 1 : Filter G)) fun V =>
{ f : α → G | ∀ x, f x ∈ V } :=
UniformFun.hasBasis_nhds_one_of_basis (basis_sets _)
#align uniform_fun.has_basis_nhds_one UniformFun.hasBasis_nhds_one
#align uniform_fun.has_basis_nhds_zero UniformFun.hasBasis_nhds_zero
/-- Let `𝔖 : Set (Set α)`. If `G` is a uniform group, then `α →ᵤ[𝔖] G` is a uniform group as
well. -/
@[to_additive "Let `𝔖 : Set (Set α)`. If `G` is a uniform additive group,
then `α →ᵤ[𝔖] G` is a uniform additive group as well."]
instance : UniformGroup (α →ᵤ[𝔖] G) :=
⟨(-- Since `(/) : G × G → G` is uniformly continuous,
-- `UniformOnFun.postcomp_uniformContinuous` tells us that
-- `((/) ∘ —) : (α →ᵤ[𝔖] G × G) → (α →ᵤ[𝔖] G)` is uniformly continuous too. By precomposing with
-- `UniformOnFun.uniformEquivProdArrow`, this gives that
-- `(/) : (α →ᵤ[𝔖] G) × (α →ᵤ[𝔖] G) → (α →ᵤ[𝔖] G)` is also uniformly continuous
UniformOnFun.postcomp_uniformContinuous uniformContinuous_div).comp
UniformOnFun.uniformEquivProdArrow.symm.uniformContinuous⟩
@[to_additive]
protected theorem UniformOnFun.hasBasis_nhds_one_of_basis (𝔖 : Set <| Set α) (h𝔖₁ : 𝔖.Nonempty)
(h𝔖₂ : DirectedOn (· ⊆ ·) 𝔖) {p : ι → Prop} {b : ι → Set G}
(h : (𝓝 1 : Filter G).HasBasis p b) :
(𝓝 1 : Filter (α →ᵤ[𝔖] G)).HasBasis (fun Si : Set α × ι => Si.1 ∈ 𝔖 ∧ p Si.2) fun Si =>
{ f : α →ᵤ[𝔖] G | ∀ x ∈ Si.1, toFun 𝔖 f x ∈ b Si.2 } := by
have := h.comap fun p : G × G => p.1 / p.2
rw [← uniformity_eq_comap_nhds_one_swapped] at this
convert UniformOnFun.hasBasis_nhds_of_basis α _ 𝔖 (1 : α →ᵤ[𝔖] G) h𝔖₁ h𝔖₂ this
-- Porting note: removed `ext i f` here, as it has already been done by `convert`.
simp [UniformOnFun.gen]
#align uniform_on_fun.has_basis_nhds_one_of_basis UniformOnFun.hasBasis_nhds_one_of_basis
#align uniform_on_fun.has_basis_nhds_zero_of_basis UniformOnFun.hasBasis_nhds_zero_of_basis
@[to_additive]
protected theorem UniformOnFun.hasBasis_nhds_one (𝔖 : Set <| Set α) (h𝔖₁ : 𝔖.Nonempty)
(h𝔖₂ : DirectedOn (· ⊆ ·) 𝔖) :
(𝓝 1 : Filter (α →ᵤ[𝔖] G)).HasBasis
(fun SV : Set α × Set G => SV.1 ∈ 𝔖 ∧ SV.2 ∈ (𝓝 1 : Filter G)) fun SV =>
{ f : α →ᵤ[𝔖] G | ∀ x ∈ SV.1, f x ∈ SV.2 } :=
UniformOnFun.hasBasis_nhds_one_of_basis 𝔖 h𝔖₁ h𝔖₂ (basis_sets _)
#align uniform_on_fun.has_basis_nhds_one UniformOnFun.hasBasis_nhds_one
#align uniform_on_fun.has_basis_nhds_zero UniformOnFun.hasBasis_nhds_zero
end Group
section ConstSMul
variable (M α X : Type*) [SMul M X] [UniformSpace X] [UniformContinuousConstSMul M X]
instance UniformFun.uniformContinuousConstSMul :
UniformContinuousConstSMul M (α →ᵤ X) where
uniformContinuous_const_smul c := UniformFun.postcomp_uniformContinuous <|
uniformContinuous_const_smul c
instance UniformFunOn.uniformContinuousConstSMul {𝔖 : Set (Set α)} :
UniformContinuousConstSMul M (α →ᵤ[𝔖] X) where
uniformContinuous_const_smul c := UniformOnFun.postcomp_uniformContinuous <|
uniformContinuous_const_smul c
end ConstSMul