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.
Metric Spaces
1 · Prerequisites
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Countability and Uncountability
- Foundations of the Real Numbers for Analysis
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Relations, Functions, and Quotients
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Suprema and Infima
- The ZFC Axioms and the Basic Set Constructions
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 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 is a real-valued function of two points satisfying separation, symmetry and the triangle inequality (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric). Nonnegativity is deliberately not an axiom: it follows from the other three, and Nonnegativity of a metric is a consequence of the other axioms, not an axiom proves it, so a verification that some candidate function is a metric has three things to check and not four. The values are real numbers, never ; Which metric axiom list this library uses, the live naming fork between semimetric and pseudometric, and why extended metrics are not treated here records that decision, together with the live naming fork between pseudometric and semimetric. The extended real line is introduced later, but no extended-metric restatement is made on this page.
Three metric spaces are established here, and they are the ones later pages cite. That the absolute value makes a metric space, with the open balls exactly the bounded open intervals and the space unbounded, is The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded. That , defined ZFC-natively as the set of functions from the von Neumann natural to , carries the three metrics , and for every is as the set of functions , and , , are metrics on it. That restriction is not decoration: at the metric would be a maximum over the empty index set. The lemma is proved from Minkowski at exponent 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 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 is , equals 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 -Lipschitz (, so the distance to a fixed nonempty set is -Lipschitz), a refinement of the reverse triangle inequality (The reverse triangle inequality 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: iff in ), so it inherits the conventions of the sequences page, including that contains and that the definition quantifies over rational . Limits are unique (A sequence in a metric space has at most one limit), and more is true: distinct points are separated by disjoint balls, so every metric space is Hausdorff (Distinct points of a metric space have disjoint balls around them). The balls of radius form a countable neighbourhood base at each point (The balls , , form a countable neighbourhood base at , 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 iff some sequence in 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: - continuity everywhere, preimages of open sets are open, preimages of closed sets are closed, sequential continuity, and inherits it from there rather than adding to it.
Continuity, embeddings and comparison of metrics. The - definition (Continuity of a map between metric spaces, at a point and globally, in the - form) agrees with four other conditions: preimages of open sets are open, preimages of closed sets are closed, sequential continuity, and (For a map of metric spaces the following agree: - continuity everywhere, preimages of open sets are open, preimages of closed sets are closed, sequential continuity, and ). 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 is the closed ball of radius ); and boundedness is not determined by the topology, because every metric space carries a bounded metric with the same open sets ( and are metrics uniformly equivalent to , 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
Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric
Definition
Throughout, 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 be a set. A metric on is a function such that for all :
- (M1) Separation. if and only if .
- (M2) Symmetry. .
- (M3) Triangle inequality. .
A metric space is a pair consisting of a set and a metric on it. The elements of are its points and is the distance from to . When only one metric is in play we write for ; when several are, the metric is always named.
The values of a metric are real numbers. The codomain is , so 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 . 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 is a function satisfying (M2), (M3) and the weakening
- (M1') Reflexivity. for every
of (M1). A pseudometric may therefore assign distance to two distinct points. Every metric is a pseudometric, and a pseudometric is a metric exactly when forces .
Ultrametric. An ultrametric on is a metric that in addition satisfies
- (M3') Strong triangle inequality.
for all , where the maximum is that of a two-element subset of , 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 with an ultrametric.
Remarks
-
(M3') is a genuine strengthening of (M3), not an independent axiom on top of it. A function satisfying (M1), (M2) and (M3') automatically satisfies (M3): by Nonnegativity of a metric is a consequence of the other axioms, not an axiom such a function is nonnegative, and for nonnegative reals one has , since the maximum is one of and the other summand is . So "a metric satisfying (M3')" and "a function satisfying (M1), (M2), (M3')" describe the same objects, and the definition above may be read either way.
-
Why the biconditional form of (M1). Splitting (M1) into "" and "" gives the same notion; the split form is what makes the pseudometric weakening above a matter of deleting one clause. The naming fork between pseudometric and semimetric, which is live in the literature, is settled for this library in Which metric axiom list this library uses, the live naming fork between semimetric and pseudometric, and why extended metrics are not treated here.
-
The metric is part of the data. Two different metrics on the same set are two different metric spaces, even when they have the same open sets. That is why Topologically, uniformly and Lipschitz equivalent metrics on a set compares metrics at three separate strengths rather than one, and why a property can be invariant under one of them and not under another (FALSE: boundedness of a metric space is determined by its topology).
Nonnegativity of a metric is a consequence of the other axioms, not an axiom
Statement
Let be a set and let satisfy the reflexivity axiom (M1') and the symmetry axiom (M2) of Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric. Then:
- If satisfies the triangle inequality (M3), then for all .
- If satisfies the strong triangle inequality (M3'), then for all .
In particular every metric, every pseudometric and every ultrametric (Metric space: iff , 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 , points , and a function satisfying (M1') for every and (M2) for all (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
(M3) The triangle inequality holds for all (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
(M3') The strong triangle inequality holds for all (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
Trichotomy of the order of : for reals exactly one of , , holds, so fails exactly when (Order on the reals, Complete ordered field (least-upper-bound property), Ordered field).
Adding two strict inequalities: if and then (Order is preserved by adding a constant and by adding inequalities).
A two-element subset of has a maximum, and that maximum is or ; if it is (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).
Proof
Instantiate [A1] at , , : .
Instantiate [A2] at , , : .
Suppose, towards ruling it out, that .
By (M1') the left side of step 1.1 is and by (M2) the right side is , so .
By (M2) the two entries of the maximum in step 1.2 are the same real number, so that maximum equals by [L3], and (M1') turns step 1.2 into , which is claim 2.
Adding the supposed inequality of step 1.3 to itself gives .
Steps 2.1 and 2.3 assert and , which trichotomy forbids; so the supposition of step 1.3 is untenable and , which is claim 1.
Remarks
- What each claim uses. Claim 1 is the familiar two-line argument 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 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 , 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).
Open ball, closed ball and sphere in a metric space
Definition
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric), let and let with (Order on the reals). Define
is the open ball, the closed ball and the sphere of centre and radius . The radius is always a strictly positive real; a ball of radius or of negative radius is never written in this library.
Immediate consequences of the definitions. For every and :
- , because (axiom (M1) of Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric); in particular open and closed balls are nonempty.
- and , and is the disjoint union of and , by trichotomy of the order of (Complete ordered field (least-upper-bound property), Ordered field): each satisfies exactly one of , , .
- If then and , 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 then is empty, because for every . The other two sets behave differently at , and the convention excludes them for uniformity rather than for emptiness: , since together with gives and hence by (M1). For all three sets are empty.
A sphere may be empty, and so the three sets are not on a par. For the open and closed balls always contain , but nothing in the definition produces a point at distance exactly from . If a metric takes only the values and , as the discrete metric on the companion page does, then while 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. depends on and not on and alone. When more than one space or more than one metric is in play we write , or , and likewise for and . 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
- The names "open ball" and "closed ball" are justified, not merely suggestive. That is an open set and a closed set in the metric topology is proved in Arbitrary unions and finite intersections of open sets are open, open balls are open and closed balls are closed; the words are used here only as names for the three sets displayed above.
- The closed ball is not in general the closure of the open ball, and the sphere is not in general the boundary of either. Both failures are recorded on this page as FALSE: in every metric space the closure of is the closed ball of radius and witnessed on the companion page. The safe reading of the three names is the displayed one and nothing more.
Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space
Definition
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric) and let .
Bounded subset. is bounded if or there are and a real with (Open ball, closed ball and sphere in a metric space). The space is a bounded metric space if is a bounded subset of itself.
Diameter, for nonempty bounded only. Suppose is nonempty and bounded, and put
Then is nonempty, since is, and it is bounded above: fixing and with , every satisfy by the triangle inequality, symmetry (Metric space: iff , 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 is an upper bound of (Lower bound, bounded below, bounded set). Hence has a least upper bound in by the least-upper-bound property (Complete ordered field (least-upper-bound property)), and that bound is unique (Suprema and infima are unique). Define
Distance from a point to a set, for nonempty only. Let and let be nonempty, and put . Then is nonempty and bounded below by , 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
Distance between two sets, for nonempty and only. Put , again nonempty and bounded below by , and define
Every one of the three scope restrictions is load bearing. In this library and 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 is in force in this development (Conventions: , unbounded sets, and the extended reals). Accordingly:
- is defined exactly when is nonempty and bounded. It is not defined for , and it is not defined, not even as an infinite value, for an unbounded .
- is defined exactly when , and exactly when both and are nonempty. No boundedness is needed for these two, because is always a lower bound.
Remarks
- Diameter and the distance functions are nonnegative. For nonempty bounded and any we have , so ; and , because is a lower bound of the sets they are infima of (Nonnegativity of a metric is a consequence of the other axioms, not an axiom, Greatest lower bound (infimum)).
- is not a metric on the nonempty subsets of . It is symmetric and vanishes on , but two distinct disjoint sets can be at distance , so the separation axiom (M1) of Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric fails; the witness is on the companion page. The letter is reused for three different functions here, the metric, the point-to-set distance and the set-to-set distance, only because the arguments make the intended one unambiguous.
- is the special case , since , and the two infima therefore agree by uniqueness (Suprema and infima are unique).
The reverse triangle inequality in any metric space
Statement
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric) and let . Then
where is the absolute value of (Absolute value in an ordered field).
Facts & Assumptions
Given: A metric space and points ; write .
The triangle inequality (M3): for all (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
Symmetry (M2): for all (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
For every real , the value equals or (Basic properties of the absolute value, Absolute value in an ordered field).
Adding a constant to an inequality: if then . Order is preserved by adding a constant and by adding inequalities states the strict form ; the nonstrict form used here is that strict form together with the case , in which the two sides are equal, the order being total (Ordered field, Complete ordered field (least-upper-bound property)).
Proof
By [A1] at : .
By [A1] at : , and by [A2] , so .
Adding to both sides of step 1.1 gives .
Adding to both sides of step 1.2 gives , that is .
By [L1] the real number is either or , and both of these are at most by steps 2.1 and 2.2, so .
Remarks
- Read with fixed, this says the function does not increase distances: its values at and at differ by at most . That is the model for , so the distance to a fixed nonempty set is -Lipschitz, which proves the same estimate with the point replaced by a nonempty set.
- The inequality specialises, on with (The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded), to the familiar .
, so the distance to a fixed nonempty set is -Lipschitz
Statement
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric), let be nonempty and let . Then
with 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 changes by at most between and : it is -Lipschitz.
Facts & Assumptions
Given: A metric space , a nonempty , and points ; write for .
The triangle inequality (M3) of Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric: for all and .
For nonempty the real number exists, because is nonempty and bounded below by (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).
The infimum is a lower bound of its set and is the greatest such: for every , and for every lower bound of (Greatest lower bound (infimum)).
Adding a constant to an inequality: if then . 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 , settled by totality of the order (Ordered field, Complete ordered field (least-upper-bound property)).
For every real , equals or (Basic properties of the absolute value, Absolute value in an ordered field).
Proof
Both and are defined real numbers, since is nonempty.
For every : .
For every : , and by symmetry (M2), so .
For every : , since is a lower bound of and ; combining with step 1.2 gives , hence .
For every : by the same reasoning with the roles of and exchanged, hence .
The real number is therefore a lower bound of , so it is at most the greatest lower bound: , that is .
Symmetrically is a lower bound of , so .
By [L4] the value is or its negative , and steps 3.1 and 3.2 bound both by ; hence .
Remarks
- Where the nonemptiness is used. Twice, and both times essentially: it is what makes and exist at all (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space), and it is what makes and nonempty so that "greatest lower bound" has content. For the statement has no meaning in this library, since is undefined.
- The point case is The reverse triangle inequality in any metric space: taking gives , whose infimum is , and the conclusion becomes .
- The constant is best possible in general: on with the function is , and whenever and have the same sign.
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 be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
A subset is open in if for every there is a real with (Open ball, closed ball and sphere in a metric space). A subset is closed in if its complement is open.
The collection
of all open subsets is the metric topology of on . A subset of that is both open and closed is called clopen.
Two sets are open for trivial reasons. is open, because the defining condition quantifies over no points; and is open, because for every and every . Consequently and are also closed, and both are clopen.
A neighbourhood of a point is any open set containing . The condition above therefore reads: is open exactly when every point of has a ball around it inside , and it is the balls alone that have to be tested.
The metric, not the set, determines . 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
- What "topology" means here. is defined above as a collection of subsets of ; the abstract notion of a topological space, a collection of subsets closed under arbitrary unions and finite intersections taken as primitive data, is introduced on a later page and is not used here. What is proved here is that has exactly those closure properties (Arbitrary unions and finite intersections of open sets are open, open balls are open and closed balls are closed), which is what licenses the word.
- Open and closed are not opposites. A set may be neither ( inside , once the usual metric is available from The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded) or both ( and always, and in some spaces every subset at once, as the discrete metric on the companion page shows). "Not open" is never a synonym for "closed".
- Closedness is complementation, and nothing else, at this stage. The description of closed sets by limits of sequences, and the description of the closure as an infimum of distances, are theorems proved later on this page (The closure of a nonempty is , equals together with its limit points, and is the smallest closed superset, A point lies in the closure of iff some sequence in converges to it, and a set is closed iff it is sequentially closed), not part of the definition.
The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded
Statement
Define by (Absolute value in an ordered field). Then:
- is a metric on (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric); it is called the usual metric of .
- For and the open ball is the bounded open interval (Intervals of : the nine order-convex forms, nondegeneracy, and length, Open ball, closed ball and sphere in a metric space) and the closed ball is .
- Consequently is open in the metric topology of (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 there is with . This topology is called the usual topology of .
- 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 , so is not defined.
Facts & Assumptions
Given: The complete ordered field (Complete ordered field (least-upper-bound property), Ordered field) with its absolute value (Absolute value in an ordered field), and the function ; points and a real .
Absolute value: ; if and only if ; ; and for one has if and only if (Basic properties of the absolute value, Absolute value in an ordered field).
Triangle inequality in an ordered field: (The triangle inequality).
Intervals: and (Intervals of : the nine order-convex forms, nondegeneracy, and length).
Archimedean property: for every there is a natural with (Every complete ordered field is Archimedean); and for (Canonical naturals are positive and strictly increasing).
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).
Trichotomy: for reals exactly one of , , holds (Complete ordered field (least-upper-bound property), Ordered field).
Proof
Separation (M1): holds if and only if , that is if and only if .
Symmetry (M2): .
Triangle inequality (M3): .
For and : means , which by [L1] holds if and only if , and adding respectively to the two halves shows this is equivalent to .
For and : means , which by the same equivalence read with in place of holds if and only if .
Let and be arbitrary, and use [L4] to fix a natural with ; write .
By steps 1.1, 1.2 and 1.3 the function satisfies (M1), (M2) and (M3), so it is a metric on , which is claim 1.
By step 1.4 and [L3] the set has exactly the elements of , and by step 1.5 and [L3] the set has exactly the elements of ; this is claim 2.
Since we have , so and hence ; therefore .
Substituting claim 2 into the definition of open in the metric topology gives claim 3: is open exactly when every admits with .
Since and were arbitrary, step 2.3 exhibits for every ball a real not in it, so no ball contains ; hence is not a bounded subset of itself and is not defined, which is claim 4.
Remarks
- This is the metric every later ceiling rests on. Every real-line example on the companion page, and every subspace of used there, takes its metric from through the subspace construction of Isometry, isometric embedding, and the subspace metric on a subset.
- Unboundedness needs no Archimedean input, and no completeness either. No ordered field is bounded under , and the reason is a single element rather than any cofinality property: given a centre and a radius , the element satisfies , because and (Basic properties of the absolute value, The multiplicative identity is positive, Order is preserved by adding a constant and by adding inequalities); so it lies outside and no ball contains the field. Step 1.6 above chooses its witness with Every complete ordered field is Archimedean instead, which is a convenience and not a necessity: it delivers a witness that is a canonical natural, and claim 4 needs no such thing. Claim 4 therefore holds verbatim in every ordered field with this , Archimedean or not. Note also that a radius is an element of , so "a ball of infinite radius" is not something that can be written here.
- The claim that is "not defined" is a claim about the conventions of this development (Conventions: , unbounded sets, and the extended reals, Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space): suprema here are real numbers and the extended real line, which is introduced on a later page, is not used for them, so an unbounded set has no diameter at all rather than a diameter .
as the set of functions , and , , are metrics on it
Statement
Let with . A von Neumann natural is the set of its predecessors, (The natural numbers (von Neumann)), so it can be used directly as an index set. Define
and write for , . Two elements of are equal exactly when they agree at every , functions being equal when they have the same values. For put
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 with ; the positives are ); and is a nonempty finite subset of , because , so it has a maximum (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).
Then , and are metrics on (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
Why . For the set has exactly one element, the empty function, and and are the empty sum and its root; but would be the maximum of the empty set, which does not exist. The hypothesis is therefore not decoration, and it is carried by every statement about in this library.
Facts & Assumptions
Given: A natural ; elements ; and the lists , for , so that . Write , and .
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 .
Absolute value (Basic properties of the absolute value, Absolute value in an ordered field): ; if and only if ; ; and .
Two-term triangle inequality: (The triangle inequality).
Minkowski's inequality at the rational exponent (Minkowski's inequality for finite sums (rational exponent)): .
Cauchy-Schwarz in root form (The Cauchy-Schwarz inequality for finite sums): .
Square roots (Square roots exist: a unique with ; the positives are ): every has a unique with ; in particular if and only if .
Squares (Squares of nonzero elements are positive, Integer powers ): always, and only for ; and monotonicity of squaring on the nonnegatives, for (Squaring is monotone on the nonnegatives).
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).
Order arithmetic in : 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
Separation for : is a sum of nonnegative terms, so it vanishes exactly when every vanishes, that is exactly when for all , that is exactly when .
Separation for : vanishes exactly when ; is a sum of nonnegative terms, so exactly when for every , which happens exactly when every , that is exactly when .
Separation for : the maximum belongs to and bounds it above, so it is exactly when every , that is exactly when .
Symmetry for all three: and for every , so the three defining expressions are unchanged when and are exchanged.
Triangle inequality for : applying [L4] to the lists and gives .
Expanding with additivity and scaling: .
By [L5] and : , and , with .
Triangle inequality for : for each , because the two maxima bound their sets; so is an upper bound of , and the maximum of that set is one of its elements, whence .
Combining steps 1.6 and 1.7: .
Both and 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 .
Each of , , 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 .
Remarks
- is defined ZFC-natively here, as the set of functions from the von Neumann natural to , precisely so that its coordinates are indexed by 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 , applies without any reindexing.
- No rational power appears anywhere above. The triangle inequality for is obtained from Cauchy-Schwarz and the existence of square roots, not from Minkowski at , so this lemma does not depend on the theory of rational exponents. Minkowski is used only at , 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.
The supremum metric is a metric on the bounded real-valued functions on a nonempty set
Statement
Let be a nonempty set. Call a function bounded when its range is a bounded subset of (Lower bound, bounded below, bounded set), and write
For put and
This is well defined: is nonempty because 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 is a metric on (Metric space: iff , 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 and makes bounded above, and nonemptiness of 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 the functions and make unbounded above (Conventions: , unbounded sets, and the extended reals).
Facts & Assumptions
Given: A nonempty set and bounded functions , with , and for all ; a fixed .
Bounded subset of : is bounded when there are with for every (Lower bound, bounded below, bounded set).
Least-upper-bound property: a nonempty subset of 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).
Absolute value: ; if and only if ; ; and equals or (Basic properties of the absolute value, Absolute value in an ordered field).
Two-term triangle inequality: (The triangle inequality).
A two-element subset of 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).
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 together with gives .
Proof
For every the value is or , and while ; so bounds above, and since makes nonempty, exists and is unique.
Symmetry (M2): for every , so and are the same subset of and therefore have the same supremum.
Separation (M1): bounds above, so ; if then and for every , hence for every and ; conversely if then , whose least upper bound is .
For every : , the last inequality because each supremum bounds its own set above.
Triangle inequality (M3): step 2.2 says the real number is an upper bound of , and is the least upper bound of that set, so .
The function therefore satisfies (M1) by step 2.1, (M2) by step 1.2 and (M3) by step 3.1, so it is a metric on .
Remarks
- Why the bounded functions and not all functions. For unbounded the set need not be bounded above and then does not exist, so would not be a function into at all. Texts that write in that case are working in the extended real line, which is introduced on a later page. The suprema taken here are real numbers, and the extended real line is not used for them (Conventions: , unbounded sets, and the extended reals, Which metric axiom list this library uses, the live naming fork between semimetric and pseudometric, and why extended metrics are not treated here).
- The supremum need not be attained, so is genuinely a supremum and not a maximum; the companion page carries a witness.
- The name "uniform metric" points at later material. The quantified definition of uniform convergence of functions appears in Pointwise convergence, uniform convergence, and the uniformly Cauchy condition for sequences of real-valued functions ↗. The later Agreement of the quantified real-valued definition with the later uniform-metric and uniform-topology formulations ↗ records its agreement with convergence in ; this lemma proves only that is a metric on the stated bounded-function space.
Arbitrary unions and finite intersections of open sets are open, open balls are open and closed balls are closed
Statement
Let be a metric space (Metric space: iff , 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:
- Balls are open. is open, for every and every .
- Arbitrary unions. If is any collection of open subsets of , then is open.
- Finite intersections. If and are open, then is open.
- Closed balls are closed. is closed, for every and every .
Together with the fact that and 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 has exactly the closure properties that the word topology names.
Facts & Assumptions
Given: A metric space ; a point and a real ; a collection of open subsets of ; a natural and open sets .
Open: is open when every admits with ; 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).
Balls: and , and whenever (Open ball, closed ball and sphere in a metric space).
Triangle inequality and symmetry of (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
Reverse triangle inequality: , so in particular (The reverse triangle inequality in any metric space).
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).
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 and cannot both hold.
Proof
Claim 1: let , so , and put ; for the triangle inequality gives , so , and since was arbitrary is open.
Claim 2: let , so for some ; as is open there is with , and since was arbitrary the union is open.
Claim 3: let and for each pick with , which is possible because each is open and lies in it.
Claim 4: let , so , and put ; for the reverse triangle inequality applied to the points gives , hence , so by symmetry and .
Since , the set is a nonempty finite set of reals, so exists, equals some and is therefore , and satisfies for every .
Step 1.4 shows for the and chosen there, and was an arbitrary point of ; hence is open and is closed, which is claim 4.
By step 2.1, for every , so ; as was arbitrary that intersection is open, which is claim 3.
Claims 1, 2, 3 and 4 are established by steps 1.1, 1.2, 3.1 and 2.2 respectively.
Remarks
- Finiteness in claim 3 is essential and is exactly what step 2.1 uses. An infinite family of positive radii need have no positive lower bound, and the minimum of an infinite set of reals need not exist at all (Every nonempty finite set of reals has a maximum and a minimum is stated for finite sets for that reason). The intersection of the balls over all is a standard example of an intersection of open sets that need not be open.
- The empty intersection is not covered and does not need to be. Claim 3 is stated for ; the conventional value of an empty intersection is , which is open anyway (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 4 is not the statement that is the closure of , which is false in general (FALSE: in every metric space the closure of is the closed ball of radius ). All that is proved here is that the closed ball is a closed set.
Interior, closure, boundary, limit point, isolated point and dense subset of a metric space
Definition
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric), let and let . 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 written as a radius is always .
- is an interior point of if for some . The set of interior points is the interior .
- is an adherent point of if for every . The set of adherent points is the closure .
- is a limit point (accumulation point) of if for every . The set of limit points is the derived set .
- is an isolated point of if and for some .
- The boundary of is .
- is dense in if .
The interior is open, and it is the largest open subset of . If , fix with ; the ball is itself open (Arbitrary unions and finite intersections of open sets are open, open balls are open and closed balls are closed), so every has some with , which puts in . Hence and is open. It is contained in , since for an interior point ; and if is open then every has a ball inside , so .
Two descriptions of the boundary agree. says that every ball around meets and that no ball around is contained in ; the second half says exactly that every ball around meets . So
from which is immediate.
Elementary containments, straight from the definitions. , because lies in every ; , because a ball meeting meets ; and . A point of is either isolated in or a limit point of , and not both, according to whether some ball meets only in .
Remarks
- The closure is defined here by adherent points and by nothing else. That it is closed, that it is the smallest closed set containing , that for nonempty it is , and that it consists of the limits of sequences from , are theorems (The closure of a nonempty is , equals together with its limit points, and is the smallest closed superset, A point lies in the closure of iff some sequence in converges to it, and a set is closed iff it is sequentially closed) and are proved from this definition.
- Limit point of a set is not the same notion as subsequential limit of a sequence (Subsequential limit of a real sequence, and the subsequential limit set), which this library deliberately keeps under a different name: the constant sequence has as a subsequential limit, while its set of values has no limit point at all.
- Dense is relative to the ambient space, and the ambient space is part of the data: is dense in when , with computed in . The same inside a larger space is a different question.
The closure of a nonempty is , equals together with its limit points, and is the smallest closed superset
Statement
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric) and let , with closure, derived set and limit points as in Interior, closure, boundary, limit point, isolated point and dense subset of a metric space. Then:
- If , then , where 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).
- .
- is closed, contains , and is contained in every closed with . So is the smallest closed superset of , and is closed if and only if .
Claims 2 and 3 hold for every , the empty set included: is empty because no ball meets , and is closed because 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 because is defined only for nonempty (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 , a subset , a point , and a closed set with ; when , the set , whose infimum is .
Closure and derived set: means for every ; means for every (Interior, closure, boundary, limit point, isolated point and dense subset of a metric space).
Open and closed: is open when every point of has a ball around it inside ; is closed when 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).
For nonempty , the set is nonempty and bounded below by , so exists and is a lower bound of (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)).
Epsilon characterisation of the infimum: for a nonempty bounded below and a lower bound of , one has if and only if for every there is with (Epsilon characterisation of the infimum).
Balls are open, so a point of a ball has a ball around it inside that ball (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).
Membership in a ball: means , and always (Open ball, closed ball and sphere in a metric space); trichotomy of the order of (Complete ordered field (least-upper-bound property), Ordered field).
Proof
Suppose and , and let be arbitrary; then , so there is with , and is a lower bound of , so by the epsilon characterisation.
Conversely suppose and , and let be arbitrary; the epsilon characterisation supplies with , that is , so .
and : a point lies in for every , and a ball meeting meets .
If and , then for every the nonempty set equals , since is not a member of ; hence .
is closed: let and fix with ; for there is with , so and , whence and is open.
for every closed : if had , then open would give with , so , contradicting .
Claim 1 follows: by step 1.1 every adherent point of a nonempty satisfies , and by step 1.2 every with is adherent.
Claim 2 follows: by step 1.3, and by step 1.4, since a point of either lies in or, not lying in , lies in .
Claim 3 follows: is closed by step 1.5, contains by step 1.3, and sits inside every closed superset of by step 1.6; in particular if is closed then , so , and conversely if then is closed.
Claims 1, 2 and 3 are therefore all established.
Remarks
- Claim 1 is where the infimum does the work. Reading it right to left, says that has points arbitrarily close to without saying that any of them is ; 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 .
- The distance function is -Lipschitz (, so the distance to a fixed nonempty set is -Lipschitz), so claim 1 exhibits 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.
Convergence of a sequence in a metric space: iff in
Definition
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
A sequence in is a function , written with . As everywhere in this library, contains (The natural numbers (von Neumann)) and a sequence is indexed from (Sequences of reals: bounded, eventually, frequently, tails, subsequences); an index range copied from a text that starts at must be shifted before it is used here.
Let be a sequence in and . The function 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 (Absolute value in an ordered field). Define
the convergence on the right being that of Limits and Cauchy sequences of reals. Unwound, this says: for every rational there is with for every . We then call a limit of , and say converges in if it has a limit.
Rational and real agree here, as they do on the real line. Limits and Cauchy sequences of reals tests convergence against rational only, and its own remark, restated for sequences in Sequences of reals: bounded, eventually, frequently, tails, subsequences, records that nothing is lost: below any real lies a positive rational (The rationals embed densely in the reals), and the index belonging to that rational serves for . So a proof may establish convergence by producing an index for every real , and may use a convergence hypothesis at a real by first passing to a rational below it. Both moves are used on this page and are always cited.
Subsequences and subsequential limits. A subsequence of is the composite for a strictly increasing , written , exactly as for sequences of reals (Sequences of reals: bounded, eventually, frequently, tails, subsequences); and is a subsequential limit of in when some subsequence converges to , which is the metric-space form of Subsequential limit of a real sequence, and the subsequential limit set.
Remarks
- A limit is a point of , and uniqueness is a theorem. Nothing in the definition rules out two limits; that a sequence in a metric space has at most one is A sequence in a metric space has at most one limit, and its proof is where the separation axiom (M1) is spent. Reading the same definition with a pseudometric (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric) that is not a metric, that is one with for some , limits are genuinely not unique: the constant sequence at converges to as well.
- Convergence is defined from the metric but determined by the topology. It can be restated as "every open set containing contains for all large ", which follows from The balls , , form a countable neighbourhood base at , so every metric space is first countable; so it is unchanged by passing to a topologically equivalent metric (Topologically, uniformly and Lipschitz equivalent metrics on a set). That restatement is not made part of the definition, because the metric form is what every proof on this page uses.
- The relation between convergence and closure is A point lies in the closure of iff some sequence in converges to it, and a set is closed iff it is sequentially closed: a point lies in the closure of exactly when some sequence in converges to it.
A sequence in a metric space has at most one limit
Statement
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric) and let be a sequence in (Convergence of a sequence in a metric space: iff in ). If and , then .
So a convergent sequence in a metric space has exactly one limit, and the notation is unambiguous.
Facts & Assumptions
Given: A metric space , a sequence in , and points with and .
Convergence: means that for every rational there is with for all (Convergence of a sequence in a metric space: iff in , Limits and Cauchy sequences of reals); and for all , so in particular 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).
Density of the rationals: strictly between any two reals lies a rational, so below any real there is a rational with (The rationals embed densely in the reals).
Halving. For a real set and . Then , so and (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 (Sign rules for products and monotonicity of multiplication); and (Field).
Separation (M1) and the triangle inequality (M3) of , together with symmetry (M2) (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
Trichotomy of the order of , and transitivity: and cannot both hold (Complete ordered field (least-upper-bound property), Ordered field).
Adding two inequalities: and give (Order is preserved by adding a constant and by adding inequalities).
Proof
Suppose, for contradiction, that .
By (M1) , and , so by trichotomy; put , a positive real with .
Fix a rational with , and use the convergence hypotheses at to fix with for and for .
Let be any natural with and , for instance ; then and .
By symmetry and the triangle inequality, .
Step 5.1 asserts , which trichotomy forbids; the supposition of step 1.1 is therefore untenable and .
Remarks
- Where each axiom is spent. Separation (M1) is what turns into , and it is the only axiom that distinguishes a metric from a pseudometric (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric). In a pseudometric space with and , the constant sequence converges to both, so the lemma is false there and this is exactly the step that fails.
- The same argument proves more, namely that a metric space is Hausdorff: the balls and are disjoint. That is recorded separately as Distinct points of a metric space have disjoint balls around them, and uniqueness of limits follows from it as well.
- Instantiating at a rational is not cosmetic. Limits and Cauchy sequences of reals quantifies over rational , so a convergence hypothesis may only be applied at a rational; step 3.1 passes from the real to a rational below it using The rationals embed densely in the reals, which is the sanctioned move.
The balls , , form a countable neighbourhood base at , so every metric space is first countable
Statement
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric) and let . For a natural write for the inverse of the canonical natural , a positive real, and put
Then:
- is at most countable (Finite, countably infinite, countable, uncountable).
- Every is an open subset of containing .
- For every open with there is with .
The two names used in the title are introduced by this statement, not cited from elsewhere. A family of open sets each containing , such that every open set containing contains a member of the family, is a neighbourhood base at ; a space in which every point has an at most countable neighbourhood base is first countable. Claims 1 to 3 say that is an at most countable neighbourhood base at , so every metric space is first countable.
Facts & Assumptions
Given: A metric space , a point , and for each natural the ball .
Canonical naturals: for (Canonical naturals are positive and strictly increasing), hence is invertible with (Inverses of positives are positive, and reciprocation reverses order); and contains , so runs over exactly the naturals as runs over (The natural numbers (von Neumann)).
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 whenever (Open ball, closed ball and sphere in a metric space).
Open sets: is open when every point of has a ball around it inside (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).
Reciprocal Archimedean property: for every real there is a natural with (For every in a complete ordered field there is a natural with , Every complete ordered field is Archimedean).
Countability: a nonempty set admitting a surjection from is at most countable (A nonempty set is at most countable iff it is a surjective image of , Finite, countably infinite, countable, uncountable, Equinumerous sets, and , Injection, surjection, bijection).
Proof
For every natural the real is defined and positive, so is a legitimate ball of positive radius.
Let be open with , and fix a real with ; then fix a natural with .
Each is open and contains , which is claim 2.
The map given by is well defined by step 1.1 and is surjective, because every member of is for some and for the natural with ; moreover is nonempty, containing .
By step 1.2 and monotonicity of balls in the radius, , which is claim 3.
By [L5] applied to the surjection of step 2.2, the nonempty set is at most countable, which is claim 1.
Claims 1, 2 and 3 hold by steps 3.1, 2.1 and 2.3, so is an at most countable neighbourhood base at and is first countable.
Remarks
- The family can be finite, and that is not a defect. In a discrete metric space for every , so every is the single point and is a one-element family. "At most countable" in this library includes finite (Finite, countably infinite, countable, uncountable), which is exactly why claim 1 is stated in that form and not as "countably infinite".
- Only the reciprocal form of the Archimedean property is used, in step 1.2, and it is the form recorded as For every in a complete ordered field there is a natural with precisely so that the inversion never has to be redone inside a proof.
- This is what makes sequences sufficient in metric spaces. First countability is the hypothesis under which closure can be described by sequences rather than by nets, and it is used in exactly that way by A point lies in the closure of iff some sequence in converges to it, and a set is closed iff it is sequentially closed.
A point lies in the closure of iff some sequence in converges to it, and a set is closed iff it is sequentially closed
Statement
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric), let , let and let . Call sequentially closed when every sequence in that converges in has its limit in . Then:
- (Interior, closure, boundary, limit point, isolated point and dense subset of a metric space) if and only if there is a sequence with for every and in (Convergence of a sequence in a metric space: iff in ).
- 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 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 (The Axiom of Countable Choice ()). 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 , a subset , a point , and a subset ; for write .
Convergence in : means that for every rational there is with for all , and it is enough to produce such a for every REAL , since below any positive real lies a positive rational (Convergence of a sequence in a metric space: iff in , 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 for all , which is the symmetry axiom (M2) (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
The balls , , are open, contain , and form a neighbourhood base at : every open contains one of them (The balls , , form a countable neighbourhood base at , so every metric space is first countable).
Canonical naturals and reciprocals: for naturals one has and hence (Canonical naturals are positive and strictly increasing, Inverses of positives are positive, and reciprocation reverses order); and contains , so for every (The natural numbers (von Neumann)).
Countable choice: for a family of nonempty sets there is a function with for every (The Axiom of Countable Choice ()).
The closure is the smallest closed superset, so is closed if and only if (The closure of a nonempty is , equals together with its limit points, and is the smallest closed superset).
Proof
Suppose is a sequence with for every and , and let be an arbitrary real; then there is with for all , so by the symmetry axiom (M2) of [A2] and hence , and since was arbitrary .
Suppose ; then for every the radius is a positive real and is nonempty, so countable choice supplies a sequence with for every .
That sequence converges to : given a real , the ball is open and contains , so there is a natural with ; for every we have , hence and , that is .
If is closed and is a sequence in converging to some , then by step 1.1 applied with , and because is closed; so and is sequentially closed.
Claim 1 holds: step 1.1 gives the implication from a convergent sequence in to adherence, and steps 1.2 and 2.1 give the converse by producing such a sequence.
If is sequentially closed, let ; by claim 1 there is a sequence in converging to , so , whence ; the reverse inclusion always holds, so and is closed.
Claim 2 holds by steps 2.2 and 4.1, and claim 1 by step 3.1.
Remarks
- Where first countability enters. Step 2.1 is the only place, and it uses The balls , , form a countable neighbourhood base at , so every metric space is first countable to convert an arbitrary ball around into one of the countably many balls . Nothing here should be read as saying that sequences describe the closure in a general topological space; the tool that always works there is the net, and that is a later page.
- The indexing is from . The radii used are for , not , precisely because contains here (The natural numbers (von Neumann), Sequences of reals: bounded, eventually, frequently, tails, subsequences) and does not exist. A version of this proof copied from a text that indexes sequences from has to be reindexed, and this is the reindexing.
- The use of choice is not concealed. It enters at exactly one place, namely step 1.2, which makes one selection per natural number, and that is what licenses (The Axiom of Countable Choice ()). Whether some proof in ZF alone reaches the same conclusion for arbitrary metric spaces is a question this library does not settle; what it does is record the assumption at the step that spends it.
Distinct points of a metric space have disjoint balls around them
Statement
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric) and let with . Put . Then and
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 respectively (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 and points with ; write .
Separation (M1), symmetry (M2) and the triangle inequality (M3) of a metric (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric); and (Nonnegativity of a metric is a consequence of the other axioms, not an axiom).
Halving. For a real put and . Then , so and (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 (Sign rules for products and monotonicity of multiplication); and (Field).
Adding two strict inequalities: and give (Order is preserved by adding a constant and by adding inequalities).
Trichotomy of the order of : is impossible, and together with gives (Complete ordered field (least-upper-bound property), Ordered field).
Membership in a ball: means ; 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
Since , axiom (M1) gives , and , so by trichotomy; hence is a positive real with .
Suppose some lay in both and , that is and ; then symmetry and the triangle inequality give , so , which trichotomy forbids.
No such exists, so ; both sets are open and contain respectively , so distinct points of are separated by disjoint open sets.
Remarks
- This is a strengthening of uniqueness of limits. A sequence converging to two distinct points would eventually be inside both and , which the theorem forbids; that is a second route to A sequence in a metric space has at most one limit, and the two proofs use the same halving.
- Separation (M1) is what the proof spends. A pseudometric (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric) with for distinct gives at step 1.1 and there is no ball to speak of; such a space is not Hausdorff, and no argument repairs that.
- The radius is not the only choice, and it is not optimal in every space: in an ultrametric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric) the balls and are already disjoint, because a common point would force .
Continuity of a map between metric spaces, at a point and globally, in the - form
Definition
Let and be metric spaces (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric), let be a function and let .
is continuous at if for every real there is a real such that
is continuous (globally, or on ) if it is continuous at every point of .
The same condition in balls. Since says and says (Open ball, closed ball and sphere in a metric space), continuity at reads: for every there is with
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 , not of alone. When several metrics on the same underlying sets are in play, as in Topologically, uniformly and Lipschitz equivalent metrics on a set, the metrics are always written out.
Quantifier order. The is allowed to depend on and on the point . Requiring one to work at every point simultaneously is a strictly stronger condition, uniform continuity; it is defined on a later page of this library, and at this point in the reading order it is written out in full where needed (Topologically, uniformly and Lipschitz equivalent metrics on a set).
Remarks
- Nothing is claimed here beyond the definition. That continuity is equivalent to preimages of open sets being open, to preimages of closed sets being closed, to sequential continuity, and to , is the theorem For a map of metric spaces the following agree: - continuity everywhere, preimages of open sets are open, preimages of closed sets are closed, sequential continuity, and .
- Continuity at a point is a local condition: it depends only on the values of on any one ball around , since the condition may always be tested with a smaller .
- Every isometric embedding is continuous, with (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), and so is every map that does not increase distances, such as (, so the distance to a fixed nonempty set is -Lipschitz).
For a map of metric spaces the following agree: - continuity everywhere, preimages of open sets are open, preimages of closed sets are closed, sequential continuity, and
Statement
Let and be metric spaces (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric) and let be a function, with images and preimages written and (Injection, surjection, bijection). The following five statements are equivalent.
- (a) is continuous at every point of in the - sense (Continuity of a map between metric spaces, at a point and globally, in the - form).
- (b) is open in for every 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).
- (c) is closed in for every closed .
- (d) is sequentially continuous: whenever in , also in (Convergence of a sequence in a metric space: iff in ).
- (e) for every (Interior, closure, boundary, limit point, isolated point and dense subset of a metric space).
Where choice is used. Only the implication (d) (e) uses a choice principle, and it uses it only through A point lies in the closure of iff some sequence in 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 ()). The cycle (a) (b) (c) (e) (a) and the implication (a) (d) are choice free.
Facts & Assumptions
Given: Metric spaces , and a function ; a point , a real , subsets , open and closed, and a sequence in .
Continuity at : for every real there is with (Continuity of a map between metric spaces, at a point and globally, in the - form, Open ball, closed ball and sphere in a metric space).
Open and closed: is open when every point of has a ball around it inside ; 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).
Preimages respect complements: , since holds exactly when (Injection, surjection, bijection).
Closure: consists of the points every ball around which meets ; it is closed, contains , and is contained in every closed superset of (Interior, closure, boundary, limit point, isolated point and dense subset of a metric space, The closure of a nonempty is , equals together with its limit points, and is the smallest closed superset).
Sequential description of the closure: if and only if some sequence in converges to ; the direction producing the sequence uses countable choice (A point lies in the closure of iff some sequence in converges to it, and a set is closed iff it is sequentially closed, The Axiom of Countable Choice ()).
Convergence: means that for every rational there is with for , and producing such a for every REAL is equivalent, since below any positive real lies a positive rational (Convergence of a sequence in a metric space: iff in , Limits and Cauchy sequences of reals, The rationals embed densely in the reals).
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 , so the negation of is (Complete ordered field (least-upper-bound property), Ordered field).
Proof
(a) implies (b): let be open and ; since there is with , and continuity at supplies with , that is ; as was arbitrary, is open.
(b) implies (c): let be closed; then is open, so is open by (b), and that set is , so is closed.
(c) implies (e): let ; the set is closed in , so is closed in by (c), and because ; hence by minimality of the closure, which says exactly .
(e) implies (a): fix and a real , put , and suppose no satisfies the continuity condition at for this , that is every ball contains a point of ; then , so (e) gives , so the ball meets and there is with , contradicting the definition of ; hence some works, and since and were arbitrary is continuous everywhere.
(a) implies (d): let and let a real be given; continuity at supplies with , and convergence supplies with , that is , for all ; then for all , so .
(d) implies (e): let and let , say with ; by [L3] there is a sequence in with , by (d) , and for every , so [L3] applied in gives .
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.
Remarks
- (b) is the definition of continuity in general topology, and the theorem is what makes the metric - definition agree with it. Once (b) is available, continuity can be discussed without ever mentioning a metric, which is what the later topology pages do.
- (d) owes its strength to first countability. Sequential continuity implies continuity here only because metric spaces are first countable (The balls , , form a countable neighbourhood base at , so every metric space is first countable), which is what A point lies in the closure of iff some sequence in converges to it, and a set is closed iff it is sequentially closed rests on. Nothing above should be read as saying that sequential continuity always suffices.
- Preimages, not images. Nothing here says that is open for open ; that is openness of the map, a different condition, which continuity does not imply: a constant map is continuous and its image of any nonempty open set is a single point. The image condition that does hold is the closure inclusion (e), and even that is an inclusion and not an equality.
Isometry, isometric embedding, and the subspace metric on a subset
Definition
Let and be metric spaces (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
Isometric embedding and isometry. A function is an isometric embedding if
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 and let
be the restriction of to pairs from . Then is a metric on : the three axioms (M1), (M2), (M3) of Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric are conditions on triples of points, and each holds for points of because it holds for points of . The pair is the metric subspace of , and the inclusion is an isometric embedding by construction. The metric topology of (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 .
Balls of a subspace are traces of balls of the ambient space. For and ,
directly from the definitions: a point lies in the left side exactly when and (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
- An isometric embedding is automatically injective, and it identifies with the subspace of , topology and all; that is An isometric embedding is injective and carries the metric topology of the source onto the subspace topology of its image. The word embedding is therefore justified rather than merely suggestive.
- A bijective isometric embedding has an isometric inverse. If is an isometry then satisfies , because writing and turns that into the defining identity of . So "isometric" is a symmetric relation between metric spaces, and it is transitive because a composite of isometries is one.
- Isometry is much finer than having the same topology. Isometric spaces are homeomorphic, but with and with have the same topology and are not isometric, the second being bounded and the first not ( and are metrics uniformly equivalent to , so every metric space carries a bounded metric with the same topology, The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded).
An isometric embedding is injective and carries the metric topology of the source onto the subspace topology of its image
Statement
Let and be metric spaces and let be an isometric embedding (Isometry, isometric embedding, and the subspace metric on a subset). Write with its subspace metric . Then:
- is injective (Injection, surjection, bijection).
- , viewed as a map , is an isometry.
- for every and (Open ball, closed ball and sphere in a metric space).
- A subset is open in if and only if is open 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). So is a bijection from the metric topology of onto the subspace topology of , and is a homeomorphism onto its image.
Facts & Assumptions
Given: Metric spaces , , an isometric embedding , the image with the subspace metric , and the map inverse to once claim 2 is available.
Isometric embedding: for all ; the subspace metric on is the restriction of (Isometry, isometric embedding, and the subspace metric on a subset).
Separation (M1): if and only if (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
Balls: , and likewise in with (Open ball, closed ball and sphere in a metric space).
Continuity in the - form (Continuity of a map between metric spaces, at a point and globally, in the - form), and the equivalence of continuity with "preimages of open sets are open" (For a map of metric spaces the following agree: - continuity everywhere, preimages of open sets are open, preimages of closed sets are closed, sequential continuity, and , 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).
A bijection and its inverse satisfy and for every subset of the domain (Injection, surjection, bijection).
Proof
Injectivity: if then , hence by (M1); this is claim 1.
As a map the function is surjective, being its image by definition, and it is injective by step 1.1, so it is a bijection ; and , since is the restriction of , so it is an isometry, which is claim 2.
Both and its inverse are continuous, with serving at every point in both directions, because and, writing , , also .
Claim 3: , and as is onto the latter set is .
By [L2] applied to the continuous maps of step 3.1, the preimage under of every open subset of is open in , and the preimage under of every open subset of is open in .
Claim 4: for we have , so if is open in then is open in by step 4.1; conversely , so if is open in then is open in by step 4.1. Hence maps the topology of into that of , is injective because is, and is onto because any open equals with open.
Claims 1, 2, 3 and 4 are established by steps 1.1, 2.1, 3.2 and 5.1, so an isometric embedding identifies with the metric subspace of , as a metric space and hence as a topological one.
Remarks
- Only the image carries the right topology. Claim 4 compares the topology of with the SUBSPACE topology of , not with the topology of . The image of an open set is in general not open in : the inclusion of into is an isometric embedding, and is open in itself but not in (The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded).
- This is what licenses treating a subset of a metric space as a space in its own right, and it is used on the companion page whenever a subset of is called a metric space.
Topologically, uniformly and Lipschitz equivalent metrics on a set
Definition
Let be a set and let and both be metrics on (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric). Note that the underlying set is the same; nothing below compares metrics on different sets.
- and 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):
- and are uniformly equivalent if for every real there are reals and such that, for all ,
- and are Lipschitz equivalent if there are reals with
What the middle condition says in words. It is the statement that both identity maps and are uniformly continuous: the same works at every pair of points, not merely at each point separately as in Continuity of a map between metric spaces, at a point and globally, in the - form. Uniform continuity has no definition of its own at this point in the reading order, so the condition is written out in full above; a later page defines it, and until then this write-out is what earlier pages quote.
Each of the three is an equivalence relation on the metrics on . Reflexivity is immediate (, and ); symmetry is built into the statements, the uniform one being symmetric by construction and the Lipschitz one because gives ; and transitivity follows by composing the s and multiplying the constants.
Remarks
- The three are ranked, and the ranking is proved, not assumed: Lipschitz equivalence implies uniform equivalence implies topological equivalence (Lipschitz equivalence implies uniform equivalence implies topological equivalence). Neither implication reverses, and the witnesses live on the companion page.
- Naming forks in the literature. Many texts say strongly equivalent for what is called Lipschitz equivalent here, and many say simply equivalent for what is called topologically equivalent here. This library always writes the qualifier, so that no statement depends on which convention a reader brings. A few texts define topological equivalence by "the identity is a homeomorphism", which is the same condition (For a map of metric spaces the following agree: - continuity everywhere, preimages of open sets are open, preimages of closed sets are closed, sequential continuity, and ).
- Topological equivalence preserves exactly the topological notions: open, closed, closure, interior, boundary, convergence of sequences, continuity of maps into and out of the space. It does not preserve boundedness, diameters or the Lipschitz constants, and FALSE: boundedness of a metric space is determined by its topology records the first of those failures.
Lipschitz equivalence implies uniform equivalence implies topological equivalence
Statement
Let and be metrics on the same set (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric), with the three equivalences as in Topologically, uniformly and Lipschitz equivalent metrics on a set. Then:
- If and are Lipschitz equivalent, they are uniformly equivalent.
- If and 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 and two metrics on it; a real .
Lipschitz equivalence: there are reals with for all (Topologically, uniformly and Lipschitz equivalent metrics on a set).
Uniform equivalence: for every real there are such that implies and implies , for all (Topologically, uniformly and Lipschitz equivalent metrics on a set).
Inverses and products of positives: gives (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)).
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).
Continuity of a map at a point in the - form (Continuity of a map between metric spaces, at a point and globally, in the - form); a map continuous at every point has open preimages of open sets (For a map of metric spaces the following agree: - continuity everywhere, preimages of open sets are open, preimages of closed sets are closed, sequential continuity, and ).
Open sets and 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); membership in a ball (Open ball, closed ball and sphere in a metric space).
Proof
Claim 1: assume [A1] and let . Put and , both positive since are. If then ; and if then , so after multiplying by . Hence and are uniformly equivalent.
Assume [A2]. Then the identity map is continuous at every point : given , the of [A2] satisfies , which is the - condition at ; symmetrically is continuous at every point, using .
By [L3] applied to the two continuous identity maps of step 1.2: the preimage under of a -open set is itself and is -open, so every -open set is -open; and symmetrically every -open set is -open. Hence , which is claim 2.
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.
Remarks
- Neither implication reverses, and the witnesses are on the companion page. On the metrics and have the same topology and are not uniformly equivalent (On the metrics and have the same topology and are not uniformly equivalent ↗); on the metrics and are uniformly equivalent and not Lipschitz equivalent (On the metrics and are uniformly but not Lipschitz equivalent ↗). Those two items are read here as orientation only: this theorem does not depend on them, and its statement claims nothing about strictness.
- Uniform equivalence is strictly more than "both identities are continuous". Continuity of both identity maps is exactly topological equivalence, by the argument of step 2.1 read in reverse; uniform equivalence additionally demands that one serve at every point at once, and that is the whole difference between the two conditions.
- What each level preserves. Lipschitz equivalence preserves boundedness and changes diameters by at most a constant factor; uniform equivalence preserves Cauchy sequences and uniform continuity, notions taken up on a later page and not defined here; topological equivalence preserves the open sets and everything defined from them, and nothing else.
and are metrics uniformly equivalent to , so every metric space carries a bounded metric with the same topology
Statement
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric) and define, for ,
Both are well defined: (Nonnegativity of a metric is a consequence of the other axioms, not an axiom), so 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:
- and are metrics on .
- and for all ; hence and 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 then for both.
- and are each uniformly equivalent to , 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 , points , a real , and the two functions and , defined for reals , so that and .
A metric is nonnegative and satisfies (M1), (M2), (M3) (Nonnegativity of a metric is a consequence of the other axioms, not an axiom, Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
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).
(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)).
Inverses and order: gives , and gives (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 gives , is that statement together with the case , 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 (Field).
Bounded subset and diameter: is bounded when it lies in some ball, and for nonempty bounded 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).
Uniform and topological equivalence, and the implication between them (Topologically, uniformly and Lipschitz equivalent metrics on a set, Lipschitz equivalence implies uniform equivalence implies topological equivalence).
Proof
Properties of on : it is one of and , so and ; exactly when , since ; it is nondecreasing, because for the value is or , and in both cases it is a lower bound of , hence at most ; and it is subadditive, since for either one of is , and then , or both are , and then .
Properties of on : here , so and , whence ; also gives ; exactly when ; is strictly increasing, because and gives , hence ; and it is subadditive, since for one has and , so .
Both and are symmetric, being applied to the symmetric function , and both vanish exactly on the diagonal, since exactly when and exactly when .
is a metric: (M1) and (M2) are step 1.3, and (M3) follows because with nondecreasing and subadditive on nonnegatives gives .
is a metric: identically, using that is increasing and subadditive on nonnegatives, .
Boundedness: and for all , so if then fixing any gives and , while is bounded outright; and is an upper bound of all the distances, so in both metrics when . This is claim 2.
is uniformly equivalent to : given , take , so that gives ; and take , so that forces , hence by [L2], hence .
is uniformly equivalent to : given , take , so that gives ; and take , so that forces , since would give by monotonicity.
Uniform equivalence implies topological equivalence, so and have exactly the metric topology of ; this completes claim 3.
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.
Remarks
- Two constructions rather than one, on purpose. is the shorter argument and is the one used by the counterexamples on the companion page; is strictly less than everywhere and is strictly increasing in , 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 when is unbounded. A Lipschitz bound with would force everywhere, which fails as soon as takes arbitrarily large values; the real line is the witness (On the metrics and 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 need not be an equality, and the two constructions differ on when it is. For a one-point space both new metrics are identically . For the bound is attained as soon as takes some value , since then takes the value itself, and the companion page computes one such case. For the value is never taken at all, by claim 2, so on a space where is bounded the diameter in is strictly below : for instance on a two-point space with the new distance is .
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: iff , symmetry, and the triangle inequality; pseudometric and ultrametric asks a metric for exactly three things: (M1) if and only if ; (M2) ; (M3) . Many texts add a fourth, , or build it into the codomain by writing . 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, for all together with the implication . 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.
- Dropping the implication , keeping symmetry and the triangle inequality, gives what most current sources, and this library, call a pseudometric (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric). This is the notion a seminorm induces.
- Dropping the triangle inequality, keeping (M1) and (M2), gives what most current sources call a semimetric.
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 implies (M3) in the presence of (M1) and (M2), by Nonnegativity of a metric is a consequence of the other axioms, not an axiom and the fact that the maximum of two nonnegative reals is at most their sum. So an ultrametric is a metric, and the definition may be read either as "a metric that also satisfies (M3')" or as "a function satisfying (M1), (M2) and (M3')". The two readings pick out the same objects.
Why extended metrics are not treated here. An extended metric is allowed to take the value , so that its codomain is rather than ; the axioms are read with the usual arithmetic of . The construction is useful, for instance when one wants to glue metric spaces without connecting them, and it is standard in metric geometry. It is not treated here, for one reason: its values would have to live in the extended real line , whereas the axioms of Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric are stated over the complete ordered field (Complete ordered field (least-upper-bound property)) and are never read anywhere else. Why they are kept there is set out in Conventions: , unbounded sets, and the extended reals: is not a field, the expressions and 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 .
Two consequences of that decision are visible on this page and are not oversights. First, an unbounded set has no diameter at all here, rather than a diameter (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space). Second, the supremum metric is defined on the bounded real-valued functions only (The supremum metric is a metric on the bounded real-valued functions on a nonempty set), where texts working in define it on all of them.
Adding extended metrics honestly would mean restating Metric space: iff , 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 . 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: in every metric space the closure of is the closed ball of radius
Statement
False claim: for every metric space , every and every real ,
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 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 .
Facts & Assumptions
Given: The real line with its usual metric (The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded); the subset with the subspace metric (Isometry, isometric embedding, and the subspace metric on a subset, Intervals of : the nine order-convex forms, nondegeneracy, and length); an arbitrary metric space with and a real .
The closed ball is a closed set, and it contains (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).
The closure of a set is the smallest closed superset of it, and a closed set equals its own closure (The closure of a nonempty is , equals together with its limit points, and is the smallest closed superset).
The subspace metric makes a metric space and its balls are traces: (Isometry, isometric embedding, and the subspace metric on a subset, Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric, Open ball, closed ball and sphere in a metric space).
Absolute value and order: when , , and ; and by trichotomy rules out (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)).
Open sets of a metric space: is open when every point of has a ball around it inside ; 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
The inclusion that does hold, in every metric space: is closed and contains , so the smallest closed superset of satisfies .
In the witness , every satisfies , hence ; and .
Therefore and , since has while every other has or .
The set is open in : for the ball omits , because by step 1.2, so . Hence is closed in .
Since is closed it equals its own closure, so by step 2.1, while ; and because .
The witness with and therefore refutes the claim; all that survives in general is the inclusion of step 1.1, and it can be strict.
Remarks
- Where the intuition comes from and why it does not transfer. In with the Euclidean metric ( as the set of functions , and , , 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 lies strictly between and , so the point of the closed ball is not approached from inside 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 and 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: 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 and are topologically equivalent metrics on a set (Topologically, uniformly and Lipschitz equivalent metrics on a set) and 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 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 with its usual metric , and the metric (Maximum and minimum of a set).
is a metric on and is not a bounded metric space: no ball contains (The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded, Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
For any metric the function is a metric, is bounded with diameter at most on a nonempty space, and is uniformly equivalent to ( and are metrics uniformly equivalent to , so every metric space carries a bounded metric with the same topology, Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space).
Uniform equivalence implies topological equivalence (Lipschitz equivalence implies uniform equivalence implies topological equivalence, Topologically, uniformly and Lipschitz equivalent metrics on a set).
Refutation
By [L1] the metric makes a metric space that is not bounded.
By [L2] the function is a metric on , the space is bounded with , and is uniformly equivalent to .
By [L3] the two metrics are therefore topologically equivalent: .
So and are topologically equivalent metrics on the same set, is bounded and is not; the claim fails, and boundedness is a property of the metric and not of the topology.
Remarks
- What is true instead. Boundedness is preserved by Lipschitz equivalence, since turns a ball for into a ball for (Topologically, uniformly and Lipschitz equivalent metrics on a set). It is the two weaker equivalences that lose it, and the witness above sits precisely in the gap between Lipschitz equivalence and uniform equivalence (Lipschitz equivalence implies uniform equivalence implies topological equivalence).
- The diameter is even less topological than boundedness. Rescaling a metric by a positive constant is a Lipschitz equivalence and multiplies every diameter by that constant, so no numerical value of the diameter is determined even by the Lipschitz class.
- This is why "bounded" is never used as a topological adjective in this library. The bounded subsets of are defined from (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space), and every statement about them names the metric.
Sources
Standard references
Recommended treatments; not extraction sources.
- Metric space (Wikipedia)
- Ultrametric space (Wikipedia)
- W. Rudin, Principles of Mathematical Analysis, 3rd ed., Ch. 2
- T. Tao, Analysis II, 3rd ed., Ch. 1
- Pseudometric space (Wikipedia)
- R. Gardner, Introduction to Topology, notes on Munkres Section 20: The Metric Topology (East Tennessee State University)
- Ball (mathematics) (Wikipedia)
- Bounded set (Wikipedia)
- Diameter (Wikipedia)
- Hausdorff distance (Wikipedia)
- Triangle inequality (Wikipedia)
- Lipschitz continuity (Wikipedia)
- Open set (Wikipedia)
- Real line (Wikipedia)
- Euclidean space (Wikipedia)
- Taxicab geometry (Wikipedia)
- Lp space (Wikipedia)
- Uniform norm (Wikipedia)
- W. Rudin, Principles of Mathematical Analysis, 3rd ed., Ch. 7
- Closure (topology) (Wikipedia)
- Interior (topology) (Wikipedia)
- Limit point (Wikipedia)
- Boundary (topology) (Wikipedia)
- Isolated point (Wikipedia)
- Limit of a sequence (Wikipedia)
- W. Rudin, Principles of Mathematical Analysis, 3rd ed., Ch. 3
- Hausdorff space (Wikipedia)
- First-countable space (Wikipedia)
- Neighbourhood system (Wikipedia)
- J. Munkres, Topology, 2nd ed., §30
- Sequentially closed set (Wikipedia)
- Axiom of countable choice (Wikipedia)
- Sequential space (Wikipedia)
- J. Munkres, Topology, 2nd ed., §17
- Continuous function (Wikipedia)
- W. Rudin, Principles of Mathematical Analysis, 3rd ed., Ch. 4
- Sequential continuity (Wikipedia)
- J. Munkres, Topology, 2nd ed., §18
- Isometry (Wikipedia)
- Subspace topology (Wikipedia)
- Embedding (Wikipedia)
- Equivalence of metrics (Wikipedia)
- J. Munkres, Topology, 2nd ed., §20
- Uniform continuity (Wikipedia)
- Extended real number line (Wikipedia)
- Quasimetric space (Wikipedia)