Metric Spaces, Compactness, and Continuity

A focused refresher on metric spaces, convergence, compactness, connectedness, and continuity.

Mathematics / Analysis / Metric spaces and compactness

Analysis notes
Sections

Metric Spaces

A metric space is a set XX equipped with a distance function

d:X×XR0d:X\times X\to \mathbb R_{\ge 0}

satisfying positivity, symmetry, and the triangle inequality.

Metric spaces are the bridge between analysis and topology. They give a concrete source of open balls,

Br(x)={y:d(x,y)<r},B_r(x)=\{y:d(x,y)<r\},

and therefore a topology.

Convergence

A sequence xnx_n converges to xx if for every ε>0\varepsilon>0, there exists NN such that

nNd(xn,x)<ε.n\ge N\Rightarrow d(x_n,x)<\varepsilon.

This definition is numerical, but the idea is topological: eventually the sequence enters every neighborhood of the limit.

Compactness

In metric spaces, compactness can often be read through sequences: every sequence has a convergent subsequence. In general topology, compactness is phrased using open covers.

Compactness is useful because it turns local control into finite control. This is why compactness appears repeatedly in geometry, analysis, and physics.

Continuity

A function f:XYf:X\to Y between metric spaces is continuous if

dX(xn,x)0dY(f(xn),f(x))0.d_X(x_n,x)\to 0 \Rightarrow d_Y(f(x_n),f(x))\to 0.

Equivalently, inverse images of open sets are open. The second formulation is the one that survives after the metric is forgotten.