A metric space is a set X together with a function ρ:X×X→R such that for all x,y,z∈X, the following properties are satisfied:
- ρ(x,y)=0 if and only if x=y.
- ρ(x,y)=ρ(y,x).
- ρ(x,z)≤ρ(x,y)+ρ(y,z).
Property 3 is called the triangle inequalityand the function ρ is called a metric. The metric generates a topology on X where the open sets G are those for which there exists ε>0 for all x∈G such that y∈X∣ρ(x,y)<ε⊂G.
Wikidata ID: Q180953