Metric Spaces
Let be a set. A metric on is a function that satisfies the metric axioms for all
The third axiom is the triangle inequality.
Let be a set and be a metric on The pair is a metric space, and is written when the metric is understood. The real numbers with form a metric space, and with the Euclidean distance is the metric space called Euclidean space.
Let be a metric space and The metric subspace is the metric space where is the restriction of to
Let be a set. The discrete metric on is the metric that is when and otherwise. Any set is a metric space under the discrete metric.
Let be a vector space over or A norm on is a function that satisfies the norm axioms for all and all scalars
Let be a vector space over or and be a norm on The pair is a normed vector space. The norm of an inner product space satisfies the norm axioms by the Cauchy-Schwarz inequality, so every inner product space is a normed vector space.
Let be a normed vector space. The induced metric on is the metric given by the norm of the difference of two vectors.
Every normed vector space is a metric space with its induced metric.
Let and The -norm of is the -th root of the sum of the -th powers of the absolute values of its coordinates, and the maximum norm of is the largest absolute value of its coordinates.
The -norm is the Euclidean norm, the -norm is the Manhattan norm and as The triangle inequality for the -norm is the Minkowski inequality.
Let be a metric space, and The open ball of radius centred at is the set of points at distance less than from The closed ball of radius centred at is the set of points at distance at most from The sphere of radius centred at is the set of points at distance exactly from
Let be a metric space and The set is open if and only if every point of is the centre of some open ball contained in
Let be a metric space and The set is closed if and only if its complement is open.
In with the Euclidean distance this is the earlier definition of an open set. Open and closed sets have the following properties:
- open balls are open, and closed balls, spheres and finite sets are closed;
- open intervals are open in and closed intervals are closed in
- a set can be both open and closed, as and are, or neither, as is in
- under the discrete metric every set is open;
- the union of any collection of open sets is open and the intersection of finitely many open sets is open;
- the intersection of any collection of closed sets is closed and the union of finitely many closed sets is closed.
The finiteness conditions cannot be dropped: is an intersection of open sets that is not open.
Let be a metric space, and The point is an interior point of if and only if some open ball centred at is contained in The point is a limit point of if and only if every open ball centred at contains a point of other than The point is an isolated point of if and only if and some open ball centred at contains no other point of
Let be a metric space and The interior of written is the set of interior points of The closure of written is the union of and its limit points. The boundary of written is the closure of without the interior of
The interior, closure and boundary have the following properties:
- the interior is the largest open set contained in so is open if and only if
- the closure is the smallest closed set containing so is closed if and only if which holds if and only if contains all of its limit points;
- the boundary is closed, and if and only if every open ball centred at meets both and
For example, in the interval has interior closure and boundary whereas the rational numbers have empty interior and closure
Let be a metric space and The set is dense in if and only if The rational numbers are dense in
Let be a metric space and The set is bounded if and only if it is contained in some ball. The diameter of is the supremum of the distances between its points.
Let be a metric space, be a sequence of points of and The sequence converges to written if and only if the distances converge to as a sequence of real numbers.
Equivalently, every open ball centred at contains all but finitely many terms of the sequence. Convergent sequences in a metric space have the following properties:
- a convergent sequence has exactly one limit and is bounded;
- in a sequence converges if and only if each of its coordinates converges;
- in a metric subspace a sequence converges if and only if it converges in the whole space with the limit lying in the subspace;
- every subsequence of a convergent sequence converges to the same limit;
- if and only if is the limit of a sequence of points of so is closed if and only if it contains the limit of every convergent sequence of its points.
Let and be metric spaces, be a function and The function is continuous at if and only if for every there exists such that points within of are mapped to points within of
Let and be metric spaces and be a function. The function is continuous on if and only if it is continuous at every point of For real functions of one or several real variables this is the earlier definition of continuity. The following are equivalent:
- is continuous on
- whenever in
- the inverse image of every open set is open in
- the inverse image of every closed set in is closed in
Continuous functions on metric spaces have the following properties:
- a composition of continuous functions is continuous;
- the metric is continuous in each argument, since
- in a normed vector space the norm, addition and scalar multiplication are continuous.
Let and be metric spaces and be a function. The function is uniformly continuous if and only if for every there exists depending on alone, such that for all with
Let and be metric spaces and be a function. The function is Lipschitz continuous with constant if and only if for all
Let and be metric spaces and be a function. The function is an isometry if and only if it preserves distances.
An isometry is injective and Lipschitz continuous with constant Lipschitz continuity implies uniform continuity, which implies continuity.
Let be a set and and be metrics on The metrics and are equivalent if and only if they have the same open sets. Two metrics are equivalent if and only if they have the same convergent sequences with the same limits.
Let be a set and and be metrics on The metrics and are strongly equivalent if and only if there are constants such that each metric is bounded above and below by constant multiples of the other.
Strongly equivalent metrics are equivalent, and have the same bounded sets, Cauchy sequences and uniformly continuous functions. Equivalent metrics need not: is equivalent to the usual metric on but makes bounded.
Let be a vector space and and be norms on The norms are equivalent if and only if their induced metrics are strongly equivalent. Any two norms on are equivalent, since
so open sets, convergence and continuity in do not depend on which norm is used.