Documentation

Mathlib.Topology.EMetricSpace.Weak

Lemmas around weak (pseudo) extended metric spaces. #

In this file we show that whenever some : α → Option α is an open embedding and α is a WeakPseudoEMetricSpace, then Option α is as well in a natural manner. We then use this to prove ℝ≥0 and EReal are weak extended metric spaces.

Main statements #

TODO: Some lemmas around order topologies can likely be generalised from linear orders to pre- or partial orders.

@[instance_reducible, instance 100]
instance Option.toEDist {α : Type u} [EDist α] :

Given some (extended) distance function on α, it can be extended to a distance function on Option α by defining edist none a = 0 if a = none and otherwise.

Equations
@[simp]
theorem Option.edist_none_some {α : Type u} [t : TopologicalSpace α] [m : WeakPseudoEMetricSpace α] {a : α} :
@[simp]
theorem Option.edist_some_none {α : Type u} [t : TopologicalSpace α] [m : WeakPseudoEMetricSpace α] {a : α} :
@[simp]
theorem Option.edist_some_some {α : Type u} [t : TopologicalSpace α] [m : WeakPseudoEMetricSpace α] {a b : α} :
edist (some a) (some b) = edist a b
theorem Option.edist_self' {α : Type u} [TopologicalSpace α] (m : WeakPseudoEMetricSpace α) (x : Option α) :
edist x x = 0
theorem Option.edist_comm' {α : Type u} [TopologicalSpace α] (m : WeakPseudoEMetricSpace α) (x y : Option α) :
edist x y = edist y x
theorem Option.edist_triangle' {α : Type u} [TopologicalSpace α] (m : WeakPseudoEMetricSpace α) (x y z : Option α) :
edist x z edist x y + edist y z
@[reducible, inline]

If some : α → Option α is an open embedding and α is has a weak pseudo extended metric structure, the structure extends naturally to Option α.

Equations
Instances For
    @[reducible, inline]

    If some : α → Option α is an open embedding and α is has a weak pseudo extended metric structure, the structure extends naturally to Option α.

    Equations
    Instances For

      If α has a linear order topology, some : α → WithTop α is an open embedding with respect to the order topologies.

      @[instance_reducible]
      instance instEDistWithTop {α : Type u} [EDist α] :
      Equations
      • One or more equations did not get rendered due to their size.
      @[instance_reducible]
      instance instEDistWithBot {α : Type u} [EDist α] :
      Equations
      • One or more equations did not get rendered due to their size.
      @[instance_reducible]

      If α has a topology induced by a linear order and is a weak pseudo extended metric space, so is WithTop α

      Equations
      @[instance_reducible]
      Equations
      @[instance_reducible]

      If α has a topology induced by a linear order and is a weak extended metric space, so is WithTop α

      Equations
      @[instance_reducible]
      Equations
      @[instance_reducible]
      instance instEDistOnePoint {α : Type u} [EDist α] :
      Equations
      • One or more equations did not get rendered due to their size.
      @[instance_reducible]

      The one point compactification of a weak pseudo extended metric space is again a weak pseudo extended metric space.

      Equations
      @[instance_reducible]

      The one point compactification of a weak extended metric space is again a weak extended metric space.

      Equations
      @[instance_reducible]

      ℝ≥0∞ is a weak extended metric space with its usual distance function.

      Equations
      • One or more equations did not get rendered due to their size.
      @[instance_reducible]

      EReal is a weak extended metric space with its usual distance function.

      Equations
      • One or more equations did not get rendered due to their size.
      @[instance_reducible]

      ℕ∞ is a weak extended metric space with its usual distance function.

      Equations
      • One or more equations did not get rendered due to their size.
      @[simp]
      @[simp]
      @[simp]
      theorem ENNReal.edist_coe (a b : NNReal) :
      edist a b = edist a b
      @[simp]
      theorem ENNReal.edist_eq_top_iff (a b : ENNReal) :
      edist a b = a b (a = b = )
      theorem ENNReal.edist_eq_max (a b : ENNReal) :
      edist a b = max (a - b) (b - a)
      theorem ENNReal.edist_le_iff_le_add_left (a b c : ENNReal) :
      edist a b c a c + b b c + a
      theorem ENNReal.edist_le_iff_le_add_right (a b c : ENNReal) :
      edist a b c a b + c b a + c
      theorem ENNReal.sub_le_dist (a b : ENNReal) :
      a - b edist a b
      theorem ENNReal.le_add_edist (a b : ENNReal) :
      a b + edist a b
      @[simp]
      theorem ENNReal.edist_zero_left (a : ENNReal) :
      edist 0 a = a
      @[simp]
      @[simp]
      theorem ENNReal.edist_add_left (a b : ENNReal) {c : ENNReal} (hc : c ) :
      edist (c + a) (c + b) = edist a b
      @[simp]
      theorem ENNReal.edist_add_right (a b : ENNReal) {c : ENNReal} (hc : c ) :
      edist (a + c) (b + c) = edist a b
      theorem ENNReal.edist_mul_left (a b : ENNReal) {c : ENNReal} (hc : c ) :
      edist (c * a) (c * b) = c * edist a b
      theorem ENNReal.edist_mul_right (a b : ENNReal) {c : ENNReal} (hc : c ) :
      edist (a * c) (b * c) = edist a b * c