Theorem 1.1: summing (-a i) * b i gives the negative of the sum of a i * b i.
Theorem 1.1: negation does not change the sum of squares.
Theorem 1.1: the upper bound for the Cauchy--Schwarz sum.
Theorem 1.1: the lower bound for the Cauchy--Schwarz sum.
Theorem 1.1: absolute-value form of the finite Cauchy--Schwarz inequality.
Theorem 1.1 (Cauchy--Schwarz inequality): let n ≥ 1 and a b : Fin n → ℝ. Then
|∑ i, a i * b i| ≤ (∑ i, (a i)^2)^{1/2} * (∑ i, (b i)^2)^{1/2}.
Helper for Theorem 1.2: expand the sum of squares of a i + b i.
Helper for Theorem 1.2: squared form of the triangle inequality.
Theorem 1.2 (Triangle inequality in ℝ^n for the Euclidean norm): let n ≥ 1 and
a b : Fin n → ℝ. Then
(∑ i, (a i + b i)^2)^{1/2} ≤ (∑ i, (a i)^2)^{1/2} + (∑ i, (b i)^2)^{1/2}.
Definition 1.1 (Convergence of a real sequence from index m).
Instances For
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 ℝ.
Definition 1.3 (Metric space): a metric satisfies the usual axioms.
- eq_zero_iff (x y : X) : d x y = 0 ↔ x = y
- comm (x y : X) : d x y = d y x
- triangle (x y z : X) : d x z ≤ d x y + d y z
- nonneg (x y : X) : 0 ≤ d x y
Instances For
If d x x = 0 and d x y = 0 → x = y, then d x y = 0 ↔ x = y.
From d x y = 0 ↔ x = y we get d x x = 0.
From d x y = 0 ↔ x = y we get d x y = 0 → x = y.
Proposition 1.1: the standard zero-distance formulations are equivalent.
The distance of a metric space satisfies TaoMetricAxioms.
The real distance satisfies TaoMetricAxioms.
A metric satisfies d x x = 0.
The real distance equals the absolute value of the difference.
The absolute value of a difference equals the real distance.
The standard metric agrees with realDist on ℝ.
The standard metric on ℝ satisfies TaoMetricAxioms.
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}).
Instances For
The metric space structure on a subset induced by the ambient metric.
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.
Instances For
Definition 1.7: for n ≥ 1, the taxicab (ℓ^1) metric on ℝ^n is
d_{ℓ^1}(x,y) = ∑ i, |x i - y i|, where x = (x_1, ..., x_n) and
y = (y_1, ..., y_n).
Instances For
The ℓ^2 distance on ℝ^n given by sqrt (∑ i, |x i - y i|^2).
Instances For
Proposition 1.2: the sum of squares of |x i - y i| is bounded by the square of the sum.
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 range of coordinate differences is nonempty when n ≥ 1.
Proposition 1.3: the range of coordinate differences is bounded above.
Proposition 1.3: each coordinate difference is bounded by the sup norm metric.
Proposition 1.3: the sup norm metric is nonnegative.
Proposition 1.3: each coordinate difference is bounded by the ℓ² distance.
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 → ∞).
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.
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: a uniform index for finitely many coordinate bounds.
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): 0 and 1 lie in the closed unit interval.
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).
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.
Instances For
Proposition 1.9 (prop:1.9): 1/n lies in [0,1] for positive n.