The areas / V13. General topology
Mathlib.Topology.UniformSpace.CompactConvergence
32 declarations and 3 deprecated aliases. Mathlib docs · Source
Compact convergence (uniform convergence on compact sets)
Given a topological space α and a uniform space β (e.g., a metric space or a topological group),
the space of continuous maps C(α, β) carries a natural uniform space structure.
We define this uniform space structure in this file
and also prove its basic properties.
Main definitions
-
ContinuousMap.toUniformOnFunIsCompact: natural embedding ofC(α, β)into the spaceα →ᵤ[{K | IsCompact K}] βof all mapsα → βwith the uniform space structure of uniform convergence on compacts. -
ContinuousMap.compactConvergenceUniformSpace: theUniformSpacestructure onC(α, β)induced by the map above.
Main results
-
ContinuousMap.mem_compactConvergence_entourage_iff: a characterisation of the entourages ofC(α, β).The entourages are generated by the following sets. Given
K : Set αandV : Set (β × β), letE(K, V) : Set (C(α, β) × C(α, β))be the set of pairs of continuous functionsα → βwhich areV-close onK: $$ E(K, V) = { (f, g) | ∀ (x ∈ K), (f x, g x) ∈ V }. $$ Then the setsE(K, V)for all compact setsKand all entouragesVform a basis of entourages ofC(α, β).As usual, this basis of entourages provides a basis of neighbourhoods by fixing
f, seenhds_basis_uniformity'. -
Filter.HasBasis.compactConvergenceUniformity: a similar statement that uses a basis of entourages ofβinstead of all entourages. It is useful, e.g., ifβis a metric space. -
ContinuousMap.tendsto_iff_forall_isCompact_tendstoUniformlyOn: a sequence of functionsFₙinC(α, β)converges in the compact-open topology to somefiffFₙconverges tofuniformly on each compact subsetKofα. -
Topology induced by the uniformity described above agrees with the compact-open topology. This is essentially the same as
ContinuousMap.tendsto_iff_forall_isCompact_tendstoUniformlyOn.This fact is not available as a separate theorem. Instead, we override the projection of
ContinuousMap.compactConvergenceUniformitytoTopologicalSpaceto beContinuousMap.compactOpenand prove that they agree, see Note [forgetful inheritance] and implementation notes below. -
ContinuousMap.tendsto_iff_tendstoLocallyUniformly: on a weakly locally compact space, a sequence of functionsFₙinC(α, β)converges to somefiffFₙconverges toflocally uniformly. -
ContinuousMap.tendsto_iff_tendstoUniformly: on a compact space, a sequence of functionsFₙinC(α, β)converges to somefiffFₙconverges tofuniformly.
Implementation notes
For technical reasons (see Note [forgetful inheritance]),
instead of defining a UniformSpace C(α, β) structure
and proving in a theorem that it agrees with the compact-open topology,
we override the projection right in the definition,
so that the resulting instance uses the compact-open topology.
TODO
- Results about uniformly continuous functions
γ → C(α, β)and uniform limits of sequencesι → γ → C(α, β).
theorem UniformSpace.replaceTopology.congr_simp E1 #
∀ {α : Type u_2} [i : TopologicalSpace α] (u u_1 : UniformSpace α) (e_u : u = u_1) (h : i = u.toTopologicalSpace),
u.replaceTopology h = u_1.replaceTopology ⋯
theorem ContinuousMap.tendsto_iff_forall_isCompact_tendstoUniformlyOn E3 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {ι : Type u₃} {p : Filter ι}
{F : ι → C(α, β)} {f : C(α, β)},
Filter.Tendsto F p (nhds f) ↔ ∀ (K : Set α), IsCompact K → TendstoUniformlyOn (fun i a ↦ (F i) a) (⇑f) p K
Compact-open topology on C(α, β) agrees with the topology of uniform convergence on compacts:
a family of continuous functions F i tends to f in the compact-open topology
if and only if the F i tends to f uniformly on all compact sets.
def ContinuousMap.toUniformOnFunIsCompact E3 #
{α : Type u₁} →
{β : Type u₂} → [inst : TopologicalSpace α] → [inst_1 : UniformSpace β] → C(α, β) → UniformOnFun α β {K | IsCompact K}
Interpret a bundled continuous map as an element of α →ᵤ[{K | IsCompact K}] β.
We use this map to induce the UniformSpace structure on C(α, β).
theorem ContinuousMap.toUniformOnFun_toFun E0 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] (f : C(α, β)),
(UniformOnFun.toFun {K | IsCompact K}) f.toUniformOnFunIsCompact = ⇑f
theorem ContinuousMap.range_toUniformOnFunIsCompact E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β],
Set.range ContinuousMap.toUniformOnFunIsCompact = {f | Continuous f}
instance ContinuousMap.compactConvergenceUniformSpace E3 #
{α : Type u₁} → {β : Type u₂} → [inst : TopologicalSpace α] → [inst_1 : UniformSpace β] → UniformSpace C(α, β)
Uniform space structure on C(α, β).
The uniformity comes from α →ᵤ[{K | IsCompact K}] β (i.e., UniformOnFun α β {K | IsCompact K})
which defines topology of uniform convergence on compact sets.
We use ContinuousMap.tendsto_iff_forall_isCompact_tendstoUniformlyOn
to show that the induced topology agrees with the compact-open topology
and replace the topology with compactOpen to avoid non-defeq diamonds,
see Note [forgetful inheritance].
theorem ContinuousMap.isUniformEmbedding_toUniformOnFunIsCompact E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β],
IsUniformEmbedding ContinuousMap.toUniformOnFunIsCompact
theorem ContinuousMap.continuous_iff_continuous_uniformOnFun E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {X : Type u_1}
[inst_2 : TopologicalSpace X] (f : X → C(α, β)),
Continuous f ↔ Continuous fun x ↦ (UniformOnFun.ofFun {K | IsCompact K}) ⇑(f x)
f : X → C(α, β) is continuous if any only if it is continuous when reinterpreted as a
map f : X → α →ᵤ[{K | IsCompact K}] β.
theorem Filter.HasBasis.compactConvergenceUniformity E3 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {ι : Type u_1} {pi : ι → Prop}
{s : ι → Set (β × β)},
(uniformity β).HasBasis pi s →
(uniformity C(α, β)).HasBasis (fun p ↦ IsCompact p.1 ∧ pi p.2) fun p ↦ {fg | ∀ x ∈ p.1, (fg.1 x, fg.2 x) ∈ s p.2}
theorem ContinuousMap.hasBasis_compactConvergenceUniformity E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β],
(uniformity C(α, β)).HasBasis (fun p ↦ IsCompact p.1 ∧ p.2 ∈ uniformity β) fun p ↦
{fg | ∀ x ∈ p.1, (fg.1 x, fg.2 x) ∈ p.2}
theorem ContinuousMap.mem_compactConvergence_entourage_iff E3 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] (X : Set (C(α, β) × C(α, β))),
X ∈ uniformity C(α, β) ↔ ∃ K V, IsCompact K ∧ V ∈ uniformity β ∧ {fg | ∀ x ∈ K, (fg.1 x, fg.2 x) ∈ V} ⊆ X
theorem CompactExhaustion.hasBasis_compactConvergenceUniformity E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {ι : Type u_1} {p : ι → Prop}
{V : ι → Set (β × β)} (K : CompactExhaustion α),
(uniformity β).HasBasis p V →
(uniformity C(α, β)).HasBasis (fun i ↦ p i.2) fun i ↦ {fg | ∀ x ∈ K i.1, (fg.1 x, fg.2 x) ∈ V i.2}
If K is a compact exhaustion of α
and V i bounded by p i is a basis of entourages of β,
then fun (n, i) ↦ {(f, g) | ∀ x ∈ K n, (f x, g x) ∈ V i} bounded by p i
is a basis of entourages of C(α, β).
theorem CompactExhaustion.hasAntitoneBasis_compactConvergenceUniformity E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {V : ℕ → Set (β × β)}
(K : CompactExhaustion α),
(uniformity β).HasAntitoneBasis V →
(uniformity C(α, β)).HasAntitoneBasis fun n ↦ {fg | ∀ x ∈ K n, (fg.1 x, fg.2 x) ∈ V n}
instance ContinuousMap.instIsCountablyGeneratedProdUniformityOfWeaklyLocallyCompactSpaceOfSigmaCompactSpace E0 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] [WeaklyLocallyCompactSpace α]
[SigmaCompactSpace α] [(uniformity β).IsCountablyGenerated], (uniformity C(α, β)).IsCountablyGenerated
If α is a weakly locally compact σ-compact space
(e.g., a proper pseudometric space or a compact spaces)
and the uniformity on β is pseudometrizable,
then the uniformity on C(α, β) is pseudometrizable too.
theorem ContinuousMap.tendsto_of_tendstoLocallyUniformly E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {f : C(α, β)} {ι : Type u₃}
{p : Filter ι} {F : ι → C(α, β)}, TendstoLocallyUniformly (fun i a ↦ (F i) a) (⇑f) p → Filter.Tendsto F p (nhds f)
Locally uniform convergence implies convergence in the compact-open topology.
theorem ContinuousMap.tendsto_iff_tendstoLocallyUniformly E3 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {f : C(α, β)} {ι : Type u₃}
{p : Filter ι} {F : ι → C(α, β)} [WeaklyLocallyCompactSpace α],
Filter.Tendsto F p (nhds f) ↔ TendstoLocallyUniformly (fun i a ↦ (F i) a) (⇑f) p
In a weakly locally compact space, convergence in the compact-open topology is the same as locally uniform convergence.
The right-to-left implication holds in any topological space,
see ContinuousMap.tendsto_of_tendstoLocallyUniformly.
theorem ContinuousMap.uniformContinuous_comp E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {δ : Type u_2}
[inst_2 : UniformSpace δ] (g : C(β, δ)), UniformContinuous ⇑g → UniformContinuous g.comp
theorem ContinuousMap.isUniformInducing_comp E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {δ : Type u_2}
[inst_2 : UniformSpace δ] (g : C(β, δ)), IsUniformInducing ⇑g → IsUniformInducing g.comp
theorem ContinuousMap.isUniformEmbedding_comp E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {δ : Type u_2}
[inst_2 : UniformSpace δ] (g : C(β, δ)), IsUniformEmbedding ⇑g → IsUniformEmbedding g.comp
theorem ContinuousMap.uniformContinuous_comp_left E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {γ : Type u_1}
[inst_2 : TopologicalSpace γ] (g : C(α, γ)), UniformContinuous fun f ↦ f.comp g
def UniformEquiv.arrowCongr E1 #
{α : Type u₁} →
{β : Type u₂} →
[inst : TopologicalSpace α] →
[inst_1 : UniformSpace β] →
{γ : Type u_1} →
{δ : Type u_2} →
[inst_2 : TopologicalSpace γ] → [inst_3 : UniformSpace δ] → α ≃ₜ γ → β ≃ᵤ δ → C(α, β) ≃ᵤ C(γ, δ)
Any pair of a homeomorphism X ≃ₜ Z and an isomorphism Y ≃ᵤ T of uniform spaces gives rise
to an isomorphism C(X, Y) ≃ᵤ C(Z, T).
theorem ContinuousMap.hasBasis_compactConvergenceUniformity_of_compact E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] [CompactSpace α],
(uniformity C(α, β)).HasBasis (fun V ↦ V ∈ uniformity β) fun V ↦ {fg | ∀ (x : α), (fg.1 x, fg.2 x) ∈ V}
theorem Filter.HasBasis.compactConvergenceUniformity_of_compact E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] [CompactSpace α] {ι : Sort u_1}
{p : ι → Prop} {V : ι → Set (β × β)},
(uniformity β).HasBasis p V → (uniformity C(α, β)).HasBasis p fun i ↦ {fg | ∀ (x : α), (fg.1 x, fg.2 x) ∈ V i}
theorem ContinuousMap.isUniformEmbedding_uniformFunOfFun E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] [CompactSpace α],
IsUniformEmbedding fun x ↦ UniformFun.ofFun ⇑x
theorem ContinuousMap.tendsto_iff_tendstoUniformly E3 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {f : C(α, β)} {ι : Type u₃}
{p : Filter ι} {F : ι → C(α, β)} [CompactSpace α],
Filter.Tendsto F p (nhds f) ↔ TendstoUniformly (fun i a ↦ (F i) a) (⇑f) p
Convergence in the compact-open topology is the same as uniform convergence for sequences of continuous functions on a compact space.
theorem ContinuousMap.continuous_iff_continuous_uniformFun E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] [CompactSpace α] {X : Type u_1}
[inst_3 : TopologicalSpace X] (f : X → C(α, β)), Continuous f ↔ Continuous fun x ↦ UniformFun.ofFun ⇑(f x)
When α is compact, f : X → C(α, β) is continuous if any only if it is continuous when
reinterpreted as a map f : X → α →ᵤ β.
theorem ContinuousOn.tendsto_domRestrict_iff_tendstoUniformlyOn E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {s : Set α} [CompactSpace ↑s]
{f : α → β} (hf : ContinuousOn f s) {ι : Type u_1} {p : Filter ι} {F : ι → α → β}
(hF : ∀ (i : ι), ContinuousOn (F i) s),
Filter.Tendsto (fun i ↦ { toFun := s.domRestrict (F i), continuous_toFun := ⋯ }) p
(nhds { toFun := s.domRestrict f, continuous_toFun := ⋯ }) ↔
TendstoUniformlyOn F f p s
Given functions F i, f which are continuous on a compact set s, F tends to f
uniformly on s if and only if the restrictions (as elements of C(s, β)) converge.
theorem ContinuousOn.continuous_domRestrict_iff_continuous_uniformOnFun E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {X : Type u_1}
[inst_2 : TopologicalSpace X] {f : X → α → β} {s : Set α} (hf : ∀ (x : X), ContinuousOn (f x) s) [CompactSpace ↑s],
(Continuous fun x ↦ { toFun := s.domRestrict (f x), continuous_toFun := ⋯ }) ↔
Continuous fun x ↦ (UniformOnFun.ofFun {s}) (f x)
A family f : X → α → β, each of which is continuous on a compact set s : Set α is
continuous in the topology X → α →ᵤ[{s}] β if and only if the family of continuous restrictions
X → C(s, β) is continuous.
theorem ContinuousMap.uniformSpace_eq_inf_precomp_of_cover E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {δ₁ : Type u_1} {δ₂ : Type u_2}
[inst_2 : TopologicalSpace δ₁] [inst_3 : TopologicalSpace δ₂] (φ₁ : C(δ₁, α)) (φ₂ : C(δ₂, α)),
IsProperMap ⇑φ₁ →
IsProperMap ⇑φ₂ →
Set.range ⇑φ₁ ∪ Set.range ⇑φ₂ = Set.univ →
inferInstance =
UniformSpace.comap (fun x ↦ x.comp φ₁) inferInstance ⊓ UniformSpace.comap (fun x ↦ x.comp φ₂) inferInstance
theorem ContinuousMap.uniformSpace_eq_iInf_precomp_of_cover E1 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] {ι : Type u₃} {δ : ι → Type u_1}
[inst_2 : (i : ι) → TopologicalSpace (δ i)] (φ : (i : ι) → C(δ i, α)),
(∀ (i : ι), IsProperMap ⇑(φ i)) →
(LocallyFinite fun i ↦ Set.range ⇑(φ i)) →
⋃ i, Set.range ⇑(φ i) = Set.univ → inferInstance = ⨅ i, UniformSpace.comap (fun x ↦ x.comp (φ i)) inferInstance
instance ContinuousMap.instCompleteSpaceOfCompactlyCoherentSpace E0 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] [CompleteSpace β]
[CompactlyCoherentSpace α], CompleteSpace C(α, β)
If the topology on α is generated by its restrictions to compact sets, then the space of
continuous maps C(α, β) is complete (w.r.t. the compact convergence uniformity).
Sufficient conditions on α to satisfy this condition are (weak) local compactness and sequential
compactness.
theorem ContinuousMap.isComplete_setOfPred_eqOn E2 #
∀ {α : Type u₁} {β : Type u₂} [inst : TopologicalSpace α] [inst_1 : UniformSpace β] [CompleteSpace C(α, β)] (f : α → β)
(s : Set α), IsComplete {g | Set.EqOn (⇑g) f s}
If C(α, β) is a complete space, then for any (possibly, discontinuous) function f
and any set s, the set of functions g : C(α, β) that are equal to f on s
is a complete set.
Note that this set does not have to be a closed set when β is not T0.
This lemma is useful to prove that, e.g., the space of paths between two points
and the space of homotopies between two continuous maps are complete spaces,
without assuming that the codomain is a Hausdorff space.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
ContinuousMap.isComplete_setOf_eqOn | ContinuousMap.isComplete_setOfPred_eqOn | 2026-07-09 |
ContinuousOn.continuous_restrict_iff_continuous_uniformOnFun | ContinuousOn.continuous_domRestrict_iff_continuous_uniformOnFun | 2026-07-19 |
ContinuousOn.tendsto_restrict_iff_tendstoUniformlyOn | ContinuousOn.tendsto_domRestrict_iff_tendstoUniformlyOn | 2026-07-19 |