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.
Compactness in Metric Spaces: Examples and Counterexamples
1 · Prerequisites
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Countability and Uncountability
- Filters and Ultrafilters
- Foundations of the Real Numbers for Analysis
- Metric Spaces
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Order, Zorn's Lemma, and the Axiom of Choice
- 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
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
With the discrete metric for , a space is compact iff it is totally bounded iff it is finite, and it is complete whatever its size
Example
Let be a set and define by when and when : the discrete metric on . Then:
- is a metric (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric), for and for (Open ball, closed ball and sphere in a metric space), and every subset of is both open and 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).
- is complete (Complete metric space: every Cauchy sequence converges in the space), whatever is: a Cauchy sequence in it is eventually constant.
- The following are equivalent: is compact (Open cover, subcover, compact metric space, and compact subset of a metric space); is totally bounded (Finite -net and totally bounded metric space); is finite (Finite, countably infinite, countable, uncountable).
So the discrete metric separates the two halves of "complete and totally bounded": it is always complete, and it is totally bounded only in the trivial case.
Facts & Assumptions
Given: A set and the discrete metric on it, with for and otherwise.
A metric satisfies (M1) exactly when , (M2) symmetry, (M3) the triangle inequality (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
; a set is open when every point of it has a ball around it inside it, and closed when its complement is open (Open ball, closed ball and sphere in a metric space, 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 Cauchy when for every rational there is with for ; it converges to when for every rational there is with for ; the space is complete when every Cauchy sequence converges in it (Cauchy sequence in a metric space, Convergence of a sequence in a metric space: iff in , Complete metric space: every Cauchy sequence converges in the space).
is compact when every family of open subsets with union has a finite subfamily with union ; a finite set is empty or listable as (Open cover, subcover, compact metric space, and compact subset of a metric space, Finite, countably infinite, countable, uncountable).
A finite -net is a finite with , and total boundedness asks for one at every real (Finite -net and totally bounded metric space).
A compact metric space is totally bounded (A compact metric space is complete and totally bounded, and neither implication uses any choice principle).
A function with domain a natural number all of whose values are nonempty sets has a choice function, in ZF (Every natural-number-indexed list of nonempty sets has a choice function on its family of values).
Verification
is a metric: (M1) holds by definition; (M2) because the condition is symmetric; and (M3) because is or , and when it is one has , so differs from at least one of and and .
For , forces and , so ; for every has , so . Hence every is open, each having , and every subset is closed as well, its complement being open: claim 1.
Claim 2: let be Cauchy and take with for ; then , that is , for every , so for and every rational , and .
For claim 3, suppose is finite. If then the empty subfamily of any family covers it; otherwise list , let be a family of open sets with union , and note that for each the set is nonempty, so finite choice supplies with ; their union contains every and hence is . So is compact.
If is compact it is totally bounded.
If is totally bounded, take a finite -net ; then by step 2.1, so is finite.
Steps 3.1, 4.1 and 5.1 close the cycle finite compact totally bounded finite, so the three conditions of claim 3 are equivalent.
Remarks
This is the standard witness for two of the false statements of the A page. Taking gives a bounded space that is not totally bounded (FALSE: a bounded metric space is totally bounded, with the discrete metric is bounded and is not totally bounded) and a closed bounded subset of a metric space that is not compact (FALSE: a closed and bounded subset of a metric space is compact).
Completeness is not what compactness adds. Claim 2 holds for every , including infinite ones, so completeness alone is very far from compactness. What the discrete metric lacks is total boundedness, and by For a metric space, compact, countably compact, limit point compact, sequentially compact, and complete together with totally bounded are all equivalent, given countable choice and dependent choice it is exactly the pair of conditions that is equivalent to compactness.
Boundedness of the space is unconditional too. Every discrete space is contained in for any of its points, so, for infinite , it is bounded, complete, and not compact all at once (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space).
The cube in is totally bounded, with an explicit finite -net of grid points and no appeal to the integer part
Example
Let with , let with , and let carry the Euclidean metric ( as the set of functions , and , , are metrics on it). The cube
is a totally bounded metric subspace of (Finite -net and totally bounded metric space, Isometry, isometric embedding, and the subspace metric on a subset), and a finite -net can be written down: choose a natural with , put , and take the grid
No integer part and no floor function is used: the index attached to a point of is produced as a least natural meeting an inequality (The well-ordering principle).
Facts & Assumptions
Given: , a real , the cube with the metric restricted to it, and a real .
is a metric on , and is another ( as the set of functions , and , , are metrics on it, Finite sums and finite products, by recursion, Absolute value in an ordered field).
, since each gives using , and squaring is monotone on the nonnegatives (Laws of finite sums and finite products, Squaring is monotone on the nonnegatives, Square roots exist: a unique with ; the positives are , The canonical natural of a field).
A finite -net for a metric space is a finite subset of it with the balls , , covering the space, and total boundedness asks for one at every real ; balls of a subspace are traces of ambient balls (Finite -net and totally bounded metric space, Open ball, closed ball and sphere in a metric space, Isometry, isometric embedding, and the subspace metric on a subset).
A set listed as , that is the image of a function whose domain is a natural number, is finite (Open cover, subcover, compact metric space, and compact subset of a metric space).
Every nonempty subset of has a least element (The well-ordering principle).
For every real there is a natural with ; reciprocals of positives are positive and reverse the order; and integer powers are those of Integer powers (For every in a complete ordered field there is a natural with , Every complete ordered field is Archimedean, Inverses of positives are positive, and reciprocation reverses order).
Verification
Take a natural with , which exists because , and put , so that .
Let be the set of points of each of whose coordinates is for some natural ; every such point lies in , since gives .
is finite: writing a natural in base gives digits , each a natural , and the point with -th coordinate is a function from the natural number onto , so is listed by that function.
Let and ; the set of naturals with is nonempty, containing because , so it has a least element .
Then : if then and also , so the difference is ; and if then minimality gives , so .
Writing for the point of with -th coordinate , step 4.1 gives , hence by step 1.1, so lies in the ball of radius about in the subspace .
So is a finite -net for ; as was arbitrary, is totally bounded.
Remarks
A second proof, and why the explicit one is worth having. is closed and bounded in , hence compact (Heine-Borel in : with the Euclidean metric a subset of is compact if and only if it is closed and bounded, and the proof by bisection uses no choice principle; the same holds on the real line), hence totally bounded (A compact metric space is complete and totally bounded, and neither implication uses any choice principle), which proves the same statement in one line. The explicit grid is given because it exhibits the net rather than asserting that one exists, and because the count of grid points, , shows how the size of a net grows with the dimension — the feature that makes total boundedness a genuinely metric notion rather than a consequence of boundedness (FALSE: a bounded metric space is totally bounded).
Why the least index and not the integer part. The natural choice of is the integer part of , and this library has no integer-part function at this point in the reading order. Taking the least with produces the same index, using only that a nonempty set of naturals has a least element.
In any metric space the range of a convergent sequence together with its limit is compact, worked out for in
Example
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric), let be a sequence in converging to (Convergence of a sequence in a metric space: iff in , Sequences of reals: bounded, eventually, frequently, tails, subsequences), and put
Then is a compact subset of (Open cover, subcover, compact metric space, and compact subset of a metric space).
In with the usual metric (The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded) the sequence converges to , so is compact. The index is written because contains and is undefined (Sequences of reals: bounded, eventually, frequently, tails, subsequences).
Dropping the limit destroys compactness: the range alone is not closed in , and a compact subset is closed (A compact subset of a metric space is closed and bounded).
Facts & Assumptions
Given: A metric space , a sequence in with , and .
is compact exactly when every family of open subsets of with has finitely many members whose union contains , or (A subset of a metric space is open in the subspace metric exactly when it is the trace of an open set of the ambient space, and it is compact as a metric space in its own right exactly when every family of open subsets of the ambient space covering it, indexed or not, has finitely many members covering it, Open cover, subcover, compact metric space, and compact subset of a metric space).
means: for every rational there is with for all (Convergence of a sequence in a metric space: iff in ).
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, Open ball, closed ball and sphere in a metric space).
A function with domain a natural number all of whose values are nonempty sets has a choice function, in ZF (Every natural-number-indexed list of nonempty sets has a choice function on its family of values).
For every real there is a natural with , and for ; in the distance is (For every in a complete ordered field there is a natural with , Every complete ordered field is Archimedean, Inverses of positives are positive, and reciprocation reverses order, The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded, Intervals of : the nine order-convex forms, nondegeneracy, and length, Isometry, isometric embedding, and the subspace metric on a subset).
Verification
Let be a family of open subsets of with .
Since there is with , and openness gives a real with .
Taking a positive rational below , for instance with a natural and , convergence supplies with for every , so for every .
For each the set is nonempty, since ; finite choice applied to that set gives indices with for every , this list being empty when .
Then : the point and every with lie in by steps 2.1 and 3.1, and every with lies in . So finitely many members of the family cover , and is compact.
For the instance in , the terms satisfy for every with , where is a natural with ; so and is compact by the general claim.
Remarks
Finitely many exceptional terms is the whole idea. All but finitely many terms are captured by the single member containing the limit, and the remaining ones are finitely many points, each needing one member. That is why the selection at step 4.1 is over a finite index set and costs nothing (Every natural-number-indexed list of nonempty sets has a choice function on its family of values).
Without the limit point the set is not compact. In the set has in its closure and does not contain it, so it is not closed and hence not compact (A compact subset of a metric space is closed and bounded).
The distance from a point to a nonempty compact set is attained at a point of that set, and two disjoint compact sets are at positive distance
Example
Let be a metric space (Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric), with and the distances from a point to a nonempty set and between two nonempty sets (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space). Then:
- If is nonempty and compact (Open cover, subcover, compact metric space, and compact subset of a metric space) and , there is with : the infimum defining the distance is attained.
- If are nonempty, compact and disjoint, then , and again the value is attained at a point of .
Neither statement holds for arbitrary closed sets, and neither uses a choice principle.
Facts & Assumptions
Given: A metric space , nonempty compact subsets and of , and a point .
For nonempty , and ; an infimum is a lower bound of its set and is at least every lower bound (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space, Greatest lower bound (infimum), Epsilon characterisation of the infimum).
For nonempty the map satisfies , so it is Lipschitz with constant and therefore continuous (, so the distance to a fixed nonempty set is -Lipschitz, Lipschitz map, -Hölder map for rational , and contraction, Contraction implies Lipschitz implies uniformly continuous implies continuous; every Hölder map is uniformly continuous, and a Lipschitz map on a bounded space is Hölder for every exponent, Continuity of a map between metric spaces, at a point and globally, in the - form).
A continuous real-valued function on a nonempty compact metric space attains a least value (A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value); a subset is compact exactly when the corresponding metric subspace is, and the restriction of a continuous map to a subspace is continuous (Open cover, subcover, compact metric space, and compact subset of a metric space, A subset of a metric space is open in the subspace metric exactly when it is the trace of an open set of the ambient space, and it is compact as a metric space in its own right exactly when every family of open subsets of the ambient space covering it, indexed or not, has finitely many members covering it, Isometry, isometric embedding, and the subspace metric on a subset).
A compact subset of a metric space is closed, and lies in the closure of a nonempty exactly when (A compact subset of a metric space is closed and bounded, The closure of a nonempty is , equals together with its limit points, and is the smallest closed superset, Interior, closure, boundary, limit point, isolated point and dense subset of a metric space).
A minimum of a set of reals is a member of it and bounds it below (Maximum and minimum of a set).
Verification
The map , , is the restriction to of , which is Lipschitz with constant and hence continuous; with the restricted metric is a nonempty compact metric space.
So attains a least value at some : for every .
Hence is a lower bound of that belongs to the set, so it is the infimum: , which is claim 1.
For claim 2, the map , , is continuous by the same argument, so it attains a least value at some .
: otherwise would put in the closure of , which equals because is compact and hence closed, contradicting .
: every and satisfy , so is a lower bound of ; and for every , so is a lower bound of and therefore .
Combining, and the value is attained at : claim 2.
Remarks
Compactness is what makes the infimum a minimum. For a merely closed set the infimum need not be attained and disjoint closed sets can be at distance zero; what claim 1 uses is the extreme value theorem, and claim 2 additionally uses that a compact set is closed (A compact subset of a metric space is closed and bounded).
Only one of the two sets has to be compact for the attainment in claim 1, the point playing the role of a one-point compact set. In claim 2 compactness of gives the attainment and closedness of gives the positivity, which is why the proof calls on the two properties in different places.
The cover of by and has Lebesgue number , and no larger one
Example
Work in with its usual metric (The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded) and let carry the restricted metric (Isometry, isometric embedding, and the subspace metric on a subset, Intervals of : the nine order-convex forms, nondegeneracy, and length). Put
so that is an open cover of the compact metric space (Open cover, subcover, compact metric space, and compact subset of a metric space, Heine-Borel in : with the Euclidean metric a subset of is compact if and only if it is closed and bounded, and the proof by bisection uses no choice principle; the same holds on the real line). Then:
- is a Lebesgue number for (Every open cover of a compact metric space has a Lebesgue number: a such that every nonempty subset of diameter less than lies inside a single member of the cover): every nonempty with (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space) is contained in or in .
- No larger works: for every real the set is nonempty with and is contained in neither nor .
Facts & Assumptions
Given: The compact metric space with , and the sets and .
A closed bounded subset of is a compact subset of , and is closed and bounded (Heine-Borel in : with the Euclidean metric a subset of is compact if and only if it is closed and bounded, and the proof by bisection uses no choice principle; the same holds on the real line, Intervals of : the nine order-convex forms, nondegeneracy, and length, Lower bound, bounded below, bounded set).
The sets open in the subspace are the traces on of the open subsets of , and and are open in (A subset of a metric space is open in the subspace metric exactly when it is the trace of an open set of the ambient space, and it is compact as a metric space in its own right exactly when every family of open subsets of the ambient space covering it, indexed or not, has finitely many members covering it, 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, Open ball, closed ball and sphere in a metric space, The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded).
for nonempty bounded , so for all (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space).
A Lebesgue number for an open cover of a compact metric space is a real such that every nonempty subset of diameter less than lies in a single member of the cover; one exists (Every open cover of a compact metric space has a Lebesgue number: a such that every nonempty subset of diameter less than lies inside a single member of the cover).
Verification
and are open in , being the traces of and , and , because a point of is either below , and then in , or at least , and then in .
Let be nonempty with , and suppose first that every satisfies ; then .
Otherwise some has , and then every satisfies , so .
In both cases lies in a single member of , so is a Lebesgue number: claim 1.
For claim 2 let be real and put , a nonempty subset of with for and with attained, so .
because and , and because and ; so no is a Lebesgue number for this cover, and is the largest one: claim 2.
Remarks
The number is exactly the overlap. has length , and that is the Lebesgue number: a set of diameter below the overlap cannot straddle both ends. The example shows that the conclusion of Every open cover of a compact metric space has a Lebesgue number: a such that every nonempty subset of diameter less than lies inside a single member of the cover is sharp, the lemma asserting only that some positive exists.
The strict inequality in the definition matters. The set has diameter exactly and lies in neither member, so a Lebesgue number could not be required to work for subsets of diameter at most .
In the bounded real-valued functions on with the supremum metric, the closed unit ball is closed and bounded and is not compact: the indicator functions of the singletons are pairwise at distance
Statement refuted
Refuted claim: in every metric space a closed and bounded subset is compact (FALSE: a closed and bounded subset of a metric space is compact).
The witness is the space of bounded functions with the supremum metric (The supremum metric is a metric on the bounded real-valued functions on a nonempty set), together with the closed unit ball
about the zero function . The set is closed 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 bounded (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space), and it is not compact (Open cover, subcover, compact metric space, and compact subset of a metric space): the indicator functions of the singletons lie in and satisfy whenever , so no finite -net for can exist.
This is the same failure as in FALSE: a closed and bounded subset of a metric space is compact, in the space where it matters analytically: closed bounded sets of a function space are routinely not compact.
Facts & Assumptions
Given: The set of bounded functions with the supremum metric , the zero function , the closed unit ball , and for the function with and for .
is a metric on , and the supremum is a member-free upper bound that is least among upper bounds (The supremum metric is a metric on the bounded real-valued functions on a nonempty set, Lower bound, bounded below, bounded set, Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
The closed ball is closed, and a subset contained in a ball is bounded (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 metric topology: a set is open when every one of its points has a ball around it inside the set; closed means open complement, Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space).
A compact metric space is totally bounded; a subset is compact exactly when the metric subspace is; and a finite -net is a finite subset whose -balls cover the space (A compact metric space is complete and totally bounded, and neither implication uses any choice principle, Finite -net and totally bounded metric space, Open cover, subcover, compact metric space, and compact subset of a metric space, A subset of a metric space is open in the subspace metric exactly when it is the trace of an open set of the ambient space, and it is compact as a metric space in its own right exactly when every family of open subsets of the ambient space covering it, indexed or not, has finitely many members covering it).
Every nonempty subset of has a least element (The well-ordering principle).
is not equinumerous with any natural number, a subset of bounded above is finite, and an injection puts its domain in bijection with its image (The pigeonhole principle on , Every subset of an at most countable set is at most countable, Finite, countably infinite, countable, uncountable, Injection, surjection, bijection, Sequences of reals: bounded, eventually, frequently, tails, subsequences, The natural numbers (von Neumann)).
Counterexample
Each is a bounded function , its range being contained in , so ; and , so .
For the set is , since the value is at and at and elsewhere; hence .
is the closed ball , hence closed in , and it is contained in , hence bounded.
Suppose had a finite -net ; then is empty or listable as , and it is not empty because contains . Define by letting be the least with , which exists because the -balls about the cover and .
is injective: if with , then , contradicting step 2.1.
So is in bijection with , a subset of bounded above by and therefore finite, making equinumerous with a natural number, which is false.
Hence has no finite -net, so is not totally bounded and therefore not compact, while being closed and bounded by step 2.2; the claim of FALSE: a closed and bounded subset of a metric space is compact is refuted.
Remarks
What goes wrong is room, not size. The ball has diameter , so it is small in the metric sense; but it contains infinitely many points that are pairwise at distance , so no finite family of small balls reaches all of them. That is exactly the failure of total boundedness, and it is one of the two conditions that, by For a metric space, compact, countably compact, limit point compact, sequentially compact, and complete together with totally bounded are all equivalent, given countable choice and dependent choice, are together equivalent to compactness once the Axiom of Countable Choice and the Axiom of Dependent Choice are assumed.
What the argument does and does not settle. It shows that fails total boundedness, and that alone rules out compactness by [L3]. Nothing above is claimed about whether is complete; the point of the witness is that closedness and boundedness, the two conditions that suffice in (Heine-Borel in : with the Euclidean metric a subset of is compact if and only if it is closed and bounded, and the proof by bisection uses no choice principle; the same holds on the real line), do not suffice here.
with the discrete metric is bounded and is not totally bounded
Statement refuted
Refuted claim: every bounded metric space is totally bounded (FALSE: a bounded metric space is totally bounded).
The witness is (The natural numbers (von Neumann)) with the discrete metric for and for (With the discrete metric for , a space is compact iff it is totally bounded iff it is finite, and it is complete whatever its size). It is bounded (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space), lying inside the ball ; it is not totally bounded (Finite -net and totally bounded metric space), because a finite -net would have to be the whole of , which is not finite.
The full verification is carried out in FALSE: a bounded metric space is totally bounded, where the metric axioms, the identity and the impossibility of listing are all checked. This item records the witness and says what makes it work.
Facts & Assumptions
Given: The set with the discrete metric , and the false claim that every bounded metric space is totally bounded.
The refuted claim: every bounded metric space is totally bounded.
is a metric on ; for ; and , so the space is bounded (FALSE: a bounded metric space is totally bounded, With the discrete metric for , a space is compact iff it is totally bounded iff it is finite, and it is complete whatever its size, Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric, Open ball, closed ball and sphere in a metric space, Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space).
A finite -net is a finite with the balls , , covering ; a nonempty finite set can be listed (Finite -net and totally bounded metric space, Open cover, subcover, compact metric space, and compact subset of a metric space, Finite, countably infinite, countable, uncountable).
A nonempty finite set of reals has a maximum, one of its members, and for every real there is a natural with , being the canonical natural of (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set, Every complete ordered field is Archimedean, The canonical natural of a field).
Counterexample
is a bounded metric space, since for every gives .
If were a finite -net, then , so would be finite and, being nonempty, listable as .
The reals then have a maximum , while a natural with satisfies , hence , for every ; so is a natural number outside , which is impossible.
So no finite -net exists and is not totally bounded, while being bounded by step 1.1; the claim [A1] is refuted.
Remarks
The implication that does hold is the converse. A totally bounded metric space is bounded (A totally bounded metric space is bounded, every subspace of a totally bounded space is totally bounded, and the closure of a totally bounded subset is totally bounded), so this witness also shows that claim 1 of that lemma does not reverse.
The same space refutes more. It is closed in itself and bounded and not compact, which is the witness recorded in FALSE: a closed and bounded subset of a metric space is compact, and it is complete, so no one of boundedness, closedness and completeness, nor all three together, implies compactness (With the discrete metric for , a space is compact iff it is totally bounded iff it is finite, and it is complete whatever its size).
The open interval is totally bounded and not compact, the cover by the intervals having no finite subcover
Statement refuted
Refuted claim: every totally bounded metric space is compact (FALSE: a totally bounded metric space is compact).
The witness is the interval (Intervals of : the nine order-convex forms, nondegeneracy, and length) as a metric subspace of , (The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded, Isometry, isometric embedding, and the subspace metric on a subset). It is totally bounded (Finite -net and totally bounded metric space), the points for forming a finite net of mesh ; and it is not compact (Open cover, subcover, compact metric space, and compact subset of a metric space), the family
having union and no finite subfamily with that union. The index is written because contains , so that for every and each is a nonempty subinterval of .
The full verification is carried out in FALSE: a totally bounded metric space is compact; this item records the witness and says what makes it work.
Facts & Assumptions
Given: The interval with the metric restricted to it, and the sets for .
The refuted claim: every totally bounded metric space is compact.
with the restricted metric is totally bounded, and the family consists of open subsets of contained in with union , no finitely many of which have union (FALSE: a totally bounded metric space is compact, Finite -net and totally bounded metric space, Intervals of : the nine order-convex forms, nondegeneracy, and length, 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, Open ball, closed ball and sphere in a metric space, 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).
A subset of a metric space is compact exactly when every family of open subsets of the ambient space whose union contains has finitely many members whose union contains (A subset of a metric space is open in the subspace metric exactly when it is the trace of an open set of the ambient space, and it is compact as a metric space in its own right exactly when every family of open subsets of the ambient space covering it, indexed or not, has finitely many members covering it, Open cover, subcover, compact metric space, and compact subset of a metric space).
A nonempty finite set of reals has a minimum, one of its members (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).
For every real there is a natural with , and reciprocals of positives are positive and reverse the order (For every in a complete ordered field there is a natural with , Every complete ordered field is Archimedean, Inverses of positives are positive, and reciprocation reverses order).
Counterexample
with the restricted metric is a totally bounded metric space.
The family consists of open subsets of and has union : given , a natural with gives , so .
Given finitely many members , put , a positive real; each is contained in because , so the union of the finite subfamily lies in , while satisfies and , so lies in no .
Hence no finitely many of the have union containing , so is not a compact subset of , that is not a compact metric space, while being totally bounded by step 1.1; the claim [A1] is refuted.
Remarks
What the witness lacks is completeness. A compact metric space is complete (A compact metric space is complete and totally bounded, and neither implication uses any choice principle, Complete metric space: every Cauchy sequence converges in the space), and is not: the terms form a Cauchy sequence in it whose only candidate limit in is , a point the space omits. Adding completeness to total boundedness does restore compactness, at the cost of the Axiom of Countable Choice (A complete, totally bounded metric space is compact, proved from countable choice used exactly once).
The same cover fails to have a Lebesgue number, which is the other thing compactness would have supplied (The cover of by the intervals has no Lebesgue number, so the Lebesgue number lemma needs compactness).
On the identity is bounded with no greatest value and is continuous and unbounded, so the extreme value theorem needs compactness and not merely boundedness of the domain
Statement refuted
Refuted claim: a continuous real-valued function on a nonempty bounded metric space is bounded and attains a greatest value.
The true statement replaces bounded by compact (A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value), and the difference is not cosmetic. The witness is the interval (Intervals of : the nine order-convex forms, nondegeneracy, and length) as a metric subspace of (The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded), which is bounded (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space) and not compact (The open interval is totally bounded and not compact, the cover by the intervals having no finite subcover), together with two continuous functions on it (Continuity of a map between metric spaces, at a point and globally, in the - form):
- the identity , which is bounded, has supremum , and attains no greatest value;
- the map , which is continuous and unbounded.
So on a merely bounded domain a continuous function may fail to attain its supremum, and may fail to be bounded at all.
Facts & Assumptions
Given: The interval with the metric restricted to it, and the functions and on it.
The refuted claim: a continuous real-valued function on a nonempty bounded metric space is bounded and attains a greatest value.
is a nonempty bounded metric subspace of , , and it is not compact (The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded, Isometry, isometric embedding, and the subspace metric on a subset, Intervals of : the nine order-convex forms, nondegeneracy, and length, Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space, The open interval is totally bounded and not compact, the cover by the intervals having no finite subcover, Open cover, subcover, compact metric space, and compact subset of a metric space, Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
is continuous at when for every real there is a real with whenever (Continuity of a map between metric spaces, at a point and globally, in the - form).
for a nonempty bounded above exactly when is an upper bound and for every real some has ; a maximum is a member of the set that bounds it above (Epsilon characterisation of the supremum, Maximum and minimum of a set, Lower bound, bounded below, bounded set, Complete ordered field (least-upper-bound property)).
For every real there is a natural with , for every real a natural with , and reciprocals of positives are positive and reverse the order (Every complete ordered field is Archimedean, For every in a complete ordered field there is a natural with , Inverses of positives are positive, and reciprocation reverses order).
A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value (A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value).
Counterexample
The identity is continuous on , serving at every point, and its image is , which is bounded above by and below by .
: the value is an upper bound, and for a real the point lies in and satisfies .
attains no greatest value: for the point lies in and satisfies , so no member of the image bounds the image above.
is defined on , every there being positive, and it is continuous at each : given a real , the choice gives, for , first and then .
is unbounded on : given a real , take a natural with ; the point lies in and .
So on the nonempty bounded non-compact space the continuous function is bounded and attains no greatest value, and the continuous function is not even bounded; the claim [A1] is refuted, and the compactness hypothesis of the extreme value theorem cannot be weakened to boundedness.
Remarks
Which hypothesis each failure isolates. The identity shows that the attainment half of A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value fails on a bounded non-compact domain even for a bounded function; the map shows that the boundedness half fails too. Compactness is what supplies both, through the image being closed and bounded (The image of a compact metric space under a continuous map is compact, and so is the image of any compact subset, A compact subset of a metric space is closed and bounded).
Closing the interval repairs the first example and rules out the second. On , which is compact (Heine-Borel in : with the Euclidean metric a subset of is compact if and only if it is closed and bounded, and the proof by bisection uses no choice principle; the same holds on the real line), the identity attains the value . The map has no continuous extension to at all: such an extension would be bounded by [L5], whereas its restriction to is unbounded by step 5.1. So the failure of the second example is a failure of the domain, not of the theorem.
is continuous on and not uniformly continuous, so Heine-Cantor needs compactness of the domain
Statement refuted
Refuted claim: a continuous map from a bounded metric space to a metric space is uniformly continuous.
The true statement replaces bounded by compact (Heine-Cantor: a continuous map from a compact metric space to any metric space is uniformly continuous). The witness is on the interval (Intervals of : the nine order-convex forms, nondegeneracy, and length), a metric subspace of (The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded) that is bounded and not compact (The open interval is totally bounded and not compact, the cover by the intervals having no finite subcover). The map is continuous (Continuity of a map between metric spaces, at a point and globally, in the - form) and is not uniformly continuous (Uniform continuity of a map of metric spaces: one serving every point): the pairs
lie in , satisfy , and yet for every . The indices are written and because contains (Sequences of reals: bounded, eventually, frequently, tails, subsequences), so that both points lie in already at .
Facts & Assumptions
Given: The interval with the metric restricted to it, the map on it, and the points and .
The refuted claim: a continuous map from a bounded metric space to a metric space is uniformly continuous.
is a bounded metric subspace of and is not compact (The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded, Isometry, isometric embedding, and the subspace metric on a subset, Intervals of : the nine order-convex forms, nondegeneracy, and length, The open interval is totally bounded and not compact, the cover by the intervals having no finite subcover, Open cover, subcover, compact metric space, and compact subset of a metric space, Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
is continuous at when for every real there is a real with whenever ; it is uniformly continuous when one works for all pairs at once (Continuity of a map between metric spaces, at a point and globally, in the - form, Uniform continuity of a map of metric spaces: one serving every point).
For every real there is a natural with ; canonical naturals are positive and increasing, and reciprocals of positives are positive and reverse the order (For every in a complete ordered field there is a natural with , Every complete ordered field is Archimedean, Inverses of positives are positive, and reciprocation reverses order, The canonical natural of a field).
A continuous map from a compact metric space to a metric space is uniformly continuous (Heine-Cantor: a continuous map from a compact metric space to any metric space is uniformly continuous).
Counterexample
is continuous at each : given a real , the choice gives, for with , first and then .
For every the points and lie in , since and make both reciprocals positive and below .
for every , because .
, and given a real a natural with gives .
So no real witnesses uniform continuity at : by step 3.2 some pair of points of has , while step 3.1 gives , which is not less than .
Hence is a continuous map on the bounded, non-compact space that is not uniformly continuous, and the claim [A1] is refuted: the compactness hypothesis of Heine-Cantor cannot be weakened to boundedness.
Remarks
Where the argument would break on a compact domain. On the same pairs converge to , and any continuous function there is uniformly continuous [L4]; the map escapes that only because is missing from its domain, so the values are free to run away as the arguments approach the missing point.
The failure is exactly the failure of a Lebesgue number. The proof of Heine-Cantor: a continuous map from a compact metric space to any metric space is uniformly continuous turns pointwise continuity into uniform continuity by producing one radius that works everywhere, and the cover of used in The cover of by the intervals has no Lebesgue number, so the Lebesgue number lemma needs compactness shows that no such radius exists here.
The cover of by the intervals has no Lebesgue number, so the Lebesgue number lemma needs compactness
Statement refuted
Refuted claim: every open cover of a metric space has a Lebesgue number, that is a real such that every nonempty subset of diameter less than lies inside a single member of the cover.
The true statement carries a compactness hypothesis (Every open cover of a compact metric space has a Lebesgue number: a such that every nonempty subset of diameter less than lies inside a single member of the cover). The witness is the interval (Intervals of : the nine order-convex forms, nondegeneracy, and length) as a metric subspace of (The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded), which is not compact (The open interval is totally bounded and not compact, the cover by the intervals having no finite subcover), covered by
For every real the interval with is a nonempty subset of of diameter at most (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space) that lies inside no .
Facts & Assumptions
Given: The interval with the metric restricted to it, and the sets for .
The refuted claim: every open cover of a metric space has a Lebesgue number.
is a metric subspace of that is not compact, and the family consists of sets open in it with union (The absolute value makes a metric space: is a metric, its open balls are the intervals , and it is unbounded, Isometry, isometric embedding, and the subspace metric on a subset, Intervals of : the nine order-convex forms, nondegeneracy, and length, 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, The open interval is totally bounded and not compact, the cover by the intervals having no finite subcover, Open cover, subcover, compact metric space, and compact subset of a metric space, Metric space: iff , symmetry, and the triangle inequality; pseudometric and ultrametric).
for nonempty bounded , so any upper bound of the distances bounds the diameter (Bounded subset, diameter, distance from a point to a set, and distance between two sets in a metric space).
A Lebesgue number for a cover is a real such that every nonempty subset of diameter less than lies inside a single member of the cover; a compact metric space has one for every open cover (Every open cover of a compact metric space has a Lebesgue number: a such that every nonempty subset of diameter less than lies inside a single member of the cover).
For every real there is a natural with , and reciprocals of positives are positive and reverse the order (For every in a complete ordered field there is a natural with , Every complete ordered field is Archimedean, Inverses of positives are positive, and reciprocation reverses order).
Counterexample
The family is an open cover of : each is the trace on of an open subset of and is contained in , and any admits a natural with , whence and .
Let be real, put and ; then , is a nonempty subset of , and every satisfy , so .
is contained in no : for a given the real satisfies , so , and it satisfies , so .
So no real is a Lebesgue number for this cover, and the claim [A1] is refuted; since is not compact, the compactness hypothesis of the Lebesgue number lemma is not removable.
Remarks
What goes wrong. The members of the cover grow towards but none of them reaches down to , so a set clinging to of any positive diameter is never captured whole. On a compact space the finitely many members of a subcover put a uniform floor under this, and that floor is the Lebesgue number (Every open cover of a compact metric space has a Lebesgue number: a such that every nonempty subset of diameter less than lies inside a single member of the cover).
The same cover shows non-compactness directly, having no finite subcover (The open interval is totally bounded and not compact, the cover by the intervals having no finite subcover), and the failure of uniform continuity of on is the analytic face of the same phenomenon ( is continuous on and not uniformly continuous, so Heine-Cantor needs compactness of the domain).
Sources
Standard references
Recommended treatments; not extraction sources.
- Discrete space (Wikipedia)
- Totally bounded space (Wikipedia)
- Heine-Borel theorem (Wikipedia)
- Compact space (Wikipedia)
- W. Rudin, Principles of Mathematical Analysis, 3rd ed., Ch. 2 (Example 2.21(e))
- Extreme value theorem (Wikipedia)
- Lebesgue's number lemma (Wikipedia)
- Uniform norm (Wikipedia)
- Heine-Cantor theorem (Wikipedia)
- Uniform continuity (Wikipedia)