A distance is a function d:X×X→R+ that satisfies, ∀x,y,z∈X d(x,x)=0 d(x,y)=0⟹x=y d(x,y)=d(y,x) d(x,z)≤d(x,y)+d(y,z) i.e. the triangle inequality