Alphabeta Math
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

✓ 18 results · all verified · 12 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 6 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Metric Spaces

1 · Prerequisites

2 · Summary

Objective. This page opens the topology track. It takes the one structure that a first course in analysis uses without naming, the distance between two points, isolates it into three axioms, and shows how much of the vocabulary of analysis is already determined by them: open and closed sets, interior, closure and boundary, convergence of sequences, and continuity of maps. Nothing here assumes anything about R beyond the complete ordered field built on the earlier pages, and everything proved here is available verbatim in every metric space that later pages construct.

The axioms, and what is not among them. A metric on a set X is a real-valued function of two points satisfying separation, symmetry and the triangle inequality (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric). Nonnegativity is deliberately not an axiom: it follows from the other three, and Nonnegativity of a metric is a consequence of the other axioms, not an axiom proves it, so a verification that some candidate function is a metric has three things to check and not four. The values are real numbers, never +∞; Which metric axiom list this library uses, the live naming fork between semimetric and pseudometric, and why extended metrics are not treated here records that decision, together with the live naming fork between pseudometric and semimetric. The extended real line is introduced later, but no extended-metric restatement is made on this page.

Three metric spaces are established here, and they are the ones later pages cite. That the absolute value makes R a metric space, with the open balls exactly the bounded open intervals and the space unbounded, is The absolute value makes R a metric space: d(x,y)=∣x−y∣ is a metric, its open balls are the intervals (x−r,x+r), and it is unbounded. That Rn, defined ZFC-natively as the set of functions from the von Neumann natural n to R, carries the three metrics d1, d2 and d∞ for every n≥1 is Rn as the set of functions n→R, and d1, d2, d∞ are metrics on it. That restriction is not decoration: at n=0 the metric d∞ would be a maximum over the empty index set. The lemma is proved from Minkowski at exponent 1 and from Cauchy-Schwarz, with no rational power anywhere. That the bounded real-valued functions on a nonempty set carry the supremum metric is The supremum metric d∞(f,g)=sup⁡x∣f(x)−g(x)∣ is a metric on the bounded real-valued functions on a nonempty set. None of these had a home in the library before, and each is stated here rather than on the companion page because an examples page is a leaf and nothing may depend on it.

From the metric to the topology. The open sets are those in which every point has a ball around it inside the set (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement), and Arbitrary unions and finite intersections of open sets are open, open balls are open and closed balls are closed proves that this collection is closed under arbitrary unions and finite intersections, that balls are open and that closed balls are closed. Interior, closure, boundary, limit points and density follow (Interior, closure, boundary, limit point, isolated point and dense subset of a metric space), and The closure of a nonempty A is {x:d(x,A)=0}, equals A together with its limit points, and is the smallest closed superset identifies the closure three ways at once: as the points at distance zero from the set, as the set together with its limit points, and as the smallest closed superset. The distance to a fixed nonempty set is 1-Lipschitz (∣d(x,A)−d(y,A)∣≤d(x,y), so the distance to a fixed nonempty set is 1-Lipschitz), a refinement of the reverse triangle inequality (The reverse triangle inequality ∣d(x,z)−d(y,z)∣≤d(x,y) in any metric space) that makes the first of those three descriptions the zero set of a well-behaved function.

Sequences, and where choice is spent. Convergence in a metric space is convergence to zero of the real sequence of distances (Convergence of a sequence in a metric space: xk→x iff d(xk,x)→0 in R), so it inherits the conventions of the sequences page, including that N contains 0 and that the definition quantifies over rational ε. Limits are unique (A sequence in a metric space has at most one limit), and more is true: distinct points are separated by disjoint balls, so every metric space is Hausdorff (Distinct points of a metric space have disjoint balls around them). The balls of radius 1/n form a countable neighbourhood base at each point (The balls B(x,1/n), n≥1, form a countable neighbourhood base at x, so every metric space is first countable), which is what makes sequences powerful enough to detect the closure: a point is adherent to a set exactly when some sequence in the set converges to it, and a set is closed exactly when it is sequentially closed (A point lies in the closure of A iff some sequence in A converges to it, and a set is closed iff it is sequentially closed). That theorem is the one place on this page where a choice principle is spent, and it spends only countable choice; the dependence is flagged at the step that spends it rather than suppressed, and Metric continuity characterisations, with countable choice for the sequential converse inherits it from there rather than adding to it.

Continuity, embeddings and comparison of metrics. The ε-δ definition (Continuity of a map between metric spaces, at a point and globally, in the ε-δ form) agrees with four other conditions: preimages of open sets are open, preimages of closed sets are closed, sequential continuity, and f[A‾]⊆f[A]‾ (Metric continuity characterisations, with countable choice for the sequential converse). Isometric embeddings are injective and identify their source with the subspace they land on, topology and all (Isometry, isometric embedding, and the subspace metric on a subset, An isometric embedding is injective and carries the metric topology of the source onto the subspace topology of its image), which is what licenses treating a subset of a metric space as a space in its own right. Finally, two metrics on one set may be compared at three strengths, Lipschitz, uniform and topological (Topologically, uniformly and Lipschitz equivalent metrics on a set), ranked by Lipschitz equivalence implies uniform equivalence implies topological equivalence. The ranking is strict, but the witnesses live on the companion page, so the theorem claims only the two implications.

Two false statements close the page, both about reading too much into the names. The closure of an open ball need not be the closed ball of the same radius (FALSE: in every metric space the closure of B(x,r) is the closed ball of radius r); and boundedness is not determined by the topology, because every metric space carries a bounded metric with the same open sets (min⁡(d,1) and d/(1+d) are metrics uniformly equivalent to d, so every metric space carries a bounded metric with the same topology, FALSE: boundedness of a metric space is determined by its topology). The witnesses for both, and for the strictness of the equivalence hierarchy, are on the companion examples page.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric

Definition

Throughout, R is the complete ordered field (Complete ordered field (least-upper-bound property), Ordered field) constructed in this library (The real numbers) and carrying its order (Order on the reals).

Let X be a set. A metric on X is a function d:X×X→R such that for all x,y,z∈X:

  • (M1) Separation. d(x,y)=0 if and only if x=y.
  • (M2) Symmetry. d(x,y)=d(y,x).
  • (M3) Triangle inequality. d(x,z)≤d(x,y)+d(y,z).

A metric space is a pair (X,d) consisting of a set X and a metric d on it. The elements of X are its points and d(x,y) is the distance from x to y. When only one metric is in play we write X for (X,d); when several are, the metric is always named.

The values of a metric are real numbers. The codomain is R, so d(x,y) is an honest element of the complete ordered field and every inequality above is an inequality there. No infinite value is permitted; Which metric axiom list this library uses, the live naming fork between semimetric and pseudometric, and why extended metrics are not treated here records why extended metrics are not treated in this library.

Nonnegativity is deliberately absent from the axiom list. Many texts add a fourth axiom d(x,y)≥0. It is redundant: (M1), (M2) and (M3) already force it, as Nonnegativity of a metric is a consequence of the other axioms, not an axiom proves. Nothing below assumes it before that lemma is available.

Pseudometric. A pseudometric on X is a function p:X×X→R satisfying (M2), (M3) and the weakening

  • (M1') Reflexivity. p(x,x)=0 for every x∈X

of (M1). A pseudometric may therefore assign distance 0 to two distinct points. Every metric is a pseudometric, and a pseudometric is a metric exactly when p(x,y)=0 forces x=y.

Ultrametric. An ultrametric on X is a metric d that in addition satisfies

  • (M3') Strong triangle inequality. d(x,z)≤max⁡{d(x,y),d(y,z)}

for all x,y,z∈X, where the maximum is that of a two-element subset of R, which exists and is one of the two elements (Maximum and minimum of a set, Every nonempty finite set of reals has a maximum and a minimum). An ultrametric space is a pair (X,d) with d an ultrametric.

Remarks

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

Nonnegativity of a metric is a consequence of the other axioms, not an axiom

Statement

Let X be a set and let p:X×X→R satisfy the reflexivity axiom (M1') p(x,x)=0 and the symmetry axiom (M2) p(x,y)=p(y,x) of Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric. Then:

  1. If p satisfies the triangle inequality (M3), then p(x,y)≥0 for all x,y∈X.
  2. If p satisfies the strong triangle inequality (M3'), then p(x,y)≥0 for all x,y∈X.

In particular every metric, every pseudometric and every ultrametric (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric) takes only nonnegative values. Nonnegativity is therefore a theorem about the axiom list this library uses, not a fourth axiom, and no statement on this page needs to assume it separately.

Facts & Assumptions

Given: A set X, points x,y∈X, and a function p:X×X→R satisfying (M1') p(a,a)=0 for every a∈X and (M2) p(a,b)=p(b,a) for all a,b∈X (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric).

[A1]

(M3) The triangle inequality p(a,c)≤p(a,b)+p(b,c) holds for all a,b,c∈X (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric).

[A2]

(M3') The strong triangle inequality p(a,c)≤max⁡{p(a,b),p(b,c)} holds for all a,b,c∈X (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric).

[L1]

Trichotomy of the order of R: for reals a,b exactly one of a<b, a=b, b<a holds, so a≥0 fails exactly when a<0 (Order on the reals, Complete ordered field (least-upper-bound property), Ordered field).

[L2]

Adding two strict inequalities: if a<b and c<d then a+c<b+d (Order is preserved by adding a constant and by adding inequalities).

[L3]

A two-element subset {a,b} of R has a maximum, and that maximum is a or b; if a=b it is a (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).

Proof

technique · direct
1.1

Instantiate [A1] at a=x, b=y, c=x: p(x,x)≤p(x,y)+p(y,x).

A1
1.2

Instantiate [A2] at a=x, b=y, c=x: p(x,x)≤max⁡{p(x,y),p(y,x)}.

A2
1.3

Suppose, towards ruling it out, that p(x,y)<0.

assume-hyp
2.1

By (M1') the left side of step 1.1 is 0 and by (M2) the right side is p(x,y)+p(x,y), so 0≤p(x,y)+p(x,y).

step 1.1given
2.2

By (M2) the two entries of the maximum in step 1.2 are the same real number, so that maximum equals p(x,y) by [L3], and (M1') turns step 1.2 into 0≤p(x,y), which is claim 2.

step 1.2givenL3
2.3

Adding the supposed inequality of step 1.3 to itself gives p(x,y)+p(x,y)<0+0=0.

step 1.3L2
3.1

Steps 2.1 and 2.3 assert 0≤p(x,y)+p(x,y) and p(x,y)+p(x,y)<0, which trichotomy forbids; so the supposition of step 1.3 is untenable and p(x,y)≥0, which is claim 1.

step 2.1step 2.2step 2.3L1∎

Remarks

  • What each claim uses. Claim 1 is the familiar two-line argument 0=p(x,x)≤p(x,y)+p(y,x)=2p(x,y) followed by the observation that a negative real added to itself stays negative. Claim 2 does not need that second half at all: the strong triangle inequality delivers 0≤p(x,y) in one step, because the maximum of a real number with itself is that number.
  • Symmetry is used in both claims and cannot be dropped. Without (M2) the instantiation of step 1.1 only gives 0≤p(x,y)+p(y,x), which leaves the possibility that one of the two values is negative and the other larger and positive. Dropping (M2) instead of weakening (M1) gives the notion usually called a quasimetric, which this library does not treat; for it the argument above is unavailable, so nonnegativity is not redundant there and is imposed as part of the definition (Which metric axiom list this library uses, the live naming fork between semimetric and pseudometric, and why extended metrics are not treated here).
DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

Open ball, closed ball and sphere in a metric space

Definition

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric), let x∈X and let r∈R with r>0 (Order on the reals). Define

B(x,r):={ y∈X:d(x,y)<r },Bˉ(x,r):={ y∈X:d(x,y)≤r },S(x,r):={ y∈X:d(x,y)=r }.

B(x,r) is the open ball, Bˉ(x,r) the closed ball and S(x,r) the sphere of centre x and radius r. The radius is always a strictly positive real; a ball of radius 0 or of negative radius is never written in this library.

Immediate consequences of the definitions. For every x∈X and r>0:

  • x∈B(x,r), because d(x,x)=0<r (axiom (M1) of Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric); in particular open and closed balls are nonempty.
  • B(x,r)⊆Bˉ(x,r) and S(x,r)⊆Bˉ(x,r), and Bˉ(x,r) is the disjoint union of B(x,r) and S(x,r), by trichotomy of the order of R (Complete ordered field (least-upper-bound property), Ordered field): each y satisfies exactly one of d(x,y)<r, d(x,y)=r, d(x,y)>r.
  • If 0<s≤r then B(x,s)⊆B(x,r) and Bˉ(x,s)⊆Bˉ(x,r), by transitivity of the order.
  • Nonnegativity of the metric (Nonnegativity of a metric is a consequence of the other axioms, not an axiom) is what forces the radius convention, and it forces it for the open ball only: if r≤0 then B(x,r)={y:d(x,y)<r} is empty, because d(x,y)≥0≥r for every y. The other two sets behave differently at r=0, and the convention r>0 excludes them for uniformity rather than for emptiness: Bˉ(x,0)=S(x,0)={x}, since d(x,y)≤0 together with d(x,y)≥0 gives d(x,y)=0 and hence y=x by (M1). For r<0 all three sets are empty.

A sphere may be empty, and so the three sets are not on a par. For r>0 the open and closed balls always contain x, but nothing in the definition produces a point at distance exactly r from x. If a metric takes only the values 0 and 1, as the discrete metric on the companion page does, then S(x,2)=∅ while B(x,2)=Bˉ(x,2) is the whole space. So nonemptiness of a sphere is never available by convention: where it is used, it is proved.

The ambient space is part of the notation. B(x,r) depends on (X,d) and not on x and r alone. When more than one space or more than one metric is in play we write BX(x,r), or Bd(x,r), and likewise for Bˉ and S. This matters as soon as subspaces appear (Isometry, isometric embedding, and the subspace metric on a subset): a ball of a subspace is the trace on it of a ball of the ambient space, and the two are different sets.

Remarks

DefinitionDefinition: AI-adaptedProof: Not applicableverified 2026-08-02 (claude-opus-5)Open item page →

Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space

Definition

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let A,B⊆X.

Bounded subset. A is bounded if A=∅ or there are x0∈X and a real r>0 with A⊆B(x0,r) (Open ball, closed ball and sphere in a metric space). The space (X,d) is a bounded metric space if X is a bounded subset of itself.

Diameter, for nonempty bounded A only. Suppose A is nonempty and bounded, and put

D(A):={ d(a,b):a,b∈A }⊆R.

Then D(A) is nonempty, since A is, and it is bounded above: fixing x0 and r with A⊆B(x0,r), every a,b∈A satisfy d(a,b)≤d(a,x0)+d(x0,b)<r+r by the triangle inequality, symmetry (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric) and addition of inequalities (Order is preserved by adding a constant and by adding inequalities, Ordered field), so r+r is an upper bound of D(A) (Lower bound, bounded below, bounded set). Hence D(A) has a least upper bound in R by the least-upper-bound property (Complete ordered field (least-upper-bound property)), and that bound is unique (Suprema and infima are unique). Define

diam⁡(A):=sup⁡D(A).

Distance from a point to a set, for nonempty A only. Let x∈X and let A be nonempty, and put E(x,A):={ d(x,a):a∈A }. Then E(x,A) is nonempty and bounded below by 0, since a metric is nonnegative (Nonnegativity of a metric is a consequence of the other axioms, not an axiom, Lower bound, bounded below, bounded set), so it has a greatest lower bound (Every nonempty set bounded below has an infimum, Greatest lower bound (infimum)), unique by Suprema and infima are unique. Define

d(x,A):=inf⁡E(x,A).

Distance between two sets, for nonempty A and B only. Put E(A,B):={ d(a,b):a∈A, b∈B }, again nonempty and bounded below by 0, and define

d(A,B):=inf⁡E(A,B).

Every one of the three scope restrictions is load bearing. In this library sup⁡ and inf⁡ denote real numbers and are written only after existence has been established; the extended real line is introduced on a later page and is not used for the suprema and infima taken here, and no convention sup⁡∅=−∞ is in force in this development (Conventions: sup⁡∅, unbounded sets, and the extended reals). Accordingly:

  • diam⁡(A) is defined exactly when A is nonempty and bounded. It is not defined for A=∅, and it is not defined, not even as an infinite value, for an unbounded A.
  • d(x,A) is defined exactly when A≠∅, and d(A,B) exactly when both A and B are nonempty. No boundedness is needed for these two, because 0 is always a lower bound.

Remarks

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

The reverse triangle inequality ∣d(x,z)−d(y,z)∣≤d(x,y) in any metric space

Statement

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let x,y,z∈X. Then

∣d(x,z)−d(y,z)∣≤d(x,y),

where ∣⋅∣ is the absolute value of R (Absolute value in an ordered field).

Facts & Assumptions

Given: A metric space (X,d) and points x,y,z∈X; write t:=d(x,z)−d(y,z).

[A1]

The triangle inequality (M3): d(a,c)≤d(a,b)+d(b,c) for all a,b,c∈X (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric).

[L1]

For every real u, the value ∣u∣ equals u or −u (Basic properties of the absolute value, Absolute value in an ordered field).

[L2]

Adding a constant to an inequality: if a≤b then a+c≤b+c. Order is preserved by adding a constant and by adding inequalities states the strict form a<b⇒a+c<b+c; the nonstrict form used here is that strict form together with the case a=b, in which the two sides are equal, the order being total (Ordered field, Complete ordered field (least-upper-bound property)).

Proof

technique · direct
1.1

By [A1] at (a,b,c)=(x,y,z): d(x,z)≤d(x,y)+d(y,z).

A1
1.2

By [A1] at (a,b,c)=(y,x,z): d(y,z)≤d(y,x)+d(x,z), and by [A2] d(y,x)=d(x,y), so d(y,z)≤d(x,y)+d(x,z).

A1A2
2.1

Adding −d(y,z) to both sides of step 1.1 gives t=d(x,z)−d(y,z)≤d(x,y).

step 1.1L2
2.2

Adding −d(x,z) to both sides of step 1.2 gives d(y,z)−d(x,z)≤d(x,y), that is −t≤d(x,y).

step 1.2L2
3.1

By [L1] the real number ∣t∣ is either t or −t, and both of these are at most d(x,y) by steps 2.1 and 2.2, so ∣d(x,z)−d(y,z)∣=∣t∣≤d(x,y).

step 2.1step 2.2L1∎

Remarks

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

∣d(x,A)−d(y,A)∣≤d(x,y), so the distance to a fixed nonempty set is 1-Lipschitz

Statement

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric), let A⊆X be nonempty and let x,y∈X. Then

∣d(x,A)−d(y,A)∣≤d(x,y),

with d(⋅,A) the distance to a nonempty set (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space). Thus the real-valued function u↦d(u,A) changes by at most d(u,v) between u and v: it is 1-Lipschitz.

Facts & Assumptions

Given: A metric space (X,d), a nonempty A⊆X, and points x,y∈X; write E(u):={ d(u,a):a∈A } for u∈X.

[A1]

The triangle inequality (M3) of Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric: d(u,a)≤d(u,v)+d(v,a) for all u,v∈X and a∈A.

[L2]

The infimum is a lower bound of its set and is the greatest such: inf⁡S≤s for every s∈S, and ℓ≤inf⁡S for every lower bound ℓ of S (Greatest lower bound (infimum)).

[L3]

Adding a constant to an inequality: if a≤b then a+c≤b+c. Order is preserved by adding a constant and by adding inequalities states the strict form only; the nonstrict form used here is that form together with the case a=b, settled by totality of the order (Ordered field, Complete ordered field (least-upper-bound property)).

[L4]

For every real u, ∣u∣ equals u or −u (Basic properties of the absolute value, Absolute value in an ordered field).

Proof

technique · direct
1.1

Both d(x,A) and d(y,A) are defined real numbers, since A is nonempty.

givenL1
1.2

For every a∈A: d(x,a)≤d(x,y)+d(y,a).

A1
1.3

For every a∈A: d(y,a)≤d(y,x)+d(x,a), and d(y,x)=d(x,y) by symmetry (M2), so d(y,a)≤d(x,y)+d(x,a).

A1
2.1

For every a∈A: d(x,A)≤d(x,a), since d(x,A) is a lower bound of E(x) and d(x,a)∈E(x); combining with step 1.2 gives d(x,A)≤d(x,y)+d(y,a), hence d(x,A)−d(x,y)≤d(y,a).

step 1.1step 1.2L2L3
2.2

For every a∈A: d(y,A)≤d(y,a)≤d(x,y)+d(x,a) by the same reasoning with the roles of x and y exchanged, hence d(y,A)−d(x,y)≤d(x,a).

step 1.1step 1.3L2L3
3.1

The real number d(x,A)−d(x,y) is therefore a lower bound of E(y), so it is at most the greatest lower bound: d(x,A)−d(x,y)≤d(y,A), that is d(x,A)−d(y,A)≤d(x,y).

step 2.1L2L3
3.2

Symmetrically d(y,A)−d(x,y) is a lower bound of E(x), so d(y,A)−d(x,A)≤d(x,y).

step 2.2L2L3
4.1

By [L4] the value ∣d(x,A)−d(y,A)∣ is d(x,A)−d(y,A) or its negative d(y,A)−d(x,A), and steps 3.1 and 3.2 bound both by d(x,y); hence ∣d(x,A)−d(y,A)∣≤d(x,y).

step 3.1step 3.2L4∎

Remarks

DefinitionDefinition: Literature-sourcedProof: Not applicableverified 2026-08-02 (claude-opus-5)Open item page →

The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement

Definition

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric).

A subset U⊆X is open in (X,d) if for every x∈U there is a real r>0 with B(x,r)⊆U (Open ball, closed ball and sphere in a metric space). A subset F⊆X is closed in (X,d) if its complement X∖F is open.

The collection

Td:={ U⊆X:U is open in (X,d) }

of all open subsets is the metric topology of d on X. A subset of X that is both open and closed is called clopen.

Two sets are open for trivial reasons. ∅ is open, because the defining condition quantifies over no points; and X is open, because B(x,r)⊆X for every x and every r>0. Consequently X and ∅ are also closed, and both are clopen.

A neighbourhood of a point x is any open set containing x. The condition above therefore reads: U is open exactly when every point of U has a ball around it inside U, and it is the balls alone that have to be tested.

The metric, not the set, determines Td. Two metrics on the same set may have different metric topologies, and two different metrics may have the same one; the systematic comparison is Topologically, uniformly and Lipschitz equivalent metrics on a set.

Remarks

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passverified 2026-08-02 (claude-opus-5)Open item page →

The absolute value makes R a metric space: d(x,y)=∣x−y∣ is a metric, its open balls are the intervals (x−r,x+r), and it is unbounded

Statement

Define dR:R×R→R by dR(x,y):=∣x−y∣ (Absolute value in an ordered field). Then:

  1. dR is a metric on R (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric); it is called the usual metric of R.
  2. For x∈R and r>0 the open ball is the bounded open interval (Intervals of R: the nine order-convex forms, nondegeneracy, and length, Open ball, closed ball and sphere in a metric space) B(x,r)=(x−r, x+r), and the closed ball is Bˉ(x,r)=[x−r, x+r].
  3. Consequently U⊆R is open in the metric topology of dR (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement) exactly when for every x∈U there is r>0 with (x−r,x+r)⊆U. This topology is called the usual topology of R.
  4. (R,dR) is not a bounded metric space (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space): no ball contains R, so diam⁡(R) is not defined.

Facts & Assumptions

Given: The complete ordered field R (Complete ordered field (least-upper-bound property), Ordered field) with its absolute value (Absolute value in an ordered field), and the function dR(x,y)=∣x−y∣; points x,y,z∈R and a real r>0.

[L1]

Absolute value: ∣u∣≥0; ∣u∣=0 if and only if u=0; ∣−u∣=∣u∣; and for c>0 one has ∣u∣<c if and only if −c<u<c (Basic properties of the absolute value, Absolute value in an ordered field).

[L2]

Triangle inequality in an ordered field: ∣u+v∣≤∣u∣+∣v∣ (The triangle inequality).

[L3]

Intervals: (a,b)={t:a<t<b} and [a,b]={t:a≤t≤b} (Intervals of R: the nine order-convex forms, nondegeneracy, and length).

[L4]

Archimedean property: for every w∈R there is a natural n≥1 with w<n⋅1R (Every complete ordered field is Archimedean); and n⋅1R>0 for n≥1 (Canonical naturals are positive and strictly increasing).

[L5]

Adding a constant to an inequality, in strict and nonstrict form: the strict form is Order is preserved by adding a constant and by adding inequalities and the nonstrict form is that together with the case of equality, the order being total (Ordered field).

[L6]

Trichotomy: for reals a,b exactly one of a<b, a=b, b<a holds (Complete ordered field (least-upper-bound property), Ordered field).

Proof

technique · direct
1.1

Separation (M1): dR(x,y)=∣x−y∣=0 holds if and only if x−y=0, that is if and only if x=y.

L1
1.2

Symmetry (M2): dR(y,x)=∣y−x∣=∣−(x−y)∣=∣x−y∣=dR(x,y).

L1
1.3

Triangle inequality (M3): dR(x,z)=∣x−z∣=∣(x−y)+(y−z)∣≤∣x−y∣+∣y−z∣=dR(x,y)+dR(y,z).

L2
1.4

For y∈R and r>0: y∈B(x,r) means ∣x−y∣<r, which by [L1] holds if and only if −r<x−y<r, and adding y−r respectively y+r to the two halves shows this is equivalent to x−r<y<x+r.

L1L5
1.5

For y∈R and r>0: y∈Bˉ(x,r) means ∣x−y∣≤r, which by the same equivalence read with ≤ in place of < holds if and only if x−r≤y≤x+r.

L1L5
1.6

Let x0∈R and r>0 be arbitrary, and use [L4] to fix a natural n≥1 with x0+r<n⋅1R; write w:=n⋅1R.

L4choose
2.1

By steps 1.1, 1.2 and 1.3 the function dR satisfies (M1), (M2) and (M3), so it is a metric on R, which is claim 1.

step 1.1step 1.2step 1.3
2.2

By step 1.4 and [L3] the set B(x,r) has exactly the elements of (x−r,x+r), and by step 1.5 and [L3] the set Bˉ(x,r) has exactly the elements of [x−r,x+r]; this is claim 2.

step 1.4step 1.5L3
2.3

Since r>0 we have x0<x0+r<w, so w−x0>r>0 and hence dR(x0,w)=∣x0−w∣=∣−(w−x0)∣=w−x0>r; therefore w∉B(x0,r).

step 1.6L1L5L6
3.1

Substituting claim 2 into the definition of open in the metric topology gives claim 3: U is open exactly when every x∈U admits r>0 with (x−r,x+r)=B(x,r)⊆U.

step 2.2
4.1

Since x0 and r were arbitrary, step 2.3 exhibits for every ball B(x0,r) a real not in it, so no ball contains R; hence R is not a bounded subset of itself and diam⁡(R) is not defined, which is claim 4.

step 2.1step 2.3∎

Remarks

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

Rn as the set of functions n→R, and d1, d2, d∞ are metrics on it

Statement

Let n∈N with n≥1. A von Neumann natural is the set of its predecessors, n={0,1,…,n−1} (The natural numbers N (von Neumann)), so it can be used directly as an index set. Define

Rn:={ x:x is a function n→R },

and write xk for x(k), k<n. Two elements of Rn are equal exactly when they agree at every k<n, functions being equal when they have the same values. For x,y∈Rn put

d1(x,y):=∑k<n∣xk−yk∣,d2(x,y):= ∑k<n(xk−yk)2 ,d∞(x,y):=max⁡{ ∣xk−yk∣:k<n }.

All three are well defined: the finite sums are those of Finite sums and finite products, by recursion; the sum of squares is nonnegative (Laws of finite sums and finite products, Squares of nonzero elements are positive) so it has a unique nonnegative square root (Square roots exist: a unique a≥0 with (a)2=a; the positives are {x2:x≠0}); and {∣xk−yk∣:k<n} is a nonempty finite subset of R, because n≥1, so it has a maximum (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).

Then d1, d2 and d∞ are metrics on Rn (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric).

Why n≥1. For n=0 the set R0 has exactly one element, the empty function, and d1 and d2 are the empty sum 0 and its root; but d∞ would be the maximum of the empty set, which does not exist. The hypothesis n≥1 is therefore not decoration, and it is carried by every statement about d∞ in this library.

Facts & Assumptions

Given: A natural n≥1; elements x,y,z∈Rn; and the lists ak:=xk−yk, bk:=yk−zk for k<n, so that ak+bk=xk−zk. Write A:=∑k<nak2, C:=∑k<nbk2 and B:=∑k<nakbk.

[L1]

Laws of finite sums (Laws of finite sums and finite products, Finite sums and finite products, by recursion): additivity, scaling, monotonicity; a sum of nonnegative terms is nonnegative, every single term is at most the sum, and a sum of nonnegative terms that vanishes has every term 0.

[L2]

Absolute value (Basic properties of the absolute value, Absolute value in an ordered field): ∣u∣≥0; ∣u∣=0 if and only if u=0; ∣−u∣=∣u∣; and u≤∣u∣.

[L3]

Two-term triangle inequality: ∣u+v∣≤∣u∣+∣v∣ (The triangle inequality).

[L4]

Minkowski's inequality at the rational exponent p=1 (Minkowski's inequality for finite sums (rational exponent)): ∑k<n∣ak+bk∣≤∑k<n∣ak∣+∑k<n∣bk∣.

[L5]

Cauchy-Schwarz in root form (The Cauchy-Schwarz inequality for finite sums): ∣∑k<nakbk∣≤∑k<nak2 ∑k<nbk2.

[L6]

Square roots (Square roots exist: a unique a≥0 with (a)2=a; the positives are {x2:x≠0}): every c≥0 has a unique c≥0 with (c)2=c; in particular c=0 if and only if c=0.

[L7]

Squares (Squares of nonzero elements are positive, Integer powers am): u2≥0 always, and u2=0 only for u=0; and monotonicity of squaring on the nonnegatives, s≤t  ⟺  s2≤t2 for s,t≥0 (Squaring is monotone on the nonnegatives).

[L8]

Maximum of a nonempty finite set of reals: it exists, it belongs to the set, and it is an upper bound of the set (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).

[L9]

Order arithmetic in R: inequalities may be added and a constant added to both sides, in the strict form of Order is preserved by adding a constant and by adding inequalities and, together with the case of equality settled by totality (Ordered field, Complete ordered field (least-upper-bound property)), in the nonstrict form used below.

Proof

technique · direct
1.1

Separation for d1: d1(x,y)=∑k<n∣ak∣ is a sum of nonnegative terms, so it vanishes exactly when every ∣ak∣ vanishes, that is exactly when xk=yk for all k<n, that is exactly when x=y.

L1L2
1.2

Separation for d2: d2(x,y)=A vanishes exactly when A=0; A is a sum of nonnegative terms, so A=0 exactly when ak2=0 for every k<n, which happens exactly when every ak=0, that is exactly when x=y.

L1L6L7
1.3

Separation for d∞: the maximum d∞(x,y) belongs to {∣ak∣:k<n} and bounds it above, so it is 0 exactly when every ∣ak∣=0, that is exactly when x=y.

L2L8
1.4

Symmetry for all three: ∣yk−xk∣=∣−(xk−yk)∣=∣xk−yk∣ and (yk−xk)2=(xk−yk)2 for every k<n, so the three defining expressions are unchanged when x and y are exchanged.

L2L7
1.5

Triangle inequality for d1: applying [L4] to the lists (ak) and (bk) gives d1(x,z)=∑k<n∣ak+bk∣≤∑k<n∣ak∣+∑k<n∣bk∣=d1(x,y)+d1(y,z).

L4
1.6

Expanding with additivity and scaling: ∑k<n(ak+bk)2=∑k<n(ak2+2akbk+bk2)=A+2B+C.

L1algebra
1.7

By [L5] and B≤∣B∣: B≤A C, and A=(A)2, C=(C)2 with A,C≥0.

L2L5L6
1.8

Triangle inequality for d∞: for each k<n, ∣ak+bk∣≤∣ak∣+∣bk∣≤d∞(x,y)+d∞(y,z) because the two maxima bound their sets; so d∞(x,y)+d∞(y,z) is an upper bound of {∣ak+bk∣:k<n}, and the maximum d∞(x,z) of that set is one of its elements, whence d∞(x,z)≤d∞(x,y)+d∞(y,z).

L3L8L9
2.1

Combining steps 1.6 and 1.7: ∑k<n(ak+bk)2=A+2B+C≤(A)2+2AC+(C)2=(A+C)2.

step 1.6step 1.7L9algebra
3.1

Both d2(x,z)=∑k<n(ak+bk)2 and A+C are nonnegative, and by step 2.1 the square of the first is at most the square of the second, so monotonicity of squaring on the nonnegatives gives d2(x,z)≤A+C=d2(x,y)+d2(y,z).

step 2.1L6L7
4.1

Each of d1, d2, d∞ satisfies (M1) by steps 1.1, 1.2 and 1.3, satisfies (M2) by step 1.4, and satisfies (M3) by steps 1.5, 3.1 and 1.8 respectively; hence all three are metrics on Rn.

step 1.1step 1.2step 1.3step 1.4step 1.5step 1.8step 3.1∎

Remarks

  • Rn is defined ZFC-natively here, as the set of functions from the von Neumann natural n to R, precisely so that its coordinates are indexed by k<n and the finite-sum machinery of Finite sums and finite products, by recursion, Minkowski's inequality for finite sums (rational exponent) and The Cauchy-Schwarz inequality for finite sums, all of which sum over k<n, applies without any reindexing.
  • No rational power appears anywhere above. The triangle inequality for d2 is obtained from Cauchy-Schwarz and the existence of square roots, not from Minkowski at p=2, so this lemma does not depend on the theory of rational exponents. Minkowski is used only at p=1, where its statement is the termwise sum of the two-term triangle inequality.
  • The three metrics are Lipschitz equivalent, with explicit constants, and in particular have the same topology; that computation is on the companion page and is not needed here.
LemmaStatement: AI-adaptedProof: AI-generatedprecheck passverified 2026-08-02 (claude-opus-5)Open item page →

The supremum metric d∞(f,g)=sup⁡x∣f(x)−g(x)∣ is a metric on the bounded real-valued functions on a nonempty set

Statement

Let S be a nonempty set. Call a function f:S→R bounded when its range f[S]={f(s):s∈S} is a bounded subset of R (Lower bound, bounded below, bounded set), and write

B(S):={ f:f is a bounded function S→R }.

For f,g∈B(S) put D(f,g):={ ∣f(s)−g(s)∣:s∈S } and

d∞(f,g):=sup⁡D(f,g).

This is well defined: D(f,g) is nonempty because S is, and it is bounded above (step 1.1 below), so its least upper bound exists (Complete ordered field (least-upper-bound property)) and is unique (Suprema and infima are unique).

Then d∞ is a metric on B(S) (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric), the supremum metric (also called the uniform metric).

The hypotheses ensure that the formula is a finite real-valued metric for every pair in the stated function space. Boundedness of f and g makes D(f,g) bounded above, and nonemptiness of S makes it nonempty. Some unbounded pairs can still have a finite supremum, but allowing all real-valued functions would not give a finite-valued metric: for example, on S=R the functions f(s)=s and g(s)=0 make D(f,g) unbounded above (Conventions: sup⁡∅, unbounded sets, and the extended reals).

Facts & Assumptions

Given: A nonempty set S and bounded functions f,g,h∈B(S), with ℓf≤f(s)≤uf, ℓg≤g(s)≤ug and ℓh≤h(s)≤uh for all s∈S; a fixed s0∈S.

[L1]

Bounded subset of R: T is bounded when there are ℓ,u∈R with ℓ≤t≤u for every t∈T (Lower bound, bounded below, bounded set).

[L2]

Least-upper-bound property: a nonempty subset of R that is bounded above has a least upper bound, that is an upper bound below every upper bound; it is unique (Complete ordered field (least-upper-bound property), Suprema and infima are unique).

[L3]

Absolute value: ∣u∣≥0; ∣u∣=0 if and only if u=0; ∣−u∣=∣u∣; and ∣u∣ equals u or −u (Basic properties of the absolute value, Absolute value in an ordered field).

[L4]

Two-term triangle inequality: ∣u+v∣≤∣u∣+∣v∣ (The triangle inequality).

[L5]

A two-element subset of R has a maximum, which is one of the two elements and bounds both (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).

[L6]

Order arithmetic: inequalities may be added and a constant added to both sides, in the strict form of Order is preserved by adding a constant and by adding inequalities and, together with the case of equality settled by totality (Ordered field, Complete ordered field (least-upper-bound property)), in the nonstrict form used below; and by trichotomy a≤0 together with a≥0 gives a=0.

Proof

technique · direct
1.1

For every s∈S the value ∣f(s)−g(s)∣ is f(s)−g(s) or g(s)−f(s), and f(s)−g(s)≤uf−ℓg while g(s)−f(s)≤ug−ℓf; so M:=max⁡{uf−ℓg, ug−ℓf} bounds D(f,g) above, and since s0∈S makes D(f,g) nonempty, d∞(f,g)=sup⁡D(f,g) exists and is unique.

givenL1L2L3L5L6
1.2

Symmetry (M2): ∣g(s)−f(s)∣=∣−(f(s)−g(s))∣=∣f(s)−g(s)∣ for every s∈S, so D(g,f) and D(f,g) are the same subset of R and therefore have the same supremum.

L2L3
2.1

Separation (M1): d∞(f,g) bounds D(f,g) above, so d∞(f,g)≥∣f(s0)−g(s0)∣≥0; if d∞(f,g)=0 then ∣f(s)−g(s)∣≤0 and ∣f(s)−g(s)∣≥0 for every s, hence f(s)=g(s) for every s and f=g; conversely if f=g then D(f,g)={0}, whose least upper bound is 0.

step 1.1L2L3L6
2.2

For every s∈S: ∣f(s)−h(s)∣=∣(f(s)−g(s))+(g(s)−h(s))∣≤∣f(s)−g(s)∣+∣g(s)−h(s)∣≤d∞(f,g)+d∞(g,h), the last inequality because each supremum bounds its own set above.

step 1.1L2L4L6
3.1

Triangle inequality (M3): step 2.2 says the real number d∞(f,g)+d∞(g,h) is an upper bound of D(f,h), and d∞(f,h) is the least upper bound of that set, so d∞(f,h)≤d∞(f,g)+d∞(g,h).

step 2.2L2
4.1

The function d∞ therefore satisfies (M1) by step 2.1, (M2) by step 1.2 and (M3) by step 3.1, so it is a metric on B(S).

step 1.2step 2.1step 3.1∎

Remarks

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

Arbitrary unions and finite intersections of open sets are open, open balls are open and closed balls are closed

Statement

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric), with open and closed sets as in The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement and balls as in Open ball, closed ball and sphere in a metric space. Then:

  1. Balls are open. B(x,r) is open, for every x∈X and every r>0.
  2. Arbitrary unions. If U is any collection of open subsets of X, then ⋃U is open.
  3. Finite intersections. If n≥1 and U0,…,Un−1 are open, then U0∩⋯∩Un−1 is open.
  4. Closed balls are closed. Bˉ(x,r) is closed, for every x∈X and every r>0.

Together with the fact that ∅ and X are open, recorded already in The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement, claims 2 and 3 say that Td has exactly the closure properties that the word topology names.

Facts & Assumptions

Given: A metric space (X,d); a point x∈X and a real r>0; a collection U of open subsets of X; a natural n≥1 and open sets U0,…,Un−1⊆X.

[A1]

Open: U is open when every u∈U admits t>0 with B(u,t)⊆U; closed means the complement is open (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement).

[A2]

Balls: B(u,t)={w:d(u,w)<t} and Bˉ(u,t)={w:d(u,w)≤t}, and B(u,t)⊆B(u,t′) whenever 0<t≤t′ (Open ball, closed ball and sphere in a metric space).

[L2]

Reverse triangle inequality: ∣d(a,c)−d(b,c)∣≤d(a,b), so in particular d(a,c)−d(b,c)≤d(a,b) (The reverse triangle inequality ∣d(x,z)−d(y,z)∣≤d(x,y) in any metric space).

[L3]

A nonempty finite set of reals has a minimum, which belongs to the set and is a lower bound of it (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).

[L4]

Order arithmetic: a constant may be added to both sides of an inequality and inequalities may be chained by transitivity, in the strict form of Order is preserved by adding a constant and by adding inequalities and, with the case of equality settled by totality, in the nonstrict form (Ordered field, Complete ordered field (least-upper-bound property)); and by trichotomy a<b and b≤a cannot both hold.

Proof

technique · direct
1.1

Claim 1: let y∈B(x,r), so d(x,y)<r, and put s:=r−d(x,y)>0; for z∈B(y,s) the triangle inequality gives d(x,z)≤d(x,y)+d(y,z)<d(x,y)+s=r, so B(y,s)⊆B(x,r), and since y was arbitrary B(x,r) is open.

A1A2L1L4
1.2

Claim 2: let y∈⋃U, so y∈U for some U∈U; as U is open there is t>0 with B(y,t)⊆U⊆⋃U, and since y was arbitrary the union is open.

A1
1.3

Claim 3: let y∈U0∩⋯∩Un−1 and for each k<n pick tk>0 with B(y,tk)⊆Uk, which is possible because each Uk is open and y lies in it.

A1choose
1.4

Claim 4: let y∈X∖Bˉ(x,r), so d(x,y)>r, and put s:=d(x,y)−r>0; for z∈B(y,s) the reverse triangle inequality applied to the points y,z,x gives d(y,x)−d(z,x)≤d(y,z)<s, hence d(z,x)>d(y,x)−s=r, so d(x,z)>r by symmetry and z∉Bˉ(x,r).

A2L1L2L4
2.1

Since n≥1, the set {t0,…,tn−1} is a nonempty finite set of reals, so t:=min⁡{t0,…,tn−1} exists, equals some tj and is therefore >0, and satisfies t≤tk for every k<n.

step 1.3L3
2.2

Step 1.4 shows B(y,s)⊆X∖Bˉ(x,r) for the y and s chosen there, and y was an arbitrary point of X∖Bˉ(x,r); hence X∖Bˉ(x,r) is open and Bˉ(x,r) is closed, which is claim 4.

step 1.4A1
3.1

By step 2.1, B(y,t)⊆B(y,tk)⊆Uk for every k<n, so B(y,t)⊆U0∩⋯∩Un−1; as y was arbitrary that intersection is open, which is claim 3.

step 2.1A1A2
4.1

Claims 1, 2, 3 and 4 are established by steps 1.1, 1.2, 3.1 and 2.2 respectively.

step 1.1step 1.2step 2.2step 3.1∎

Remarks

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

Interior, closure, boundary, limit point, isolated point and dense subset of a metric space

Definition

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric), let A⊆X and let x∈X. Balls are as in Open ball, closed ball and sphere in a metric space and open sets as in The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement; recall that a real r written as a radius is always >0.

  • x is an interior point of A if B(x,r)⊆A for some r. The set of interior points is the interior int⁡(A).
  • x is an adherent point of A if B(x,r)∩A≠∅ for every r. The set of adherent points is the closure A‾.
  • x is a limit point (accumulation point) of A if B(x,r)∩(A∖{x})≠∅ for every r. The set of limit points is the derived set A′.
  • x is an isolated point of A if x∈A and B(x,r)∩A={x} for some r.
  • The boundary of A is ∂A:=A‾∖int⁡(A).
  • A is dense in X if A‾=X.

The interior is open, and it is the largest open subset of A. If x∈int⁡(A), fix r with B(x,r)⊆A; the ball B(x,r) is itself open (Arbitrary unions and finite intersections of open sets are open, open balls are open and closed balls are closed), so every y∈B(x,r) has some s with B(y,s)⊆B(x,r)⊆A, which puts y in int⁡(A). Hence B(x,r)⊆int⁡(A) and int⁡(A) is open. It is contained in A, since x∈B(x,r)⊆A for an interior point x; and if V⊆A is open then every v∈V has a ball inside V⊆A, so V⊆int⁡(A).

Two descriptions of the boundary agree. x∈∂A says that every ball around x meets A and that no ball around x is contained in A; the second half says exactly that every ball around x meets X∖A. So

∂A={ x∈X:B(x,r)∩A≠∅ and B(x,r)∩(X∖A)≠∅ for every r },

from which ∂A=∂(X∖A) is immediate.

Elementary containments, straight from the definitions. A⊆A‾, because x∈A lies in every B(x,r)∩A; A′⊆A‾, because a ball meeting A∖{x} meets A; and int⁡(A)⊆A⊆A‾. A point of A is either isolated in A or a limit point of A, and not both, according to whether some ball meets A only in x.

Remarks

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

The closure of a nonempty A is {x:d(x,A)=0}, equals A together with its limit points, and is the smallest closed superset

Statement

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let A⊆X, with closure, derived set and limit points as in Interior, closure, boundary, limit point, isolated point and dense subset of a metric space. Then:

  1. If A≠∅, then A‾={ x∈X:d(x,A)=0 }, where d(x,A) is the distance from a point to a nonempty set (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space).
  2. A‾=A∪A′.
  3. A‾ is closed, contains A, and is contained in every closed F⊆X with A⊆F. So A‾ is the smallest closed superset of A, and A is closed if and only if A=A‾.

Claims 2 and 3 hold for every A, the empty set included: ∅‾ is empty because no ball meets ∅, and ∅ is closed because X is open (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement). Claim 1 carries the hypothesis A≠∅ because d(x,A) is defined only for nonempty A (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space).

Facts & Assumptions

Given: A metric space (X,d), a subset A⊆X, a point x∈X, and a closed set F⊆X with A⊆F; when A≠∅, the set E(x):={ d(x,a):a∈A }, whose infimum is d(x,A).

[A1]

Closure and derived set: x∈A‾ means B(x,r)∩A≠∅ for every r>0; x∈A′ means B(x,r)∩(A∖{x})≠∅ for every r>0 (Interior, closure, boundary, limit point, isolated point and dense subset of a metric space).

[A2]

Open and closed: U is open when every point of U has a ball around it inside U; F is closed when X∖F is open (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement).

[L2]

Epsilon characterisation of the infimum: for a nonempty S⊆R bounded below and a lower bound ℓ of S, one has ℓ=inf⁡S if and only if for every ε>0 there is s∈S with s<ℓ+ε (Epsilon characterisation of the infimum).

[L4]

Membership in a ball: a∈B(x,r) means d(x,a)<r, and x∈B(x,r) always (Open ball, closed ball and sphere in a metric space); trichotomy of the order of R (Complete ordered field (least-upper-bound property), Ordered field).

Proof

technique · direct
1.1

Suppose A≠∅ and x∈A‾, and let ε>0 be arbitrary; then B(x,ε)∩A≠∅, so there is a∈A with d(x,a)<ε=0+ε, and 0 is a lower bound of E(x), so d(x,A)=0 by the epsilon characterisation.

A1L1L2L4
1.2

Conversely suppose A≠∅ and d(x,A)=0, and let r>0 be arbitrary; the epsilon characterisation supplies a∈A with d(x,a)<0+r=r, that is a∈B(x,r)∩A, so x∈A‾.

A1L1L2L4
1.3

A⊆A‾ and A′⊆A‾: a point a∈A lies in B(a,r)∩A for every r, and a ball meeting A∖{x} meets A.

A1L4
1.4

If x∈A‾ and x∉A, then for every r the nonempty set B(x,r)∩A equals B(x,r)∩(A∖{x}), since x is not a member of A; hence x∈A′.

A1
1.5

A‾ is closed: let x∈X∖A‾ and fix r with B(x,r)∩A=∅; for y∈B(x,r) there is s with B(y,s)⊆B(x,r), so B(y,s)∩A=∅ and y∉A‾, whence B(x,r)⊆X∖A‾ and X∖A‾ is open.

A1A2L3
1.6

A‾⊆F for every closed F⊇A: if x∈A‾ had x∉F, then X∖F open would give r with B(x,r)⊆X∖F⊆X∖A, so B(x,r)∩A=∅, contradicting x∈A‾.

A1A2given
2.1

Claim 1 follows: by step 1.1 every adherent point of a nonempty A satisfies d(x,A)=0, and by step 1.2 every x with d(x,A)=0 is adherent.

step 1.1step 1.2
2.2

Claim 2 follows: A∪A′⊆A‾ by step 1.3, and A‾⊆A∪A′ by step 1.4, since a point of A‾ either lies in A or, not lying in A, lies in A′.

step 1.3step 1.4
2.3

Claim 3 follows: A‾ is closed by step 1.5, contains A by step 1.3, and sits inside every closed superset of A by step 1.6; in particular if A is closed then A‾⊆A⊆A‾, so A=A‾, and conversely if A=A‾ then A is closed.

step 1.3step 1.5step 1.6
3.1

Claims 1, 2 and 3 are therefore all established.

step 2.1step 2.2step 2.3∎

Remarks

  • Claim 1 is where the infimum does the work. Reading it right to left, d(x,A)=0 says that A has points arbitrarily close to x without saying that any of them is x; reading it left to right, adherence says the same thing in the language of balls. The equivalence is exactly the epsilon characterisation of the infimum (Epsilon characterisation of the infimum) with the lower bound 0.
  • The distance function is 1-Lipschitz (∣d(x,A)−d(y,A)∣≤d(x,y), so the distance to a fixed nonempty set is 1-Lipschitz), so claim 1 exhibits A‾ as the zero set of a function that does not increase distances. That is not used above and is recorded only as orientation.
  • Claim 3 is the form that transfers to general topology, where no metric is available and the closure is defined outright as the intersection of all closed supersets. Claim 1 is the specifically metric statement, and claim 2 sits between them.
DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

Convergence of a sequence in a metric space: xk→x iff d(xk,x)→0 in R

Definition

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric).

A sequence in X is a function x:N→X, written (xk) with xk:=x(k). As everywhere in this library, N contains 0 (The natural numbers N (von Neumann)) and a sequence is indexed from 0 (Sequences of reals: bounded, eventually, frequently, tails, subsequences); an index range copied from a text that starts at 1 must be shifted before it is used here.

Let (xk) be a sequence in X and p∈X. The function k↦d(xk,p) is a sequence of reals (Sequences of reals: bounded, eventually, frequently, tails, subsequences), and it is nonnegative (Nonnegativity of a metric is a consequence of the other axioms, not an axiom), so ∣d(xk,p)∣=d(xk,p) (Absolute value in an ordered field). Define

xk⟶p in (X,d):⟺d(xk,p)⟶0 in R,

the convergence on the right being that of Limits and Cauchy sequences of reals. Unwound, this says: for every rational ε>0 there is K∈N with d(xk,p)<ε for every k≥K. We then call p a limit of (xk), and say (xk) converges in (X,d) if it has a limit.

Rational and real ε agree here, as they do on the real line. Limits and Cauchy sequences of reals tests convergence against rational ε only, and its own remark, restated for sequences in Sequences of reals: bounded, eventually, frequently, tails, subsequences, records that nothing is lost: below any real η>0 lies a positive rational (The rationals embed densely in the reals), and the index belonging to that rational serves for η. So a proof may establish convergence by producing an index for every real ε>0, and may use a convergence hypothesis at a real ε by first passing to a rational below it. Both moves are used on this page and are always cited.

Subsequences and subsequential limits. A subsequence of (xk) is the composite x∘n for a strictly increasing n:N→N, written (xnj), exactly as for sequences of reals (Sequences of reals: bounded, eventually, frequently, tails, subsequences); and p is a subsequential limit of (xk) in (X,d) when some subsequence converges to p, which is the metric-space form of Subsequential limit of a real sequence, and the subsequential limit set.

Remarks

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passverified 2026-08-02 (claude-opus-5)Open item page →

A sequence in a metric space has at most one limit

Statement

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let (xk) be a sequence in X (Convergence of a sequence in a metric space: xk→x iff d(xk,x)→0 in R). If xk→p and xk→q, then p=q.

So a convergent sequence in a metric space has exactly one limit, and the notation lim⁡kxk is unambiguous.

Facts & Assumptions

Given: A metric space (X,d), a sequence (xk) in X, and points p,q∈X with xk→p and xk→q.

[A1]

Convergence: xk→p means that for every rational ε>0 there is K∈N with d(xk,p)<ε for all k≥K (Convergence of a sequence in a metric space: xk→x iff d(xk,x)→0 in R, Limits and Cauchy sequences of reals); and d(x,y)≥0 for all x,y∈X, so in particular d(xk,p)≥0 and its absolute value is itself (Nonnegativity of a metric is a consequence of the other axioms, not an axiom, Absolute value in an ordered field, Basic properties of the absolute value).

[L1]

Density of the rationals: strictly between any two reals lies a rational, so below any real η>0 there is a rational ε with 0<ε<η (The rationals embed densely in the reals).

[L2]

Halving. For a real c>0 set 2:=1+1 and c/2:=c⋅2−1. Then 2>0, so 2≠0 and 2−1>0 (The multiplicative identity is positive, Order is preserved by adding a constant and by adding inequalities, Inverses of positives are positive, and reciprocation reverses order, Ordered field); hence c/2>0 (Sign rules for products and monotonicity of multiplication); and c/2+c/2=c(2−1+2−1)=c(2⋅2−1)=c (Field).

[L3]

Separation (M1) and the triangle inequality (M3) of d, together with symmetry (M2) (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric).

[L4]

Trichotomy of the order of R, and transitivity: a<b and b≤a cannot both hold (Complete ordered field (least-upper-bound property), Ordered field).

[L5]

Adding two inequalities: a<b and c<d give a+c<b+d (Order is preserved by adding a constant and by adding inequalities).

Proof

technique · contradiction
1.1

Suppose, for contradiction, that p≠q.

assume-contra
2.1

By (M1) d(p,q)≠0, and d(p,q)≥0, so c:=d(p,q)>0 by trichotomy; put η:=c/2, a positive real with η+η=c.

step 1.1A1L2L3L4
3.1

Fix a rational ε with 0<ε<η, and use the convergence hypotheses at ε to fix K1,K2∈N with d(xk,p)<ε for k≥K1 and d(xk,q)<ε for k≥K2.

step 2.1A1L1choose
4.1

Let m be any natural with m≥K1 and m≥K2, for instance m:=K1+K2; then d(xm,p)<ε and d(xm,q)<ε.

step 3.1choose
5.1

By symmetry and the triangle inequality, c=d(p,q)≤d(p,xm)+d(xm,q)=d(xm,p)+d(xm,q)<ε+ε<η+η=c.

step 4.1step 2.1L3L5
6.1

Step 5.1 asserts c<c, which trichotomy forbids; the supposition of step 1.1 is therefore untenable and p=q.

step 5.1L4discharge-contradiction∎

Remarks

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

The balls B(x,1/n), n≥1, form a countable neighbourhood base at x, so every metric space is first countable

Statement

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let x∈X. For a natural n≥1 write 1/n for the inverse of the canonical natural n⋅1R, a positive real, and put

βn:=B(x,1/n),Bx:={ βn:n∈N, n≥1 }.

Then:

  1. Bx is at most countable (Finite, countably infinite, countable, uncountable).
  2. Every βn is an open subset of X containing x.
  3. For every open U⊆X with x∈U there is n≥1 with βn⊆U.

The two names used in the title are introduced by this statement, not cited from elsewhere. A family of open sets each containing x, such that every open set containing x contains a member of the family, is a neighbourhood base at x; a space in which every point has an at most countable neighbourhood base is first countable. Claims 1 to 3 say that Bx is an at most countable neighbourhood base at x, so every metric space is first countable.

Facts & Assumptions

Given: A metric space (X,d), a point x∈X, and for each natural n≥1 the ball βn=B(x,1/n).

[L1]

Canonical naturals: n⋅1R>0 for n≥1 (Canonical naturals are positive and strictly increasing), hence n⋅1R is invertible with 1/n>0 (Inverses of positives are positive, and reciprocation reverses order); and N contains 0, so j↦j+1 runs over exactly the naturals ≥1 as j runs over N (The natural numbers N (von Neumann)).

[L4]

Reciprocal Archimedean property: for every real r>0 there is a natural n≥1 with 1/n<r (For every ε>0 in a complete ordered field there is a natural n≥1 with 1/n<ε, Every complete ordered field is Archimedean).

Proof

technique · direct
1.1

For every natural n≥1 the real 1/n is defined and positive, so βn is a legitimate ball of positive radius.

L1
1.2

Let U be open with x∈U, and fix a real r>0 with B(x,r)⊆U; then fix a natural n≥1 with 1/n<r.

L3L4choose
2.1

Each βn is open and contains x, which is claim 2.

step 1.1L2
2.2

The map s:N→Bx given by s(j):=βj+1 is well defined by step 1.1 and is surjective, because every member of Bx is βn for some n≥1 and n=j+1 for the natural j with j+1=n; moreover Bx is nonempty, containing β1.

step 1.1L1
2.3

By step 1.2 and monotonicity of balls in the radius, βn=B(x,1/n)⊆B(x,r)⊆U, which is claim 3.

step 1.2L2
3.1

By [L5] applied to the surjection of step 2.2, the nonempty set Bx is at most countable, which is claim 1.

step 2.2L5
4.1

Claims 1, 2 and 3 hold by steps 3.1, 2.1 and 2.3, so Bx is an at most countable neighbourhood base at x and (X,d) is first countable.

step 2.1step 2.3step 3.1∎

Remarks

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passverified 2026-08-02 (claude-opus-5)Open item page →

A point lies in the closure of A iff some sequence in A converges to it, and a set is closed iff it is sequentially closed

Statement

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric), let A⊆X, let x∈X and let F⊆X. Call F sequentially closed when every sequence in F that converges in X has its limit in F. Then:

  1. x∈A‾ (Interior, closure, boundary, limit point, isolated point and dense subset of a metric space) if and only if there is a sequence (ak) with ak∈A for every k and ak→x in (X,d) (Convergence of a sequence in a metric space: xk→x iff d(xk,x)→0 in R).
  2. F is closed (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement) if and only if F is sequentially closed.

The Axiom of Countable Choice is used, once. The direction of claim 1 that manufactures a sequence out of adherence makes one choice per natural number, and that is exactly ACω (The Axiom of Countable Choice (ACω)). The converse direction, and the direction of claim 2 that goes from closed to sequentially closed, are choice free. This is flagged at the step that spends it.

Facts & Assumptions

Given: A metric space (X,d), a subset A⊆X, a point x∈X, and a subset F⊆X; for n∈N write An:=B(x,1/(n+1))∩A.

[A2]

Convergence in (X,d): ak→x means that for every rational ε>0 there is K with d(ak,x)<ε for all k≥K, and it is enough to produce such a K for every REAL ε>0, since below any positive real lies a positive rational (Convergence of a sequence in a metric space: xk→x iff d(xk,x)→0 in R, Limits and Cauchy sequences of reals, The rationals embed densely in the reals, Nonnegativity of a metric is a consequence of the other axioms, not an axiom); and d(u,v)=d(v,u) for all u,v∈X, which is the symmetry axiom (M2) (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric).

[L1]

The balls B(x,1/n), n≥1, are open, contain x, and form a neighbourhood base at x: every open U∋x contains one of them (The balls B(x,1/n), n≥1, form a countable neighbourhood base at x, so every metric space is first countable).

[L3]

Canonical naturals and reciprocals: for naturals 1≤m≤p one has 0<m⋅1R≤p⋅1R and hence 0<1/p≤1/m (Canonical naturals are positive and strictly increasing, Inverses of positives are positive, and reciprocation reverses order); and N contains 0, so n+1≥1 for every n∈N (The natural numbers N (von Neumann)).

[L4]

Countable choice: for a family (An)n∈N of nonempty sets there is a function n↦an with an∈An for every n (The Axiom of Countable Choice (ACω)).

[L5]

Proof

technique · direct
1.1

Suppose (ak) is a sequence with ak∈A for every k and ak→x, and let r>0 be an arbitrary real; then there is K with d(ak,x)<r for all k≥K, so d(x,aK)=d(aK,x)<r by the symmetry axiom (M2) of [A2] and hence aK∈B(x,r)∩A, and since r was arbitrary x∈A‾.

A1A2
1.2

Suppose x∈A‾; then for every n∈N the radius 1/(n+1) is a positive real and An=B(x,1/(n+1))∩A is nonempty, so countable choice supplies a sequence (an) with an∈An⊆A for every n.

A1L3L4choose
2.1

That sequence converges to x: given a real ε>0, the ball B(x,ε) is open and contains x, so there is a natural N≥1 with B(x,1/N)⊆B(x,ε); for every n≥N we have n+1≥N, hence 1/(n+1)≤1/N and an∈B(x,1/(n+1))⊆B(x,1/N)⊆B(x,ε), that is d(x,an)<ε.

step 1.2A2L1L2L3
2.2

If F is closed and (ak) is a sequence in F converging to some x∈X, then x∈F‾ by step 1.1 applied with A=F, and F‾=F because F is closed; so x∈F and F is sequentially closed.

step 1.1L5
3.1

Claim 1 holds: step 1.1 gives the implication from a convergent sequence in A to adherence, and steps 1.2 and 2.1 give the converse by producing such a sequence.

step 1.1step 1.2step 2.1
4.1

If F is sequentially closed, let x∈F‾; by claim 1 there is a sequence in F converging to x, so x∈F, whence F‾⊆F; the reverse inclusion always holds, so F=F‾ and F is closed.

step 3.1L5
5.1

Claim 2 holds by steps 2.2 and 4.1, and claim 1 by step 3.1.

step 2.2step 3.1step 4.1∎

Remarks

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

Distinct points of a metric space have disjoint balls around them

Statement

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let p,q∈X with p≠q. Put r:=d(p,q)/2. Then r>0 and

B(p,r)∩B(q,r)=∅.

Both sets are open (Arbitrary unions and finite intersections of open sets are open, open balls are open and closed balls are closed) and contain p respectively q (Open ball, closed ball and sphere in a metric space), so every metric space is Hausdorff: distinct points are separated by disjoint open sets (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement).

Facts & Assumptions

Given: A metric space (X,d) and points p,q∈X with p≠q; write c:=d(p,q).

[L2]

Halving. For a real c>0 put 2:=1+1 and c/2:=c⋅2−1. Then 2>0, so 2≠0 and 2−1>0 (The multiplicative identity is positive, Order is preserved by adding a constant and by adding inequalities, Inverses of positives are positive, and reciprocation reverses order, Ordered field); hence c/2>0 (Sign rules for products and monotonicity of multiplication); and c/2+c/2=c(2⋅2−1)=c (Field).

[L3]

Adding two strict inequalities: a<b and a′<b′ give a+a′<b+b′ (Order is preserved by adding a constant and by adding inequalities).

[L4]

Trichotomy of the order of R: a<a is impossible, and a≠0 together with a≥0 gives a>0 (Complete ordered field (least-upper-bound property), Ordered field).

[L5]

Membership in a ball: z∈B(u,t) means d(u,z)<t; balls are open and contain their centres (Open ball, closed ball and sphere in a metric space, Arbitrary unions and finite intersections of open sets are open, open balls are open and closed balls are closed).

Proof

technique · direct
1.1

Since p≠q, axiom (M1) gives c=d(p,q)≠0, and c≥0, so c>0 by trichotomy; hence r:=c/2 is a positive real with r+r=c.

givenL1L2L4
2.1

Suppose some z∈X lay in both B(p,r) and B(q,r), that is d(p,z)<r and d(q,z)<r; then symmetry and the triangle inequality give c=d(p,q)≤d(p,z)+d(z,q)=d(p,z)+d(q,z)<r+r=c, so c<c, which trichotomy forbids.

step 1.1L1L3L4L5
3.1

No such z exists, so B(p,r)∩B(q,r)=∅; both sets are open and contain p respectively q, so distinct points of (X,d) are separated by disjoint open sets.

step 1.1step 2.1L5∎

Remarks

DefinitionDefinition: AI-adaptedProof: Not applicableverified 2026-09-10 (Codex)Open item page →

Continuity of a map between metric spaces, at a point and globally, in the ε-δ form

Definition

Let (X,dX) and (Y,dY) be metric spaces (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric), let f:X→Y be a function and let a∈X.

f is continuous at a if for every real ε>0 there is a real δ>0 such that

dX(x,a)<δ  ⟹  dY(f(x),f(a))<εfor all x∈X.

f is continuous (globally, or on X) if it is continuous at every point of X.

The same condition in balls. Since dX(x,a)<δ says x∈BX(a,δ) and dY(f(x),f(a))<ε says f(x)∈BY(f(a),ε) (Open ball, closed ball and sphere in a metric space), continuity at a reads: for every ε>0 there is δ>0 with

f[BX(a,δ)]⊆BY(f(a),ε).

Both forms are used below and are the same statement written twice.

Both metrics matter, and both are named. Continuity is a property of the triple (dX,dY,f), not of f alone. When several metrics on the same underlying sets are in play, as in Topologically, uniformly and Lipschitz equivalent metrics on a set, the metrics are always written out.

Quantifier order. The δ is allowed to depend on ε and on the point a. Requiring one δ to work at every point simultaneously is a strictly stronger condition, uniform continuity; it is defined on a later page of this library, and at this point in the reading order it is written out in full where needed (Topologically, uniformly and Lipschitz equivalent metrics on a set).

Remarks

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passverified 2026-09-09 (gpt-6-astra)Open item page →

Metric continuity characterisations, with countable choice for the sequential converse

Statement

Let (X,dX) and (Y,dY) be metric spaces (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let f:X→Y be a function, with images and preimages written f[ ⋅ ] and f−1[ ⋅ ] (Injection, surjection, bijection). Conditions (a), (b), (c), and (e) below are equivalent without choice, and each implies (d). Assuming Countable Choice (The Axiom of Countable Choice (ACω)), all five are equivalent. The authorized Axiom of Choice (The Axiom of Choice) suffices; only its countable instance is used for the converse from (d).

Where choice is used. Only the implication (d) ⇒ (e) uses a choice principle, and it uses it only through A point lies in the closure of A iff some sequence in A converges to it, and a set is closed iff it is sequentially closed, whose forward direction spends the Axiom of Countable Choice (The Axiom of Countable Choice (ACω)). The cycle (a) ⇒ (b) ⇒ (c) ⇒ (e) ⇒ (a) and the implication (a) ⇒ (d) are choice free.

Facts & Assumptions

Given: Metric spaces (X,dX), (Y,dY) and a function f:X→Y; a point a∈X, a real ε>0, subsets A⊆X, V⊆Y open and G⊆Y closed, and a sequence (xk) in X. Assume Countable Choice for (d) implies (e), and hence for the five-way equivalence; the other stated implications require no choice.

[A1]

Continuity at a: for every real ε>0 there is δ>0 with f[BX(a,δ)]⊆BY(f(a),ε) (Continuity of a map between metric spaces, at a point and globally, in the ε-δ form, Open ball, closed ball and sphere in a metric space).

[A2]

Open and closed: U is open when every point of U has a ball around it inside U; G is closed when its complement is open (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement).

[L1]

Preimages respect complements: f−1[Y∖G]=X∖f−1[G], since f(x)∈Y∖G holds exactly when f(x)∉G (Injection, surjection, bijection).

[L2]

Closure: A‾ consists of the points every ball around which meets A; it is closed, contains A, and is contained in every closed superset of A (Interior, closure, boundary, limit point, isolated point and dense subset of a metric space, The closure of a nonempty A is {x:d(x,A)=0}, equals A together with its limit points, and is the smallest closed superset).

[L3]

Under Countable Choice, x∈A‾ if and only if some sequence in A converges to x; the direction producing the sequence uses countable choice, while the converse is choice free (A point lies in the closure of A iff some sequence in A converges to it, and a set is closed iff it is sequentially closed, The Axiom of Countable Choice (ACω)). AC supplies the needed indexed choices: choose from the family of nonempty sets and compose that choice function with the indexing map (The Axiom of Choice).

[L4]

Convergence: xk→x means that for every rational ε>0 there is K with dX(xk,x)<ε for k≥K, and producing such a K for every REAL ε>0 is equivalent, since below any positive real lies a positive rational (Convergence of a sequence in a metric space: xk→x iff d(xk,x)→0 in R, Limits and Cauchy sequences of reals, The rationals embed densely in the reals).

Proof

technique · direct
1.1

(a) implies (b): let V⊆Y be open and x∈f−1[V]; since f(x)∈V there is ε>0 with BY(f(x),ε)⊆V, and continuity at x supplies δ>0 with f[BX(x,δ)]⊆BY(f(x),ε)⊆V, that is BX(x,δ)⊆f−1[V]; as x was arbitrary, f−1[V] is open.

A1A2
1.2

(b) implies (c): let G⊆Y be closed; then Y∖G is open, so f−1[Y∖G] is open by (b), and that set is X∖f−1[G], so f−1[G] is closed.

A2L1
1.3

(c) implies (e): let A⊆X; the set f[A]‾ is closed in Y, so G0:=f−1[f[A]‾] is closed in X by (c), and A⊆G0 because f[A]⊆f[A]‾; hence A‾⊆G0 by minimality of the closure, which says exactly f[A‾]⊆f[A]‾.

L2
1.4

(e) implies (a): fix a∈X and a real ε>0, put Aε:={x∈X:dY(f(x),f(a))≥ε}, and suppose no δ>0 satisfies the continuity condition at a for this ε, that is every ball BX(a,δ) contains a point of Aε; then a∈Aε‾, so (e) gives f(a)∈f[Aε‾]⊆f[Aε]‾, so the ball BY(f(a),ε) meets f[Aε] and there is x∈Aε with dY(f(x),f(a))<ε, contradicting the definition of Aε; hence some δ>0 works, and since a and ε were arbitrary f is continuous everywhere.

assume-hypA1L2L5
1.5

(a) implies (d): let xk→x and let a real ε>0 be given; continuity at x supplies δ>0 with f[BX(x,δ)]⊆BY(f(x),ε), and convergence supplies K with dX(xk,x)<δ, that is xk∈BX(x,δ), for all k≥K; then dY(f(xk),f(x))<ε for all k≥K, so f(xk)→f(x).

A1L4L5
1.6

Assume Countable Choice. For (d) implies (e), let A⊆X and y∈f[A‾], say y=f(x) with x∈A‾. Apply [L3] using Countable Choice (the countable instance of AC) to select a sequence (ak) in A converging to x. This is the only use of choice in this proof. By (d), f(ak)→f(x); since f(ak)∈f[A], the choice-free converse of [L3] gives f(x)∈f[A]‾.

givenL3
2.1

Steps 1.1–1.4 give the choice-free equivalence of (a), (b), (c), and (e); step 1.5 shows each implies (d) without choice. Under Countable Choice, step 1.6 closes the converse and all five conditions are equivalent.

step 1.1step 1.2step 1.3step 1.4step 1.5step 1.6∎

Remarks

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

Isometry, isometric embedding, and the subspace metric on a subset

Definition

Let (X,dX) and (Y,dY) be metric spaces (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric).

Isometric embedding and isometry. A function f:X→Y is an isometric embedding if

dY(f(x),f(x′))=dX(x,x′)for all x,x′∈X,

and an isometry if it is in addition bijective (Injection, surjection, bijection). Two metric spaces are isometric if some isometry between them exists.

Subspace metric. Let A⊆X and let

dA:=dX↾(A×A)

be the restriction of dX to pairs from A. Then dA is a metric on A: the three axioms (M1), (M2), (M3) of Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric are conditions on triples of points, and each holds for points of A because it holds for points of X. The pair (A,dA) is the metric subspace A of X, and the inclusion A→X is an isometric embedding by construction. The metric topology of dA (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement) is the subspace topology of A.

Balls of a subspace are traces of balls of the ambient space. For a∈A and r>0,

BA(a,r)=BX(a,r)∩A,

directly from the definitions: a point z lies in the left side exactly when z∈A and dA(a,z)=dX(a,z)<r (Open ball, closed ball and sphere in a metric space). This is why the ambient space is always written into the ball notation, and it is the source of every apparent paradox about balls in subspaces.

Remarks

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

An isometric embedding is injective and carries the metric topology of the source onto the subspace topology of its image

Statement

Let (X,dX) and (Y,dY) be metric spaces and let f:X→Y be an isometric embedding (Isometry, isometric embedding, and the subspace metric on a subset). Write Z:=f[X]⊆Y with its subspace metric dZ. Then:

  1. f is injective (Injection, surjection, bijection).
  2. f, viewed as a map X→Z, is an isometry.
  3. f[BX(x,r)]=BZ(f(x),r) for every x∈X and r>0 (Open ball, closed ball and sphere in a metric space).
  4. A subset U⊆X is open in (X,dX) if and only if f[U] is open in (Z,dZ) (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement). So U↦f[U] is a bijection from the metric topology of X onto the subspace topology of f[X], and f is a homeomorphism onto its image.

Facts & Assumptions

Given: Metric spaces (X,dX), (Y,dY), an isometric embedding f:X→Y, the image Z:=f[X] with the subspace metric dZ=dY↾(Z×Z), and the map g:Z→X inverse to f:X→Z once claim 2 is available.

[A1]

Isometric embedding: dY(f(x),f(x′))=dX(x,x′) for all x,x′∈X; the subspace metric on Z is the restriction of dY (Isometry, isometric embedding, and the subspace metric on a subset).

[A2]

Separation (M1): dX(x,x′)=0 if and only if x=x′ (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric).

[L1]

Balls: BX(x,r)={x′:dX(x,x′)<r}, and likewise in Z with dZ (Open ball, closed ball and sphere in a metric space).

[L3]

A bijection h and its inverse satisfy h[S]=(h−1)−1[S] and h−1[h[S]]=S for every subset S of the domain (Injection, surjection, bijection).

Proof

technique · direct
1.1

Injectivity: if f(x)=f(x′) then dX(x,x′)=dY(f(x),f(x′))=0, hence x=x′ by (M1); this is claim 1.

A1A2
2.1

As a map X→Z the function f is surjective, Z being its image by definition, and it is injective by step 1.1, so it is a bijection X→Z; and dZ(f(x),f(x′))=dY(f(x),f(x′))=dX(x,x′), since dZ is the restriction of dY, so it is an isometry, which is claim 2.

step 1.1A1
3.1

Both f:X→Z and its inverse g:Z→X are continuous, with δ:=ε serving at every point in both directions, because dZ(f(x),f(x′))=dX(x,x′) and, writing z=f(x), z′=f(x′), also dX(g(z),g(z′))=dZ(z,z′).

step 2.1A1L2
3.2

Claim 3: f[BX(x,r)]={f(x′):dX(x,x′)<r}={f(x′):dZ(f(x),f(x′))<r}, and as f is onto Z the latter set is {z∈Z:dZ(f(x),z)<r}=BZ(f(x),r).

step 2.1A1L1
4.1

By [L2] applied to the continuous maps of step 3.1, the preimage under f:X→Z of every open subset of Z is open in X, and the preimage under g of every open subset of X is open in Z.

step 3.1L2
5.1

Claim 4: for U⊆X we have f[U]=g−1[U], so if U is open in X then f[U] is open in Z by step 4.1; conversely U=f−1[f[U]], so if f[U] is open in Z then U is open in X by step 4.1. Hence U↦f[U] maps the topology of X into that of Z, is injective because f is, and is onto because any open W⊆Z equals f[f−1[W]] with f−1[W] open.

step 2.1step 4.1L3
6.1

Claims 1, 2, 3 and 4 are established by steps 1.1, 2.1, 3.2 and 5.1, so an isometric embedding identifies X with the metric subspace f[X] of Y, as a metric space and hence as a topological one.

step 1.1step 3.2step 5.1∎

Remarks

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (z-ai/glm-5.2)audited 2026-07-27Open item page →

Topologically, uniformly and Lipschitz equivalent metrics on a set

Definition

Let X be a set and let d and d′ both be metrics on X (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric). Note that the underlying set is the same; nothing below compares metrics on different sets.

  • d and d′ are topologically equivalent if they have the same metric topology (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement): Td=Td′.
  • d and d′ are uniformly equivalent if for every real ε>0 there are reals δ>0 and δ′>0 such that, for all x,y∈X, d(x,y)<δ  ⟹  d′(x,y)<εandd′(x,y)<δ′  ⟹  d(x,y)<ε.
  • d and d′ are Lipschitz equivalent if there are reals α,β>0 with α d(x,y)  ≤  d′(x,y)  ≤  β d(x,y)for all x,y∈X.

What the middle condition says in words. It is the statement that both identity maps id:(X,d)→(X,d′) and id:(X,d′)→(X,d) are uniformly continuous: the same δ works at every pair of points, not merely at each point separately as in Continuity of a map between metric spaces, at a point and globally, in the ε-δ form. Uniform continuity has no definition of its own at this point in the reading order, so the condition is written out in full above; a later page defines it, and until then this write-out is what earlier pages quote.

Each of the three is an equivalence relation on the metrics on X. Reflexivity is immediate (δ=ε, and α=β=1); symmetry is built into the statements, the uniform one being symmetric by construction and the Lipschitz one because αd≤d′≤βd gives β−1d′≤d≤α−1d′; and transitivity follows by composing the δs and multiplying the constants.

Remarks

  • The three are ranked, and the ranking is proved, not assumed: Lipschitz equivalence implies uniform equivalence implies topological equivalence (Lipschitz equivalence implies uniform equivalence implies topological equivalence). Neither implication reverses, and the witnesses live on the companion page.
  • Naming forks in the literature. Many texts say strongly equivalent for what is called Lipschitz equivalent here, and many say simply equivalent for what is called topologically equivalent here. This library always writes the qualifier, so that no statement depends on which convention a reader brings. A few texts define topological equivalence by "the identity is a homeomorphism", which is the same condition (Metric continuity characterisations, with countable choice for the sequential converse).
  • Topological equivalence preserves exactly the topological notions: open, closed, closure, interior, boundary, convergence of sequences, continuity of maps into and out of the space. It does not preserve boundedness, diameters or the Lipschitz constants, and FALSE: boundedness of a metric space is determined by its topology records the first of those failures.
TheoremStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

Lipschitz equivalence implies uniform equivalence implies topological equivalence

Statement

Let d and d′ be metrics on the same set X (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric), with the three equivalences as in Topologically, uniformly and Lipschitz equivalent metrics on a set. Then:

  1. If d and d′ are Lipschitz equivalent, they are uniformly equivalent.
  2. If d and d′ are uniformly equivalent, they are topologically equivalent.

Strictness is not claimed here. The theorem asserts the two implications and nothing more; that neither reverses is witnessed by explicit pairs of metrics on the companion page, and those witnesses are not prerequisites of this theorem. See the first remark below.

Facts & Assumptions

Given: A set X and two metrics d,d′ on it; a real ε>0.

[A1]

Lipschitz equivalence: there are reals α,β>0 with α d(x,y)≤d′(x,y)≤β d(x,y) for all x,y∈X (Topologically, uniformly and Lipschitz equivalent metrics on a set).

[A2]

Uniform equivalence: for every real ε>0 there are δ,δ′>0 such that d(x,y)<δ implies d′(x,y)<ε and d′(x,y)<δ′ implies d(x,y)<ε, for all x,y∈X (Topologically, uniformly and Lipschitz equivalent metrics on a set).

[L1]

Inverses and products of positives: γ>0 gives γ−1>0 (Inverses of positives are positive, and reciprocation reverses order), and a product of positives is positive; multiplying an inequality by a positive preserves it, in the strict form of Sign rules for products and monotonicity of multiplication and, with the case of equality settled by totality, in the nonstrict form (Ordered field, Complete ordered field (least-upper-bound property)).

[L2]

Transitivity of the order, and addition of a constant to an inequality (Order is preserved by adding a constant and by adding inequalities, Ordered field).

[L3]

Continuity of a map at a point in the ε-δ form (Continuity of a map between metric spaces, at a point and globally, in the ε-δ form); a map continuous at every point has open preimages of open sets (Metric continuity characterisations, with countable choice for the sequential converse).

Proof

technique · direct
1.1

Claim 1: assume [A1] and let ε>0. Put δ:=εβ−1 and δ′:=αε, both positive since α,β,ε are. If d(x,y)<δ then d′(x,y)≤β d(x,y)<βδ=ε; and if d′(x,y)<δ′ then α d(x,y)≤d′(x,y)<αε, so d(x,y)<ε after multiplying by α−1>0. Hence d and d′ are uniformly equivalent.

A1L1L2
1.2

Assume [A2]. Then the identity map id:(X,d)→(X,d′) is continuous at every point a∈X: given ε>0, the δ of [A2] satisfies d(x,a)<δ⇒d′(x,a)<ε, which is the ε-δ condition at a; symmetrically id:(X,d′)→(X,d) is continuous at every point, using δ′.

A2L3
2.1

By [L3] applied to the two continuous identity maps of step 1.2: the preimage under id:(X,d)→(X,d′) of a d′-open set V is V itself and is d-open, so every d′-open set is d-open; and symmetrically every d-open set is d′-open. Hence Td=Td′, which is claim 2.

step 1.2L3L4
3.1

Claims 1 and 2 are established by steps 1.1 and 2.1, so Lipschitz equivalence implies uniform equivalence and uniform equivalence implies topological equivalence.

step 1.1step 2.1∎

Remarks

  • Neither implication reverses, and the witnesses are on the companion page. On (0,∞) the metrics ∣x−y∣ and ∣1/x−1/y∣ have the same topology and are not uniformly equivalent (On (0,∞) the metrics ∣x−y∣ and ∣1/x−1/y∣ have the same topology and are not uniformly equivalent ↗); on R the metrics ∣x−y∣ and min⁡{∣x−y∣,1} are uniformly equivalent and not Lipschitz equivalent (On R the metrics ∣x−y∣ and min⁡(∣x−y∣,1) are uniformly but not Lipschitz equivalent ↗). Those two items are read here as orientation only: this theorem does not depend on them, and its statement claims nothing about strictness.
  • Uniform equivalence is strictly more than "both identities are continuous". Continuity of both identity maps is exactly topological equivalence, by the argument of step 2.1 read in reverse; uniform equivalence additionally demands that one δ serve at every point at once, and that is the whole difference between the two conditions.
  • What each level preserves. Lipschitz equivalence preserves boundedness and changes diameters by at most a constant factor; uniform equivalence preserves Cauchy sequences and uniform continuity, notions taken up on a later page and not defined here; topological equivalence preserves the open sets and everything defined from them, and nothing else.
LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

min⁡(d,1) and d/(1+d) are metrics uniformly equivalent to d, so every metric space carries a bounded metric with the same topology

Statement

Let (X,d) be a metric space (Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric) and define, for x,y∈X,

d′(x,y):=min⁡{ d(x,y), 1 },d′′(x,y):=d(x,y)1+d(x,y).

Both are well defined: d(x,y)≥0 (Nonnegativity of a metric is a consequence of the other axioms, not an axiom), so 1+d(x,y)>0 and is invertible, and the minimum of a two-element set of reals exists (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set). Then:

  1. d′ and d′′ are metrics on X.
  2. d′(x,y)≤1 and d′′(x,y)<1 for all x,y; hence (X,d′) and (X,d′′) are bounded metric spaces (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space), and if X≠∅ then diam⁡(X)≤1 for both.
  3. d′ and d′′ are each uniformly equivalent to d, hence topologically equivalent to it (Topologically, uniformly and Lipschitz equivalent metrics on a set, Lipschitz equivalence implies uniform equivalence implies topological equivalence).

Consequently every metric space carries a bounded metric with exactly the same topology, so boundedness cannot be read off the topology alone.

Facts & Assumptions

Given: A metric space (X,d), points x,y,z∈X, a real ε>0, and the two functions φ1(t):=min⁡{t,1} and φ2(t):=t(1+t)−1, defined for reals t≥0, so that d′=φ1∘d and d′′=φ2∘d.

[L2]

The minimum of a two-element set of reals exists, is one of the two elements, and is a lower bound of both (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).

[L3]

0<1 (The multiplicative identity is positive); a sum of positives is positive and inequalities may be added, in the strict form of Order is preserved by adding a constant and by adding inequalities and, with the case of equality settled by totality, in the nonstrict form (Ordered field, Complete ordered field (least-upper-bound property)).

[L4]

Inverses and order: u>0 gives u−1>0, and 0<u<v gives 0<v−1<u−1 (Inverses of positives are positive, and reciprocation reverses order); Inverses of positives are positive, and reciprocation reverses order states only those strict forms, so the nonstrict version used below, that 0<u≤v gives 0<v−1≤u−1, is that statement together with the case u=v, in which the two inverses are equal, the order being total (Ordered field, Complete ordered field (least-upper-bound property)). Multiplying an inequality by a positive preserves it, in the strict form of Sign rules for products and monotonicity of multiplication and, with the same equality case, in the nonstrict form; and uu−1=1 (Field).

[L5]

Bounded subset and diameter: A is bounded when it lies in some ball, and for nonempty bounded A the diameter is the least upper bound of the distances, so any upper bound of those distances bounds the diameter (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space, Open ball, closed ball and sphere in a metric space, Suprema and infima are unique).

Proof

technique · direct
1.1

Properties of φ1 on t≥0: it is one of t and 1, so 0≤φ1(t)≤t and φ1(t)≤1; φ1(t)=0 exactly when t=0, since 1≠0; it is nondecreasing, because for 0≤s≤t the value φ1(s) is s≤t or 1, and in both cases it is a lower bound of {t,1}, hence at most φ1(t); and it is subadditive, since for s,t≥0 either one of s,t is ≥1, and then φ1(s)+φ1(t)≥1≥φ1(s+t), or both are <1, and then φ1(s)+φ1(t)=s+t≥φ1(s+t).

L2L3
1.2

Properties of φ2 on t≥0: here 1+t≥1>0, so (1+t)−1>0 and (1+t)−1≤1, whence 0≤φ2(t)≤t; also t<1+t gives φ2(t)<(1+t)(1+t)−1=1; φ2(t)=0 exactly when t=0; φ2 is strictly increasing, because φ2(t)=1−(1+t)−1 and 0≤s<t gives 0<1+s<1+t, hence (1+t)−1<(1+s)−1; and it is subadditive, since for s,t≥0 one has 0<1+s≤1+s+t and 0<1+t≤1+s+t, so φ2(s+t)=s(1+s+t)−1+t(1+s+t)−1≤s(1+s)−1+t(1+t)−1=φ2(s)+φ2(t).

L3L4
1.3

Both d′ and d′′ are symmetric, being φi applied to the symmetric function d, and both vanish exactly on the diagonal, since φi(t)=0 exactly when t=0 and d(x,y)=0 exactly when x=y.

L1
2.1

d′ is a metric: (M1) and (M2) are step 1.3, and (M3) follows because d(x,z)≤d(x,y)+d(y,z) with φ1 nondecreasing and subadditive on nonnegatives gives d′(x,z)=φ1(d(x,z))≤φ1(d(x,y)+d(y,z))≤φ1(d(x,y))+φ1(d(y,z))=d′(x,y)+d′(y,z).

step 1.1step 1.3L1
2.2

d′′ is a metric: identically, using that φ2 is increasing and subadditive on nonnegatives, d′′(x,z)≤φ2(d(x,y)+d(y,z))≤d′′(x,y)+d′′(y,z).

step 1.2step 1.3L1
2.3

Boundedness: d′(x,y)≤1<2 and d′′(x,y)<1<2 for all x,y, so if X≠∅ then fixing any x0∈X gives X⊆Bd′(x0,2) and X⊆Bd′′(x0,2), while X=∅ is bounded outright; and 1 is an upper bound of all the distances, so diam⁡(X)≤1 in both metrics when X≠∅. This is claim 2.

step 1.1step 1.2L3L5
3.1

d′ is uniformly equivalent to d: given ε>0, take δ:=ε, so that d(x,y)<δ gives d′(x,y)≤d(x,y)<ε; and take δ′:=min⁡{ε,1}>0, so that d′(x,y)<δ′≤1 forces φ1(d(x,y))≠1, hence d′(x,y)=d(x,y) by [L2], hence d(x,y)<δ′≤ε.

step 1.1step 2.1L2L3
3.2

d′′ is uniformly equivalent to d: given ε>0, take δ:=ε, so that d(x,y)<δ gives d′′(x,y)≤d(x,y)<ε; and take δ′:=φ2(ε)>0, so that d′′(x,y)<δ′ forces d(x,y)<ε, since d(x,y)≥ε would give φ2(d(x,y))≥φ2(ε)=δ′ by monotonicity.

step 1.2step 2.2L4
4.1

Uniform equivalence implies topological equivalence, so d′ and d′′ have exactly the metric topology of d; this completes claim 3.

step 3.1step 3.2L6
5.1

Claims 1, 2 and 3 hold by steps 2.1 and 2.2, step 2.3, and steps 3.1, 3.2 and 4.1; hence every metric space carries a bounded metric inducing the same topology.

step 2.1step 2.2step 2.3step 4.1∎

Remarks

  • Two constructions rather than one, on purpose. min⁡{d,1} is the shorter argument and is the one used by the counterexamples on the companion page; d/(1+d) is strictly less than 1 everywhere and is strictly increasing in d, which makes it the better behaved of the two when the value of the metric is to be compared, and it is the form that generalises to countable products.
  • Neither is Lipschitz equivalent to d when d is unbounded. A Lipschitz bound αd≤d′ with α>0 would force d≤α−1 everywhere, which fails as soon as d takes arbitrarily large values; the real line is the witness (On R the metrics ∣x−y∣ and min⁡(∣x−y∣,1) are uniformly but not Lipschitz equivalent ↗).
  • Boundedness is therefore not a topological property, which is recorded as FALSE: boundedness of a metric space is determined by its topology with the real line as witness.
  • The bound diam⁡(X)≤1 need not be an equality, and the two constructions differ on when it is. For a one-point space both new metrics are identically 0. For d′=min⁡{d,1} the bound is attained as soon as d takes some value ≥1, since then d′ takes the value 1 itself, and the companion page computes one such case. For d′′=d/(1+d) the value 1 is never taken at all, by claim 2, so on a space where d is bounded the diameter in d′′ is strictly below 1: for instance on a two-point space with d=1 the new distance is 1/2.
RemarkRemark: AI-adaptedProof: Not applicableverified 2026-08-02 (claude-opus-5)Open item page →

Which metric axiom list this library uses, the live naming fork between semimetric and pseudometric, and why extended metrics are not treated here

The axiom list. Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric asks a metric d:X×X→R for exactly three things: (M1) d(x,y)=0 if and only if x=y; (M2) d(x,y)=d(y,x); (M3) d(x,z)≤d(x,y)+d(y,z). Many texts add a fourth, d(x,y)≥0, or build it into the codomain by writing d:X×X→[0,∞). That fourth condition is redundant: it follows from the other three, and Nonnegativity of a metric is a consequence of the other axioms, not an axiom proves it. The list is kept minimal here so that every verification of "is this a metric" has three things to check and not four, and so that no proof can quietly assume nonnegativity before it has been established.

Splitting (M1). Some texts state (M1) as two conditions, d(x,x)=0 for all x together with the implication d(x,y)=0⇒x=y. That is the same notion, and the split form is convenient because deleting the second half is exactly the weakening that produces a pseudometric.

The naming fork, which is live and is why this library says pseudometric. Two different weakenings of the axiom list circulate under overlapping names.

The fork is that a substantial part of the literature, especially in functional analysis and in older texts, uses semimetric for the first of these, that is as a synonym for pseudometric. There is no way to use the word semimetric here without inheriting the ambiguity, so this library does not use it at all: the first weakening is always called a pseudometric, and the second, which nothing here needs, is never named. Dropping symmetry instead gives a quasimetric, also not treated here; note that Nonnegativity of a metric is a consequence of the other axioms, not an axiom uses symmetry, so a quasimetric is not automatically nonnegative and the fourth axiom is not redundant for it.

Ultrametrics. The strong triangle inequality d(x,z)≤max⁡{d(x,y),d(y,z)} implies (M3) in the presence of (M1) and (M2), by Nonnegativity of a metric is a consequence of the other axioms, not an axiom and the fact that the maximum of two nonnegative reals is at most their sum. So an ultrametric is a metric, and the definition may be read either as "a metric that also satisfies (M3')" or as "a function satisfying (M1), (M2) and (M3')". The two readings pick out the same objects.

Why extended metrics are not treated here. An extended metric is allowed to take the value +∞, so that its codomain is [0,∞] rather than [0,∞); the axioms are read with the usual arithmetic of +∞. The construction is useful, for instance when one wants to glue metric spaces without connecting them, and it is standard in metric geometry. It is not treated here, for one reason: its values would have to live in the extended real line R‾=R∪{−∞,+∞}, whereas the axioms of Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric are stated over the complete ordered field R (Complete ordered field (least-upper-bound property)) and are never read anywhere else. Why they are kept there is set out in Conventions: sup⁡∅, unbounded sets, and the extended reals: R‾ is not a field, the expressions (+∞)+(−∞) and 0⋅(+∞) have no definition compatible with the field axioms, and writing an infinite value silently moves the discussion into a different structure, after which every algebraic step needs its own justification. Every value of every metric in this library is therefore an element of R.

Two consequences of that decision are visible on this page and are not oversights. First, an unbounded set has no diameter at all here, rather than a diameter +∞ (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space). Second, the supremum metric is defined on the bounded real-valued functions only (The supremum metric d∞(f,g)=sup⁡x∣f(x)−g(x)∣ is a metric on the bounded real-valued functions on a nonempty set), where texts working in R‾ define it on all of them.

Adding extended metrics honestly would mean restating Metric space: d(x,y)=0 iff x=y, symmetry, and the triangle inequality; pseudometric and ultrametric over a totally ordered set with a greatest element, carrying its own partial arithmetic, and re-proving over it everything this page proves over R. No such restatement is made anywhere in this library, and until one is, every metric here takes real values.

5 · Examples, counterexamples and false statements

False statementConstruction: AI-adaptedVerification: AI-generatedprecheck passverified 2026-08-02 (claude-opus-5)Open item page →

FALSE: in every metric space the closure of B(x,r) is the closed ball of radius r

Statement

False claim: for every metric space (X,d), every x∈X and every real r>0,

B(x,r)‾=Bˉ(x,r),

that is, the closure of the open ball (Interior, closure, boundary, limit point, isolated point and dense subset of a metric space) is the closed ball of the same centre and radius (Open ball, closed ball and sphere in a metric space).

One inclusion is a theorem and the other is false. The names open ball and closed ball do not by themselves license the equality, and the intuition behind it comes from Rn with a Euclidean metric, where it happens to be true; it fails already in a subspace of the real line with a gap, and the witness used below is {0}∪[1,2].

Facts & Assumptions

Given: The real line with its usual metric dR(u,v)=∣u−v∣ (The absolute value makes R a metric space: d(x,y)=∣x−y∣ is a metric, its open balls are the intervals (x−r,x+r), and it is unbounded); the subset X:={0}∪[1,2]⊆R with the subspace metric d:=dR↾(X×X) (Isometry, isometric embedding, and the subspace metric on a subset, Intervals of R: the nine order-convex forms, nondegeneracy, and length); an arbitrary metric space (X0,d0) with x∈X0 and a real r>0.

[L2]

The closure of a set is the smallest closed superset of it, and a closed set equals its own closure (The closure of a nonempty A is {x:d(x,A)=0}, equals A together with its limit points, and is the smallest closed superset).

[L4]

Absolute value and order: ∣u∣=u when u≥0, ∣−u∣=∣u∣, and 0<1; and by trichotomy u≥1 rules out u<1 (Absolute value in an ordered field, Basic properties of the absolute value, The multiplicative identity is positive, Ordered field, Complete ordered field (least-upper-bound property)).

[L5]

Open sets of a metric space: U is open when every point of U has a ball around it inside U; a set is closed when its complement is open (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement).

Refutation

technique · direct
1.1

The inclusion that does hold, in every metric space: Bˉ(x,r) is closed and contains B(x,r), so the smallest closed superset of B(x,r) satisfies B(x,r)‾⊆Bˉ(x,r).

L1L2
1.2

In the witness X={0}∪[1,2], every y∈[1,2] satisfies y≥1, hence d(0,y)=∣0−y∣=∣−y∣=y≥1; and d(0,0)=0<1.

givenL3L4
2.1

Therefore BX(0,1)={ y∈X:d(0,y)<1 }={0} and BˉX(0,1)={ y∈X:d(0,y)≤1 }={0,1}, since 1∈[1,2]⊆X has d(0,1)=1 while every other y∈[1,2] has d(0,y)=y>1 or y=1.

step 1.2L3L4
2.2

The set [1,2]=X∖{0} is open in X: for y∈[1,2] the ball BX(y,1) omits 0, because d(0,y)≥1 by step 1.2, so BX(y,1)⊆X∖{0}=[1,2]. Hence {0} is closed in X.

step 1.2L3L5
3.1

Since {0} is closed it equals its own closure, so BX(0,1)‾={0}‾={0} by step 2.1, while BˉX(0,1)={0,1}; and {0}≠{0,1} because 1≠0.

step 2.1step 2.2L2L4
4.1

The witness (X,d) with x=0 and r=1 therefore refutes the claim; all that survives in general is the inclusion of step 1.1, and it can be strict.

step 1.1step 3.1∎

Remarks

  • Where the intuition comes from and why it does not transfer. In Rn with the Euclidean metric (Rn as the set of functions n→R, and d1, d2, d∞ are metrics on it) the segment from the centre to a point of the closed ball lies in the space, and running along it approaches that point from inside the open ball; that is the usual route to the equality there, and this library does not prove it. A metric space need not contain any such segment: in the witness above, nothing of X lies strictly between 0 and 1, so the point 1 of the closed ball is not approached from inside B(0,1)={0} at all.
  • The failure is not exotic. A discrete metric on a set with at least two points produces the same phenomenon in a starker form, with B(p,1)‾={p} and Bˉ(p,1) the whole space; the companion page carries both witnesses.
  • The sphere is not the boundary of the ball either, and that failure is recorded separately on the companion page.
False statementConstruction: AI-adaptedVerification: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

FALSE: boundedness of a metric space is determined by its topology

Statement

False claim: boundedness is a topological property of a metric space; that is, if d and d′ are topologically equivalent metrics on a set X (Topologically, uniformly and Lipschitz equivalent metrics on a set) and (X,d) is a bounded metric space (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space), then (X,d′) is bounded as well.

Equivalently, the false claim says that the metric topology (The metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement) determines whether the space is bounded. It does not: every metric space carries a bounded metric with exactly the same topology, so as soon as one unbounded metric space exists the claim collapses.

Facts & Assumptions

Given: The real line R with its usual metric dR(u,v)=∣u−v∣, and the metric ρ(u,v):=min⁡{ dR(u,v), 1 } (Maximum and minimum of a set).

Refutation

technique · direct
1.1

By [L1] the metric dR makes R a metric space that is not bounded.

L1
1.2

By [L2] the function ρ=min⁡{dR,1} is a metric on R, the space (R,ρ) is bounded with diam⁡(R)≤1, and ρ is uniformly equivalent to dR.

L2
2.1

By [L3] the two metrics are therefore topologically equivalent: Tρ=TdR.

step 1.2L3
3.1

So dR and ρ are topologically equivalent metrics on the same set, (R,ρ) is bounded and (R,dR) is not; the claim fails, and boundedness is a property of the metric and not of the topology.

step 1.1step 2.1∎

Remarks

Sources