Alphabeta Math
Session-authored (Fable 5 assisted)
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 · 13 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 5 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\mathbb{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 XX is a real-valued function of two points satisfying separation, symmetry and the triangle inequality (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = 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 ++\infty; 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\mathbb{R} a metric space, with the open balls exactly the bounded open intervals and the space unbounded, is The absolute value makes R\mathbb{R} a metric space: d(x,y)=xyd(x,y) = |x-y| is a metric, its open balls are the intervals (xr,x+r)(x-r, x+r), and it is unbounded. That Rn\mathbb{R}^n, defined ZFC-natively as the set of functions from the von Neumann natural nn to R\mathbb{R}, carries the three metrics d1d_1, d2d_2 and dd_\infty for every n1n \ge 1 is Rn\mathbb{R}^n as the set of functions nRn \to \mathbb{R}, and d1d_1, d2d_2, dd_\infty are metrics on it. That restriction is not decoration: at n=0n = 0 the metric dd_\infty would be a maximum over the empty index set. The lemma is proved from Minkowski at exponent 11 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)=supxf(x)g(x)d_\infty(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 AA is {x:d(x,A)=0}\{x : d(x,A) = 0\}, equals AA 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 11-Lipschitz (d(x,A)d(y,A)d(x,y)|d(x,A) - d(y,A)| \le d(x,y), so the distance to a fixed nonempty set is 11-Lipschitz), a refinement of the reverse triangle inequality (The reverse triangle inequality d(x,z)d(y,z)d(x,y)|d(x,z) - d(y,z)| \le 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: xkxx_k \to x iff d(xk,x)0d(x_k, x) \to 0 in R\mathbb{R}), so it inherits the conventions of the sequences page, including that N\mathbb{N} contains 00 and that the definition quantifies over rational ε\varepsilon. 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/n1/n form a countable neighbourhood base at each point (The balls B(x,1/n)B(x, 1/n), n1n \ge 1, form a countable neighbourhood base at xx, 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 AA iff some sequence in AA 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 For a map of metric spaces the following agree: ε\varepsilon-δ\delta continuity everywhere, preimages of open sets are open, preimages of closed sets are closed, sequential continuity, and f(A)f(A)f(\overline{A}) \subseteq \overline{f(A)} inherits it from there rather than adding to it.

Continuity, embeddings and comparison of metrics. The ε\varepsilon-δ\delta definition (Continuity of a map between metric spaces, at a point and globally, in the ε\varepsilon-δ\delta 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]f[\overline{A}] \subseteq \overline{f[A]} (For a map of metric spaces the following agree: ε\varepsilon-δ\delta continuity everywhere, preimages of open sets are open, preimages of closed sets are closed, sequential continuity, and f(A)f(A)f(\overline{A}) \subseteq \overline{f(A)}). 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)B(x,r) is the closed ball of radius rr); and boundedness is not determined by the topology, because every metric space carries a bounded metric with the same open sets (min(d,1)\min(d,1) and d/(1+d)d/(1+d) are metrics uniformly equivalent to dd, 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)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric

Definition

Throughout, R\mathbb{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 XX be a set. A metric on XX is a function d:X×XRd : X \times X \to \mathbb{R} such that for all x,y,zXx, y, z \in X:

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

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

The values of a metric are real numbers. The codomain is R\mathbb{R}, so d(x,y)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)0d(x,y) \ge 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 XX is a function p:X×XRp : X \times X \to \mathbb{R} satisfying (M2), (M3) and the weakening

  • (M1') Reflexivity. p(x,x)=0p(x,x) = 0 for every xXx \in X

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

Ultrametric. An ultrametric on XX is a metric dd that in addition satisfies

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

for all x,y,zXx, y, z \in X, where the maximum is that of a two-element subset of R\mathbb{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)(X,d) with dd 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 XX be a set and let p:X×XRp : X \times X \to \mathbb{R} satisfy the reflexivity axiom (M1') p(x,x)=0p(x,x) = 0 and the symmetry axiom (M2) p(x,y)=p(y,x)p(x,y) = p(y,x) of Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric. Then:

  1. If pp satisfies the triangle inequality (M3), then p(x,y)0p(x,y) \ge 0 for all x,yXx, y \in X.
  2. If pp satisfies the strong triangle inequality (M3'), then p(x,y)0p(x,y) \ge 0 for all x,yXx, y \in X.

In particular every metric, every pseudometric and every ultrametric (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = 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 XX, points x,yXx, y \in X, and a function p:X×XRp : X \times X \to \mathbb{R} satisfying (M1') p(a,a)=0p(a,a) = 0 for every aXa \in X and (M2) p(a,b)=p(b,a)p(a,b) = p(b,a) for all a,bXa, b \in X (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric).

[A1]

(M3) The triangle inequality p(a,c)p(a,b)+p(b,c)p(a,c) \le p(a,b) + p(b,c) holds for all a,b,cXa, b, c \in X (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = 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)}p(a,c) \le \max\{p(a,b), p(b,c)\} holds for all a,b,cXa, b, c \in X (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric).

[L1]

Trichotomy of the order of R\mathbb{R}: for reals a,ba, b exactly one of a<ba < b, a=ba = b, b<ab < a holds, so a0a \ge 0 fails exactly when a<0a < 0 (Order on the reals, Complete ordered field (least-upper-bound property), Ordered field).

[L2]

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

[L3]

A two-element subset {a,b}\{a,b\} of R\mathbb{R} has a maximum, and that maximum is aa or bb; if a=ba = b it is aa (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=xa = x, b=yb = y, c=xc = x: p(x,x)p(x,y)+p(y,x)p(x,x) \le p(x,y) + p(y,x).

A1
1.2

Instantiate [A2] at a=xa = x, b=yb = y, c=xc = x: p(x,x)max{p(x,y),p(y,x)}p(x,x) \le \max\{p(x,y), p(y,x)\}.

A2
1.3

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

assume-hyp
2.1

By (M1') the left side of step 1.1 is 00 and by (M2) the right side is p(x,y)+p(x,y)p(x,y) + p(x,y), so 0p(x,y)+p(x,y)0 \le 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)p(x,y) by [L3], and (M1') turns step 1.2 into 0p(x,y)0 \le 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=0p(x,y) + p(x,y) < 0 + 0 = 0.

step 1.3L2
3.1

Steps 2.1 and 2.3 assert 0p(x,y)+p(x,y)0 \le p(x,y) + p(x,y) and p(x,y)+p(x,y)<0p(x,y) + p(x,y) < 0, which trichotomy forbids; so the supposition of step 1.3 is untenable and p(x,y)0p(x,y) \ge 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)0 = p(x,x) \le 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 0p(x,y)0 \le 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 0p(x,y)+p(y,x)0 \le 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)(X,d) be a metric space (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric), let xXx \in X and let rRr \in \mathbb{R} with r>0r > 0 (Order on the reals). Define

B(x,r):={yX:d(x,y)<r},Bˉ(x,r):={yX:d(x,y)r},S(x,r):={yX:d(x,y)=r}.B(x,r) := \{\, y \in X : d(x,y) < r \,\}, \qquad \bar B(x,r) := \{\, y \in X : d(x,y) \le r \,\}, \qquad S(x,r) := \{\, y \in X : d(x,y) = r \,\}.

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

Immediate consequences of the definitions. For every xXx \in X and r>0r > 0:

  • xB(x,r)x \in B(x,r), because d(x,x)=0<rd(x,x) = 0 < r (axiom (M1) of Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric); in particular open and closed balls are nonempty.
  • B(x,r)Bˉ(x,r)B(x,r) \subseteq \bar B(x,r) and S(x,r)Bˉ(x,r)S(x,r) \subseteq \bar B(x,r), and Bˉ(x,r)\bar B(x,r) is the disjoint union of B(x,r)B(x,r) and S(x,r)S(x,r), by trichotomy of the order of R\mathbb{R} (Complete ordered field (least-upper-bound property), Ordered field): each yy satisfies exactly one of d(x,y)<rd(x,y) < r, d(x,y)=rd(x,y) = r, d(x,y)>rd(x,y) > r.
  • If 0<sr0 < s \le r then B(x,s)B(x,r)B(x,s) \subseteq B(x,r) and Bˉ(x,s)Bˉ(x,r)\bar B(x,s) \subseteq \bar 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 r0r \le 0 then B(x,r)={y:d(x,y)<r}B(x,r) = \{y : d(x,y) < r\} is empty, because d(x,y)0rd(x,y) \ge 0 \ge r for every yy. The other two sets behave differently at r=0r = 0, and the convention r>0r > 0 excludes them for uniformity rather than for emptiness: Bˉ(x,0)=S(x,0)={x}\bar B(x,0) = S(x,0) = \{x\}, since d(x,y)0d(x,y) \le 0 together with d(x,y)0d(x,y) \ge 0 gives d(x,y)=0d(x,y) = 0 and hence y=xy = x by (M1). For r<0r < 0 all three sets are empty.

A sphere may be empty, and so the three sets are not on a par. For r>0r > 0 the open and closed balls always contain xx, but nothing in the definition produces a point at distance exactly rr from xx. If a metric takes only the values 00 and 11, as the discrete metric on the companion page does, then S(x,2)=S(x,2) = \emptyset while B(x,2)=Bˉ(x,2)B(x,2) = \bar 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)B(x,r) depends on (X,d)(X,d) and not on xx and rr alone. When more than one space or more than one metric is in play we write BX(x,r)B_X(x,r), or Bd(x,r)B_d(x,r), and likewise for Bˉ\bar B and SS. 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)(X,d) be a metric space (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let A,BXA, B \subseteq X.

Bounded subset. AA is bounded if A=A = \emptyset or there are x0Xx_0 \in X and a real r>0r > 0 with AB(x0,r)A \subseteq B(x_0, r) (Open ball, closed ball and sphere in a metric space). The space (X,d)(X,d) is a bounded metric space if XX is a bounded subset of itself.

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

D(A):={d(a,b):a,bA}R.D(A) := \{\, d(a,b) : a, b \in A \,\} \subseteq \mathbb{R}.

Then D(A)D(A) is nonempty, since AA is, and it is bounded above: fixing x0x_0 and rr with AB(x0,r)A \subseteq B(x_0,r), every a,bAa, b \in A satisfy d(a,b)d(a,x0)+d(x0,b)<r+rd(a,b) \le d(a,x_0) + d(x_0,b) < r + r by the triangle inequality, symmetry (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = 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+rr + r is an upper bound of D(A)D(A) (Lower bound, bounded below, bounded set). Hence D(A)D(A) has a least upper bound in R\mathbb{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):=supD(A).\operatorname{diam}(A) := \sup D(A).

Distance from a point to a set, for nonempty AA only. Let xXx \in X and let AA be nonempty, and put E(x,A):={d(x,a):aA}E(x,A) := \{\, d(x,a) : a \in A \,\}. Then E(x,A)E(x,A) is nonempty and bounded below by 00, 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):=infE(x,A).d(x,A) := \inf E(x,A).

Distance between two sets, for nonempty AA and BB only. Put E(A,B):={d(a,b):aA, bB}E(A,B) := \{\, d(a,b) : a \in A,\ b \in B \,\}, again nonempty and bounded below by 00, and define

d(A,B):=infE(A,B).d(A,B) := \inf E(A,B).

Every one of the three scope restrictions is load bearing. In this library sup\sup and inf\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=\sup \emptyset = -\infty is in force in this development (Conventions: sup\sup \emptyset, unbounded sets, and the extended reals). Accordingly:

  • diam(A)\operatorname{diam}(A) is defined exactly when AA is nonempty and bounded. It is not defined for A=A = \emptyset, and it is not defined, not even as an infinite value, for an unbounded AA.
  • d(x,A)d(x,A) is defined exactly when AA \ne \emptyset, and d(A,B)d(A,B) exactly when both AA and BB are nonempty. No boundedness is needed for these two, because 00 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)|d(x,z) - d(y,z)| \le d(x,y) in any metric space

Statement

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

d(x,z)d(y,z)d(x,y),|d(x,z) - d(y,z)| \le d(x,y),

where |\cdot| is the absolute value of R\mathbb{R} (Absolute value in an ordered field).

Facts & Assumptions

Given: A metric space (X,d)(X,d) and points x,y,zXx, y, z \in X; write t:=d(x,z)d(y,z)t := d(x,z) - d(y,z).

[A1]

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

[A2]

Symmetry (M2): d(a,b)=d(b,a)d(a,b) = d(b,a) for all a,bXa,b \in X (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric).

[L1]

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

[L2]

Adding a constant to an inequality: if aba \le b then a+cb+ca + c \le b + c. Order is preserved by adding a constant and by adding inequalities states the strict form a<ba+c<b+ca < b \Rightarrow a + c < b + c; the nonstrict form used here is that strict form together with the case a=ba = 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)(a,b,c) = (x,y,z): d(x,z)d(x,y)+d(y,z)d(x,z) \le d(x,y) + d(y,z).

A1
1.2

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

A1A2
2.1

Adding d(y,z)-d(y,z) to both sides of step 1.1 gives t=d(x,z)d(y,z)d(x,y)t = d(x,z) - d(y,z) \le d(x,y).

step 1.1L2
2.2

Adding d(x,z)-d(x,z) to both sides of step 1.2 gives d(y,z)d(x,z)d(x,y)d(y,z) - d(x,z) \le d(x,y), that is td(x,y)-t \le d(x,y).

step 1.2L2
3.1

By [L1] the real number t|t| is either tt or t-t, and both of these are at most d(x,y)d(x,y) by steps 2.1 and 2.2, so d(x,z)d(y,z)=td(x,y)|d(x,z) - d(y,z)| = |t| \le 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)|d(x,A) - d(y,A)| \le d(x,y), so the distance to a fixed nonempty set is 11-Lipschitz

Statement

Let (X,d)(X,d) be a metric space (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric), let AXA \subseteq X be nonempty and let x,yXx, y \in X. Then

d(x,A)d(y,A)d(x,y),|d(x,A) - d(y,A)| \le d(x,y),

with d(,A)d(\cdot,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 ud(u,A)u \mapsto d(u,A) changes by at most d(u,v)d(u,v) between uu and vv: it is 11-Lipschitz.

Facts & Assumptions

Given: A metric space (X,d)(X,d), a nonempty AXA \subseteq X, and points x,yXx, y \in X; write E(u):={d(u,a):aA}E(u) := \{\, d(u,a) : a \in A \,\} for uXu \in X.

[A1]

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

[L1]

For nonempty AA the real number d(u,A)=infE(u)d(u,A) = \inf E(u) exists, because E(u)E(u) is nonempty and bounded below by 00 (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space, Nonnegativity of a metric is a consequence of the other axioms, not an axiom, Every nonempty set bounded below has an infimum).

[L2]

The infimum is a lower bound of its set and is the greatest such: infSs\inf S \le s for every sSs \in S, and infS\ell \le \inf S for every lower bound \ell of SS (Greatest lower bound (infimum)).

[L3]

Adding a constant to an inequality: if aba \le b then a+cb+ca + c \le 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=ba = b, settled by totality of the order (Ordered field, Complete ordered field (least-upper-bound property)).

[L4]

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

Proof

technique · direct
1.1

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

givenL1
1.2

For every aAa \in A: d(x,a)d(x,y)+d(y,a)d(x,a) \le d(x,y) + d(y,a).

A1
1.3

For every aAa \in A: d(y,a)d(y,x)+d(x,a)d(y,a) \le d(y,x) + d(x,a), and d(y,x)=d(x,y)d(y,x) = d(x,y) by symmetry (M2), so d(y,a)d(x,y)+d(x,a)d(y,a) \le d(x,y) + d(x,a).

A1
2.1

For every aAa \in A: d(x,A)d(x,a)d(x,A) \le d(x,a), since d(x,A)d(x,A) is a lower bound of E(x)E(x) and d(x,a)E(x)d(x,a) \in E(x); combining with step 1.2 gives d(x,A)d(x,y)+d(y,a)d(x,A) \le d(x,y) + d(y,a), hence d(x,A)d(x,y)d(y,a)d(x,A) - d(x,y) \le d(y,a).

step 1.1step 1.2L2L3
2.2

For every aAa \in A: d(y,A)d(y,a)d(x,y)+d(x,a)d(y,A) \le d(y,a) \le d(x,y) + d(x,a) by the same reasoning with the roles of xx and yy exchanged, hence d(y,A)d(x,y)d(x,a)d(y,A) - d(x,y) \le d(x,a).

step 1.1step 1.3L2L3
3.1

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

step 2.1L2L3
3.2

Symmetrically d(y,A)d(x,y)d(y,A) - d(x,y) is a lower bound of E(x)E(x), so d(y,A)d(x,A)d(x,y)d(y,A) - d(x,A) \le d(x,y).

step 2.2L2L3
4.1

By [L4] the value d(x,A)d(y,A)|d(x,A) - d(y,A)| is d(x,A)d(y,A)d(x,A) - d(y,A) or its negative d(y,A)d(x,A)d(y,A) - d(x,A), and steps 3.1 and 3.2 bound both by d(x,y)d(x,y); hence d(x,A)d(y,A)d(x,y)|d(x,A) - d(y,A)| \le 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)(X,d) be a metric space (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric).

A subset UXU \subseteq X is open in (X,d)(X,d) if for every xUx \in U there is a real r>0r > 0 with B(x,r)UB(x,r) \subseteq U (Open ball, closed ball and sphere in a metric space). A subset FXF \subseteq X is closed in (X,d)(X,d) if its complement XFX \setminus F is open.

The collection

Td:={UX:U is open in (X,d)}\mathcal{T}_d := \{\, U \subseteq X : U \text{ is open in } (X,d) \,\}

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

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

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

The metric, not the set, determines Td\mathcal{T}_d. 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\mathbb{R} a metric space: d(x,y)=xyd(x,y) = |x-y| is a metric, its open balls are the intervals (xr,x+r)(x-r, x+r), and it is unbounded

Statement

Define dR:R×RRd_{\mathbb{R}} : \mathbb{R} \times \mathbb{R} \to \mathbb{R} by dR(x,y):=xyd_{\mathbb{R}}(x,y) := |x - y| (Absolute value in an ordered field). Then:

  1. dRd_{\mathbb{R}} is a metric on R\mathbb{R} (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric); it is called the usual metric of R\mathbb{R}.
  2. For xRx \in \mathbb{R} and r>0r > 0 the open ball is the bounded open interval (Intervals of R\mathbb{R}: the nine order-convex forms, nondegeneracy, and length, Open ball, closed ball and sphere in a metric space) B(x,r)=(xr, x+r),B(x,r) = (x-r,\ x+r), and the closed ball is Bˉ(x,r)=[xr, x+r]\bar B(x,r) = [x-r,\ x+r].
  3. Consequently URU \subseteq \mathbb{R} is open in the metric topology of dRd_{\mathbb{R}} (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 xUx \in U there is r>0r > 0 with (xr,x+r)U(x-r, x+r) \subseteq U. This topology is called the usual topology of R\mathbb{R}.
  4. (R,dR)(\mathbb{R}, d_{\mathbb{R}}) 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\mathbb{R}, so diam(R)\operatorname{diam}(\mathbb{R}) is not defined.

Facts & Assumptions

Given: The complete ordered field R\mathbb{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)=xyd_{\mathbb{R}}(x,y) = |x-y|; points x,y,zRx, y, z \in \mathbb{R} and a real r>0r > 0.

[L1]

Absolute value: u0|u| \ge 0; u=0|u| = 0 if and only if u=0u = 0; u=u|-u| = |u|; and for c>0c > 0 one has u<c|u| < c if and only if c<u<c-c < u < c (Basic properties of the absolute value, Absolute value in an ordered field).

[L2]

Triangle inequality in an ordered field: u+vu+v|u + v| \le |u| + |v| (The triangle inequality).

[L3]

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

[L4]

Archimedean property: for every wRw \in \mathbb{R} there is a natural n1n \ge 1 with w<n1Rw < n \cdot 1_{\mathbb{R}} (Every complete ordered field is Archimedean); and n1R>0n \cdot 1_{\mathbb{R}} > 0 for n1n \ge 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,ba,b exactly one of a<ba < b, a=ba = b, b<ab < a holds (Complete ordered field (least-upper-bound property), Ordered field).

Proof

technique · direct
1.1

Separation (M1): dR(x,y)=xy=0d_{\mathbb{R}}(x,y) = |x-y| = 0 holds if and only if xy=0x - y = 0, that is if and only if x=yx = y.

L1
1.2

Symmetry (M2): dR(y,x)=yx=(xy)=xy=dR(x,y)d_{\mathbb{R}}(y,x) = |y-x| = |-(x-y)| = |x-y| = d_{\mathbb{R}}(x,y).

L1
1.3

Triangle inequality (M3): dR(x,z)=xz=(xy)+(yz)xy+yz=dR(x,y)+dR(y,z)d_{\mathbb{R}}(x,z) = |x - z| = |(x-y) + (y-z)| \le |x-y| + |y-z| = d_{\mathbb{R}}(x,y) + d_{\mathbb{R}}(y,z).

L2
1.4

For yRy \in \mathbb{R} and r>0r > 0: yB(x,r)y \in B(x,r) means xy<r|x - y| < r, which by [L1] holds if and only if r<xy<r-r < x - y < r, and adding yry - r respectively y+ry + r to the two halves shows this is equivalent to xr<y<x+rx - r < y < x + r.

L1L5
1.5

For yRy \in \mathbb{R} and r>0r > 0: yBˉ(x,r)y \in \bar B(x,r) means xyr|x-y| \le r, which by the same equivalence read with \le in place of << holds if and only if xryx+rx - r \le y \le x + r.

L1L5
1.6

Let x0Rx_0 \in \mathbb{R} and r>0r > 0 be arbitrary, and use [L4] to fix a natural n1n \ge 1 with x0+r<n1Rx_0 + r < n \cdot 1_{\mathbb{R}}; write w:=n1Rw := n \cdot 1_{\mathbb{R}}.

L4choose
2.1

By steps 1.1, 1.2 and 1.3 the function dRd_{\mathbb{R}} satisfies (M1), (M2) and (M3), so it is a metric on R\mathbb{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)B(x,r) has exactly the elements of (xr,x+r)(x-r,x+r), and by step 1.5 and [L3] the set Bˉ(x,r)\bar B(x,r) has exactly the elements of [xr,x+r][x-r,x+r]; this is claim 2.

step 1.4step 1.5L3
2.3

Since r>0r > 0 we have x0<x0+r<wx_0 < x_0 + r < w, so wx0>r>0w - x_0 > r > 0 and hence dR(x0,w)=x0w=(wx0)=wx0>rd_{\mathbb{R}}(x_0, w) = |x_0 - w| = |-(w - x_0)| = w - x_0 > r; therefore wB(x0,r)w \notin B(x_0,r).

step 1.6L1L5L6
3.1

Substituting claim 2 into the definition of open in the metric topology gives claim 3: UU is open exactly when every xUx \in U admits r>0r > 0 with (xr,x+r)=B(x,r)U(x-r,x+r) = B(x,r) \subseteq U.

step 2.2
4.1

Since x0x_0 and rr were arbitrary, step 2.3 exhibits for every ball B(x0,r)B(x_0,r) a real not in it, so no ball contains R\mathbb{R}; hence R\mathbb{R} is not a bounded subset of itself and diam(R)\operatorname{diam}(\mathbb{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\mathbb{R}^n as the set of functions nRn \to \mathbb{R}, and d1d_1, d2d_2, dd_\infty are metrics on it

Statement

Let nNn \in \mathbb{N} with n1n \ge 1. A von Neumann natural is the set of its predecessors, n={0,1,,n1}n = \{0, 1, \dots, n-1\} (The natural numbers N\mathbb{N} (von Neumann)), so it can be used directly as an index set. Define

Rn:={x:x is a function nR},\mathbb{R}^n := \{\, x : x \text{ is a function } n \to \mathbb{R} \,\},

and write xkx_k for x(k)x(k), k<nk < n. Two elements of Rn\mathbb{R}^n are equal exactly when they agree at every k<nk < n, functions being equal when they have the same values. For x,yRnx, y \in \mathbb{R}^n put

d1(x,y):=k<nxkyk,d2(x,y):= k<n(xkyk)2 ,d(x,y):=max{xkyk:k<n}.d_1(x,y) := \sum_{k<n} |x_k - y_k|, \qquad d_2(x,y) := \sqrt{\ \sum_{k<n} (x_k - y_k)^2\ }, \qquad d_\infty(x,y) := \max\{\, |x_k - y_k| : 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 a0\sqrt{a} \ge 0 with (a)2=a(\sqrt{a})^2 = a; the positives are {x2:x0}\{x^2 : x \neq 0\}); and {xkyk:k<n}\{|x_k - y_k| : k < n\} is a nonempty finite subset of R\mathbb{R}, because n1n \ge 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 d1d_1, d2d_2 and dd_\infty are metrics on Rn\mathbb{R}^n (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric).

Why n1n \ge 1. For n=0n = 0 the set R0\mathbb{R}^0 has exactly one element, the empty function, and d1d_1 and d2d_2 are the empty sum 00 and its root; but dd_\infty would be the maximum of the empty set, which does not exist. The hypothesis n1n \ge 1 is therefore not decoration, and it is carried by every statement about dd_\infty in this library.

Facts & Assumptions

Given: A natural n1n \ge 1; elements x,y,zRnx, y, z \in \mathbb{R}^n; and the lists ak:=xkyka_k := x_k - y_k, bk:=ykzkb_k := y_k - z_k for k<nk < n, so that ak+bk=xkzka_k + b_k = x_k - z_k. Write A:=k<nak2A := \sum_{k<n} a_k^2, C:=k<nbk2C := \sum_{k<n} b_k^2 and B:=k<nakbkB := \sum_{k<n} a_k b_k.

[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 00.

[L2]

Absolute value (Basic properties of the absolute value, Absolute value in an ordered field): u0|u| \ge 0; u=0|u| = 0 if and only if u=0u = 0; u=u|-u| = |u|; and uuu \le |u|.

[L3]

Two-term triangle inequality: u+vu+v|u + v| \le |u| + |v| (The triangle inequality).

[L4]

Minkowski's inequality at the rational exponent p=1p = 1 (Minkowski's inequality for finite sums (rational exponent)): k<nak+bkk<nak+k<nbk\sum_{k<n}|a_k + b_k| \le \sum_{k<n}|a_k| + \sum_{k<n}|b_k|.

[L5]

Cauchy-Schwarz in root form (The Cauchy-Schwarz inequality for finite sums): k<nakbkk<nak2 k<nbk2\big|\sum_{k<n} a_k b_k\big| \le \sqrt{\sum_{k<n} a_k^2}\ \sqrt{\sum_{k<n} b_k^2}.

[L6]

Square roots (Square roots exist: a unique a0\sqrt{a} \ge 0 with (a)2=a(\sqrt{a})^2 = a; the positives are {x2:x0}\{x^2 : x \neq 0\}): every c0c \ge 0 has a unique c0\sqrt{c} \ge 0 with (c)2=c(\sqrt{c})^2 = c; in particular c=0\sqrt{c} = 0 if and only if c=0c = 0.

[L7]

Squares (Squares of nonzero elements are positive, Integer powers ama^m): u20u^2 \ge 0 always, and u2=0u^2 = 0 only for u=0u = 0; and monotonicity of squaring on the nonnegatives, st    s2t2s \le t \iff s^2 \le t^2 for s,t0s, t \ge 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\mathbb{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 d1d_1: d1(x,y)=k<nakd_1(x,y) = \sum_{k<n}|a_k| is a sum of nonnegative terms, so it vanishes exactly when every ak|a_k| vanishes, that is exactly when xk=ykx_k = y_k for all k<nk < n, that is exactly when x=yx = y.

L1L2
1.2

Separation for d2d_2: d2(x,y)=Ad_2(x,y) = \sqrt{A} vanishes exactly when A=0A = 0; AA is a sum of nonnegative terms, so A=0A = 0 exactly when ak2=0a_k^2 = 0 for every k<nk < n, which happens exactly when every ak=0a_k = 0, that is exactly when x=yx = y.

L1L6L7
1.3

Separation for dd_\infty: the maximum d(x,y)d_\infty(x,y) belongs to {ak:k<n}\{|a_k| : k < n\} and bounds it above, so it is 00 exactly when every ak=0|a_k| = 0, that is exactly when x=yx = y.

L2L8
1.4

Symmetry for all three: ykxk=(xkyk)=xkyk|y_k - x_k| = |-(x_k - y_k)| = |x_k - y_k| and (ykxk)2=(xkyk)2(y_k - x_k)^2 = (x_k - y_k)^2 for every k<nk < n, so the three defining expressions are unchanged when xx and yy are exchanged.

L2L7
1.5

Triangle inequality for d1d_1: applying [L4] to the lists (ak)(a_k) and (bk)(b_k) gives d1(x,z)=k<nak+bkk<nak+k<nbk=d1(x,y)+d1(y,z)d_1(x,z) = \sum_{k<n}|a_k + b_k| \le \sum_{k<n}|a_k| + \sum_{k<n}|b_k| = d_1(x,y) + d_1(y,z).

L4
1.6

Expanding with additivity and scaling: k<n(ak+bk)2=k<n(ak2+2akbk+bk2)=A+2B+C\sum_{k<n}(a_k + b_k)^2 = \sum_{k<n}\big(a_k^2 + 2a_kb_k + b_k^2\big) = A + 2B + C.

L1algebra
1.7

By [L5] and BBB \le |B|: BACB \le \sqrt{A}\,\sqrt{C}, and A=(A)2A = (\sqrt{A})^2, C=(C)2C = (\sqrt{C})^2 with A,C0\sqrt{A}, \sqrt{C} \ge 0.

L2L5L6
1.8

Triangle inequality for dd_\infty: for each k<nk < n, ak+bkak+bkd(x,y)+d(y,z)|a_k + b_k| \le |a_k| + |b_k| \le d_\infty(x,y) + d_\infty(y,z) because the two maxima bound their sets; so d(x,y)+d(y,z)d_\infty(x,y) + d_\infty(y,z) is an upper bound of {ak+bk:k<n}\{|a_k + b_k| : k < n\}, and the maximum d(x,z)d_\infty(x,z) of that set is one of its elements, whence d(x,z)d(x,y)+d(y,z)d_\infty(x,z) \le d_\infty(x,y) + d_\infty(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\sum_{k<n}(a_k+b_k)^2 = A + 2B + C \le (\sqrt{A})^2 + 2\sqrt{A}\sqrt{C} + (\sqrt{C})^2 = \big(\sqrt{A} + \sqrt{C}\big)^2.

step 1.6step 1.7L9algebra
3.1

Both d2(x,z)=k<n(ak+bk)2d_2(x,z) = \sqrt{\sum_{k<n}(a_k+b_k)^2} and A+C\sqrt{A} + \sqrt{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)d_2(x,z) \le \sqrt{A} + \sqrt{C} = d_2(x,y) + d_2(y,z).

step 2.1L6L7
4.1

Each of d1d_1, d2d_2, dd_\infty 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\mathbb{R}^n.

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

Remarks

  • Rn\mathbb{R}^n is defined ZFC-natively here, as the set of functions from the von Neumann natural nn to R\mathbb{R}, precisely so that its coordinates are indexed by k<nk < 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<nk < n, applies without any reindexing.
  • No rational power appears anywhere above. The triangle inequality for d2d_2 is obtained from Cauchy-Schwarz and the existence of square roots, not from Minkowski at p=2p = 2, so this lemma does not depend on the theory of rational exponents. Minkowski is used only at p=1p = 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)=supxf(x)g(x)d_\infty(f,g) = \sup_x |f(x) - g(x)| is a metric on the bounded real-valued functions on a nonempty set

Statement

Let SS be a nonempty set. Call a function f:SRf : S \to \mathbb{R} bounded when its range f[S]={f(s):sS}f[S] = \{f(s) : s \in S\} is a bounded subset of R\mathbb{R} (Lower bound, bounded below, bounded set), and write

B(S):={f:f is a bounded function SR}.\mathcal{B}(S) := \{\, f : f \text{ is a bounded function } S \to \mathbb{R} \,\}.

For f,gB(S)f, g \in \mathcal{B}(S) put D(f,g):={f(s)g(s):sS}D(f,g) := \{\, |f(s) - g(s)| : s \in S \,\} and

d(f,g):=supD(f,g).d_\infty(f,g) := \sup D(f,g).

This is well defined: D(f,g)D(f,g) is nonempty because SS 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 dd_\infty is a metric on B(S)\mathcal{B}(S) (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = 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 ff and gg makes D(f,g)D(f,g) bounded above, and nonemptiness of SS 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=RS=\mathbb{R} the functions f(s)=sf(s)=s and g(s)=0g(s)=0 make D(f,g)D(f,g) unbounded above (Conventions: sup\sup \emptyset, unbounded sets, and the extended reals).

Facts & Assumptions

Given: A nonempty set SS and bounded functions f,g,hB(S)f, g, h \in \mathcal{B}(S), with ff(s)uf\ell_f \le f(s) \le u_f, gg(s)ug\ell_g \le g(s) \le u_g and hh(s)uh\ell_h \le h(s) \le u_h for all sSs \in S; a fixed s0Ss_0 \in S.

[L1]

Bounded subset of R\mathbb{R}: TT is bounded when there are ,uR\ell, u \in \mathbb{R} with tu\ell \le t \le u for every tTt \in T (Lower bound, bounded below, bounded set).

[L2]

Least-upper-bound property: a nonempty subset of R\mathbb{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: u0|u| \ge 0; u=0|u| = 0 if and only if u=0u = 0; u=u|-u| = |u|; and u|u| equals uu or u-u (Basic properties of the absolute value, Absolute value in an ordered field).

[L4]

Two-term triangle inequality: u+vu+v|u + v| \le |u| + |v| (The triangle inequality).

[L5]

A two-element subset of R\mathbb{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 a0a \le 0 together with a0a \ge 0 gives a=0a = 0.

Proof

technique · direct
1.1

For every sSs \in S the value f(s)g(s)|f(s) - g(s)| is f(s)g(s)f(s) - g(s) or g(s)f(s)g(s) - f(s), and f(s)g(s)ufgf(s) - g(s) \le u_f - \ell_g while g(s)f(s)ugfg(s) - f(s) \le u_g - \ell_f; so M:=max{ufg, ugf}M := \max\{u_f - \ell_g,\ u_g - \ell_f\} bounds D(f,g)D(f,g) above, and since s0Ss_0 \in S makes D(f,g)D(f,g) nonempty, d(f,g)=supD(f,g)d_\infty(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)|g(s) - f(s)| = |-(f(s) - g(s))| = |f(s) - g(s)| for every sSs \in S, so D(g,f)D(g,f) and D(f,g)D(f,g) are the same subset of R\mathbb{R} and therefore have the same supremum.

L2L3
2.1

Separation (M1): d(f,g)d_\infty(f,g) bounds D(f,g)D(f,g) above, so d(f,g)f(s0)g(s0)0d_\infty(f,g) \ge |f(s_0) - g(s_0)| \ge 0; if d(f,g)=0d_\infty(f,g) = 0 then f(s)g(s)0|f(s) - g(s)| \le 0 and f(s)g(s)0|f(s) - g(s)| \ge 0 for every ss, hence f(s)=g(s)f(s) = g(s) for every ss and f=gf = g; conversely if f=gf = g then D(f,g)={0}D(f,g) = \{0\}, whose least upper bound is 00.

step 1.1L2L3L6
2.2

For every sSs \in 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)|f(s) - h(s)| = |(f(s) - g(s)) + (g(s) - h(s))| \le |f(s) - g(s)| + |g(s) - h(s)| \le d_\infty(f,g) + d_\infty(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)d_\infty(f,g) + d_\infty(g,h) is an upper bound of D(f,h)D(f,h), and d(f,h)d_\infty(f,h) is the least upper bound of that set, so d(f,h)d(f,g)+d(g,h)d_\infty(f,h) \le d_\infty(f,g) + d_\infty(g,h).

step 2.2L2
4.1

The function dd_\infty 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)\mathcal{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)(X,d) be a metric space (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = 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)B(x,r) is open, for every xXx \in X and every r>0r > 0.
  2. Arbitrary unions. If U\mathcal{U} is any collection of open subsets of XX, then U\bigcup \mathcal{U} is open.
  3. Finite intersections. If n1n \ge 1 and U0,,Un1U_0, \dots, U_{n-1} are open, then U0Un1U_0 \cap \dots \cap U_{n-1} is open.
  4. Closed balls are closed. Bˉ(x,r)\bar B(x,r) is closed, for every xXx \in X and every r>0r > 0.

Together with the fact that \emptyset and XX 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\mathcal{T}_d has exactly the closure properties that the word topology names.

Facts & Assumptions

Given: A metric space (X,d)(X,d); a point xXx \in X and a real r>0r > 0; a collection U\mathcal{U} of open subsets of XX; a natural n1n \ge 1 and open sets U0,,Un1XU_0, \dots, U_{n-1} \subseteq X.

[A1]

Open: UU is open when every uUu \in U admits t>0t > 0 with B(u,t)UB(u,t) \subseteq 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}B(u,t) = \{w : d(u,w) < t\} and Bˉ(u,t)={w:d(u,w)t}\bar B(u,t) = \{w : d(u,w) \le t\}, and B(u,t)B(u,t)B(u,t) \subseteq B(u,t') whenever 0<tt0 < t \le t' (Open ball, closed ball and sphere in a metric space).

[L2]

Reverse triangle inequality: d(a,c)d(b,c)d(a,b)|d(a,c) - d(b,c)| \le d(a,b), so in particular d(a,c)d(b,c)d(a,b)d(a,c) - d(b,c) \le d(a,b) (The reverse triangle inequality d(x,z)d(y,z)d(x,y)|d(x,z) - d(y,z)| \le 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<ba < b and bab \le a cannot both hold.

Proof

technique · direct
1.1

Claim 1: let yB(x,r)y \in B(x,r), so d(x,y)<rd(x,y) < r, and put s:=rd(x,y)>0s := r - d(x,y) > 0; for zB(y,s)z \in B(y,s) the triangle inequality gives d(x,z)d(x,y)+d(y,z)<d(x,y)+s=rd(x,z) \le d(x,y) + d(y,z) < d(x,y) + s = r, so B(y,s)B(x,r)B(y,s) \subseteq B(x,r), and since yy was arbitrary B(x,r)B(x,r) is open.

A1A2L1L4
1.2

Claim 2: let yUy \in \bigcup \mathcal{U}, so yUy \in U for some UUU \in \mathcal{U}; as UU is open there is t>0t > 0 with B(y,t)UUB(y,t) \subseteq U \subseteq \bigcup \mathcal{U}, and since yy was arbitrary the union is open.

A1
1.3

Claim 3: let yU0Un1y \in U_0 \cap \dots \cap U_{n-1} and for each k<nk < n pick tk>0t_k > 0 with B(y,tk)UkB(y,t_k) \subseteq U_k, which is possible because each UkU_k is open and yy lies in it.

A1choose
1.4

Claim 4: let yXBˉ(x,r)y \in X \setminus \bar B(x,r), so d(x,y)>rd(x,y) > r, and put s:=d(x,y)r>0s := d(x,y) - r > 0; for zB(y,s)z \in B(y,s) the reverse triangle inequality applied to the points y,z,xy, z, x gives d(y,x)d(z,x)d(y,z)<sd(y,x) - d(z,x) \le d(y,z) < s, hence d(z,x)>d(y,x)s=rd(z,x) > d(y,x) - s = r, so d(x,z)>rd(x,z) > r by symmetry and zBˉ(x,r)z \notin \bar B(x,r).

A2L1L2L4
2.1

Since n1n \ge 1, the set {t0,,tn1}\{t_0, \dots, t_{n-1}\} is a nonempty finite set of reals, so t:=min{t0,,tn1}t := \min\{t_0, \dots, t_{n-1}\} exists, equals some tjt_j and is therefore >0> 0, and satisfies ttkt \le t_k for every k<nk < n.

step 1.3L3
2.2

Step 1.4 shows B(y,s)XBˉ(x,r)B(y,s) \subseteq X \setminus \bar B(x,r) for the yy and ss chosen there, and yy was an arbitrary point of XBˉ(x,r)X \setminus \bar B(x,r); hence XBˉ(x,r)X \setminus \bar B(x,r) is open and Bˉ(x,r)\bar B(x,r) is closed, which is claim 4.

step 1.4A1
3.1

By step 2.1, B(y,t)B(y,tk)UkB(y,t) \subseteq B(y,t_k) \subseteq U_k for every k<nk < n, so B(y,t)U0Un1B(y,t) \subseteq U_0 \cap \dots \cap U_{n-1}; as yy 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)(X,d) be a metric space (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric), let AXA \subseteq X and let xXx \in 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 rr written as a radius is always >0> 0.

  • xx is an interior point of AA if B(x,r)AB(x,r) \subseteq A for some rr. The set of interior points is the interior int(A)\operatorname{int}(A).
  • xx is an adherent point of AA if B(x,r)AB(x,r) \cap A \ne \emptyset for every rr. The set of adherent points is the closure A\overline{A}.
  • xx is a limit point (accumulation point) of AA if B(x,r)(A{x})B(x,r) \cap (A \setminus \{x\}) \ne \emptyset for every rr. The set of limit points is the derived set AA'.
  • xx is an isolated point of AA if xAx \in A and B(x,r)A={x}B(x,r) \cap A = \{x\} for some rr.
  • The boundary of AA is A:=Aint(A)\partial A := \overline{A} \setminus \operatorname{int}(A).
  • AA is dense in XX if A=X\overline{A} = X.

The interior is open, and it is the largest open subset of AA. If xint(A)x \in \operatorname{int}(A), fix rr with B(x,r)AB(x,r) \subseteq A; the ball B(x,r)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 yB(x,r)y \in B(x,r) has some ss with B(y,s)B(x,r)AB(y,s) \subseteq B(x,r) \subseteq A, which puts yy in int(A)\operatorname{int}(A). Hence B(x,r)int(A)B(x,r) \subseteq \operatorname{int}(A) and int(A)\operatorname{int}(A) is open. It is contained in AA, since xB(x,r)Ax \in B(x,r) \subseteq A for an interior point xx; and if VAV \subseteq A is open then every vVv \in V has a ball inside VAV \subseteq A, so Vint(A)V \subseteq \operatorname{int}(A).

Two descriptions of the boundary agree. xAx \in \partial A says that every ball around xx meets AA and that no ball around xx is contained in AA; the second half says exactly that every ball around xx meets XAX \setminus A. So

A={xX:B(x,r)A and B(x,r)(XA) for every r},\partial A = \{\, x \in X : B(x,r) \cap A \ne \emptyset \text{ and } B(x,r) \cap (X \setminus A) \ne \emptyset \text{ for every } r \,\},

from which A=(XA)\partial A = \partial(X \setminus A) is immediate.

Elementary containments, straight from the definitions. AAA \subseteq \overline{A}, because xAx \in A lies in every B(x,r)AB(x,r) \cap A; AAA' \subseteq \overline{A}, because a ball meeting A{x}A \setminus \{x\} meets AA; and int(A)AA\operatorname{int}(A) \subseteq A \subseteq \overline{A}. A point of AA is either isolated in AA or a limit point of AA, and not both, according to whether some ball meets AA only in xx.

Remarks

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

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

Statement

Let (X,d)(X,d) be a metric space (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let AXA \subseteq 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 AA \ne \emptyset, then A={xX:d(x,A)=0}\overline{A} = \{\, x \in X : d(x,A) = 0 \,\}, where d(x,A)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=AA\overline{A} = A \cup A'.
  3. A\overline{A} is closed, contains AA, and is contained in every closed FXF \subseteq X with AFA \subseteq F. So A\overline{A} is the smallest closed superset of AA, and AA is closed if and only if A=AA = \overline{A}.

Claims 2 and 3 hold for every AA, the empty set included: \overline{\emptyset} is empty because no ball meets \emptyset, and \emptyset is closed because XX 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 AA \ne \emptyset because d(x,A)d(x,A) is defined only for nonempty AA (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)(X,d), a subset AXA \subseteq X, a point xXx \in X, and a closed set FXF \subseteq X with AFA \subseteq F; when AA \ne \emptyset, the set E(x):={d(x,a):aA}E(x) := \{\, d(x,a) : a \in A \,\}, whose infimum is d(x,A)d(x,A).

[A1]

Closure and derived set: xAx \in \overline{A} means B(x,r)AB(x,r) \cap A \ne \emptyset for every r>0r > 0; xAx \in A' means B(x,r)(A{x})B(x,r) \cap (A \setminus \{x\}) \ne \emptyset for every r>0r > 0 (Interior, closure, boundary, limit point, isolated point and dense subset of a metric space).

[A2]

Open and closed: UU is open when every point of UU has a ball around it inside UU; FF is closed when XFX \setminus 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).

[L1]

For nonempty AA, the set E(x)E(x) is nonempty and bounded below by 00, so d(x,A)=infE(x)d(x,A) = \inf E(x) exists and is a lower bound of E(x)E(x) (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space, Nonnegativity of a metric is a consequence of the other axioms, not an axiom, Every nonempty set bounded below has an infimum, Greatest lower bound (infimum)).

[L2]

Epsilon characterisation of the infimum: for a nonempty SRS \subseteq \mathbb{R} bounded below and a lower bound \ell of SS, one has =infS\ell = \inf S if and only if for every ε>0\varepsilon > 0 there is sSs \in S with s<+εs < \ell + \varepsilon (Epsilon characterisation of the infimum).

[L4]

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

Proof

technique · direct
1.1

Suppose AA \ne \emptyset and xAx \in \overline{A}, and let ε>0\varepsilon > 0 be arbitrary; then B(x,ε)AB(x,\varepsilon) \cap A \ne \emptyset, so there is aAa \in A with d(x,a)<ε=0+εd(x,a) < \varepsilon = 0 + \varepsilon, and 00 is a lower bound of E(x)E(x), so d(x,A)=0d(x,A) = 0 by the epsilon characterisation.

A1L1L2L4
1.2

Conversely suppose AA \ne \emptyset and d(x,A)=0d(x,A) = 0, and let r>0r > 0 be arbitrary; the epsilon characterisation supplies aAa \in A with d(x,a)<0+r=rd(x,a) < 0 + r = r, that is aB(x,r)Aa \in B(x,r) \cap A, so xAx \in \overline{A}.

A1L1L2L4
1.3

AAA \subseteq \overline{A} and AAA' \subseteq \overline{A}: a point aAa \in A lies in B(a,r)AB(a,r) \cap A for every rr, and a ball meeting A{x}A \setminus \{x\} meets AA.

A1L4
1.4

If xAx \in \overline{A} and xAx \notin A, then for every rr the nonempty set B(x,r)AB(x,r) \cap A equals B(x,r)(A{x})B(x,r) \cap (A \setminus \{x\}), since xx is not a member of AA; hence xAx \in A'.

A1
1.5

A\overline{A} is closed: let xXAx \in X \setminus \overline{A} and fix rr with B(x,r)A=B(x,r) \cap A = \emptyset; for yB(x,r)y \in B(x,r) there is ss with B(y,s)B(x,r)B(y,s) \subseteq B(x,r), so B(y,s)A=B(y,s) \cap A = \emptyset and yAy \notin \overline{A}, whence B(x,r)XAB(x,r) \subseteq X \setminus \overline{A} and XAX \setminus \overline{A} is open.

A1A2L3
1.6

AF\overline{A} \subseteq F for every closed FAF \supseteq A: if xAx \in \overline{A} had xFx \notin F, then XFX \setminus F open would give rr with B(x,r)XFXAB(x,r) \subseteq X \setminus F \subseteq X \setminus A, so B(x,r)A=B(x,r) \cap A = \emptyset, contradicting xAx \in \overline{A}.

A1A2given
2.1

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

step 1.1step 1.2
2.2

Claim 2 follows: AAAA \cup A' \subseteq \overline{A} by step 1.3, and AAA\overline{A} \subseteq A \cup A' by step 1.4, since a point of A\overline{A} either lies in AA or, not lying in AA, lies in AA'.

step 1.3step 1.4
2.3

Claim 3 follows: A\overline{A} is closed by step 1.5, contains AA by step 1.3, and sits inside every closed superset of AA by step 1.6; in particular if AA is closed then AAA\overline{A} \subseteq A \subseteq \overline{A}, so A=AA = \overline{A}, and conversely if A=AA = \overline{A} then AA 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)=0d(x,A) = 0 says that AA has points arbitrarily close to xx without saying that any of them is xx; 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 00.
  • The distance function is 11-Lipschitz (d(x,A)d(y,A)d(x,y)|d(x,A) - d(y,A)| \le d(x,y), so the distance to a fixed nonempty set is 11-Lipschitz), so claim 1 exhibits A\overline{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: xkxx_k \to x iff d(xk,x)0d(x_k, x) \to 0 in R\mathbb{R}

Definition

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

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

Let (xk)(x_k) be a sequence in XX and pXp \in X. The function kd(xk,p)k \mapsto d(x_k, 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)|d(x_k,p)| = d(x_k,p) (Absolute value in an ordered field). Define

xkp in (X,d):d(xk,p)0 in R,x_k \longrightarrow p \text{ in } (X,d) \quad :\Longleftrightarrow \quad d(x_k,p) \longrightarrow 0 \text{ in } \mathbb{R},

the convergence on the right being that of Limits and Cauchy sequences of reals. Unwound, this says: for every rational ε>0\varepsilon > 0 there is KNK \in \mathbb{N} with d(xk,p)<εd(x_k, p) < \varepsilon for every kKk \ge K. We then call pp a limit of (xk)(x_k), and say (xk)(x_k) converges in (X,d)(X,d) if it has a limit.

Rational and real ε\varepsilon agree here, as they do on the real line. Limits and Cauchy sequences of reals tests convergence against rational ε\varepsilon 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\eta > 0 lies a positive rational (The rationals embed densely in the reals), and the index belonging to that rational serves for η\eta. So a proof may establish convergence by producing an index for every real ε>0\varepsilon > 0, and may use a convergence hypothesis at a real ε\varepsilon 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)(x_k) is the composite xnx \circ n for a strictly increasing n:NNn : \mathbb{N} \to \mathbb{N}, written (xnj)(x_{n_j}), exactly as for sequences of reals (Sequences of reals: bounded, eventually, frequently, tails, subsequences); and pp is a subsequential limit of (xk)(x_k) in (X,d)(X,d) when some subsequence converges to pp, 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)(X,d) be a metric space (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let (xk)(x_k) be a sequence in XX (Convergence of a sequence in a metric space: xkxx_k \to x iff d(xk,x)0d(x_k, x) \to 0 in R\mathbb{R}). If xkpx_k \to p and xkqx_k \to q, then p=qp = q.

So a convergent sequence in a metric space has exactly one limit, and the notation limkxk\lim_k x_k is unambiguous.

Facts & Assumptions

Given: A metric space (X,d)(X,d), a sequence (xk)(x_k) in XX, and points p,qXp, q \in X with xkpx_k \to p and xkqx_k \to q.

[A1]

Convergence: xkpx_k \to p means that for every rational ε>0\varepsilon > 0 there is KNK \in \mathbb{N} with d(xk,p)<εd(x_k,p) < \varepsilon for all kKk \ge K (Convergence of a sequence in a metric space: xkxx_k \to x iff d(xk,x)0d(x_k, x) \to 0 in R\mathbb{R}, Limits and Cauchy sequences of reals); and d(x,y)0d(x,y) \ge 0 for all x,yXx, y \in X, so in particular d(xk,p)0d(x_k,p) \ge 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\eta > 0 there is a rational ε\varepsilon with 0<ε<η0 < \varepsilon < \eta (The rationals embed densely in the reals).

[L2]

Halving. For a real c>0c > 0 set 2:=1+12 := 1 + 1 and c/2:=c21c/2 := c \cdot 2^{-1}. Then 2>02 > 0, so 202 \ne 0 and 21>02^{-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>0c/2 > 0 (Sign rules for products and monotonicity of multiplication); and c/2+c/2=c(21+21)=c(221)=cc/2 + c/2 = c(2^{-1} + 2^{-1}) = c(2 \cdot 2^{-1}) = c (Field).

[L3]

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

[L4]

Trichotomy of the order of R\mathbb{R}, and transitivity: a<ba < b and bab \le a cannot both hold (Complete ordered field (least-upper-bound property), Ordered field).

[L5]

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

Proof

technique · contradiction
1.1

Suppose, for contradiction, that pqp \ne q.

assume-contra
2.1

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

step 1.1A1L2L3L4
3.1

Fix a rational ε\varepsilon with 0<ε<η0 < \varepsilon < \eta, and use the convergence hypotheses at ε\varepsilon to fix K1,K2NK_1, K_2 \in \mathbb{N} with d(xk,p)<εd(x_k,p) < \varepsilon for kK1k \ge K_1 and d(xk,q)<εd(x_k,q) < \varepsilon for kK2k \ge K_2.

step 2.1A1L1choose
4.1

Let mm be any natural with mK1m \ge K_1 and mK2m \ge K_2, for instance m:=K1+K2m := K_1 + K_2; then d(xm,p)<εd(x_m,p) < \varepsilon and d(xm,q)<εd(x_m,q) < \varepsilon.

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)<ε+ε<η+η=cc = d(p,q) \le d(p,x_m) + d(x_m,q) = d(x_m,p) + d(x_m,q) < \varepsilon + \varepsilon < \eta + \eta = c.

step 4.1step 2.1L3L5
6.1

Step 5.1 asserts c<cc < c, which trichotomy forbids; the supposition of step 1.1 is therefore untenable and p=qp = 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)B(x, 1/n), n1n \ge 1, form a countable neighbourhood base at xx, so every metric space is first countable

Statement

Let (X,d)(X,d) be a metric space (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let xXx \in X. For a natural n1n \ge 1 write 1/n1/n for the inverse of the canonical natural n1Rn \cdot 1_{\mathbb{R}}, a positive real, and put

βn:=B(x,1/n),Bx:={βn:nN, n1}.\beta_n := B\big(x, 1/n\big), \qquad \mathcal{B}_x := \{\, \beta_n : n \in \mathbb{N},\ n \ge 1 \,\}.

Then:

  1. Bx\mathcal{B}_x is at most countable (Finite, countably infinite, countable, uncountable).
  2. Every βn\beta_n is an open subset of XX containing xx.
  3. For every open UXU \subseteq X with xUx \in U there is n1n \ge 1 with βnU\beta_n \subseteq U.

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

Facts & Assumptions

Given: A metric space (X,d)(X,d), a point xXx \in X, and for each natural n1n \ge 1 the ball βn=B(x,1/n)\beta_n = B(x, 1/n).

[L1]

Canonical naturals: n1R>0n \cdot 1_{\mathbb{R}} > 0 for n1n \ge 1 (Canonical naturals are positive and strictly increasing), hence n1Rn \cdot 1_{\mathbb{R}} is invertible with 1/n>01/n > 0 (Inverses of positives are positive, and reciprocation reverses order); and N\mathbb{N} contains 00, so jj+1j \mapsto j + 1 runs over exactly the naturals 1\ge 1 as jj runs over N\mathbb{N} (The natural numbers N\mathbb{N} (von Neumann)).

[L2]

Balls are open and every ball contains its centre (Arbitrary unions and finite intersections of open sets are open, open balls are open and closed balls are closed, Open ball, closed ball and sphere in a metric space); and B(x,s)B(x,t)B(x,s) \subseteq B(x,t) whenever 0<st0 < s \le t (Open ball, closed ball and sphere in a metric space).

[L3]
[L4]

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

Proof

technique · direct
1.1

For every natural n1n \ge 1 the real 1/n1/n is defined and positive, so βn\beta_n is a legitimate ball of positive radius.

L1
1.2

Let UU be open with xUx \in U, and fix a real r>0r > 0 with B(x,r)UB(x,r) \subseteq U; then fix a natural n1n \ge 1 with 1/n<r1/n < r.

L3L4choose
2.1

Each βn\beta_n is open and contains xx, which is claim 2.

step 1.1L2
2.2

The map s:NBxs : \mathbb{N} \to \mathcal{B}_x given by s(j):=βj+1s(j) := \beta_{j+1} is well defined by step 1.1 and is surjective, because every member of Bx\mathcal{B}_x is βn\beta_n for some n1n \ge 1 and n=j+1n = j+1 for the natural jj with j+1=nj + 1 = n; moreover Bx\mathcal{B}_x is nonempty, containing β1\beta_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\beta_n = B(x,1/n) \subseteq B(x,r) \subseteq U, which is claim 3.

step 1.2L2
3.1

By [L5] applied to the surjection of step 2.2, the nonempty set Bx\mathcal{B}_x 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\mathcal{B}_x is an at most countable neighbourhood base at xx and (X,d)(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 AA iff some sequence in AA converges to it, and a set is closed iff it is sequentially closed

Statement

Let (X,d)(X,d) be a metric space (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric), let AXA \subseteq X, let xXx \in X and let FXF \subseteq X. Call FF sequentially closed when every sequence in FF that converges in XX has its limit in FF. Then:

  1. xAx \in \overline{A} (Interior, closure, boundary, limit point, isolated point and dense subset of a metric space) if and only if there is a sequence (ak)(a_k) with akAa_k \in A for every kk and akxa_k \to x in (X,d)(X,d) (Convergence of a sequence in a metric space: xkxx_k \to x iff d(xk,x)0d(x_k, x) \to 0 in R\mathbb{R}).
  2. FF 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 FF 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ω\mathrm{AC}_\omega (The Axiom of Countable Choice (ACω\mathrm{AC}_\omega)). 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)(X,d), a subset AXA \subseteq X, a point xXx \in X, and a subset FXF \subseteq X; for nNn \in \mathbb{N} write An:=B(x,1/(n+1))AA_n := B\big(x, 1/(n+1)\big) \cap A.

[A1]

Closure: xAx \in \overline{A} means B(x,r)AB(x,r) \cap A \ne \emptyset for every real r>0r > 0 (Interior, closure, boundary, limit point, isolated point and dense subset of a metric space, Open ball, closed ball and sphere in a metric space).

[A2]

Convergence in (X,d)(X,d): akxa_k \to x means that for every rational ε>0\varepsilon > 0 there is KK with d(ak,x)<εd(a_k,x) < \varepsilon for all kKk \ge K, and it is enough to produce such a KK for every REAL ε>0\varepsilon > 0, since below any positive real lies a positive rational (Convergence of a sequence in a metric space: xkxx_k \to x iff d(xk,x)0d(x_k, x) \to 0 in R\mathbb{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)d(u,v) = d(v,u) for all u,vXu, v \in X, which is the symmetry axiom (M2) (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric).

[L1]

The balls B(x,1/n)B(x,1/n), n1n \ge 1, are open, contain xx, and form a neighbourhood base at xx: every open UxU \ni x contains one of them (The balls B(x,1/n)B(x, 1/n), n1n \ge 1, form a countable neighbourhood base at xx, so every metric space is first countable).

[L2]

Balls are open (Arbitrary unions and finite intersections of open sets are open, open balls are open and closed balls are closed), and B(x,s)B(x,t)B(x,s) \subseteq B(x,t) for 0<st0 < s \le t (Open ball, closed ball and sphere in a metric space).

[L3]

Canonical naturals and reciprocals: for naturals 1mp1 \le m \le p one has 0<m1Rp1R0 < m \cdot 1_{\mathbb{R}} \le p \cdot 1_{\mathbb{R}} and hence 0<1/p1/m0 < 1/p \le 1/m (Canonical naturals are positive and strictly increasing, Inverses of positives are positive, and reciprocation reverses order); and N\mathbb{N} contains 00, so n+11n + 1 \ge 1 for every nNn \in \mathbb{N} (The natural numbers N\mathbb{N} (von Neumann)).

[L4]

Countable choice: for a family (An)nN(A_n)_{n \in \mathbb{N}} of nonempty sets there is a function nann \mapsto a_n with anAna_n \in A_n for every nn (The Axiom of Countable Choice (ACω\mathrm{AC}_\omega)).

[L5]

The closure is the smallest closed superset, so FF is closed if and only if F=FF = \overline{F} (The closure of a nonempty AA is {x:d(x,A)=0}\{x : d(x,A) = 0\}, equals AA together with its limit points, and is the smallest closed superset).

Proof

technique · direct
1.1

Suppose (ak)(a_k) is a sequence with akAa_k \in A for every kk and akxa_k \to x, and let r>0r > 0 be an arbitrary real; then there is KK with d(ak,x)<rd(a_k,x) < r for all kKk \ge K, so d(x,aK)=d(aK,x)<rd(x,a_K) = d(a_K,x) < r by the symmetry axiom (M2) of [A2] and hence aKB(x,r)Aa_K \in B(x,r) \cap A, and since rr was arbitrary xAx \in \overline{A}.

A1A2
1.2

Suppose xAx \in \overline{A}; then for every nNn \in \mathbb{N} the radius 1/(n+1)1/(n+1) is a positive real and An=B(x,1/(n+1))AA_n = B(x,1/(n+1)) \cap A is nonempty, so countable choice supplies a sequence (an)(a_n) with anAnAa_n \in A_n \subseteq A for every nn.

A1L3L4choose
2.1

That sequence converges to xx: given a real ε>0\varepsilon > 0, the ball B(x,ε)B(x,\varepsilon) is open and contains xx, so there is a natural N1N \ge 1 with B(x,1/N)B(x,ε)B(x,1/N) \subseteq B(x,\varepsilon); for every nNn \ge N we have n+1Nn + 1 \ge N, hence 1/(n+1)1/N1/(n+1) \le 1/N and anB(x,1/(n+1))B(x,1/N)B(x,ε)a_n \in B(x,1/(n+1)) \subseteq B(x,1/N) \subseteq B(x,\varepsilon), that is d(x,an)<εd(x,a_n) < \varepsilon.

step 1.2A2L1L2L3
2.2

If FF is closed and (ak)(a_k) is a sequence in FF converging to some xXx \in X, then xFx \in \overline{F} by step 1.1 applied with A=FA = F, and F=F\overline{F} = F because FF is closed; so xFx \in F and FF is sequentially closed.

step 1.1L5
3.1

Claim 1 holds: step 1.1 gives the implication from a convergent sequence in AA 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 FF is sequentially closed, let xFx \in \overline{F}; by claim 1 there is a sequence in FF converging to xx, so xFx \in F, whence FF\overline{F} \subseteq F; the reverse inclusion always holds, so F=FF = \overline{F} and FF 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)(X,d) be a metric space (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let p,qXp, q \in X with pqp \ne q. Put r:=d(p,q)/2r := d(p,q)/2. Then r>0r > 0 and

B(p,r)B(q,r)=.B(p,r) \cap B(q,r) = \emptyset .

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 pp respectively qq (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)(X,d) and points p,qXp, q \in X with pqp \ne q; write c:=d(p,q)c := d(p,q).

[L2]

Halving. For a real c>0c > 0 put 2:=1+12 := 1 + 1 and c/2:=c21c/2 := c \cdot 2^{-1}. Then 2>02 > 0, so 202 \ne 0 and 21>02^{-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>0c/2 > 0 (Sign rules for products and monotonicity of multiplication); and c/2+c/2=c(221)=cc/2 + c/2 = c(2 \cdot 2^{-1}) = c (Field).

[L3]

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

[L4]

Trichotomy of the order of R\mathbb{R}: a<aa < a is impossible, and a0a \ne 0 together with a0a \ge 0 gives a>0a > 0 (Complete ordered field (least-upper-bound property), Ordered field).

[L5]

Membership in a ball: zB(u,t)z \in B(u,t) means d(u,z)<td(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 pqp \ne q, axiom (M1) gives c=d(p,q)0c = d(p,q) \ne 0, and c0c \ge 0, so c>0c > 0 by trichotomy; hence r:=c/2r := c/2 is a positive real with r+r=cr + r = c.

givenL1L2L4
2.1

Suppose some zXz \in X lay in both B(p,r)B(p,r) and B(q,r)B(q,r), that is d(p,z)<rd(p,z) < r and d(q,z)<rd(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=cc = d(p,q) \le d(p,z) + d(z,q) = d(p,z) + d(q,z) < r + r = c, so c<cc < c, which trichotomy forbids.

step 1.1L1L3L4L5
3.1

No such zz exists, so B(p,r)B(q,r)=B(p,r) \cap B(q,r) = \emptyset; both sets are open and contain pp respectively qq, so distinct points of (X,d)(X,d) are separated by disjoint open sets.

step 1.1step 2.1L5

Remarks

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

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

Definition

Let (X,dX)(X, d_X) and (Y,dY)(Y, d_Y) be metric spaces (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric), let f:XYf : X \to Y be a function and let aXa \in X.

ff is continuous at aa if for every real ε>0\varepsilon > 0 there is a real δ>0\delta > 0 such that

dX(x,a)<δ    dY(f(x),f(a))<εfor all xX.d_X(x,a) < \delta \;\Longrightarrow\; d_Y\big(f(x), f(a)\big) < \varepsilon \qquad \text{for all } x \in X .

ff is continuous (globally, or on XX) if it is continuous at every point of XX.

The same condition in balls. Since dX(x,a)<δd_X(x,a) < \delta says xBX(a,δ)x \in B_X(a,\delta) and dY(f(x),f(a))<εd_Y(f(x),f(a)) < \varepsilon says f(x)BY(f(a),ε)f(x) \in B_Y(f(a),\varepsilon) (Open ball, closed ball and sphere in a metric space), continuity at aa reads: for every ε>0\varepsilon > 0 there is δ>0\delta > 0 with

f[BX(a,δ)]BY(f(a),ε).f\big[B_X(a,\delta)\big] \subseteq B_Y\big(f(a), \varepsilon\big).

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)(d_X, d_Y, f), not of ff 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 δ\delta is allowed to depend on ε\varepsilon and on the point aa. Requiring one δ\delta 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-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-26Open item page →

For a map of metric spaces the following agree: ε\varepsilon-δ\delta continuity everywhere, preimages of open sets are open, preimages of closed sets are closed, sequential continuity, and f(A)f(A)f(\overline{A}) \subseteq \overline{f(A)}

Statement

Let (X,dX)(X,d_X) and (Y,dY)(Y,d_Y) be metric spaces (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric) and let f:XYf : X \to Y be a function, with images and preimages written f[]f[\,\cdot\,] and f1[]f^{-1}[\,\cdot\,] (Injection, surjection, bijection). The following five statements are equivalent.

Where choice is used. Only the implication (d) \Rightarrow (e) uses a choice principle, and it uses it only through A point lies in the closure of AA iff some sequence in AA 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ω\mathrm{AC}_\omega)). The cycle (a) \Rightarrow (b) \Rightarrow (c) \Rightarrow (e) \Rightarrow (a) and the implication (a) \Rightarrow (d) are choice free.

Facts & Assumptions

Given: Metric spaces (X,dX)(X,d_X), (Y,dY)(Y,d_Y) and a function f:XYf : X \to Y; a point aXa \in X, a real ε>0\varepsilon > 0, subsets AXA \subseteq X, VYV \subseteq Y open and GYG \subseteq Y closed, and a sequence (xk)(x_k) in XX.

[A1]

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

[A2]

Open and closed: UU is open when every point of UU has a ball around it inside UU; GG 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: f1[YG]=Xf1[G]f^{-1}[Y \setminus G] = X \setminus f^{-1}[G], since f(x)YGf(x) \in Y \setminus G holds exactly when f(x)Gf(x) \notin G (Injection, surjection, bijection).

[L2]

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

[L3]

Sequential description of the closure: xAx \in \overline{A} if and only if some sequence in AA converges to xx; the direction producing the sequence uses countable choice (A point lies in the closure of AA iff some sequence in AA converges to it, and a set is closed iff it is sequentially closed, The Axiom of Countable Choice (ACω\mathrm{AC}_\omega)).

[L4]

Convergence: xkxx_k \to x means that for every rational ε>0\varepsilon > 0 there is KK with dX(xk,x)<εd_X(x_k,x) < \varepsilon for kKk \ge K, and producing such a KK for every REAL ε>0\varepsilon > 0 is equivalent, since below any positive real lies a positive rational (Convergence of a sequence in a metric space: xkxx_k \to x iff d(xk,x)0d(x_k, x) \to 0 in R\mathbb{R}, Limits and Cauchy sequences of reals, The rationals embed densely in the reals).

[L5]

Balls are open and contain their centres (Arbitrary unions and finite intersections of open sets are open, open balls are open and closed balls are closed, Open ball, closed ball and sphere in a metric space); and trichotomy of the order of R\mathbb{R}, so the negation of t<εt < \varepsilon is tεt \ge \varepsilon (Complete ordered field (least-upper-bound property), Ordered field).

Proof

technique · direct
1.1

(a) implies (b): let VYV \subseteq Y be open and xf1[V]x \in f^{-1}[V]; since f(x)Vf(x) \in V there is ε>0\varepsilon > 0 with BY(f(x),ε)VB_Y(f(x),\varepsilon) \subseteq V, and continuity at xx supplies δ>0\delta > 0 with f[BX(x,δ)]BY(f(x),ε)Vf[B_X(x,\delta)] \subseteq B_Y(f(x),\varepsilon) \subseteq V, that is BX(x,δ)f1[V]B_X(x,\delta) \subseteq f^{-1}[V]; as xx was arbitrary, f1[V]f^{-1}[V] is open.

A1A2
1.2

(b) implies (c): let GYG \subseteq Y be closed; then YGY \setminus G is open, so f1[YG]f^{-1}[Y \setminus G] is open by (b), and that set is Xf1[G]X \setminus f^{-1}[G], so f1[G]f^{-1}[G] is closed.

A2L1
1.3

(c) implies (e): let AXA \subseteq X; the set f[A]\overline{f[A]} is closed in YY, so G0:=f1[f[A]]G_0 := f^{-1}\big[\overline{f[A]}\big] is closed in XX by (c), and AG0A \subseteq G_0 because f[A]f[A]f[A] \subseteq \overline{f[A]}; hence AG0\overline{A} \subseteq G_0 by minimality of the closure, which says exactly f[A]f[A]f[\overline{A}] \subseteq \overline{f[A]}.

L2
1.4

(e) implies (a): fix aXa \in X and a real ε>0\varepsilon > 0, put Aε:={xX:dY(f(x),f(a))ε}A_\varepsilon := \{x \in X : d_Y(f(x),f(a)) \ge \varepsilon\}, and suppose no δ>0\delta > 0 satisfies the continuity condition at aa for this ε\varepsilon, that is every ball BX(a,δ)B_X(a,\delta) contains a point of AεA_\varepsilon; then aAεa \in \overline{A_\varepsilon}, so (e) gives f(a)f[Aε]f[Aε]f(a) \in f[\overline{A_\varepsilon}] \subseteq \overline{f[A_\varepsilon]}, so the ball BY(f(a),ε)B_Y(f(a),\varepsilon) meets f[Aε]f[A_\varepsilon] and there is xAεx \in A_\varepsilon with dY(f(x),f(a))<εd_Y(f(x),f(a)) < \varepsilon, contradicting the definition of AεA_\varepsilon; hence some δ>0\delta > 0 works, and since aa and ε\varepsilon were arbitrary ff is continuous everywhere.

assume-hypA1L2L5
1.5

(a) implies (d): let xkxx_k \to x and let a real ε>0\varepsilon > 0 be given; continuity at xx supplies δ>0\delta > 0 with f[BX(x,δ)]BY(f(x),ε)f[B_X(x,\delta)] \subseteq B_Y(f(x),\varepsilon), and convergence supplies KK with dX(xk,x)<δd_X(x_k,x) < \delta, that is xkBX(x,δ)x_k \in B_X(x,\delta), for all kKk \ge K; then dY(f(xk),f(x))<εd_Y(f(x_k),f(x)) < \varepsilon for all kKk \ge K, so f(xk)f(x)f(x_k) \to f(x).

A1L4L5
1.6

(d) implies (e): let AXA \subseteq X and let yf[A]y \in f[\overline{A}], say y=f(x)y = f(x) with xAx \in \overline{A}; by [L3] there is a sequence (ak)(a_k) in AA with akxa_k \to x, by (d) f(ak)f(x)f(a_k) \to f(x), and f(ak)f[A]f(a_k) \in f[A] for every kk, so [L3] applied in YY gives f(x)f[A]f(x) \in \overline{f[A]}.

L3
2.1

Steps 1.1, 1.2, 1.3 and 1.4 close the cycle (a), (b), (c), (e), (a), so those four are equivalent; step 1.5 gives (a) implies (d) and step 1.6 gives (d) implies (e), which is one of the four, so (d) is equivalent to them as well; hence all five statements 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)(X,d_X) and (Y,dY)(Y,d_Y) be metric spaces (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric).

Isometric embedding and isometry. A function f:XYf : X \to Y is an isometric embedding if

dY(f(x),f(x))=dX(x,x)for all x,xX,d_Y\big(f(x), f(x')\big) = d_X(x,x') \qquad \text{for all } x, x' \in 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 AXA \subseteq X and let

dA:=dX(A×A)d_A := d_X \restriction (A \times A)

be the restriction of dXd_X to pairs from AA. Then dAd_A is a metric on AA: the three axioms (M1), (M2), (M3) of Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric are conditions on triples of points, and each holds for points of AA because it holds for points of XX. The pair (A,dA)(A, d_A) is the metric subspace AA of XX, and the inclusion AXA \to X is an isometric embedding by construction. The metric topology of dAd_A (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 AA.

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

BA(a,r)=BX(a,r)A,B_A(a,r) = B_X(a,r) \cap A ,

directly from the definitions: a point zz lies in the left side exactly when zAz \in A and dA(a,z)=dX(a,z)<rd_A(a,z) = d_X(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)(X,d_X) and (Y,dY)(Y,d_Y) be metric spaces and let f:XYf : X \to Y be an isometric embedding (Isometry, isometric embedding, and the subspace metric on a subset). Write Z:=f[X]YZ := f[X] \subseteq Y with its subspace metric dZd_Z. Then:

  1. ff is injective (Injection, surjection, bijection).
  2. ff, viewed as a map XZX \to Z, is an isometry.
  3. f[BX(x,r)]=BZ(f(x),r)f[B_X(x,r)] = B_Z(f(x),r) for every xXx \in X and r>0r > 0 (Open ball, closed ball and sphere in a metric space).
  4. A subset UXU \subseteq X is open in (X,dX)(X,d_X) if and only if f[U]f[U] is open in (Z,dZ)(Z,d_Z) (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 Uf[U]U \mapsto f[U] is a bijection from the metric topology of XX onto the subspace topology of f[X]f[X], and ff is a homeomorphism onto its image.

Facts & Assumptions

Given: Metric spaces (X,dX)(X,d_X), (Y,dY)(Y,d_Y), an isometric embedding f:XYf : X \to Y, the image Z:=f[X]Z := f[X] with the subspace metric dZ=dY(Z×Z)d_Z = d_Y \restriction (Z \times Z), and the map g:ZXg : Z \to X inverse to f:XZf : X \to Z once claim 2 is available.

[A1]

Isometric embedding: dY(f(x),f(x))=dX(x,x)d_Y(f(x),f(x')) = d_X(x,x') for all x,xXx, x' \in X; the subspace metric on ZZ is the restriction of dYd_Y (Isometry, isometric embedding, and the subspace metric on a subset).

[A2]

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

[L1]

Balls: BX(x,r)={x:dX(x,x)<r}B_X(x,r) = \{x' : d_X(x,x') < r\}, and likewise in ZZ with dZd_Z (Open ball, closed ball and sphere in a metric space).

[L3]

A bijection hh and its inverse satisfy h[S]=(h1)1[S]h[S] = (h^{-1})^{-1}[S] and h1[h[S]]=Sh^{-1}[h[S]] = S for every subset SS of the domain (Injection, surjection, bijection).

Proof

technique · direct
1.1

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

A1A2
2.1

As a map XZX \to Z the function ff is surjective, ZZ being its image by definition, and it is injective by step 1.1, so it is a bijection XZX \to Z; and dZ(f(x),f(x))=dY(f(x),f(x))=dX(x,x)d_Z(f(x),f(x')) = d_Y(f(x),f(x')) = d_X(x,x'), since dZd_Z is the restriction of dYd_Y, so it is an isometry, which is claim 2.

step 1.1A1
3.1

Both f:XZf : X \to Z and its inverse g:ZXg : Z \to X are continuous, with δ:=ε\delta := \varepsilon serving at every point in both directions, because dZ(f(x),f(x))=dX(x,x)d_Z(f(x),f(x')) = d_X(x,x') and, writing z=f(x)z = f(x), z=f(x)z' = f(x'), also dX(g(z),g(z))=dZ(z,z)d_X(g(z),g(z')) = d_Z(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}f[B_X(x,r)] = \{f(x') : d_X(x,x') < r\} = \{f(x') : d_Z(f(x),f(x')) < r\}, and as ff is onto ZZ the latter set is {zZ:dZ(f(x),z)<r}=BZ(f(x),r)\{z \in Z : d_Z(f(x),z) < r\} = B_Z(f(x),r).

step 2.1A1L1
4.1

By [L2] applied to the continuous maps of step 3.1, the preimage under f:XZf : X \to Z of every open subset of ZZ is open in XX, and the preimage under gg of every open subset of XX is open in ZZ.

step 3.1L2
5.1

Claim 4: for UXU \subseteq X we have f[U]=g1[U]f[U] = g^{-1}[U], so if UU is open in XX then f[U]f[U] is open in ZZ by step 4.1; conversely U=f1[f[U]]U = f^{-1}[f[U]], so if f[U]f[U] is open in ZZ then UU is open in XX by step 4.1. Hence Uf[U]U \mapsto f[U] maps the topology of XX into that of ZZ, is injective because ff is, and is onto because any open WZW \subseteq Z equals f[f1[W]]f[f^{-1}[W]] with f1[W]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 XX with the metric subspace f[X]f[X] of YY, 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 XX be a set and let dd and dd' both be metrics on XX (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric). Note that the underlying set is the same; nothing below compares metrics on different sets.

  • dd and dd' 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.\mathcal{T}_d = \mathcal{T}_{d'} .
  • dd and dd' are uniformly equivalent if for every real ε>0\varepsilon > 0 there are reals δ>0\delta > 0 and δ>0\delta' > 0 such that, for all x,yXx, y \in X, d(x,y)<δ    d(x,y)<εandd(x,y)<δ    d(x,y)<ε.d(x,y) < \delta \;\Longrightarrow\; d'(x,y) < \varepsilon \qquad \text{and} \qquad d'(x,y) < \delta' \;\Longrightarrow\; d(x,y) < \varepsilon .
  • dd and dd' are Lipschitz equivalent if there are reals α,β>0\alpha, \beta > 0 with αd(x,y)    d(x,y)    βd(x,y)for all x,yX.\alpha\, d(x,y) \;\le\; d'(x,y) \;\le\; \beta\, d(x,y) \qquad \text{for all } x, y \in X .

What the middle condition says in words. It is the statement that both identity maps id:(X,d)(X,d)\mathrm{id} : (X,d) \to (X,d') and id:(X,d)(X,d)\mathrm{id} : (X,d') \to (X,d) are uniformly continuous: the same δ\delta 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 ε\varepsilon-δ\delta 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 XX. Reflexivity is immediate (δ=ε\delta = \varepsilon, and α=β=1\alpha = \beta = 1); symmetry is built into the statements, the uniform one being symmetric by construction and the Lipschitz one because αddβd\alpha d \le d' \le \beta d gives β1ddα1d\beta^{-1} d' \le d \le \alpha^{-1} d'; and transitivity follows by composing the δ\deltas and multiplying the constants.

Remarks

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 dd and dd' be metrics on the same set XX (Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = 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 dd and dd' are Lipschitz equivalent, they are uniformly equivalent.
  2. If dd and dd' 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 XX and two metrics d,dd, d' on it; a real ε>0\varepsilon > 0.

[A1]

Lipschitz equivalence: there are reals α,β>0\alpha, \beta > 0 with αd(x,y)d(x,y)βd(x,y)\alpha\, d(x,y) \le d'(x,y) \le \beta\, d(x,y) for all x,yXx, y \in X (Topologically, uniformly and Lipschitz equivalent metrics on a set).

[A2]

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

[L1]

Inverses and products of positives: γ>0\gamma > 0 gives γ1>0\gamma^{-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).

Proof

technique · direct
1.1

Claim 1: assume [A1] and let ε>0\varepsilon > 0. Put δ:=εβ1\delta := \varepsilon \beta^{-1} and δ:=αε\delta' := \alpha \varepsilon, both positive since α,β,ε\alpha, \beta, \varepsilon are. If d(x,y)<δd(x,y) < \delta then d(x,y)βd(x,y)<βδ=εd'(x,y) \le \beta\, d(x,y) < \beta\delta = \varepsilon; and if d(x,y)<δd'(x,y) < \delta' then αd(x,y)d(x,y)<αε\alpha\, d(x,y) \le d'(x,y) < \alpha\varepsilon, so d(x,y)<εd(x,y) < \varepsilon after multiplying by α1>0\alpha^{-1} > 0. Hence dd and dd' are uniformly equivalent.

A1L1L2
1.2

Assume [A2]. Then the identity map id:(X,d)(X,d)\mathrm{id} : (X,d) \to (X,d') is continuous at every point aXa \in X: given ε>0\varepsilon > 0, the δ\delta of [A2] satisfies d(x,a)<δd(x,a)<εd(x,a) < \delta \Rightarrow d'(x,a) < \varepsilon, which is the ε\varepsilon-δ\delta condition at aa; symmetrically id:(X,d)(X,d)\mathrm{id} : (X,d') \to (X,d) is continuous at every point, using δ\delta'.

A2L3
2.1

By [L3] applied to the two continuous identity maps of step 1.2: the preimage under id:(X,d)(X,d)\mathrm{id} : (X,d) \to (X,d') of a dd'-open set VV is VV itself and is dd-open, so every dd'-open set is dd-open; and symmetrically every dd-open set is dd'-open. Hence Td=Td\mathcal{T}_d = \mathcal{T}_{d'}, 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

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

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

Statement

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

d(x,y):=min{d(x,y), 1},d(x,y):=d(x,y)1+d(x,y).d'(x,y) := \min\{\, d(x,y),\ 1 \,\}, \qquad d''(x,y) := \frac{d(x,y)}{1 + d(x,y)} .

Both are well defined: d(x,y)0d(x,y) \ge 0 (Nonnegativity of a metric is a consequence of the other axioms, not an axiom), so 1+d(x,y)>01 + 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. dd' and dd'' are metrics on XX.
  2. d(x,y)1d'(x,y) \le 1 and d(x,y)<1d''(x,y) < 1 for all x,yx,y; hence (X,d)(X,d') and (X,d)(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 XX \ne \emptyset then diam(X)1\operatorname{diam}(X) \le 1 for both.
  3. dd' and dd'' are each uniformly equivalent to dd, 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)(X,d), points x,y,zXx, y, z \in X, a real ε>0\varepsilon > 0, and the two functions φ1(t):=min{t,1}\varphi_1(t) := \min\{t, 1\} and φ2(t):=t(1+t)1\varphi_2(t) := t(1+t)^{-1}, defined for reals t0t \ge 0, so that d=φ1dd' = \varphi_1 \circ d and d=φ2dd'' = \varphi_2 \circ 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<10 < 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>0u > 0 gives u1>0u^{-1} > 0, and 0<u<v0 < u < v gives 0<v1<u10 < 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<uv0 < u \le v gives 0<v1u10 < v^{-1} \le u^{-1}, is that statement together with the case u=vu = 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 uu1=1u u^{-1} = 1 (Field).

[L5]

Bounded subset and diameter: AA is bounded when it lies in some ball, and for nonempty bounded AA 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\varphi_1 on t0t \ge 0: it is one of tt and 11, so 0φ1(t)t0 \le \varphi_1(t) \le t and φ1(t)1\varphi_1(t) \le 1; φ1(t)=0\varphi_1(t) = 0 exactly when t=0t = 0, since 101 \ne 0; it is nondecreasing, because for 0st0 \le s \le t the value φ1(s)\varphi_1(s) is sts \le t or 11, and in both cases it is a lower bound of {t,1}\{t,1\}, hence at most φ1(t)\varphi_1(t); and it is subadditive, since for s,t0s, t \ge 0 either one of s,ts, t is 1\ge 1, and then φ1(s)+φ1(t)1φ1(s+t)\varphi_1(s) + \varphi_1(t) \ge 1 \ge \varphi_1(s+t), or both are <1< 1, and then φ1(s)+φ1(t)=s+tφ1(s+t)\varphi_1(s) + \varphi_1(t) = s + t \ge \varphi_1(s+t).

L2L3
1.2

Properties of φ2\varphi_2 on t0t \ge 0: here 1+t1>01 + t \ge 1 > 0, so (1+t)1>0(1+t)^{-1} > 0 and (1+t)11(1+t)^{-1} \le 1, whence 0φ2(t)t0 \le \varphi_2(t) \le t; also t<1+tt < 1 + t gives φ2(t)<(1+t)(1+t)1=1\varphi_2(t) < (1+t)(1+t)^{-1} = 1; φ2(t)=0\varphi_2(t) = 0 exactly when t=0t = 0; φ2\varphi_2 is strictly increasing, because φ2(t)=1(1+t)1\varphi_2(t) = 1 - (1+t)^{-1} and 0s<t0 \le s < t gives 0<1+s<1+t0 < 1+s < 1+t, hence (1+t)1<(1+s)1(1+t)^{-1} < (1+s)^{-1}; and it is subadditive, since for s,t0s,t \ge 0 one has 0<1+s1+s+t0 < 1+s \le 1+s+t and 0<1+t1+s+t0 < 1+t \le 1+s+t, so φ2(s+t)=s(1+s+t)1+t(1+s+t)1s(1+s)1+t(1+t)1=φ2(s)+φ2(t)\varphi_2(s+t) = s(1+s+t)^{-1} + t(1+s+t)^{-1} \le s(1+s)^{-1} + t(1+t)^{-1} = \varphi_2(s) + \varphi_2(t).

L3L4
1.3

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

L1
2.1

dd' is a metric: (M1) and (M2) are step 1.3, and (M3) follows because d(x,z)d(x,y)+d(y,z)d(x,z) \le d(x,y) + d(y,z) with φ1\varphi_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)d'(x,z) = \varphi_1(d(x,z)) \le \varphi_1(d(x,y) + d(y,z)) \le \varphi_1(d(x,y)) + \varphi_1(d(y,z)) = d'(x,y) + d'(y,z).

step 1.1step 1.3L1
2.2

dd'' is a metric: identically, using that φ2\varphi_2 is increasing and subadditive on nonnegatives, d(x,z)φ2(d(x,y)+d(y,z))d(x,y)+d(y,z)d''(x,z) \le \varphi_2(d(x,y) + d(y,z)) \le d''(x,y) + d''(y,z).

step 1.2step 1.3L1
2.3

Boundedness: d(x,y)1<2d'(x,y) \le 1 < 2 and d(x,y)<1<2d''(x,y) < 1 < 2 for all x,yx,y, so if XX \ne \emptyset then fixing any x0Xx_0 \in X gives XBd(x0,2)X \subseteq B_{d'}(x_0,2) and XBd(x0,2)X \subseteq B_{d''}(x_0,2), while X=X = \emptyset is bounded outright; and 11 is an upper bound of all the distances, so diam(X)1\operatorname{diam}(X) \le 1 in both metrics when XX \ne \emptyset. This is claim 2.

step 1.1step 1.2L3L5
3.1

dd' is uniformly equivalent to dd: given ε>0\varepsilon > 0, take δ:=ε\delta := \varepsilon, so that d(x,y)<δd(x,y) < \delta gives d(x,y)d(x,y)<εd'(x,y) \le d(x,y) < \varepsilon; and take δ:=min{ε,1}>0\delta' := \min\{\varepsilon, 1\} > 0, so that d(x,y)<δ1d'(x,y) < \delta' \le 1 forces φ1(d(x,y))1\varphi_1(d(x,y)) \ne 1, hence d(x,y)=d(x,y)d'(x,y) = d(x,y) by [L2], hence d(x,y)<δεd(x,y) < \delta' \le \varepsilon.

step 1.1step 2.1L2L3
3.2

dd'' is uniformly equivalent to dd: given ε>0\varepsilon > 0, take δ:=ε\delta := \varepsilon, so that d(x,y)<δd(x,y) < \delta gives d(x,y)d(x,y)<εd''(x,y) \le d(x,y) < \varepsilon; and take δ:=φ2(ε)>0\delta' := \varphi_2(\varepsilon) > 0, so that d(x,y)<δd''(x,y) < \delta' forces d(x,y)<εd(x,y) < \varepsilon, since d(x,y)εd(x,y) \ge \varepsilon would give φ2(d(x,y))φ2(ε)=δ\varphi_2(d(x,y)) \ge \varphi_2(\varepsilon) = \delta' by monotonicity.

step 1.2step 2.2L4
4.1

Uniform equivalence implies topological equivalence, so dd' and dd'' have exactly the metric topology of dd; 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}\min\{d,1\} is the shorter argument and is the one used by the counterexamples on the companion page; d/(1+d)d/(1+d) is strictly less than 11 everywhere and is strictly increasing in dd, 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 dd when dd is unbounded. A Lipschitz bound αdd\alpha d \le d' with α>0\alpha > 0 would force dα1d \le \alpha^{-1} everywhere, which fails as soon as dd takes arbitrarily large values; the real line is the witness (On R\mathbb{R} the metrics xy|x-y| and min(xy,1)\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\operatorname{diam}(X) \le 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 00. For d=min{d,1}d' = \min\{d,1\} the bound is attained as soon as dd takes some value 1\ge 1, since then dd' takes the value 11 itself, and the companion page computes one such case. For d=d/(1+d)d'' = d/(1+d) the value 11 is never taken at all, by claim 2, so on a space where dd is bounded the diameter in dd'' is strictly below 11: for instance on a two-point space with d=1d = 1 the new distance is 1/21/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)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric asks a metric d:X×XRd : X \times X \to \mathbb{R} for exactly three things: (M1) d(x,y)=0d(x,y) = 0 if and only if x=yx = y; (M2) d(x,y)=d(y,x)d(x,y) = d(y,x); (M3) d(x,z)d(x,y)+d(y,z)d(x,z) \le d(x,y) + d(y,z). Many texts add a fourth, d(x,y)0d(x,y) \ge 0, or build it into the codomain by writing d:X×X[0,)d : X \times X \to [0,\infty). 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)=0d(x,x) = 0 for all xx together with the implication d(x,y)=0x=yd(x,y) = 0 \Rightarrow 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)}d(x,z) \le \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 ++\infty, so that its codomain is [0,][0,\infty] rather than [0,)[0,\infty); the axioms are read with the usual arithmetic of ++\infty. 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{,+}\overline{\mathbb{R}} = \mathbb{R} \cup \{-\infty, +\infty\}, whereas the axioms of Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = y, symmetry, and the triangle inequality; pseudometric and ultrametric are stated over the complete ordered field R\mathbb{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\sup \emptyset, unbounded sets, and the extended reals: R\overline{\mathbb{R}} is not a field, the expressions (+)+()(+\infty) + (-\infty) and 0(+)0 \cdot (+\infty) 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\mathbb{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 ++\infty (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)=supxf(x)g(x)d_\infty(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\overline{\mathbb{R}} define it on all of them.

Adding extended metrics honestly would mean restating Metric space: d(x,y)=0d(x,y) = 0 iff x=yx = 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\mathbb{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)B(x,r) is the closed ball of radius rr

Statement

False claim: for every metric space (X,d)(X,d), every xXx \in X and every real r>0r > 0,

B(x,r)=Bˉ(x,r),\overline{B(x,r)} = \bar 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\mathbb{R}^n 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]\{0\} \cup [1,2].

Facts & Assumptions

Given: The real line with its usual metric dR(u,v)=uvd_{\mathbb{R}}(u,v) = |u-v| (The absolute value makes R\mathbb{R} a metric space: d(x,y)=xyd(x,y) = |x-y| is a metric, its open balls are the intervals (xr,x+r)(x-r, x+r), and it is unbounded); the subset X:={0}[1,2]RX := \{0\} \cup [1,2] \subseteq \mathbb{R} with the subspace metric d:=dR(X×X)d := d_{\mathbb{R}} \restriction (X \times X) (Isometry, isometric embedding, and the subspace metric on a subset, Intervals of R\mathbb{R}: the nine order-convex forms, nondegeneracy, and length); an arbitrary metric space (X0,d0)(X_0, d_0) with xX0x \in X_0 and a real r>0r > 0.

[L2]
[L3]
[L4]

Absolute value and order: u=u|u| = u when u0u \ge 0, u=u|-u| = |u|, and 0<10 < 1; and by trichotomy u1u \ge 1 rules out u<1u < 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: UU is open when every point of UU has a ball around it inside UU; 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)\bar B(x,r) is closed and contains B(x,r)B(x,r), so the smallest closed superset of B(x,r)B(x,r) satisfies B(x,r)Bˉ(x,r)\overline{B(x,r)} \subseteq \bar B(x,r).

L1L2
1.2

In the witness X={0}[1,2]X = \{0\} \cup [1,2], every y[1,2]y \in [1,2] satisfies y1y \ge 1, hence d(0,y)=0y=y=y1d(0,y) = |0 - y| = |{-y}| = y \ge 1; and d(0,0)=0<1d(0,0) = 0 < 1.

givenL3L4
2.1

Therefore BX(0,1)={yX:d(0,y)<1}={0}B_X(0,1) = \{\, y \in X : d(0,y) < 1 \,\} = \{0\} and BˉX(0,1)={yX:d(0,y)1}={0,1}\bar B_X(0,1) = \{\, y \in X : d(0,y) \le 1 \,\} = \{0, 1\}, since 1[1,2]X1 \in [1,2] \subseteq X has d(0,1)=1d(0,1) = 1 while every other y[1,2]y \in [1,2] has d(0,y)=y>1d(0,y) = y > 1 or y=1y = 1.

step 1.2L3L4
2.2

The set [1,2]=X{0}[1,2] = X \setminus \{0\} is open in XX: for y[1,2]y \in [1,2] the ball BX(y,1)B_X(y,1) omits 00, because d(0,y)1d(0,y) \ge 1 by step 1.2, so BX(y,1)X{0}=[1,2]B_X(y,1) \subseteq X \setminus \{0\} = [1,2]. Hence {0}\{0\} is closed in XX.

step 1.2L3L5
3.1

Since {0}\{0\} is closed it equals its own closure, so BX(0,1)={0}={0}\overline{B_X(0,1)} = \overline{\{0\}} = \{0\} by step 2.1, while BˉX(0,1)={0,1}\bar B_X(0,1) = \{0,1\}; and {0}{0,1}\{0\} \ne \{0,1\} because 101 \ne 0.

step 2.1step 2.2L2L4
4.1

The witness (X,d)(X, d) with x=0x = 0 and r=1r = 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\mathbb{R}^n with the Euclidean metric (Rn\mathbb{R}^n as the set of functions nRn \to \mathbb{R}, and d1d_1, d2d_2, dd_\infty 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 XX lies strictly between 00 and 11, so the point 11 of the closed ball is not approached from inside B(0,1)={0}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}\overline{B(p,1)} = \{p\} and Bˉ(p,1)\bar 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 dd and dd' are topologically equivalent metrics on a set XX (Topologically, uniformly and Lipschitz equivalent metrics on a set) and (X,d)(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)(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\mathbb{R} with its usual metric dR(u,v)=uvd_{\mathbb{R}}(u,v) = |u-v|, and the metric ρ(u,v):=min{dR(u,v), 1}\rho(u,v) := \min\{\, d_{\mathbb{R}}(u,v),\ 1 \,\} (Maximum and minimum of a set).

Refutation

technique · direct
1.1

By [L1] the metric dRd_{\mathbb{R}} makes R\mathbb{R} a metric space that is not bounded.

L1
1.2

By [L2] the function ρ=min{dR,1}\rho = \min\{d_{\mathbb{R}}, 1\} is a metric on R\mathbb{R}, the space (R,ρ)(\mathbb{R}, \rho) is bounded with diam(R)1\operatorname{diam}(\mathbb{R}) \le 1, and ρ\rho is uniformly equivalent to dRd_{\mathbb{R}}.

L2
2.1

By [L3] the two metrics are therefore topologically equivalent: Tρ=TdR\mathcal{T}_\rho = \mathcal{T}_{d_{\mathbb{R}}}.

step 1.2L3
3.1

So dRd_{\mathbb{R}} and ρ\rho are topologically equivalent metrics on the same set, (R,ρ)(\mathbb{R},\rho) is bounded and (R,dR)(\mathbb{R},d_{\mathbb{R}}) 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

Standard references

Recommended treatments; not extraction sources.