Canonical: https://knowlpedia.com/topology/metric-space/

# Metric space

A set equipped with a metric that measures distances between its points.

A **metric space** is a pair \((X,d)\) where \(X\) is a [set](https://knowlpedia.com/shared-foundations/set/) and \(d\) is a [metric](https://knowlpedia.com/topology/metric/) on \(X\).

## Induced structure

Every metric space determines a [topological space](https://knowlpedia.com/topology/topological-space/) via the [metric-induced topology](https://knowlpedia.com/topology/metric-induced-topology/), whose basic neighborhoods are [open balls](https://knowlpedia.com/topology/open-ball/).

## Examples

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