The tuple is a metric space if is a non-empty set and satisfies:

  • (non-negativity) for all ;
  • (symmetry) for all ;
  • (triangle inequality) .