Let be a set. We say that forms a metric space if there exists a function , called a metric or distance function, which satisfies the following axioms:
- Non-Negativity: Given , , i.e. two points are zero distance apart, only if they are the same point.
- Symmetry: For all , , i.e. it doesn’t matter which direction you measure the distance between two points, it should result in the same distance.
- Triangle Inequality: For all , , i.e. the direct distance between two points is always less than the indirect route.
Informally, a space with the concept of measuring distance.