Definition 1.3.1. Metric space.
A metric space is a pair \((X,d)\text{,}\) where \(X\) is a set and \(d\colon X\times X\rightarrow \R\) is a function satisfying the following axioms:
-
Positivity.\(d(x,y)\geq 0\text{,}\) and \(d(x,y)=0\) if and only if \(x=y\text{,}\) for all \(x,y\in X\text{.}\)
-
Symmetry.\(d(x,y)=d(y,x)\) for all \(x,y\in X\text{.}\)
-
Triangle inequality.\(d(x,y)\leq d(x,z)+d(z,y)\) for all \(x,y,z\in X\text{.}\)
The function \(d\) is called a metric or a distance function on \(X\text{,}\) and for any \(x,y\in X\) we call \(d(x,y)\) the distance between \(x\) and \(y\text{.}\)
