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

53 declarations and 16 deprecated aliases. Mathlib docs · Source

abbrev PseudoMetricSpace.induced E1 #

{α : Type u_3} → {β : Type u_4} → (α → β) → PseudoMetricSpace β → PseudoMetricSpace α

Pseudometric space structure pulled back by a function.

def Topology.IsInducing.comapPseudoMetricSpace E1 #

{α : Type u_3} →
  {β : Type u_4} →
    [inst : TopologicalSpace α] → [m : PseudoMetricSpace β] → {f : α → β} → Topology.IsInducing f → PseudoMetricSpace α

Pull back a pseudometric space structure by an inducing map. This is a version of PseudoMetricSpace.induced useful in case if the domain already has a TopologicalSpace structure.

def IsUniformInducing.comapPseudoMetricSpace E1 #

{α : Type u_3} →
  {β : Type u_4} →
    [inst : UniformSpace α] → [m : PseudoMetricSpace β] → (f : α → β) → IsUniformInducing f → PseudoMetricSpace α

Pull back a pseudometric space structure by a uniform inducing map. This is a version of PseudoMetricSpace.induced useful in case if the domain already has a UniformSpace structure.

instance Subtype.pseudoMetricSpace E0 #

{α : Type u_1} → [PseudoMetricSpace α] → {p : α → Prop} → PseudoMetricSpace (Subtype p)

theorem Subtype.dist_eq E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] {p : α → Prop} (x y : Subtype p), dist x y = dist ↑x ↑y

theorem Subtype.nnDist_eq E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] {p : α → Prop} (x y : Subtype p), nnDist x y = nnDist ↑x ↑y

theorem Subtype.preimage_ball E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] {p : α → Prop} (a : { a // p a }) (r : ℝ),
  Subtype.val ⁻¹' Metric.ball (↑a) r = Metric.ball a r

theorem Subtype.preimage_closedBall E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] {p : α → Prop} (a : { a // p a }) (r : ℝ),
  Subtype.val ⁻¹' Metric.closedBall (↑a) r = Metric.closedBall a r

theorem Subtype.image_ball E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] {p : α → Prop} (a : { a // p a }) (r : ℝ),
  Subtype.val '' Metric.ball a r = Metric.ball (↑a) r ∩ {a | p a}

theorem Subtype.image_closedBall E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] {p : α → Prop} (a : { a // p a }) (r : ℝ),
  Subtype.val '' Metric.closedBall a r = Metric.closedBall (↑a) r ∩ {a | p a}

instance AddOpposite.instPseudoMetricSpace E0 #

{α : Type u_1} → [PseudoMetricSpace α] → PseudoMetricSpace αᵃᵒᵖ

instance MulOpposite.instPseudoMetricSpace E0 #

{α : Type u_1} → [PseudoMetricSpace α] → PseudoMetricSpace αᵐᵒᵖ

theorem AddOpposite.dist_unop E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] (x y : αᵃᵒᵖ), dist (AddOpposite.unop x) (AddOpposite.unop y) = dist x y

theorem MulOpposite.dist_unop E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] (x y : αᵐᵒᵖ), dist (MulOpposite.unop x) (MulOpposite.unop y) = dist x y

theorem MulOpposite.dist_op E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] (x y : α), dist (MulOpposite.op x) (MulOpposite.op y) = dist x y

theorem AddOpposite.dist_op E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] (x y : α), dist (AddOpposite.op x) (AddOpposite.op y) = dist x y

theorem AddOpposite.nnDist_unop E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] (x y : αᵃᵒᵖ),
  nnDist (AddOpposite.unop x) (AddOpposite.unop y) = nnDist x y

theorem MulOpposite.nnDist_unop E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] (x y : αᵐᵒᵖ),
  nnDist (MulOpposite.unop x) (MulOpposite.unop y) = nnDist x y

theorem MulOpposite.nnDist_op E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] (x y : α), nnDist (MulOpposite.op x) (MulOpposite.op y) = nnDist x y

theorem AddOpposite.nnDist_op E0 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α] (x y : α), nnDist (AddOpposite.op x) (AddOpposite.op y) = nnDist x y

instance instPseudoMetricSpaceNNReal E0 #

PseudoMetricSpace NNReal

theorem NNReal.dist_eq E0 #

∀ (a b : NNReal), dist a b = |↑a - ↑b|

theorem NNReal.nnDist_eq E0 #

∀ (a b : NNReal), nnDist a b = max (a - b) (b - a)

theorem NNReal.nnDist_zero_eq_val E0 #

∀ (z : NNReal), nnDist 0 z = z

theorem NNReal.nnDist_zero_eq_val' E0 #

∀ (z : NNReal), nnDist z 0 = z

theorem NNReal.le_add_nnDist E1 #

∀ (a b : NNReal), a ≤ b + nnDist a b

theorem NNReal.ball_zero_eq_Ico' E1 #

∀ (c : NNReal), Metric.ball 0 ↑c = Set.Ico 0 c

theorem NNReal.ball_zero_eq_Ico E1 #

∀ (c : ℝ), Metric.ball 0 c = Set.Ico 0 c.toNNReal

theorem NNReal.closedBall_zero_eq_Icc' E1 #

∀ (c : NNReal), Metric.closedBall 0 ↑c = Set.Icc 0 c

theorem NNReal.closedBall_zero_eq_Icc E1 #

∀ {c : ℝ}, 0 ≤ c → Metric.closedBall 0 c = Set.Icc 0 c.toNNReal

instance ULift.instPseudoMetricSpace E0 #

{β : Type u_2} → [PseudoMetricSpace β] → PseudoMetricSpace (ULift.{u_3, u_2} β)

theorem ULift.dist_eq E0 #

∀ {β : Type u_2} [inst : PseudoMetricSpace β] (x y : ULift.{u_3, u_2} β), dist x y = dist x.down y.down

theorem ULift.nnDist_eq E0 #

∀ {β : Type u_2} [inst : PseudoMetricSpace β] (x y : ULift.{u_3, u_2} β), nnDist x y = nnDist x.down y.down

theorem ULift.dist_up_up E0 #

∀ {β : Type u_2} [inst : PseudoMetricSpace β] (x y : β), dist { down := x } { down := y } = dist x y

theorem ULift.nnDist_up_up E0 #

∀ {β : Type u_2} [inst : PseudoMetricSpace β] (x y : β), nnDist { down := x } { down := y } = nnDist x y

instance Prod.pseudoMetricSpaceMax E0 #

{α : Type u_1} → {β : Type u_2} → [PseudoMetricSpace α] → [PseudoMetricSpace β] → PseudoMetricSpace (α × β)

theorem Prod.dist_eq E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : PseudoMetricSpace α] [inst_1 : PseudoMetricSpace β] {x y : α × β},
  dist x y = max (dist x.1 y.1) (dist x.2 y.2)

theorem dist_prod_same_left E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : PseudoMetricSpace α] [inst_1 : PseudoMetricSpace β] {x : α} {y₁ y₂ : β},
  dist (x, y₁) (x, y₂) = dist y₁ y₂

theorem dist_prod_same_right E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : PseudoMetricSpace α] [inst_1 : PseudoMetricSpace β] {x₁ x₂ : α} {y : β},
  dist (x₁, y) (x₂, y) = dist x₁ x₂

theorem ball_prod_same E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : PseudoMetricSpace α] [inst_1 : PseudoMetricSpace β] (x : α) (y : β) (r : ℝ),
  Metric.ball x r ×ˢ Metric.ball y r = Metric.ball (x, y) r

theorem closedBall_prod_same E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : PseudoMetricSpace α] [inst_1 : PseudoMetricSpace β] (x : α) (y : β) (r : ℝ),
  Metric.closedBall x r ×ˢ Metric.closedBall y r = Metric.closedBall (x, y) r

theorem sphere_prod E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : PseudoMetricSpace α] [inst_1 : PseudoMetricSpace β] (x : α × β) (r : ℝ),
  Metric.sphere x r = Metric.sphere x.1 r ×ˢ Metric.closedBall x.2 r ∪ Metric.closedBall x.1 r ×ˢ Metric.sphere x.2 r

theorem uniformContinuous_dist E1 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α], UniformContinuous fun p ↦ dist p.1 p.2

theorem UniformContinuous.dist E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : PseudoMetricSpace α] [inst_1 : UniformSpace β] {f g : β → α},
  UniformContinuous f → UniformContinuous g → UniformContinuous fun b ↦ dist (f b) (g b)

theorem continuous_dist E1 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α], Continuous fun p ↦ dist p.1 p.2

theorem Continuous.dist E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : PseudoMetricSpace α] [inst_1 : TopologicalSpace β] {f g : β → α},
  Continuous f → Continuous g → Continuous fun b ↦ dist (f b) (g b)

theorem Filter.Tendsto.dist E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : PseudoMetricSpace α] {f g : β → α} {x : Filter β} {a b : α},
  Filter.Tendsto f x (nhds a) →
    Filter.Tendsto g x (nhds b) → Filter.Tendsto (fun x ↦ dist (f x) (g x)) x (nhds (dist a b))

theorem continuous_iff_continuous_dist E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : PseudoMetricSpace α] [inst_1 : TopologicalSpace β] {f : β → α},
  Continuous f ↔ Continuous fun x ↦ dist (f x.1) (f x.2)

theorem uniformContinuous_nnDist E1 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α], UniformContinuous fun p ↦ nnDist p.1 p.2

theorem UniformContinuous.nnDist E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : PseudoMetricSpace α] [inst_1 : UniformSpace β] {f g : β → α},
  UniformContinuous f → UniformContinuous g → UniformContinuous fun b ↦ nnDist (f b) (g b)

theorem continuous_nnDist E1 #

∀ {α : Type u_1} [inst : PseudoMetricSpace α], Continuous fun p ↦ nnDist p.1 p.2

theorem Continuous.nnDist E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : PseudoMetricSpace α] [inst_1 : TopologicalSpace β] {f g : β → α},
  Continuous f → Continuous g → Continuous fun b ↦ nnDist (f b) (g b)

theorem Filter.Tendsto.nnDist E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : PseudoMetricSpace α] {f g : β → α} {x : Filter β} {a b : α},
  Filter.Tendsto f x (nhds a) →
    Filter.Tendsto g x (nhds b) → Filter.Tendsto (fun x ↦ nnDist (f x) (g x)) x (nhds (nnDist a b))

Deprecated aliases

NameNew nameSince
AddOpposite.nndist_opAddOpposite.nnDist_op2026-11-07
AddOpposite.nndist_unopAddOpposite.nnDist_unop2026-11-07
Continuous.nndistContinuous.nnDist2026-11-07
Filter.Tendsto.nndistFilter.Tendsto.nnDist2026-11-07
MulOpposite.nndist_opMulOpposite.nnDist_op2026-11-07
MulOpposite.nndist_unopMulOpposite.nnDist_unop2026-11-07
NNReal.le_add_nndistNNReal.le_add_nnDist2026-11-07
NNReal.nndist_eqNNReal.nnDist_eq2026-11-07
NNReal.nndist_zero_eq_valNNReal.nnDist_zero_eq_val2026-11-07
NNReal.nndist_zero_eq_val'NNReal.nnDist_zero_eq_val'2026-11-07
Subtype.nndist_eqSubtype.nnDist_eq2026-11-07
ULift.nndist_eqULift.nnDist_eq2026-11-07
ULift.nndist_up_upULift.nnDist_up_up2026-11-07
UniformContinuous.nndistUniformContinuous.nnDist2026-11-07
continuous_nndistcontinuous_nnDist2026-11-07
uniformContinuous_nndistuniformContinuous_nnDist2026-11-07