Metric
In mathematics, a metric or distance function is a function that defines a rigorous concept of distance between each pair of elements in a given set. By generalizing the physical concept of distance, metrics allow mathematicians to define topological concepts such as open and closed sets, continuity, convergence, and limits in highly abstract spaces. A set equipped with a metric is called a metric space.
Definitions
Let be a given non-empty set. A metric on
is a function
that satisfies the following four properties for all :
- Non-negativity:
- Identity of indiscernibles:
- Symmetry:
- Triangle inequality:
.
Properties
Non-negativity is implied by the other three properties.
Let . By triangle inequality,
Suppose that is a metric space and
. Then
{{Proof|proof=By triangle inequality,
By symmetry, re-arranging the inequality yields
Utilizing the triangle inequality again,