The phrase “compact sets behave as finite sets” or “compactness is the property that replaces finiteness for infinite sets” is common in analysis and topology. My goal in this post is to flesh out this idea: in which precise way does compactness serve as a substitute for finiteness?
Let us begin by noting that the modern concept of compactness is the summit of a decades-long evolution, starting with B. Bolzano’s 1817 paper, in which he recognized the importance of what we now call the least upper bound property (Dedekind’s completeness) of the real numbers. Bolzano’s own statement reads:
“If a property does not belong to all values of a variable
, but does belong to all values which are less than a certain
, then there is always a quantity
which is the greatest of those of which it can be asserted that all smaller
have property
“.
Bolzano used this property as a stepping stone in his proof of the Intermediate Value Theorem (IVT) for continuous functions on an interval. His work remained largely unknown until Weierstrass presented a similar result in his lectures around 1860.
The least upper bound property readily implies the following:
Theorem (Bolzano-Weierstrass). Every bounded sequence of real numbers contains a convergent subsequence.
The theorem is trivial if the range of the sequence is finite: by the pigeonhole principle, some value repeats infinitely often, yielding a constant convergent subsequence. The general case can be proved by successive bisection of any interval in which the range of the sequence is contained. At each step, we keep the half that contains infinitely many terms of the sequence. A convergent subsequence is then obtained by choosing terms from successively smaller intervals. The limit of this subsequence is the least upper bound of the sequence of left endpoints (or the greatest lower bound of the right endpoints), whose existence is guaranteed by completeness. Bisection was Bolzano’s favorite method of proof.
For completeness, we recall the theorem that motivated Bolzano:
Theorem (IVP, Bolzano, Cauchy, Weierstrass): If is a continuous function in some interval
and the numbers
and
are in its range, then the whole interval
is in its range (in other words, all intermediate values
with
are achieved).
The Bolzano–Weierstrass theorem is instrumental in proving existence results of this type. The common feature is that a desired real number must be constructed via a limit process, especially when no monotonicity is available and a subsequence suffices.
In the case of IVP, the fact that the “intermediate point” where
lies in the domain follows from the domain being an interval (more abstractly, from connectedness). However, other fundamental results require the additional assumption of closedness to ensure that the limit point belongs to the original set. A prime example is the Extreme Value Property:
Theorem (EVP, Weierstrass, 1850-60) A continuous function on a closed, bounded interval attains its maximum and its minimum.
The key word here is, of course, “attains”. To construct the point where, say, the maximum is achieved, the Bolzano-Weierstrass property can be applied to a maximizing sequence but we also need the limit point to be in the domain, and that can be guaranteed if the interval is closed. A function like on
does not achieve its maximum.
Any function whose domain is a finite set trivially achieves its maximum and its minimum. In other words, one can always pick the max and the min of a finite set of numbers. Such property is false for general infinite sets . It turns out, however, that the same is true for continuous functions if the domain is both bounded and closed.
Combining the IVP and the EVP, we conclude that the continuous image of an interval is another bounded and closed interval
where
and
.
The above considerations naturally lead to the concept of compact set of real numbers as a set which is both bounded and closed. Boundedness guarantees the existence of a convergent subsequence of points whose limit satisfies certain property; closedness ensures that the limit point remains in the set.
This is a vivid illustration of the principle put forward by Imre Lakatos in “Proofs and Refutations”: new concepts arise from the process of constructing formal proofs through a sequence of guesses, each refuted by counterexamples, until all gaps are filled. Along the way, assumptions are added to guarantee correctness, and proof-generated definitions emerge by combining the necessary assumptions – what Lakatos called “monster-barring.”
In many instances in Analysis, it is not about constructing a limit element but about proving that a local property is actually global. Usually, a property being global depends on the possibility of choosing a universal object in the sense that it works locally at every point of the given (infinite, possibly continuous) domain. The following theorem illustrates this beautifully:
Theorem (Heine – Cantor): A continuous function on a bounded, closed interval is uniformly continuous. More generally, a continuous function on a compact domain is uniformly continuous.
We recall that uniform continuity is about the possibility of choosing, for each , some
such that, whenever
,
. Plain continuity requires only that for each
and
, such
exists depending on both
and
.
Uniform continuity is obvious for functions defined on a finite domain, as we can just choose smaller than the minimum of pairwise distances between the points (so any interval of length less than
contains at most one point). For infinite domains, particularly for continuous domains like the closed interval in the theorem the property is not obvious. Here is a sketch of a proof by contradiction, where the role of compactness is key.
Assume the opposite. Negating the definition of uniform continuity means there exists some specific such that for every
, we can find two sequences
and
in the domain satisfying:
Next, we use compactness (that is, Bolzano-Weierstrass plus closedness) to extract a convergent subsequence . Let
with
. Next, we observe that
obviously, since
.
Finally, we use continuity at to derive a contradiction. Namely,
.
Consequently, , contradicting our original assumption and proving the statement.
The key idea here is constructing a final, “limit” point to which the local property applies, preventing the sequence of ‘s to vanish.
This notion of compactness based on the Bolzano-Weierstrass property generalizes naturally to metric spaces. In this setting, a metric space is called compact if every sequence in
has a convergent subsequence with respect to
. This is the definition introduced by M. Fréchet in his 1906 thesis and it is now known as sequential compactness. Fréchet’s goal was to extend the Extreme Value Theorem to abstract spaces, just as Bolzano’s earlier work on the Intermediate Value Theorem motivated his own foundational results.
Examples of compact metric spaces are: finite subsets of a metric space, closed and bounded intervals in , closed and bounded subsets of
, closed subsets of a compact space, finite unions and arbitrary intersections of compact subsets, etc.
In infinite-dimensional spaces, compactness is strictly stronger than boundedness + closedness. Compact subsets of infinite-dimensional spaces are more rare and special. To get compactness, you must add a strict condition that forces the set to be “finite-dimensional in behavior” (meaning its elements must be uniformly small in the infinitely many directions). A paradigmatic example is the Hilbert cube
considered as a metric subspace of . Yet another example, this one in the space of continuous functions
with the uniform metric, is any equibounded and equicontinuous sets of functions, by the Arzelà – Ascoli theorem. For instance, an equibounded set of functions satisfying a uniform Lipschitz condition
for some and arbitrary
is compact.
For the Hilbert cube, shrinking bounds on coordinates provide such uniform control along dimensions. In contrast, the unit ball in is not compact, as one can pick a sequence of equidistant unit vectors not containing a convergent subsequence. In the
example, the Lipschitz-type condition provides the exact uniform control needed to prevent uncontrolled “oscillations.”
Examples of non-compact subsets are: any non-closed or unbounded subset in any metric space, the subset of functions ,
in
, the unit ball in any infinite-dimensional space, etc.
A different point of view on compactness, which historically ran parallel to the above “sequential” one originated with Dirichlet (1850’s), Heine (1870’s) and formalized by Borel (1890’s) is related to the concept of cover/subcover. Namely, in the proof given by Dirichlet of the last theorem above he used the following fact implicitly: if a closed, bounded interval is covered by intervals, then a finite subcover can be extracted. In this concrete application, we can cover the given interval with open neighborhoods of radius
centered at each
. The key idea is that the interval can then be covered by a finite number of such neighborhoods and then the smallest of the resulting
‘s can be chosen as the universal one (some minor technical details are omitted here). We can say that a subset of the reals has the “Heine-Borel” property if from any given open cover a finite subcover can be extracted.
This property is trivial for finite sets. Indeed, consider a finite set of points, say . If you cover the set
with any number of open sets (even infinitely many!), you can obviously go through this collection and pick out just three of the covering open sets: one that covers
, one that covers
, and one that covers
. Finiteness thus guarantees the Heine – Borel property.
For infinite sets, the property is far from trivial. Eventually, it was realized that for metric spaces, sequential compactness and the Heine – Borel property are equivalent. However, it is the covering definition that has become the standard in general topology. The reason is that sequences are not powerful enough to detect compactness or closedness in arbitrary (non-metric) topological spaces. In spaces that are not first-countable (where points may lack a countable neighborhood basis) sequences are “blind” to some topological structure. A classic counterexample is the product of uncountably many copies of ,
(in other words, the set of all functions
) with the product topology, which is a compact space (by the Tychonoff Theorem, a cornerstone of topology which states that the product of compact spaces is compact), but where most sequences do not contain convergent subsequences.
The Russian topologists Pavel Alexandrov (1896–1982) and Pavel Urysohn (1898–1924) are widely credited with establishing the modern definition: a space is compact if every open cover has a finite subcover. They recognized this as the most robust and powerful formulation – one that yields the strongest theorems, including Tychonoff’s theorem and Urysohn’s Lemma.
Compactness of a generic set depends on the topology. However, finite sets are guaranteed to be compact no matter what the topology on the space might be. On the other hand, if the topology is the discrete topology, in which every set is open, compact sets are necessarily finite. Since we usually deal with coarser topologies, larger families of compact subsets arise. Yet another way to understand this is by noticing that, having less open sets, it becomes easier for an open cover to contain a finite subcover.
Thus, from Bolzano’s bisection to Tychonoff’s theorem, the driving idea remains constant: compactness is the topological device that lets us treat infinite domains with the same certainty we reserve for finite ones – provided we choose the right topology for the job.

























