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.Weak

49 declarations. Mathlib docs · Source

theorem instEDistWithBot.match_1.congr_eq_1 E1 #

∀ {α : Type u_1} (motive : WithBot α → WithBot α → Sort u_2) (x x_1 : WithBot α) (h_1 : (x : α) → motive none (some x))
  (h_2 : Unit → motive none none) (h_3 : (x : α) → motive (some x) none) (h_4 : (x y : α) → motive (some x) (some y))
  (x_2 : α),
  x = none →
    x_1 = some x_2 →
      (match x, x_1 with
        | none, some x => h_1 x
        | none, none => h_2 ()
        | some x, none => h_3 x
        | some x, some y => h_4 x y) ≍
        h_1 x_2

theorem instEDistWithBot.match_1.congr_eq_4 E1 #

∀ {α : Type u_1} (motive : WithBot α → WithBot α → Sort u_2) (x x_1 : WithBot α) (h_1 : (x : α) → motive none (some x))
  (h_2 : Unit → motive none none) (h_3 : (x : α) → motive (some x) none) (h_4 : (x y : α) → motive (some x) (some y))
  (x_2 y : α),
  x = some x_2 →
    x_1 = some y →
      (match x, x_1 with
        | none, some x => h_1 x
        | none, none => h_2 ()
        | some x, none => h_3 x
        | some x, some y => h_4 x y) ≍
        h_4 x_2 y

theorem instEDistWithTop.match_1.congr_eq_2 E1 #

∀ {α : Type u_1} (motive : WithTop α → WithTop α → Sort u_2) (x x_1 : WithTop α) (h_1 : (x : α) → motive none (some x))
  (h_2 : Unit → motive none none) (h_3 : (x : α) → motive (some x) none) (h_4 : (x y : α) → motive (some x) (some y)),
  x = none →
    x_1 = none →
      (match x, x_1 with
        | none, some x => h_1 x
        | none, none => h_2 ()
        | some x, none => h_3 x
        | some x, some y => h_4 x y) ≍
        h_2 ()

theorem instEDistWithTop.match_1.congr_eq_1 E1 #

∀ {α : Type u_1} (motive : WithTop α → WithTop α → Sort u_2) (x x_1 : WithTop α) (h_1 : (x : α) → motive none (some x))
  (h_2 : Unit → motive none none) (h_3 : (x : α) → motive (some x) none) (h_4 : (x y : α) → motive (some x) (some y))
  (x_2 : α),
  x = none →
    x_1 = some x_2 →
      (match x, x_1 with
        | none, some x => h_1 x
        | none, none => h_2 ()
        | some x, none => h_3 x
        | some x, some y => h_4 x y) ≍
        h_1 x_2

theorem instEDistWithTop.match_1.congr_eq_3 E1 #

∀ {α : Type u_1} (motive : WithTop α → WithTop α → Sort u_2) (x x_1 : WithTop α) (h_1 : (x : α) → motive none (some x))
  (h_2 : Unit → motive none none) (h_3 : (x : α) → motive (some x) none) (h_4 : (x y : α) → motive (some x) (some y))
  (x_2 : α),
  x = some x_2 →
    x_1 = none →
      (match x, x_1 with
        | none, some x => h_1 x
        | none, none => h_2 ()
        | some x, none => h_3 x
        | some x, some y => h_4 x y) ≍
        h_3 x_2

theorem instEDistWithBot.match_1.congr_eq_2 E1 #

∀ {α : Type u_1} (motive : WithBot α → WithBot α → Sort u_2) (x x_1 : WithBot α) (h_1 : (x : α) → motive none (some x))
  (h_2 : Unit → motive none none) (h_3 : (x : α) → motive (some x) none) (h_4 : (x y : α) → motive (some x) (some y)),
  x = none →
    x_1 = none →
      (match x, x_1 with
        | none, some x => h_1 x
        | none, none => h_2 ()
        | some x, none => h_3 x
        | some x, some y => h_4 x y) ≍
        h_2 ()

theorem instEDistWithTop.match_1.congr_eq_4 E1 #

∀ {α : Type u_1} (motive : WithTop α → WithTop α → Sort u_2) (x x_1 : WithTop α) (h_1 : (x : α) → motive none (some x))
  (h_2 : Unit → motive none none) (h_3 : (x : α) → motive (some x) none) (h_4 : (x y : α) → motive (some x) (some y))
  (x_2 y : α),
  x = some x_2 →
    x_1 = some y →
      (match x, x_1 with
        | none, some x => h_1 x
        | none, none => h_2 ()
        | some x, none => h_3 x
        | some x, some y => h_4 x y) ≍
        h_4 x_2 y

theorem instEDistWithBot.match_1.congr_eq_3 E1 #

∀ {α : Type u_1} (motive : WithBot α → WithBot α → Sort u_2) (x x_1 : WithBot α) (h_1 : (x : α) → motive none (some x))
  (h_2 : Unit → motive none none) (h_3 : (x : α) → motive (some x) none) (h_4 : (x y : α) → motive (some x) (some y))
  (x_2 : α),
  x = some x_2 →
    x_1 = none →
      (match x, x_1 with
        | none, some x => h_1 x
        | none, none => h_2 ()
        | some x, none => h_3 x
        | some x, some y => h_4 x y) ≍
        h_3 x_2

instance Option.toEDist E0 #

{α : Type u} → [EDist α] → EDist (Option α)

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.

theorem Option.edist_none_none E0 #

∀ {α : Type u} [t : TopologicalSpace α] [m : WeakPseudoEMetricSpace α], edist none none = 0

theorem Option.edist_none_some E0 #

∀ {α : Type u} [t : TopologicalSpace α] [m : WeakPseudoEMetricSpace α] {a : α}, edist none (some a) = ⊤

theorem Option.edist_some_none E0 #

∀ {α : Type u} [t : TopologicalSpace α] [m : WeakPseudoEMetricSpace α] {a : α}, edist (some a) none = ⊤

theorem Option.edist_some_some E0 #

∀ {α : Type u} [t : TopologicalSpace α] [m : WeakPseudoEMetricSpace α] {a b : α}, edist (some a) (some b) = edist a b

theorem Option.some_eball E1 #

∀ {α : Type u} [t : TopologicalSpace α] [m : WeakPseudoEMetricSpace α] (a : α) (r : ENNReal),
  some '' Metric.eball a r = Metric.eball (some a) r

theorem Option.edist_self' E1 #

∀ {α : Type u} [inst : TopologicalSpace α] (m : WeakPseudoEMetricSpace α) (x : Option α), edist x x = 0

theorem Option.edist_comm' E1 #

∀ {α : Type u} [inst : TopologicalSpace α] (m : WeakPseudoEMetricSpace α) (x y : Option α), edist x y = edist y x

theorem Option.edist_triangle' E1 #

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

theorem Option.ball_infty_of_pos E1 #

∀ {α : Type u} [t : TopologicalSpace α] [m : WeakPseudoEMetricSpace α] {r : ENNReal},
  0 < r → Metric.eball none r = {none}

abbrev Option.WeakPseudoEMetricSpace.OfIsOpenEmbedding E1 #

{α : Type u} →
  [t : TopologicalSpace α] →
    [inst : TopologicalSpace (Option α)] →
      [m : WeakPseudoEMetricSpace α] →
        [inst_1 : EDist (Option α)] →
          inst_1 = Option.toEDist → Topology.IsOpenEmbedding some → WeakPseudoEMetricSpace (Option α)

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

abbrev Option.WeakEMetricSpace.OfIsOpenEmbedding E1 #

{α : Type u} →
  [t : TopologicalSpace α] →
    [inst : TopologicalSpace (Option α)] →
      [m : WeakEMetricSpace α] →
        [inst_1 : EDist (Option α)] →
          inst_1 = Option.toEDist → Topology.IsOpenEmbedding some → WeakEMetricSpace (Option α)

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

theorem WithTop.isOpenEmbedding_some E1 #

∀ {α : Type u} [t : TopologicalSpace α] [inst : LinearOrder α] [inst_1 : OrderTopology α],
  Topology.IsOpenEmbedding WithTop.some

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

theorem WithBot.isOpenEmbedding_some E1 #

∀ {α : Type u} [t : TopologicalSpace α] [inst : LinearOrder α] [inst_1 : OrderTopology α],
  Topology.IsOpenEmbedding WithBot.some

instance instEDistWithTop E0 #

{α : Type u} → [EDist α] → EDist (WithTop α)

instance instEDistWithBot E0 #

{α : Type u} → [EDist α] → EDist (WithBot α)

instance instWeakPseudoEMetricSpaceWithTop E0 #

{α : Type u} →
  [t : TopologicalSpace α] →
    [inst : LinearOrder α] →
      [inst_1 : OrderTopology α] → [m : WeakPseudoEMetricSpace α] → WeakPseudoEMetricSpace (WithTop α)

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

instance instWeakPseudoEMetricSpaceWithBot E0 #

{α : Type u} →
  [t : TopologicalSpace α] →
    [inst : LinearOrder α] →
      [inst_1 : OrderTopology α] → [m : WeakPseudoEMetricSpace α] → WeakPseudoEMetricSpace (WithBot α)

instance instWeakEMetricSpaceWithTop E0 #

{α : Type u} →
  [t : TopologicalSpace α] →
    [inst : LinearOrder α] → [inst_1 : OrderTopology α] → [m : WeakEMetricSpace α] → WeakEMetricSpace (WithTop α)

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

instance instWeakEMetricSpaceWithBot E0 #

{α : Type u} →
  [t : TopologicalSpace α] →
    [inst : LinearOrder α] → [inst_1 : OrderTopology α] → [m : WeakEMetricSpace α] → WeakEMetricSpace (WithBot α)

instance instEDistOnePoint E0 #

{α : Type u} → [EDist α] → EDist (OnePoint α)

instance instWeakPseudoEMetricSpaceOnePoint E0 #

{α : Type u} → [t : TopologicalSpace α] → [m : WeakPseudoEMetricSpace α] → WeakPseudoEMetricSpace (OnePoint α)

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

instance instWeakEMetricSpaceOnePoint E0 #

{α : Type u} → [t : TopologicalSpace α] → [m : WeakEMetricSpace α] → WeakEMetricSpace (OnePoint α)

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

instance instWeakEMetricSpaceENNReal E0 #

WeakEMetricSpace ENNReal

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

instance instWeakEMetricSpaceEReal E0 #

WeakEMetricSpace EReal

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

instance instWeakEMetricSpaceENat E0 #

WeakEMetricSpace ℕ∞

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

theorem ENNReal.edist_top_coe E0 #

∀ (a : NNReal), edist ⊤ ↑a = ⊤

theorem ENNReal.edist_coe_top E0 #

∀ (a : NNReal), edist ↑a ⊤ = ⊤

theorem ENNReal.edist_coe E0 #

∀ (a b : NNReal), edist ↑a ↑b = edist a b

theorem ENNReal.edist_eq_top_iff E0 #

∀ (a b : ENNReal), edist a b = ⊤ ↔ a ≠ b ∧ (a = ⊤ ∨ b = ⊤)

theorem ENNReal.edist_eq_max E1 #

∀ (a b : ENNReal), edist a b = max (a - b) (b - a)

theorem ENNReal.edist_le_iff_le_add_left E1 #

∀ (a b c : ENNReal), edist a b ≤ c ↔ a ≤ c + b ∧ b ≤ c + a

theorem ENNReal.edist_le_iff_le_add_right E1 #

∀ (a b c : ENNReal), edist a b ≤ c ↔ a ≤ b + c ∧ b ≤ a + c

theorem ENNReal.sub_le_dist E1 #

∀ (a b : ENNReal), a - b ≤ edist a b

theorem ENNReal.le_add_edist E1 #

∀ (a b : ENNReal), a ≤ b + edist a b

theorem ENNReal.edist_zero_left E0 #

∀ (a : ENNReal), edist 0 a = a

theorem ENNReal.edist_zero_right E0 #

∀ (a : ENNReal), edist a 0 = a

theorem ENNReal.edist_add_left E0 #

∀ (a b : ENNReal) {c : ENNReal}, c ≠ ⊤ → edist (c + a) (c + b) = edist a b

theorem ENNReal.edist_add_right E0 #

∀ (a b : ENNReal) {c : ENNReal}, c ≠ ⊤ → edist (a + c) (b + c) = edist a b

theorem ENNReal.edist_mul_left E1 #

∀ (a b : ENNReal) {c : ENNReal}, c ≠ ⊤ → edist (c * a) (c * b) = c * edist a b

theorem ENNReal.edist_mul_right E1 #

∀ (a b : ENNReal) {c : ENNReal}, c ≠ ⊤ → edist (a * c) (b * c) = edist a b * c