Concise answer
In Euclidean space, compact means closed and bounded, and that single equivalence answers most exam items after two quick checks. Outside Euclidean space the definition that survives is the covering one — every open cover has a finite subcover — and the reason compactness matters is what it gives continuous functions: attained maxima and minima, uniform continuity, and compact images.
Definitions
- Metric
- A function on a set with exactly when , , and .
- Open set
- A set such that every has some radius with the ball contained in .
- Closed set
- A set whose complement is open; equivalently, a set that contains all of its limit points. 'Closed' is not the negation of 'open': is neither and is both.
- Compact set
- A set for which every open cover has a finite subcover. In this is equivalent to being closed and bounded.
- Connected set
- A set that cannot be written as the union of two disjoint nonempty subsets that are both open in it. In the connected sets are exactly the intervals.
- Complete metric space
- A space in which every Cauchy sequence converges to a point of the space. Completeness depends on the metric, not on the topology alone.
Intuition
Compactness is a finiteness surrogate. A finite set has no room for a sequence to escape, and no cover of it needs infinitely many pieces; compactness gives an infinite set those same two conveniences, which is why the theorems that fail on — attained maxima, uniform continuity — hold on . The set fails because the cover has no finite subcover: the escape route toward is never closed off.
Closed and bounded are two independent leaks, and Heine-Borel says that in plugging both is enough. Outside that is false: an infinite set under the discrete metric (distance between distinct points) is closed and bounded, yet the cover by all balls of radius has no finite subcover. Remembering that one counterexample is what keeps the equivalence from being over-applied.
Concept walkthrough
A metric is only four conditions — nonnegativity with iff , symmetry, and the triangle inequality — and everything topological is defined from the balls it generates. A set is open when each of its points sits inside a ball contained in the set, and closed when its complement is open. Two habits prevent most errors here: 'closed' is not 'not open' (in , is neither, while and are both), and openness is relative to the ambient space, so is open as a subset of itself.
Compactness has three faces on this exam. The covering definition — every open cover admits a finite subcover — is the one that generalises and the one to use when the space is unfamiliar. Sequential compactness — every sequence has a subsequence converging inside the set — is usually the easiest to disprove. Heine-Borel ties both to 'closed and bounded' in only. Compact always implies closed and bounded in any metric space, so a set that fails either condition is immediately non-compact; but a closed bounded set outside may still fail to be compact.
The payoff is in the theorems that need compactness as a hypothesis. A continuous image of a compact set is compact, so a continuous real function on a compact set is bounded and attains its maximum and minimum; a continuous function on a compact set is automatically uniformly continuous. Connectedness carries its own transfer rule: a continuous image of a connected set is connected, which is exactly the intermediate value theorem once you know that the connected subsets of are the intervals. When an exam item asserts a property of on a set, first ask whether the set is compact, connected, both, or neither — the hypothesis being tested is almost always one of those.
After this page, you should be able to
- Decide whether a given subset of or is open, closed, both, or neither, by checking interior points and limit points.
- Apply the Heine-Borel characterisation correctly and state where it stops applying.
- Produce an explicit open cover with no finite subcover to prove a set is not compact.
- Use compactness to justify attained extrema, uniform continuity, and compact images under continuous maps.
- Test connectedness in by the interval criterion and in by exhibiting paths.
Formulas and assumptions
Open ball
Variables
- x: the centre
- r: a positive radius
- d: the metric on X
Assumptions
- r > 0.
- The inequality is strict, so the ball is always an open set.
Heine-Borel (Euclidean space only)
Variables
- K: the subset under test
- n: the Euclidean dimension
Assumptions
- The ambient space is R^n with the usual metric.
- In a general metric space only the forward direction holds.
Covering definition of compactness
Variables
- K: the set being tested
- {G_i}: a family of open sets whose union contains K
Assumptions
- This definition applies in any metric or topological space.
- Disproving compactness needs one explicit cover with no finite subcover.
Continuity by preimages
Variables
- f: a map between metric spaces
- U: an arbitrary open set in the codomain
Assumptions
- Preimages, not images: a continuous map need not send open sets to open sets.
Worked example
One set is compact, its subset is not
Let and . Show that is compact and that is not.
- 1Both sets lie in , so both are bounded and Heine-Borel reduces the question to whether each is closed.
- 2The only limit point of is , because any point has a ball around it meeting the sequence in at most finitely many terms. Since , the set contains all its limit points and is closed; by Heine-Borel it is compact.
- 3Direct covering check for : given an open cover, some member contains , so for some , and already contains every with . Only finitely many points remain, and one cover member for each of them completes a finite subcover.
- 4 omits , which is a limit point of , so is not closed and therefore is not compact.
- 5Explicit cover proving it: let for . Then exactly when , so ; any finite subfamily has a largest index and misses .
is closed and bounded, hence compact, and every open cover of it reduces to a finite one. is bounded but not closed, and the cover has no finite subcover, so is not compact.
Common traps
- Applying Heine-Borel outside : an infinite set with the discrete metric is closed and bounded but not compact.
- Reading 'not open' as 'closed'. In the set is neither, and and are both.
- Claiming a continuous map sends open sets to open sets, or closed sets to closed sets — only preimages of open sets are guaranteed open, and maps the closed set onto the non-closed set .
- Treating boundedness as compactness and concluding that a continuous function on must attain a maximum; is the standing counterexample.
- Assuming completeness is a topological property: and are homeomorphic, yet is complete with the usual metric and is not.
Related pages and practice
Question depth and domain coverage vary by exam. Practice answers are checked after submission.
Sources
- GRE Subject Test Content and Structure — ETS. Accessed 2026-07-06. Use as a cited source for exam facts; do not imply affiliation or reproduce protected test material.
- Mathematical Analysis (Zakon), Section 3.7: Metric Spaces — LibreTexts Mathematics. Accessed 2026-08-15. Zakon's Mathematical Analysis on LibreTexts is CC BY 3.0; attribute the author and platform and avoid verbatim reuse beyond short cited references.
- Mathematical Analysis (Zakon), Section 3.8: Open and Closed Sets. Neighborhoods — LibreTexts Mathematics. Accessed 2026-08-15. Zakon's Mathematical Analysis on LibreTexts is CC BY 3.0; attribute the author and platform and avoid verbatim reuse beyond short cited references.
- Mathematical Analysis (Zakon), Section 4.6: Compact Sets — LibreTexts Mathematics. Accessed 2026-08-15. Zakon's Mathematical Analysis on LibreTexts is CC BY 3.0; attribute the author and platform and avoid verbatim reuse beyond short cited references.
- Mathematical Analysis (Zakon), Section 4.7: More on Compactness — LibreTexts Mathematics. Accessed 2026-08-15. Zakon's Mathematical Analysis on LibreTexts is CC BY 3.0; attribute the author and platform and avoid verbatim reuse beyond short cited references.
- Mathematical Analysis (Zakon), Section 4.8: Continuity on Compact Sets. Uniform Continuity — LibreTexts Mathematics. Accessed 2026-08-15. Zakon's Mathematical Analysis on LibreTexts is CC BY 3.0; attribute the author and platform and avoid verbatim reuse beyond short cited references.
- Mathematical Analysis (Zakon), Section 4.10: Arcs and Curves. Connected Sets — LibreTexts Mathematics. Accessed 2026-08-15. Zakon's Mathematical Analysis on LibreTexts is CC BY 3.0; attribute the author and platform and avoid verbatim reuse beyond short cited references.
Sources and corrections
Sources last checked 2026-08-15Every source cited on this page was checked on the date shown, and we update the page when a source changes. If something looks wrong, tell us and we'll recheck it.