The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V13. General topology

Mathlib.Topology.MetricSpace.Pseudo.Basic

31 declarations and 2 deprecated aliases. Mathlib docs · Source

theorem dist_le_Ico_sum_dist E1 #

∀ {α : Type u} [inst : PseudoMetricSpace α] (f : ℕ → α) {m n : ℕ},
  m ≤ n → dist (f m) (f n) ≤ ∑ i ∈ Finset.Ico m n, dist (f i) (f (i + 1))

The triangle (polygon) inequality for sequences of points; Finset.Ico version.

theorem dist_le_range_sum_dist E1 #

∀ {α : Type u} [inst : PseudoMetricSpace α] (f : ℕ → α) (n : ℕ),
  dist (f 0) (f n) ≤ ∑ i ∈ Finset.range n, dist (f i) (f (i + 1))

The triangle (polygon) inequality for sequences of points; Finset.range version.

theorem dist_le_Ico_sum_of_dist_le E1 #

∀ {α : Type u} [inst : PseudoMetricSpace α] {f : ℕ → α} {m n : ℕ},
  m ≤ n →
    ∀ {d : ℕ → ℝ},
      (∀ {k : ℕ}, m ≤ k → k < n → dist (f k) (f (k + 1)) ≤ d k) → dist (f m) (f n) ≤ ∑ i ∈ Finset.Ico m n, d i

A version of dist_le_Ico_sum_dist with each intermediate distance replaced with an upper estimate.

theorem dist_le_range_sum_of_dist_le E1 #

∀ {α : Type u} [inst : PseudoMetricSpace α] {f : ℕ → α} (n : ℕ) {d : ℕ → ℝ},
  (∀ {k : ℕ}, k < n → dist (f k) (f (k + 1)) ≤ d k) → dist (f 0) (f n) ≤ ∑ i ∈ Finset.range n, d i

A version of dist_le_range_sum_dist with each intermediate distance replaced with an upper estimate.

theorem Metric.isUniformInducing_iff E0 #

∀ {α : Type u} {β : Type v} [inst : PseudoMetricSpace α] [inst_1 : PseudoMetricSpace β] {f : α → β},
  IsUniformInducing f ↔ UniformContinuous f ∧ ∀ δ > 0, ∃ ε > 0, ∀ {a b : α}, dist (f a) (f b) < ε → dist a b < δ

theorem Metric.isUniformEmbedding_iff E0 #

∀ {α : Type u} {β : Type v} [inst : PseudoMetricSpace α] [inst_1 : PseudoMetricSpace β] {f : α → β},
  IsUniformEmbedding f ↔
    Function.Injective f ∧ UniformContinuous f ∧ ∀ δ > 0, ∃ ε > 0, ∀ {a b : α}, dist (f a) (f b) < ε → dist a b < δ

theorem Metric.controlled_of_isUniformInducing E1 #

∀ {α : Type u} {β : Type v} [inst : PseudoMetricSpace α] [inst_1 : PseudoMetricSpace β] {f : α → β},
  IsUniformInducing f →
    (∀ ε > 0, ∃ δ > 0, ∀ {a b : α}, dist a b < δ → dist (f a) (f b) < ε) ∧
      ∀ δ > 0, ∃ ε > 0, ∀ {a b : α}, dist (f a) (f b) < ε → dist a b < δ

If a map between pseudometric spaces is a uniform inducing map then the distance between f x and f y is controlled in terms of the distance between x and y.

theorem Metric.totallyBounded_iff E0 #

∀ {α : Type u} [inst : PseudoMetricSpace α] {s : Set α},
  TotallyBounded s ↔ ∀ ε > 0, ∃ t, t.Finite ∧ s ⊆ ⋃ y ∈ t, Metric.ball y ε

theorem Metric.totallyBounded_of_finite_discretization E1 #

∀ {α : Type u} [inst : PseudoMetricSpace α] {s : Set α},
  (∀ ε > 0, ∃ β x F, ∀ (x y : ↑s), F x = F y → dist ↑x ↑y < ε) → TotallyBounded s

A pseudometric space is totally bounded if one can reconstruct up to any ε>0 any element of the space from finitely many data.

theorem Metric.finite_approx_of_totallyBounded E1 #

∀ {α : Type u} [inst : PseudoMetricSpace α] {s : Set α},
  TotallyBounded s → ∀ ε > 0, ∃ t ⊆ s, t.Finite ∧ s ⊆ ⋃ y ∈ t, Metric.ball y ε

theorem Metric.tendstoUniformlyOnFilter_iff E0 #

∀ {α : Type u} {β : Type v} {ι : Type u_1} [inst : PseudoMetricSpace α] {F : ι → β → α} {f : β → α} {p : Filter ι}
  {p' : Filter β}, TendstoUniformlyOnFilter F f p p' ↔ ∀ ε > 0, ∀ᶠ (n : ι × β) in p ×ˢ p', dist (f n.2) (F n.1 n.2) < ε

Expressing uniform convergence using dist

theorem Metric.tendstoLocallyUniformlyOn_iff E0 #

∀ {α : Type u} {β : Type v} {ι : Type u_1} [inst : PseudoMetricSpace α] [inst_1 : TopologicalSpace β] {F : ι → β → α}
  {f : β → α} {p : Filter ι} {s : Set β},
  TendstoLocallyUniformlyOn F f p s ↔
    ∀ ε > 0, ∀ x ∈ s, ∃ t ∈ nhdsWithin x s, ∀ᶠ (n : ι) in p, ∀ y ∈ t, dist (f y) (F n y) < ε

Expressing locally uniform convergence on a set using dist.

theorem Metric.tendstoUniformlyOn_iff E0 #

∀ {α : Type u} {β : Type v} {ι : Type u_1} [inst : PseudoMetricSpace α] {F : ι → β → α} {f : β → α} {p : Filter ι}
  {s : Set β}, TendstoUniformlyOn F f p s ↔ ∀ ε > 0, ∀ᶠ (n : ι) in p, ∀ x ∈ s, dist (f x) (F n x) < ε

Expressing uniform convergence on a set using dist.

theorem Metric.tendstoLocallyUniformly_iff E0 #

∀ {α : Type u} {β : Type v} {ι : Type u_1} [inst : PseudoMetricSpace α] [inst_1 : TopologicalSpace β] {F : ι → β → α}
  {f : β → α} {p : Filter ι},
  TendstoLocallyUniformly F f p ↔ ∀ ε > 0, ∀ (x : β), ∃ t ∈ nhds x, ∀ᶠ (n : ι) in p, ∀ y ∈ t, dist (f y) (F n y) < ε

Expressing locally uniform convergence using dist.

theorem Metric.tendstoUniformly_iff E0 #

∀ {α : Type u} {β : Type v} {ι : Type u_1} [inst : PseudoMetricSpace α] {F : ι → β → α} {f : β → α} {p : Filter ι},
  TendstoUniformly F f p ↔ ∀ ε > 0, ∀ᶠ (n : ι) in p, ∀ (x : β), dist (f x) (F n x) < ε

Expressing uniform convergence using dist.

theorem Metric.cauchy_iff E0 #

∀ {α : Type u} [inst : PseudoMetricSpace α] {f : Filter α},
  Cauchy f ↔ f.NeBot ∧ ∀ ε > 0, ∃ t ∈ f, ∀ x ∈ t, ∀ y ∈ t, dist x y < ε

theorem Metric.exists_ball_inter_eq_singleton_of_mem_discrete E1 #

∀ {α : Type u} [inst : PseudoMetricSpace α] {s : Set α},
  IsDiscrete s → ∀ {x : α}, x ∈ s → ∃ ε > 0, Metric.ball x ε ∩ s = {x}

Given a point x in a discrete subset s of a pseudometric space, there is an open ball centered at x and intersecting s only at x.

theorem Metric.exists_closedBall_inter_eq_singleton_of_discrete E1 #

∀ {α : Type u} [inst : PseudoMetricSpace α] {s : Set α},
  IsDiscrete s → ∀ {x : α}, x ∈ s → ∃ ε > 0, Metric.closedBall x ε ∩ s = {x}

Given a point x in a discrete subset s of a pseudometric space, there is a closed ball of positive radius centered at x and intersecting s only at x.

theorem Metric.inseparable_iff_nnDist E1 #

∀ {α : Type u} [inst : PseudoMetricSpace α] {x y : α}, Inseparable x y ↔ nnDist x y = 0

theorem Inseparable.nnDist_eq_zero E1 #

∀ {α : Type u} [inst : PseudoMetricSpace α] {x y : α}, Inseparable x y → nnDist x y = 0

Alias of the forward direction of Metric.inseparable_iff_nnDist.

theorem Metric.inseparable_iff E0 #

∀ {α : Type u} [inst : PseudoMetricSpace α] {x y : α}, Inseparable x y ↔ dist x y = 0

theorem Inseparable.dist_eq_zero E1 #

∀ {α : Type u} [inst : PseudoMetricSpace α] {x y : α}, Inseparable x y → dist x y = 0

Alias of the forward direction of Metric.inseparable_iff.

theorem tendsto_nhds_unique_dist E1 #

∀ {α : Type u} {β : Type v} [inst : PseudoMetricSpace α] {f : β → α} {l : Filter β} {x y : α} [l.NeBot],
  Filter.Tendsto f l (nhds x) → Filter.Tendsto f l (nhds y) → dist x y = 0

A weaker version of tendsto_nhds_unique for PseudoMetricSpace.

theorem cauchySeq_iff_tendsto_dist_atTop_0 E1 #

∀ {α : Type u} {β : Type v} [inst : PseudoMetricSpace α] [Nonempty β] [inst_2 : SemilatticeSup β] {u : β → α},
  CauchySeq u ↔ Filter.Tendsto (fun n ↦ dist (u n.1) (u n.2)) Filter.atTop (nhds 0)

theorem Topology.IsInducing.isSeparable_preimage E1 #

∀ {β : Type v} {α : Type u_2} [inst : TopologicalSpace α] [TopologicalSpace.PseudoMetrizableSpace α] {f : β → α}
  [inst_2 : TopologicalSpace β],
  Topology.IsInducing f → ∀ {s : Set α}, TopologicalSpace.IsSeparable s → TopologicalSpace.IsSeparable (f ⁻¹' s)

The preimage of a separable set by an inducing map is separable.

theorem Topology.IsEmbedding.isSeparable_preimage E1 #

∀ {β : Type v} {α : Type u_2} [inst : TopologicalSpace α] [TopologicalSpace.PseudoMetrizableSpace α] {f : β → α}
  [inst_2 : TopologicalSpace β],
  Topology.IsEmbedding f → ∀ {s : Set α}, TopologicalSpace.IsSeparable s → TopologicalSpace.IsSeparable (f ⁻¹' s)

theorem Metric.secondCountable_of_almost_dense_set E1 #

∀ {α : Type u} [inst : PseudoMetricSpace α],
  (∀ ε > 0, ∃ s, s.Countable ∧ ∀ (x : α), ∃ y ∈ s, dist x y ≤ ε) → SecondCountableTopology α

A pseudometric space is second countable if, for every ε > 0, there is a countable set which is ε-dense.

theorem finite_cover_balls_of_compact E1 #

∀ {X : Type u_2} [inst : PseudoMetricSpace X] {s : Set X},
  IsCompact s → ∀ {e : ℝ}, 0 < e → ∃ t ⊆ s, t.Finite ∧ s ⊆ ⋃ x ∈ t, Metric.ball x e

Any compact set in a pseudometric space can be covered by finitely many balls of a given positive radius

theorem IsCompact.finite_cover_balls E1 #

∀ {X : Type u_2} [inst : PseudoMetricSpace X] {s : Set X},
  IsCompact s → ∀ {e : ℝ}, 0 < e → ∃ t ⊆ s, t.Finite ∧ s ⊆ ⋃ x ∈ t, Metric.ball x e

Alias of finite_cover_balls_of_compact.


Any compact set in a pseudometric space can be covered by finitely many balls of a given positive radius

theorem exists_finite_cover_balls_of_isCompact_closure E1 #

∀ {X : Type u_2} [inst : PseudoMetricSpace X] {s : Set X} {ε : ℝ},
  IsCompact (closure s) → 0 < ε → ∃ t ⊆ s, t.Finite ∧ s ⊆ ⋃ x ∈ t, Metric.ball x ε

Any relatively compact set in a pseudometric space can be covered by finitely many balls of a given positive radius.

theorem ContinuousOn.isSeparable_image E1 #

∀ {β : Type v} {α : Type u_2} [inst : TopologicalSpace α] [TopologicalSpace.PseudoMetrizableSpace α]
  [inst_2 : TopologicalSpace β] {f : α → β} {s : Set α},
  ContinuousOn f s → TopologicalSpace.IsSeparable s → TopologicalSpace.IsSeparable (f '' s)

If a map is continuous on a separable set s, then the image of s is also separable.

Deprecated aliases

NameNew nameSince
Inseparable.nndist_eq_zeroInseparable.nnDist_eq_zero2026-11-07
Metric.inseparable_iff_nndistMetric.inseparable_iff_nnDist2026-11-07