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.EMetricSpace.Defs

178 declarations and 2 deprecated aliases. Mathlib docs · Source

Extended metric spaces

This file is devoted to the definition and study of EMetricSpaces, i.e., metric spaces in which the distance is allowed to take the value ∞. This extended distance is called edist, and takes values in ℝ≥0∞.

Many definitions and theorems expected on emetric spaces are already introduced on uniform spaces and topological spaces. For example: open and closed sets, compactness, completeness, continuity and uniform continuity.

The class EMetricSpace therefore extends UniformSpace (and TopologicalSpace).

Since a lot of elementary properties don't require eq_of_edist_eq_zero we start setting up the theory of PseudoEMetricSpace, where we don't require edist x y = 0 → x = y and we specialize to EMetricSpace at the end.

Additive, Multiplicative

The distance on those type synonyms is inherited without change.

Order dual

The distance on this type synonym is inherited without change.

def PseudoEMetricSpace.ctorIdx E1 #

{α : Type u} → PseudoEMetricSpace α → ℕ

def EMetricSpace.ctorIdx E1 #

{α : Type u} → EMetricSpace α → ℕ

def WeakEMetricSpace.ctorIdx E1 #

{α : Type u} → {inst : TopologicalSpace α} → WeakEMetricSpace α → ℕ

def EDist.ctorIdx E1 #

{α : Type u_2} → EDist α → ℕ

def WeakPseudoEMetricSpace.ctorIdx E1 #

{α : Type u} → {τ : TopologicalSpace α} → WeakPseudoEMetricSpace α → ℕ

theorem uniformity_dist_of_mem_uniformity E1 #

∀ {α : Type u} {β : Type v} [inst : LT β] {U : Filter (α × α)} (z : β) (D : α → α → β),
  (∀ (s : Set (α × α)), s ∈ U ↔ ∃ ε > z, ∀ {a b : α}, D a b < ε → (a, b) ∈ s) →
    U = ⨅ ε, ⨅ (_ : ε > z), Filter.principal {p | D p.1 p.2 < ε}

Characterizing uniformities associated to a (generalized) distance function D in terms of the elements of the uniformity.

class EDist E1 #

Type u_2 → Type u_2

EDist α means that α is equipped with an extended distance.

theorem EDist.ext E1 #

∀ {α : Type u_2} {x y : EDist α}, edist = edist → x = y

theorem EDist.ext_iff E0 #

∀ {α : Type u_2} {x y : EDist α}, x = y ↔ edist = edist

ctor EDist.mk E0 #

{α : Type u_2} → (α → α → ENNReal) → EDist α

abbrev EDist.edist E1 #

{α : Type u_2} → [self : EDist α] → α → α → ENNReal

Extended distance between two points

def Metric.eball E1 #

{α : Type u} → [EDist α] → α → ENNReal → Set α

Metric.eball x ε is the set of all points y with edist y x < ε

theorem Metric.mem_eball E0 #

∀ {α : Type u} [inst : EDist α] {x y : α} {ε : ENNReal}, y ∈ Metric.eball x ε ↔ edist y x < ε

theorem Metric.eball_subset_eball E1 #

∀ {α : Type u} {x : α} {ε₁ ε₂ : ENNReal} [inst : EDist α], ε₁ ≤ ε₂ → Metric.eball x ε₁ ⊆ Metric.eball x ε₂

def Metric.boundedComponent E1 #

{α : Type u} → [EDist α] → α → Set α

The points at finite distance from a.

theorem Metric.mem_boundedComponent_iff E0 #

∀ {α : Type u} [inst : EDist α] {a x : α}, x ∈ Metric.boundedComponent a ↔ edist a x ≠ ⊤

def uniformSpaceOfEDist E1 #

{α : Type u} →
  (edist : α → α → ENNReal) →
    (∀ (x : α), edist x x = 0) →
      (∀ (x y : α), edist x y = edist y x) → (∀ (x y z : α), edist x z ≤ edist x y + edist y z) → UniformSpace α

Creating a uniform space from an extended distance.

def uniformSpaceOfEDistOfHasBasis E1 #

{α : Type u} →
  [inst : TopologicalSpace α] →
    (edist : α → α → ENNReal) →
      (∀ (x : α), edist x x = 0) →
        (∀ (x y : α), edist x y = edist y x) →
          (∀ (x y z : α), edist x z ≤ edist x y + edist y z) →
            (∀ (x : α), (nhds x).HasBasis (fun c ↦ 0 < c) fun c ↦ {y | edist x y < c}) → UniformSpace α

Creating a uniform space from an extended distance. We assume that there is a preexisting topology, for which the neighborhoods can be expressed using the distance, and we make sure that the uniform space structure we construct has a topology which is defeq to the original one.

class PseudoEMetricSpace E1 #

Type u → Type u

A pseudo extended metric space is a type endowed with a ℝ≥0∞-valued distance edist satisfying reflexivity edist x x = 0, commutativity edist x y = edist y x, and the triangle inequality edist x z ≤ edist x y + edist y z.

Note that we do not require edist x y = 0 → x = y. See extended metric spaces (EMetricSpace) for the similar class with that stronger assumption.

Any pseudo extended metric space is a topological space and a uniform space (see TopologicalSpace, UniformSpace), where the topology and uniformity come from the metric. Note that a T1 pseudo extended metric space is just an extended metric space.

We make the uniformity/topology part of the data instead of deriving it from the metric. This e.g. ensures that we do not get a diamond when doing [PseudoEMetricSpace α] [PseudoEMetricSpace β] : TopologicalSpace (α × β): The product metric and product topology agree, but not definitionally so. See Note [forgetful inheritance].

ctor PseudoEMetricSpace.mk E0 #

{α : Type u} →
  [toEDist : EDist α] →
    (∀ (x : α), edist x x = 0) →
      (∀ (x y : α), edist x y = edist y x) →
        (∀ (x y z : α), edist x z ≤ edist x y + edist y z) →
          (toUniformSpace : UniformSpace α) →
            autoParam (uniformity α = ⨅ ε, ⨅ (_ : ε > 0), Filter.principal {p | edist p.1 p.2 < ε})
                PseudoEMetricSpace.uniformity_edist._autoParam →
              PseudoEMetricSpace α

instance PseudoEMetricSpace.toEDist E0 #

{α : Type u} → [self : PseudoEMetricSpace α] → EDist α

theorem PseudoEMetricSpace.edist_self E1 #

∀ {α : Type u} [self : PseudoEMetricSpace α] (x : α), edist x x = 0

theorem PseudoEMetricSpace.edist_comm E1 #

∀ {α : Type u} [self : PseudoEMetricSpace α] (x y : α), edist x y = edist y x

theorem PseudoEMetricSpace.edist_triangle E1 #

∀ {α : Type u} [self : PseudoEMetricSpace α] (x y z : α), edist x z ≤ edist x y + edist y z

instance PseudoEMetricSpace.toUniformSpace E0 #

{α : Type u} → [self : PseudoEMetricSpace α] → UniformSpace α

theorem PseudoEMetricSpace.uniformity_edist E1 #

∀ {α : Type u} [self : PseudoEMetricSpace α],
  uniformity α = ⨅ ε, ⨅ (_ : ε > 0), Filter.principal {p | edist p.1 p.2 < ε}

theorem PseudoEMetricSpace.ext E1 #

∀ {α : Type u_2} {m m' : PseudoEMetricSpace α}, m.toEDist = m'.toEDist → m = m'

Two pseudo emetric space structures with the same edistance function coincide.

theorem PseudoEMetricSpace.ext_iff E0 #

∀ {α : Type u_2} {m m' : PseudoEMetricSpace α}, m = m' ↔ m.toEDist = m'.toEDist

theorem uniformity_pseudoedist E1 #

∀ {α : Type u} [inst : PseudoEMetricSpace α],
  uniformity α = ⨅ ε, ⨅ (_ : ε > 0), Filter.principal {p | edist p.1 p.2 < ε}

Reformulation of the uniform structure in terms of the extended distance

theorem uniformSpace_edist E1 #

∀ {α : Type u} [inst : PseudoEMetricSpace α], PseudoEMetricSpace.toUniformSpace = uniformSpaceOfEDist edist ⋯ ⋯ ⋯

theorem uniformity_basis_edist E1 #

∀ {α : Type u} [inst : PseudoEMetricSpace α], (uniformity α).HasBasis (fun ε ↦ 0 < ε) fun ε ↦ {p | edist p.1 p.2 < ε}

theorem Metric.nhds_basis_eball E1 #

∀ {α : Type u} {x : α} [inst : PseudoEMetricSpace α], (nhds x).HasBasis (fun ε ↦ 0 < ε) (Metric.eball x)

theorem mem_uniformity_edist E0 #

∀ {α : Type u} [inst : PseudoEMetricSpace α] {s : Set (α × α)},
  s ∈ uniformity α ↔ ∃ ε > 0, ∀ {a b : α}, edist a b < ε → (a, b) ∈ s

Characterization of the elements of the uniformity in terms of the extended distance

theorem EMetric.nhds_eq E0 #

∀ {α : Type u} {x : α} [inst : PseudoEMetricSpace α], nhds x = ⨅ ε, ⨅ (_ : ε > 0), Filter.principal (Metric.eball x ε)

theorem EMetric.mem_nhds_iff E0 #

∀ {α : Type u} {x : α} {s : Set α} [inst : PseudoEMetricSpace α], s ∈ nhds x ↔ ∃ ε > 0, Metric.eball x ε ⊆ s

theorem Metric.nhdsWithin_basis_eball E1 #

∀ {α : Type u} {x : α} {s : Set α} [inst : PseudoEMetricSpace α],
  (nhdsWithin x s).HasBasis (fun ε ↦ 0 < ε) fun ε ↦ Metric.eball x ε ∩ s

theorem EMetric.mem_nhdsWithin_iff E0 #

∀ {α : Type u} {x : α} {s t : Set α} [inst : PseudoEMetricSpace α],
  s ∈ nhdsWithin x t ↔ ∃ ε > 0, Metric.eball x ε ∩ t ⊆ s

theorem EMetric.isOpen_iff E0 #

∀ {α : Type u} {s : Set α} [inst : PseudoEMetricSpace α], IsOpen s ↔ ∀ x ∈ s, ∃ ε > 0, Metric.eball x ε ⊆ s

theorem Metric.isOpen_eball E0 #

∀ {α : Type u} {x : α} [inst : PseudoEMetricSpace α] {r : ENNReal}, IsOpen (Metric.eball x r)

class WeakPseudoEMetricSpace E1 #

(α : Type u) → [τ : TopologicalSpace α] → Type u

A WeakPseudoEMetricSpace is a topological space endowed with a ℝ≥0∞-value distance edist which is almost an extended pseudometric space: the edist is reflexive, commutative and satisfies the triangle inequality, but the topology on α need not equal the topology induced by the edist. (It must be at least as fine, and agree with it on eballs of finite radius.)

This generalises both pseudo extended metric spaces and ℝ≥0∞ (which have an extended distance, which does not induce the order topology there).

ctor WeakPseudoEMetricSpace.mk E0 #

{α : Type u} →
  [τ : TopologicalSpace α] →
    [toEDist : EDist α] →
      (edist_self : ∀ (x : α), edist x x = 0) →
        (edist_comm : ∀ (x y : α), edist x y = edist y x) →
          (edist_triangle : ∀ (x y z : α), edist x z ≤ edist x y + edist y z) →
            (uniformSpaceOfEDist edist edist_self edist_comm edist_triangle).toTopologicalSpace ≤ τ →
              (∀ (x : α) (r : ENNReal), IsOpen (Subtype.val ⁻¹' Metric.eball x r)) → WeakPseudoEMetricSpace α

instance WeakPseudoEMetricSpace.toEDist E0 #

{α : Type u} → {τ : TopologicalSpace α} → [self : WeakPseudoEMetricSpace α] → EDist α

theorem WeakPseudoEMetricSpace.edist_self E0 #

∀ {α : Type u} {τ : TopologicalSpace α} [self : WeakPseudoEMetricSpace α] (x : α), edist x x = 0

theorem WeakPseudoEMetricSpace.edist_comm E1 #

∀ {α : Type u} {τ : TopologicalSpace α} [self : WeakPseudoEMetricSpace α] (x y : α), edist x y = edist y x

theorem WeakPseudoEMetricSpace.edist_triangle E1 #

∀ {α : Type u} {τ : TopologicalSpace α} [self : WeakPseudoEMetricSpace α] (x y z : α), edist x z ≤ edist x y + edist y z

theorem WeakPseudoEMetricSpace.topology_le E1 #

∀ {α : Type u} {τ : TopologicalSpace α} [self : WeakPseudoEMetricSpace α],
  (uniformSpaceOfEDist edist ⋯ ⋯ ⋯).toTopologicalSpace ≤ τ

The topology on α is at most as fine as the topology generated by the edist.

theorem WeakPseudoEMetricSpace.topology_eq_on_restrict E1 #

∀ {α : Type u} {τ : TopologicalSpace α} [self : WeakPseudoEMetricSpace α] (x : α) (r : ENNReal),
  IsOpen (Subtype.val ⁻¹' Metric.eball x r)

The ambient topology on α matches the edist topology on eballs.

theorem WeakPseudoEMetricSpace.ext E1 #

∀ {α : Type u_2} [inst : TopologicalSpace α] {m m' : WeakPseudoEMetricSpace α}, m.toEDist = m'.toEDist → m = m'

theorem WeakPseudoEMetricSpace.ext_iff E0 #

∀ {α : Type u_2} [inst : TopologicalSpace α] {m m' : WeakPseudoEMetricSpace α}, m = m' ↔ m.toEDist = m'.toEDist

instance PseudoEMetricSpace.toWeakPseudoEMetricSpace E0 #

(α : Type u) → [inst : PseudoEMetricSpace α] → WeakPseudoEMetricSpace α

Every PseudoEMetricSpace has a WeakPseudoEMetricSpace structure by using the topology induced by edist.

theorem edist_triangle_left E2 #

∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] (x y z : α),
  edist x y ≤ edist z x + edist z y

Triangle inequality for the extended distance

theorem edist_triangle_right E1 #

∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] (x y z : α),
  edist x y ≤ edist x z + edist y z

theorem edist_congr_right E1 #

∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {x y z : α},
  edist x y = 0 → edist x z = edist y z

theorem edist_congr_left E1 #

∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {x y z : α},
  edist x y = 0 → edist z x = edist z y

theorem edist_congr E1 #

∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {w x y z : α},
  edist w x = 0 → edist y z = 0 → edist w y = edist x z

theorem edist_triangle4 E1 #

∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] (x y z t : α),
  edist x t ≤ edist x y + edist y z + edist z t

abbrev PseudoEMetricSpace.ofEDist E1 #

{α : Type u} →
  (edist : α → α → ENNReal) →
    (∀ (x : α), edist x x = 0) →
      (∀ (x y : α), edist x y = edist y x) → (∀ (x y z : α), edist x z ≤ edist x y + edist y z) → PseudoEMetricSpace α

Make a PseudoEMetricSpace from a metric. Warning: the uniformity and topology included herein are the ones generated by the metric. If the type has a pre-existing topology or uniformity, PseudoEMetricSpace.ofEDistOfTopology should be used instead.

theorem EMetric.toUniformSpace_ofEDist E1 #

∀ {α : Type u} [inst : EDist α] (edist_self : ∀ (x : α), edist x x = 0)
  (edist_comm : ∀ (x y : α), edist x y = edist y x) (edist_triangle : ∀ (x y z : α), edist x z ≤ edist x y + edist y z),
  PseudoEMetricSpace.toUniformSpace = uniformSpaceOfEDist edist edist_self edist_comm edist_triangle

theorem EMetric.mk_uniformity_basis E1 #

∀ {α : Type u} [inst : PseudoEMetricSpace α] {β : Type u_2} {p : β → Prop} {f : β → ENNReal},
  (∀ (x : β), p x → 0 < f x) →
    (∀ (ε : ENNReal), 0 < ε → ∃ x, p x ∧ f x ≤ ε) → (uniformity α).HasBasis p fun x ↦ {p | edist p.1 p.2 < f x}

Given f : β → ℝ≥0∞, if f sends {i | p i} to a set of positive numbers accumulating to zero, then f i-neighborhoods of the diagonal form a basis of 𝓤 α.

For specific bases see uniformity_basis_edist, uniformity_basis_edist', uniformity_basis_edist_nnreal, and uniformity_basis_edist_inv_nat.

theorem EMetric.mk_uniformity_basis_le E1 #

∀ {α : Type u} [inst : PseudoEMetricSpace α] {β : Type u_2} {p : β → Prop} {f : β → ENNReal},
  (∀ (x : β), p x → 0 < f x) →
    (∀ (ε : ENNReal), 0 < ε → ∃ x, p x ∧ f x ≤ ε) → (uniformity α).HasBasis p fun x ↦ {p | edist p.1 p.2 ≤ f x}

Given f : β → ℝ≥0∞, if f sends {i | p i} to a set of positive numbers accumulating to zero, then closed f i-neighborhoods of the diagonal form a basis of 𝓤 α.

For specific bases see uniformity_basis_edist_le and uniformity_basis_edist_le'.

theorem uniformity_basis_edist_le E1 #

∀ {α : Type u} [inst : PseudoEMetricSpace α], (uniformity α).HasBasis (fun ε ↦ 0 < ε) fun ε ↦ {p | edist p.1 p.2 ≤ ε}

theorem uniformity_basis_edist' E1 #

∀ {α : Type u} [inst : PseudoEMetricSpace α] (ε' : ENNReal),
  0 < ε' → (uniformity α).HasBasis (fun ε ↦ ε ∈ Set.Ioo 0 ε') fun ε ↦ {p | edist p.1 p.2 < ε}

theorem uniformity_basis_edist_le' E1 #

∀ {α : Type u} [inst : PseudoEMetricSpace α] (ε' : ENNReal),
  0 < ε' → (uniformity α).HasBasis (fun ε ↦ ε ∈ Set.Ioo 0 ε') fun ε ↦ {p | edist p.1 p.2 ≤ ε}

theorem uniformity_basis_edist_nnreal E1 #

∀ {α : Type u} [inst : PseudoEMetricSpace α], (uniformity α).HasBasis (fun ε ↦ 0 < ε) fun ε ↦ {p | edist p.1 p.2 < ↑ε}

theorem uniformity_basis_edist_nnreal_le E1 #

∀ {α : Type u} [inst : PseudoEMetricSpace α], (uniformity α).HasBasis (fun ε ↦ 0 < ε) fun ε ↦ {p | edist p.1 p.2 ≤ ↑ε}

theorem uniformity_basis_edist_inv_nat E1 #

∀ {α : Type u} [inst : PseudoEMetricSpace α],
  (uniformity α).HasBasis (fun x ↦ True) fun n ↦ {p | edist p.1 p.2 < (↑n)⁻¹}

theorem uniformity_basis_edist_inv_two_pow E1 #

∀ {α : Type u} [inst : PseudoEMetricSpace α],
  (uniformity α).HasBasis (fun x ↦ True) fun n ↦ {p | edist p.1 p.2 < 2⁻¹ ^ n}

theorem edist_mem_uniformity E1 #

∀ {α : Type u} [inst : PseudoEMetricSpace α] {ε : ENNReal}, 0 < ε → {p | edist p.1 p.2 < ε} ∈ uniformity α

Fixed size neighborhoods of the diagonal belong to the uniform structure

instance EMetric.instIsCountablyGeneratedUniformity E0 #

∀ {α : Type u} [inst : PseudoEMetricSpace α], (uniformity α).IsCountablyGenerated

theorem EMetric.uniformContinuousOn_iff E0 #

∀ {α : Type u} {β : Type v} [inst : PseudoEMetricSpace α] [inst_1 : PseudoEMetricSpace β] {f : α → β} {s : Set α},
  UniformContinuousOn f s ↔
    ∀ ε > 0, ∃ δ > 0, ∀ {a : α}, a ∈ s → ∀ {b : α}, b ∈ s → edist a b < δ → edist (f a) (f b) < ε

ε-δ characterization of uniform continuity on a set for pseudoemetric spaces

theorem EMetric.uniformContinuous_iff E0 #

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

ε-δ characterization of uniform continuity on pseudoemetric spaces

theorem EMetric.uniformContinuousOn_iff_le E1 #

∀ {α : Type u} {β : Type v} [inst : PseudoEMetricSpace α] [inst_1 : PseudoEMetricSpace β] {f : α → β} {s : Set α},
  UniformContinuousOn f s ↔ ∀ ε > 0, ∃ δ > 0, ∀ a ∈ s, ∀ b ∈ s, edist a b ≤ δ → edist (f a) (f b) ≤ ε

Version of EMetric.uniformContinuousOn_iff with non-strict inequalities.

theorem EMetric.uniformContinuous_iff_le E1 #

∀ {α : Type u} {β : Type v} [inst : PseudoEMetricSpace α] [inst_1 : PseudoEMetricSpace β] {f : α → β},
  UniformContinuous f ↔ ∀ ε > 0, ∃ δ > 0, ∀ ⦃a b : α⦄, edist a b ≤ δ → edist (f a) (f b) ≤ ε

Version of EMetric.uniformContinuous_iff with non-strict inequalities.

abbrev PseudoEMetricSpace.replaceUniformity E1 #

{α : Type u_2} → [U : UniformSpace α] → (m : PseudoEMetricSpace α) → uniformity α = uniformity α → PseudoEMetricSpace α

Auxiliary function to replace the uniformity on a pseudoemetric space with a uniformity which is equal to the original one, but maybe not defeq. This is useful if one wants to construct a pseudoemetric space with a specified uniformity. See Note [forgetful inheritance] explaining why having definitionally the right uniformity is often important. See note [reducible non-instances].

abbrev PseudoEMetricSpace.induced E1 #

{α : Type u_2} → {β : Type u_3} → (α → β) → PseudoEMetricSpace β → PseudoEMetricSpace α

The extended pseudometric induced by a function taking values in a pseudoemetric space. See note [reducible non-instances].

abbrev WeakPseudoEMetricSpace.IsInducing E1 #

{α : Type u_2} →
  {β : Type u_3} →
    [e : TopologicalSpace α] →
      [n : TopologicalSpace β] →
        {f : α → β} → Topology.IsInducing f → WeakPseudoEMetricSpace β → WeakPseudoEMetricSpace α

WeakPseudoEMetricSpace can be induced backwards.

instance instWeakPseudoEMetricSpaceSubtype E0 #

{α : Type u_2} →
  {p : α → Prop} → [inst : TopologicalSpace α] → [WeakPseudoEMetricSpace α] → WeakPseudoEMetricSpace (Subtype p)

Weak pseudo-emetric space instance on subsets of weak pseudo-emetric spaces

instance instPseudoEMetricSpaceSubtype E0 #

{α : Type u_2} → {p : α → Prop} → [PseudoEMetricSpace α] → PseudoEMetricSpace (Subtype p)

Pseudoemetric space instance on subsets of pseudoemetric spaces

theorem Subtype.edist_eq E0 #

∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {p : α → Prop} (x y : Subtype p),
  edist x y = edist ↑x ↑y

The extended pseudodistance on a subset of a pseudoemetric space is the restriction of the original pseudodistance, by definition.

theorem Subtype.edist_mk_mk E0 #

∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {p : α → Prop} {x y : α} (hx : p x)
  (hy : p y), edist ⟨x, hx⟩ ⟨y, hy⟩ = edist x y

The extended pseudodistance on a subtype of a pseudoemetric space is the restriction of the original pseudodistance, by definition.

def PseudoEMetricSpace.ofEDistOfTopology E1 #

{α : Type u_2} →
  [inst : TopologicalSpace α] →
    (d : α → α → ENNReal) →
      (∀ (x : α), d x x = 0) →
        (∀ (x y : α), d x y = d y x) →
          (∀ (x y z : α), d x z ≤ d x y + d y z) →
            (∀ (x : α), (nhds x).HasBasis (fun c ↦ 0 < c) fun c ↦ {y | d x y < c}) → PseudoEMetricSpace α

Consider an extended distance on a topological space, for which the neighborhoods can be expressed in terms of the distance. Then we define the emetric space structure associated to this distance, with a topology defeq to the initial one.

instance instPseudoEMetricSpaceULift E0 #

{α : Type u_2} → [PseudoEMetricSpace α] → PseudoEMetricSpace (ULift.{u_3, u_2} α)

theorem ULift.edist_eq E0 #

∀ {α : Type u_2} [inst : PseudoEMetricSpace α] (x y : ULift.{u_3, u_2} α), edist x y = edist x.down y.down

theorem ULift.edist_up_up E0 #

∀ {α : Type u_2} [inst : PseudoEMetricSpace α] (x y : α), edist { down := x } { down := y } = edist x y

instance Prod.pseudoEMetricSpaceMax E0 #

{β : Type v} → {α : Type u_2} → [PseudoEMetricSpace α] → [PseudoEMetricSpace β] → PseudoEMetricSpace (α × β)

The product of two pseudoemetric spaces, with the max distance, is an extended pseudometric spaces. We make sure that the uniform structure thus constructed is the one corresponding to the product of uniform spaces, to avoid diamond problems.

theorem Prod.edist_eq E0 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] [inst_1 : PseudoEMetricSpace β] (x y : α × β),
  edist x y = max (edist x.1 y.1) (edist x.2 y.2)

theorem Metric.mem_eball' E0 #

∀ {α : Type u_3} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {x y : α} {ε : ENNReal},
  y ∈ Metric.eball x ε ↔ edist x y < ε

def Metric.closedEBall E1 #

{α : Type u_4} → [h : EDist α] → α → ENNReal → Set α

Metric.closedEBall x ε is the set of all points y with edist y x ≤ ε

theorem Metric.mem_closedEBall E0 #

∀ {ε : ENNReal} {α : Type u_4} [inst : EDist α] {x y : α}, y ∈ Metric.closedEBall x ε ↔ edist y x ≤ ε

theorem Metric.mem_closedEBall' E0 #

∀ {α : Type u_3} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {x y : α} {ε : ENNReal},
  y ∈ Metric.closedEBall x ε ↔ edist x y ≤ ε

theorem Metric.closedEBall_top E0 #

∀ {α : Type u_4} [inst : EDist α] (x : α), Metric.closedEBall x ⊤ = Set.univ

theorem Metric.eball_subset_closedEBall E1 #

∀ {ε : ENNReal} {α : Type u_4} [inst : EDist α] {x : α}, Metric.eball x ε ⊆ Metric.closedEBall x ε

theorem Metric.pos_of_mem_eball E1 #

∀ {ε : ENNReal} {α : Type u_4} [inst : EDist α] {x y : α}, y ∈ Metric.eball x ε → 0 < ε

theorem Metric.mem_eball_self E0 #

∀ {α : Type u_3} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {x : α} {ε : ENNReal},
  0 < ε → x ∈ Metric.eball x ε

theorem Metric.mem_closedEBall_self E0 #

∀ {α : Type u_3} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {x : α} {ε : ENNReal},
  x ∈ Metric.closedEBall x ε

theorem Metric.mem_eball_comm E0 #

∀ {α : Type u_3} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {x y : α} {ε : ENNReal},
  x ∈ Metric.eball y ε ↔ y ∈ Metric.eball x ε

theorem Metric.mem_closedEBall_comm E0 #

∀ {α : Type u_3} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {x y : α} {ε : ENNReal},
  x ∈ Metric.closedEBall y ε ↔ y ∈ Metric.closedEBall x ε

theorem Metric.closedEBall_subset_closedEBall E1 #

∀ {ε₁ ε₂ : ENNReal} {α : Type u_4} [inst : EDist α] {x : α}, ε₁ ≤ ε₂ → Metric.closedEBall x ε₁ ⊆ Metric.closedEBall x ε₂

theorem Metric.eball_disjoint E1 #

∀ {α : Type u_3} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {x y : α} {ε₁ ε₂ : ENNReal},
  ε₁ + ε₂ ≤ edist x y → Disjoint (Metric.eball x ε₁) (Metric.eball y ε₂)

theorem Metric.eball_subset E1 #

∀ {α : Type u_3} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {x y : α} {ε₁ ε₂ : ENNReal},
  edist x y + ε₁ ≤ ε₂ → edist x y ≠ ⊤ → Metric.eball x ε₁ ⊆ Metric.eball y ε₂

theorem Metric.exists_eball_subset_eball E1 #

∀ {α : Type u_3} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {x y : α} {ε : ENNReal},
  y ∈ Metric.eball x ε → ∃ ε' > 0, Metric.eball y ε' ⊆ Metric.eball x ε

theorem Metric.eball_eq_empty_iff E0 #

∀ {α : Type u_3} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {x : α} {ε : ENNReal},
  Metric.eball x ε = ∅ ↔ ε = 0

theorem Metric.ordConnected_setOfPred_closedEBall_subset E1 #

∀ {α : Type u_3} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] (x : α) (s : Set α),
  {r | Metric.closedEBall x r ⊆ s}.OrdConnected

theorem Metric.ordConnected_setOfPred_eball_subset E1 #

∀ {α : Type u_3} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] (x : α) (s : Set α),
  {r | Metric.eball x r ⊆ s}.OrdConnected

def Metric.edistLtTopSetoid E1 #

{α : Type u_3} → [inst : TopologicalSpace α] → [WeakPseudoEMetricSpace α] → Setoid α

Relation “two points are at a finite edistance” is an equivalence relation.

theorem Metric.boundedComponent_eq E0 #

∀ {α : Type u_3} [inst : TopologicalSpace α] [inst_1 : WeakPseudoEMetricSpace α] {a b : α},
  b ∈ Metric.boundedComponent a → Metric.boundedComponent a = Metric.boundedComponent b

theorem Metric.eball_zero E0 #

∀ {α : Type u_4} [inst : EDist α] {x : α}, Metric.eball x 0 = ∅

theorem Metric.nhds_basis_closedEBall E1 #

∀ {α : Type u_4} [inst : PseudoEMetricSpace α] {x : α}, (nhds x).HasBasis (fun ε ↦ 0 < ε) (Metric.closedEBall x)

theorem Metric.nhdsWithin_basis_closedEBall E1 #

∀ {α : Type u_4} [inst : PseudoEMetricSpace α] {s : Set α} {x : α},
  (nhdsWithin x s).HasBasis (fun ε ↦ 0 < ε) fun ε ↦ Metric.closedEBall x ε ∩ s

theorem EMetric.mem_closure_iff E0 #

∀ {α : Type u_2} [inst : PseudoEMetricSpace α] {x : α} {s : Set α}, x ∈ closure s ↔ ∀ ε > 0, ∃ y ∈ s, edist x y < ε

ε-characterization of the closure in pseudoemetric spaces

theorem EMetric.dense_iff E0 #

∀ {α : Type u_2} [inst : PseudoEMetricSpace α] {s : Set α},
  Dense s ↔ ∀ (x : α), ∀ r > 0, (Metric.eball x r ∩ s).Nonempty

theorem EMetric.tendsto_nhds E1 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] {f : Filter β} {u : β → α} {a : α},
  Filter.Tendsto u f (nhds a) ↔ ∀ ε > 0, ∀ᶠ (x : β) in f, edist (u x) a < ε

theorem EMetric.tendsto_atTop E1 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] [Nonempty β] [inst_2 : SemilatticeSup β] {u : β → α}
  {a : α}, Filter.Tendsto u Filter.atTop (nhds a) ↔ ∀ ε > 0, ∃ N, ∀ n ≥ N, edist (u n) a < ε

theorem EMetric.tendsto_nhdsWithin_nhdsWithin E1 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] {s : Set α} [inst_1 : PseudoEMetricSpace β] {f : α → β}
  {t : Set β} {a : α} {b : β},
  Filter.Tendsto f (nhdsWithin a s) (nhdsWithin b t) ↔
    ∀ ε > 0, ∃ δ > 0, ∀ ⦃x : α⦄, x ∈ s → edist x a < δ → f x ∈ t ∧ edist (f x) b < ε

theorem EMetric.tendsto_nhdsWithin_nhds E1 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] {s : Set α} [inst_1 : PseudoEMetricSpace β] {f : α → β}
  {a : α} {b : β},
  Filter.Tendsto f (nhdsWithin a s) (nhds b) ↔ ∀ ε > 0, ∃ δ > 0, ∀ {x : α}, x ∈ s → edist x a < δ → edist (f x) b < ε

theorem EMetric.tendsto_nhds_nhds E1 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] [inst_1 : PseudoEMetricSpace β] {f : α → β} {a : α} {b : β},
  Filter.Tendsto f (nhds a) (nhds b) ↔ ∀ ε > 0, ∃ δ > 0, ∀ ⦃x : α⦄, edist x a < δ → edist (f x) b < ε

theorem EMetric.continuousAt_iff E0 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] [inst_1 : PseudoEMetricSpace β] {f : α → β} {a : α},
  ContinuousAt f a ↔ ∀ ε > 0, ∃ δ > 0, ∀ ⦃x : α⦄, edist x a < δ → edist (f x) (f a) < ε

theorem EMetric.continuousWithinAt_iff E0 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] [inst_1 : PseudoEMetricSpace β] {f : α → β} {a : α}
  {s : Set α}, ContinuousWithinAt f s a ↔ ∀ ε > 0, ∃ δ > 0, ∀ ⦃x : α⦄, x ∈ s → edist x a < δ → edist (f x) (f a) < ε

theorem EMetric.continuousOn_iff E0 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] [inst_1 : PseudoEMetricSpace β] {f : α → β} {s : Set α},
  ContinuousOn f s ↔ ∀ b ∈ s, ∀ ε > 0, ∃ δ > 0, ∀ a ∈ s, edist a b < δ → edist (f a) (f b) < ε

theorem EMetric.continuous_iff E0 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] [inst_1 : PseudoEMetricSpace β] {f : α → β},
  Continuous f ↔ ∀ (b : α), ∀ ε > 0, ∃ δ > 0, ∀ (a : α), edist a b < δ → edist (f a) (f b) < ε

theorem EMetric.continuousAt_iff' E1 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] [inst_1 : TopologicalSpace β] {f : β → α} {b : β},
  ContinuousAt f b ↔ ∀ ε > 0, ∀ᶠ (x : β) in nhds b, edist (f x) (f b) < ε

theorem EMetric.continuousWithinAt_iff' E1 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] [inst_1 : TopologicalSpace β] {f : β → α} {b : β}
  {s : Set β}, ContinuousWithinAt f s b ↔ ∀ ε > 0, ∀ᶠ (x : β) in nhdsWithin b s, edist (f x) (f b) < ε

theorem EMetric.continuousOn_iff' E1 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] [inst_1 : TopologicalSpace β] {f : β → α} {s : Set β},
  ContinuousOn f s ↔ ∀ b ∈ s, ∀ ε > 0, ∀ᶠ (x : β) in nhdsWithin b s, edist (f x) (f b) < ε

theorem EMetric.continuous_iff' E1 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] [inst_1 : TopologicalSpace β] {f : β → α},
  Continuous f ↔ ∀ (a : β), ∀ ε > 0, ∀ᶠ (x : β) in nhds a, edist (f x) (f a) < ε

theorem Metric.isClosed_eball_top E1 #

∀ {α : Type u_2} [inst : PseudoEMetricSpace α] {x : α}, IsClosed (Metric.eball x ⊤)

theorem Metric.isClopen_eball_top E1 #

∀ {α : Type u_2} [inst : PseudoEMetricSpace α] {x : α}, IsClopen (Metric.eball x ⊤)

theorem Metric.eball_mem_nhds E1 #

∀ {α : Type u_2} [inst : PseudoEMetricSpace α] (x : α) {ε : ENNReal}, 0 < ε → Metric.eball x ε ∈ nhds x

theorem Metric.closedEBall_mem_nhds E1 #

∀ {α : Type u_2} [inst : PseudoEMetricSpace α] (x : α) {ε : ENNReal}, 0 < ε → Metric.closedEBall x ε ∈ nhds x

theorem Metric.eball_prod_same E1 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] [inst_1 : PseudoEMetricSpace β] (x : α) (y : β)
  (r : ENNReal), Metric.eball x r ×ˢ Metric.eball y r = Metric.eball (x, y) r

theorem Metric.closedEBall_prod_same E1 #

∀ {β : Type v} {α : Type u_2} [inst : PseudoEMetricSpace α] [inst_1 : PseudoEMetricSpace β] (x : α) (y : β)
  (r : ENNReal), Metric.closedEBall x r ×ˢ Metric.closedEBall y r = Metric.closedEBall (x, y) r

instance Subtype.instEDist E0 #

{α : Type u_3} → [EDist α] → {p : α → Prop} → EDist (Subtype p)

theorem Subtype.preimage_eball E0 #

∀ {α : Type u_3} [inst : EDist α] {p : α → Prop} (a : { a // p a }) (r : ENNReal),
  Subtype.val ⁻¹' Metric.eball (↑a) r = Metric.eball a r

theorem Subtype.preimage_closedEBall E0 #

∀ {α : Type u_3} [inst : EDist α] {p : α → Prop} (a : { a // p a }) (r : ENNReal),
  Subtype.val ⁻¹' Metric.closedEBall (↑a) r = Metric.closedEBall a r

theorem Subtype.image_eball E0 #

∀ {α : Type u_3} [inst : EDist α] {p : α → Prop} (a : { a // p a }) (r : ENNReal),
  Subtype.val '' Metric.eball a r = Metric.eball (↑a) r ∩ {a | p a}

theorem Subtype.image_closedEBall E0 #

∀ {α : Type u_3} [inst : EDist α] {p : α → Prop} (a : { a // p a }) (r : ENNReal),
  Subtype.val '' Metric.closedEBall a r = Metric.closedEBall (↑a) r ∩ {a | p a}

class EMetricSpace E1 #

Type u → Type u

An extended metric space is a type endowed with a ℝ≥0∞-valued distance edist satisfying edist x y = 0 ↔ x = y, commutativity edist x y = edist y x, and the triangle inequality edist x z ≤ edist x y + edist y z.

See pseudo extended metric spaces (PseudoEMetricSpace) for the similar class with the edist x y = 0 ↔ x = y assumption weakened to edist x x = 0.

Any extended metric space is a T1 topological space and a uniform space (see TopologicalSpace, T1Space, UniformSpace), where the topology and uniformity come from the metric.

We make the uniformity/topology part of the data instead of deriving it from the metric. This e.g. ensures that we do not get a diamond when doing [EMetricSpace α] [EMetricSpace β] : TopologicalSpace (α × β): The product metric and product topology agree, but not definitionally so. See Note [forgetful inheritance].

ctor EMetricSpace.mk E0 #

{α : Type u} → [toPseudoEMetricSpace : PseudoEMetricSpace α] → (∀ {x y : α}, edist x y = 0 → x = y) → EMetricSpace α

instance EMetricSpace.toPseudoEMetricSpace E0 #

{α : Type u} → [self : EMetricSpace α] → PseudoEMetricSpace α

theorem EMetricSpace.ext_iff E0 #

∀ {α : Type u_3} {m m' : EMetricSpace α}, m = m' ↔ m.toEDist = m'.toEDist

theorem EMetricSpace.ext E1 #

∀ {α : Type u_3} {m m' : EMetricSpace α}, m.toEDist = m'.toEDist → m = m'

class WeakEMetricSpace E1 #

(α : Type u) → [TopologicalSpace α] → Type u

A weak extended metric space extends a WeakPseudoEMetricSpace with the condition edist x y = 0 ↔ x = y.

ctor WeakEMetricSpace.mk E0 #

{α : Type u} →
  [inst : TopologicalSpace α] →
    [toWeakPseudoEMetricSpace : WeakPseudoEMetricSpace α] → (∀ {x y : α}, edist x y = 0 → x = y) → WeakEMetricSpace α

instance WeakEMetricSpace.toWeakPseudoEMetricSpace E0 #

{α : Type u} → {inst : TopologicalSpace α} → [self : WeakEMetricSpace α] → WeakPseudoEMetricSpace α

theorem WeakEMetricSpace.ext E1 #

∀ {α : Type u_3} [inst : TopologicalSpace α] {m m' : WeakEMetricSpace α}, m.toEDist = m'.toEDist → m = m'

theorem WeakEMetricSpace.ext_iff E0 #

∀ {α : Type u_3} [inst : TopologicalSpace α] {m m' : WeakEMetricSpace α}, m = m' ↔ m.toEDist = m'.toEDist

instance EMetricSpace.toWeakEMetricSpace E0 #

(α : Type u) → [inst : EMetricSpace α] → WeakEMetricSpace α

Every EMetricSpace has a WeakEMetricSpace structure by using the topology induced by its edist.

theorem edist_eq_zero E0 #

∀ {γ : Type w} [inst : TopologicalSpace γ] [inst_1 : WeakEMetricSpace γ] {x y : γ}, edist x y = 0 ↔ x = y

Characterize the equality of points by the vanishing of their extended distance

theorem zero_eq_edist E0 #

∀ {γ : Type w} [inst : TopologicalSpace γ] [inst_1 : WeakEMetricSpace γ] {x y : γ}, 0 = edist x y ↔ x = y

theorem edist_le_zero E1 #

∀ {γ : Type w} [inst : TopologicalSpace γ] [inst_1 : WeakEMetricSpace γ] {x y : γ}, edist x y ≤ 0 ↔ x = y

theorem edist_pos E0 #

∀ {γ : Type w} [inst : TopologicalSpace γ] [inst_1 : WeakEMetricSpace γ] {x y : γ}, 0 < edist x y ↔ x ≠ y

theorem Metric.closedEBall_zero E0 #

∀ {γ : Type w} [inst : TopologicalSpace γ] [inst_1 : WeakEMetricSpace γ] (x : γ), Metric.closedEBall x 0 = {x}

abbrev EMetricSpace.replaceUniformity E1 #

{γ : Type u_3} → [U : UniformSpace γ] → (m : EMetricSpace γ) → uniformity γ = uniformity γ → EMetricSpace γ

Auxiliary function to replace the uniformity on an emetric space with a uniformity which is equal to the original one, but maybe not defeq. This is useful if one wants to construct an emetric space with a specified uniformity. See Note [forgetful inheritance] explaining why having definitionally the right uniformity is often important. See note [reducible non-instances].

abbrev EMetricSpace.replaceTopology E1 #

{γ : Type u_3} →
  [T : TopologicalSpace γ] →
    (m : EMetricSpace γ) → T = PseudoEMetricSpace.toUniformSpace.toTopologicalSpace → EMetricSpace γ

Auxiliary function to replace the topology on an emetric space with a topology which is equal to the original one, but maybe not defeq. This is useful if one wants to construct an emetric space with a specified topology. See Note [forgetful inheritance] explaining why having definitionally the right topology is often important. See note [reducible non-instances].

abbrev EMetricSpace.induced E1 #

{γ : Type u_3} → {β : Type u_4} → (f : γ → β) → Function.Injective f → EMetricSpace β → EMetricSpace γ

The extended metric induced by an injective function taking values in an emetric space. See Note [reducible non-instances].

instance instEMetricSpaceSubtype E0 #

{α : Type u_3} → {p : α → Prop} → [EMetricSpace α] → EMetricSpace (Subtype p)

EMetric space instance on subsets of emetric spaces

instance instEMetricSpaceMulOpposite E0 #

{α : Type u_3} → [EMetricSpace α] → EMetricSpace αᵐᵒᵖ

EMetric space instance on the multiplicative opposite of an emetric space.

instance instEMetricSpaceAddOpposite E0 #

{α : Type u_3} → [EMetricSpace α] → EMetricSpace αᵃᵒᵖ

EMetric space instance on the additive opposite of an emetric space.

instance instEMetricSpaceULift E0 #

{α : Type u_3} → [EMetricSpace α] → EMetricSpace (ULift.{u_4, u_3} α)

theorem uniformity_edist E1 #

∀ {γ : Type u_3} [inst : EMetricSpace γ], uniformity γ = ⨅ ε, ⨅ (_ : ε > 0), Filter.principal {p | edist p.1 p.2 < ε}

Reformulation of the uniform structure in terms of the extended distance

instance instEDistAdditive E0 #

{X : Type u_1} → [EDist X] → EDist (Additive X)

instance instEDistMultiplicative E0 #

{X : Type u_1} → [EDist X] → EDist (Multiplicative X)

theorem edist_ofMul E0 #

∀ {X : Type u_1} [inst : EDist X] (a b : X), edist (Additive.ofMul a) (Additive.ofMul b) = edist a b

theorem edist_ofAdd E0 #

∀ {X : Type u_1} [inst : EDist X] (a b : X), edist (Multiplicative.ofAdd a) (Multiplicative.ofAdd b) = edist a b

theorem edist_toMul E0 #

∀ {X : Type u_1} [inst : EDist X] (a b : Additive X), edist (Additive.toMul a) (Additive.toMul b) = edist a b

theorem edist_toAdd E0 #

∀ {X : Type u_1} [inst : EDist X] (a b : Multiplicative X),
  edist (Multiplicative.toAdd a) (Multiplicative.toAdd b) = edist a b

instance instPseudoEMetricSpaceAdditive E0 #

{X : Type u_1} → [PseudoEMetricSpace X] → PseudoEMetricSpace (Additive X)

instance instPseudoEMetricSpaceMultiplicative E0 #

{X : Type u_1} → [PseudoEMetricSpace X] → PseudoEMetricSpace (Multiplicative X)

instance instEMetricSpaceAdditive E0 #

{X : Type u_1} → [EMetricSpace X] → EMetricSpace (Additive X)

instance instEMetricSpaceMultiplicative E0 #

{X : Type u_1} → [EMetricSpace X] → EMetricSpace (Multiplicative X)

instance instEDistOrderDual E0 #

{X : Type u_1} → [EDist X] → EDist Xᵒᵈ

theorem edist_toDual E0 #

∀ {X : Type u_1} [inst : EDist X] (a b : X), edist (OrderDual.toDual a) (OrderDual.toDual b) = edist a b

theorem edist_ofDual E0 #

∀ {X : Type u_1} [inst : EDist X] (a b : Xᵒᵈ), edist (OrderDual.ofDual a) (OrderDual.ofDual b) = edist a b

abbrev WeakEMetricSpace.induced E1 #

{α : Type u_3} →
  {β : Type u_4} →
    [n : TopologicalSpace β] → {f : α → β} → Function.Injective f → WeakEMetricSpace β → WeakEMetricSpace α

The WeakEMetric space induced by pulling back a topology along an injective function.

instance instWeakEMetricSpaceSubtype E0 #

{α : Type u_3} → {p : α → Prop} → [inst : TopologicalSpace α] → [WeakEMetricSpace α] → WeakEMetricSpace (Subtype p)

WeakEMetricSpace instance on subsets of emetric spaces

instance instWeakPseudoEMetricSpaceOrderDual E0 #

{X : Type u_1} → [inst : TopologicalSpace X] → [WeakPseudoEMetricSpace X] → WeakPseudoEMetricSpace Xᵒᵈ

instance instWeakEMetricSpaceOrderDual E0 #

{X : Type u_1} → [inst : TopologicalSpace X] → [WeakEMetricSpace X] → WeakEMetricSpace Xᵒᵈ

instance instPseudoEMetricSpaceOrderDual E0 #

{X : Type u_1} → [PseudoEMetricSpace X] → PseudoEMetricSpace Xᵒᵈ

instance instEMetricSpaceOrderDual E0 #

{X : Type u_1} → [EMetricSpace X] → EMetricSpace Xᵒᵈ

Deprecated aliases

NameNew nameSince
Metric.ordConnected_setOf_closedEBall_subsetMetric.ordConnected_setOfPred_closedEBall_subset2026-07-09
Metric.ordConnected_setOf_eball_subsetMetric.ordConnected_setOfPred_eball_subset2026-07-09