Lemma 1.1: a real sequence starting at m converges to x iff
lim_{n→∞} d(x_n,x)=0, where d(a,b)=|a-b| is the usual metric on ℝ.
The distance of a metric space satisfies MetricAxioms.
The real distance satisfies MetricAxioms.
A metric satisfies d x x = 0.
The standard metric agrees with realDist on ℝ.
The standard metric on ℝ satisfies MetricAxioms.
Definition 1.5: for a metric space (X, d) and Y ⊆ X, the induced metric on Y is the restriction d|_{Y×Y} given by d|_{Y×Y}(y1, y2) = d(y1, y2); the subspace induced by Y is the metric space (Y, d|_{Y×Y}).
Equations
- inducedMetric Y y1 y2 = dist ↑y1 ↑y2
Instances For
The metric space structure on a subset induced by the ambient metric.
Equations
Instances For
Definition 1.6: for n ≥ 1, the Euclidean (ℓ^2) metric on ℝ^n is d_{ℓ^2}(x,y) = √(∑ i, (x i - y i)^2); the metric space (ℝ^n, d_{ℓ^2}) is called Euclidean space of dimension n.
Equations
Instances For
Proposition 1.2: the ℓ² distance is bounded above by the ℓ¹ distance.
Proposition 1.2: the ℓ¹ distance is bounded by √n times the ℓ² distance.
Proposition 1.2: Let n ≥ 1 and x,y ∈ ℝ^n. Define
d_{ℓ^1}(x,y) = ∑ i, |x i - y i| and
d_{ℓ^2}(x,y) = (∑ i, |x i - y i|^2)^{1/2}. Then
d_{ℓ^2}(x,y) ≤ d_{ℓ^1}(x,y) ≤ √n * d_{ℓ^2}(x,y).
Definition 1.8: for n ≥ 1, the sup norm (ℓ^∞) metric on ℝ^n is
d_{ℓ^∞}(x,y) = sup { |x i - y i| : 1 ≤ i ≤ n }, where x = (x_1, ..., x_n) and
y = (y_1, ..., y_n).
Instances For
Proposition 1.3: the sup norm metric is nonnegative.
Proposition 1.3: the ℓ² distance is bounded by √n times the sup norm metric.
Proposition 1.3: Let n ≥ 1. For all x,y ∈ ℝ^n, the metrics
d_{ℓ^∞} and d_{ℓ^2} satisfy (1/√n) d_{ℓ^2}(x,y) ≤ d_{ℓ^∞}(x,y) ≤ d_{ℓ^2}(x,y).
Equivalently, for all v ∈ ℝ^n, (1/√n) ‖v‖_2 ≤ ‖v‖_∞ ≤ ‖v‖_2.
Definition 1.9 (Convergence of sequences in metric spaces): a sequence
(x^{(n)})_{n=m}^∞ in a metric space converges to x if for every ε > 0
there exists an integer N ≥ m such that dist (x n) x ≤ ε for all n ≥ N
(equivalently, dist (x n) x → 0 as n → ∞).
Equations
- MetricSeqConvergesFrom x m x0 = ∀ ε > 0, ∃ N ≥ m, ∀ n ≥ N, dist (x n) x0 ≤ ε
Instances For
Proposition 1.4: if a sequence in a metric space converges to x0 from index m,
then any tail starting at m' ≥ m also converges to x0.
Convergence from index m with respect to a specified distance function.
Equations
- SeqConvergesFromWith d x m x0 = ∀ ε > 0, ∃ N ≥ m, ∀ n ≥ N, d (x n) x0 ≤ ε
Instances For
Proposition 1.5: transfer convergence when one distance is pointwise bounded by another.
Proposition 1.5: transfer convergence under a pointwise bound by a positive multiple.
Proposition 1.5 (Equivalence of ℓ^1, ℓ^2, ℓ^∞ convergence in ℝ^n):
let n ∈ ℕ, let (x^{(k)})_{k=m}^∞ be a sequence in ℝ^n with
x^{(k)} = (x_1^{(k)}, ..., x_n^{(k)}), and let x = (x_1, ..., x_n).
Then the following are equivalent: (a) x^{(k)} → x with respect to d_{ℓ^2},
(b) x^{(k)} → x with respect to d_{ℓ^1}, (c) x^{(k)} → x with respect to
d_{ℓ^∞}, and (d) for every 1 ≤ j ≤ n, the real sequence (x_j^{(k)})_{k=m}^∞
converges to x_j.
The discrete metric on a type: d(a,b)=0 if a=b and d(a,b)=1 otherwise.
Instances For
Proposition 1.6: in the discrete metric, the bound ≤ 1/2 forces equality.
Proposition 1.6: convergence in the discrete metric implies eventual equality.
Proposition 1.6: eventual equality implies convergence in the discrete metric.
Proposition 1.6 (Convergence in the discrete metric): a sequence converges to x0 with
respect to the discrete metric iff it is eventually constantly equal to x0.
Proposition 1.7 (Uniqueness of limits): if a sequence converges to x0 and also to x1
with respect to a metric d, then x0 = x1.
Proposition 1.8: Let (X, d) be a metric space and let f : X → X be a
bijection. Define d'(x,y) = d (f x) (f y). Then d' is a metric on X.
Proposition 1.9 (prop:1.9): the map on the closed unit interval that sends
0 to 1, 1 to 0, and fixes every x ∈ (0,1).
Equations
- swapEndpointsOnUnitInterval x = if x : ↑x = 0 then ⟨1, swapEndpointsOnUnitInterval._proof_1⟩ else if x : ↑x = 1 then ⟨0, swapEndpointsOnUnitInterval._proof_2⟩ else x
Instances For
Proposition 1.9 (prop:1.9): the metric d'(x,y)=|f(x)-f(y)| on the closed
unit interval induced by swapEndpointsOnUnitInterval.