Ball (mathematics) 2026-10-14
In a metric space , an open ball of radius about is . A closed ball instead uses . The strict inequality matters: a point at distance exactly belongs to the closed ball and is excluded from the open ball. In particular, is excluded from all three open unit balls above, and included in all three closed unit balls.
The three closed unit balls centred at zero are , , and . Their shapes are a diamond (a rotated square), a disk with a circle as its boundary, and an axis-aligned square. A ball need not look round! The corresponding open balls are the interiors of these shapes. At , Manhattan distance from zero is and Euclidean distance is , whereas Chebyshev distance is : only the square's open unit ball contains this point.
Figure 1.
Three closed unit balls on the same coordinate scale
. Details.
These shapes illustrate , with either the open ball or closed ball convention used consistently. Their outlines are included in the displayed closed balls. In an arbitrary metric space, however, points at distance exactly need not form the topological boundary; the discrete metric below shows why this distinction matters.
The same self-map can be a contraction mapping for one metric but not for a bilipschitz equivalent metric. On three points with distances , , the map , has Lipschitz constant . For the discrete metric, its Lipschitz constant is one. The metrics satisfy , so they preserve topology and completeness but not the strict numerical contraction condition. A contraction mapping theorem fixed-point proof therefore needs the specified metric and its contraction constant.
Discrete metric Created 2026-09-29 Updated 2026-10-14
The discrete metric sets and for distinct points. It induces the discrete topology, and its Cauchy sequences are exactly the eventually constant sequences.
Every nonempty set equipped with the discrete metric is a bounded set, even if it is an infinite set. For , both the open ball and closed ball about are the singleton . At , the open ball is still , but the closed ball is the whole space; for , both are the whole space. Every subset is both an open set and a closed set. Consequently the boundary of the radius-one closed ball is empty, even though every point other than is at distance exactly one. Also, the closure of is , rather than the radius-one closed ball.
The contraction mapping theorem states that a self-map of a nonempty complete metric space satisfying for a fixed has a unique fixed point. Its iterates converge to that point from every starting point.
To prove it, set . Induction gives . Hence for , the triangle inequality yields
Thus the iterates are a Cauchy sequence, with limit by completeness. The contraction inequality gives , so . For any two fixed points , forces equality of the points. This proves existence, uniqueness and convergence; passing also gives the displayed error bound.
For the three-point example, positivity and symmetry of are immediate. For three distinct points, the largest side has length two, no more than the sum of the other two; repeated-point triangle inequalities are trivial. Thus is a metric. The discrete metric satisfies
which proves bilipschitz equivalence of the two metrics. Define
The ratios of output to input distances for the three distinct pairs are in , so it is a contraction with . In , the pair has input and output distance one, precluding any . This illustrates the contraction property under equivalent metrics.
False. We construct a compact Hausdorff space with a countable dense discrete subspace but no compatible metric. Let
for each subset . Give its product topology, and let in . The Tychonoff theorem makes compact, and the product is Hausdorff; hence is a compact Hausdorff space. By construction, is countable and dense in , so is a separable topological space. The coordinate isolates within . Thus the subspace topology on is discrete and is induced by the discrete metric.
Suppose were metrizable. An infinite sequence of distinct points of would have a convergent subsequence, by sequential compactness of a compact metric space. Write this subsequence as with distinct . For , its coordinate alternates between zero and one and therefore does not converge. But coordinate projections are continuous in the product topology, so every coordinate of a convergent sequence must converge. This contradiction proves that is not metrizable. This is a separable compactification need not be metrizable counterexample.
Take to be the set , equipped with the discrete metric
Every Cauchy sequence is eventually constant: its terms must eventually have mutual distance in this metric less than . Consequently is a complete metric space. Its topology is the discrete topology, since every singleton is a ball of radius and every subset is a union of such balls.
For the codomain use the usual subspace topology on . The inverse image of any open set there is a subset of the discrete , hence is open. Therefore is continuous and plainly surjective. A continuous image of a complete metric space need not be complete. The two occurrences of have different domain and codomain metrics.
Let with the usual metric and let with the discrete metric, and take . Every subset of is an open set, so the image of every open subset of is open: is an open map.
It is not continuous at any point. For , every allows a distinct with , but the distance between and in the discrete metric is 1. Equivalently, the preimage of the open singleton is not open in . Thus even between metric spaces.
No. Give an infinite set the discrete metric
This space is bounded. Every Cauchy sequence is eventually constant, so it is complete. However, the open cover by the singleton balls has no finite subcover. Hence is not compact.
For a locally finite discrete metric space with basepoint , the growth function of a discrete metric space is
In a Cayley graph, left multiplication by is a graph isometry carrying to any other vertex . It therefore gives a bijection for every . Thus the growth function of a fixed Cayley graph is exactly independent of the basepoint.