A metric space is a pair (X,d)(X,d) where XX is a and dd is a on XX.

Every metric space determines a via the , whose basic neighborhoods are .

Examples
  • (R,d)(\mathbb{R},d) with d(x,y)=xyd(x,y)=|x-y|.
  • Any set XX with the discrete metric d(x,y){0,1}d(x,y)\in\{0,1\}.