All articles
9 min read

Heine–Borel Theorem: Where Closed and Bounded Means Compact

The Heine–Borel theorem says a subset of ℝⁿ is compact exactly when it is closed and bounded. It fails in incomplete and infinite-dimensional spaces; CSIR-UGC NET names it and GATE tests compactness.

By Sunil Bansal, Founder · Updated 28 Oct 2026

A student sits at a desk studying overlapping paper discs laid over a strip of paper in a small tray.

Key takeaways

  • In ℝⁿ, a set is compact exactly when it is closed and bounded. Outside ℝⁿ, "closed and bounded" no longer guarantees compactness.
  • Compact means every open cover has a finite subcover. The statement "a finite cover exists" is true of every set and proves nothing.
  • The CSIR-UGC NET syllabus lists the Heine–Borel theorem by name. The GATE Mathematics syllabus lists compactness in metric spaces and in topology, so prepare the open-cover, sequential and limit point forms of compactness.
  • A full proof has three parts: closed intervals are compact, boxes are compact, and a closed subset of a compact set is compact.
In this article
  1. 1What does the Heine–Borel theorem say, and what does compact mean?
  2. 2Which exams test the Heine–Borel theorem, and in what form?
  3. 3Where does "closed and bounded" fail to give compact?
  4. 4How do you prove the Heine–Borel theorem in an exam?
  5. 5Why is the theorem named after Heine and Borel?
  6. 6Who teaches Real Analysis, where compactness sits, at SBTech Math?
  7. 7Frequently asked questions

The theorem fits on one line, and most errors about it come from treating that line as the definition of compactness. It is not the definition. Compactness is defined through open covers, and "closed and bounded" is a shortcut that happens to work in ℝⁿ, ordinary n-dimensional space.

That is why the shortcut needs care. A student who has memorised "closed and bounded means compact" gets stuck the first time a question uses a sequence space, or a distance function in which every set is bounded. In those settings the shortcut is false.

This page gives the statement, a proof you can write out in an exam, and a table of seven sets where the shortcut holds or fails. It also sets out what two official syllabi say. CSIR-UGC NET (Council of Scientific and Industrial Research and University Grants Commission National Eligibility Test) names the theorem. GATE (Graduate Aptitude Test in Engineering) lists compactness under metric spaces and topology. We teach Real Analysis for both exams.

What does the Heine–Borel theorem say, and what does compact mean?

The Heine–Borel theorem says that a subset of ℝⁿ is compact if and only if it is closed and bounded (Rudin, Principles of Mathematical Analysis, Theorem 2.41). A set is compact when every open cover of it has a finite subcover.

An open cover of a set K is any collection of open sets whose union contains K. A finite subcover is a finite part of that collection that still contains K. Closed means the set contains all its limit points. Bounded means the set fits inside some ball of finite radius.

The common slip is to read "compact" as "can be covered by finitely many open sets". Every set can: ℝ is covered by the single open set ℝ. Compactness asks for much more. Whatever open cover someone hands you, however wild, you can always pick finitely many of its sets that still do the job.

Two quick tests show why both conditions are needed. The interval (0,1) is bounded but not closed. The sets (1/n, 1) for n = 3, 4, 5, … cover it, and no finite selection does, because the biggest chosen set still misses points near 0. The interval [0,∞) is closed but not bounded. The sets (−1, n) for n = 1, 2, 3, … cover it, and any finite selection stops at some largest n.

Which exams test the Heine–Borel theorem, and in what form?

The CSIR-UGC NET syllabus names the theorem outright. The GATE Mathematics (MA) syllabus tests the same idea as compactness in metric spaces and in topology, without naming Heine–Borel.

As of October 2026, the official wording reads as follows.

ExamOfficial wordingWhere
CSIR-UGC NET"Bolzano Weierstrass theorem, Heine Borel theorem." Also "Metric spaces, compactness, connectedness."
CSIR-UGC NET"…connectedness and compactness."Unit 2, Topology, same document
GATE MA 2027"Metric spaces, Baire category theorem, connectedness, compactness, completeness"
GATE MA 2027"…compactness, sequentially compact, limit point compact, Tychonoff theorem…"Section 10, Topology, same document

In the CSIR syllabus, all candidates answer Unit 1, and mathematics candidates answer additional questions from Units 2 and 3.

A syllabus shows what can be asked, not how often. Check the latest notification from each exam body before you plan. Our recommendation from the wording: for CSIR-UGC NET, be able to state and prove the theorem. For GATE, treat "closed and bounded" as the starting point only, and prepare all three forms of compactness that the Topology section lists. To see how compactness questions are set, work through the GATE Mathematics previous year papers. The CSIR-UGC NET exam pattern shows where Unit 1 sits in the paper.

Where does "closed and bounded" fail to give compact?

Closed and bounded does not give compact in the rationals ℚ, in infinite-dimensional spaces such as ℓ² (a complete normed space of sequences, called a Banach space), or under a distance function that makes every set bounded.

The rationals are incomplete: some Cauchy sequence (a sequence whose terms get arbitrarily close together) has no limit in the space. Every incomplete metric space fails in the same way, and no infinite-dimensional Banach space has the Heine–Borel property (see the Heine–Borel theorem entry).

Each row below can be redone by hand: find the cover or sequence in the last column and check that no finite subcover, or no convergent subsequence, exists. These are our worked checks.

Space and setClosed?Bounded?Compact?Why

[0,1] in ℝ

YesYes

Yes

Heine–Borel
(0,1) in ℝNoYesNoCover (1/n, 1), n ≥ 3, has no finite subcover

[0,∞) in ℝ

YesNoNoCover (−1, n), n = 1, 2, 3, …, has no finite subcover

[0,1] ∩ ℚ, inside the space ℚ

YesYesNo1/√2 is missing from the space. The sets {q : |q − 1/√2| > 1/n} are open, cover everything, and no finite selection covers the rationals close to 1/√2
Closed unit ball of ℓ²YesYesNoThe unit vectors e₁, e₂, … sit √2 apart, so no subsequence converges
ℝ with distance d′(x,y) = min(|x−y|, 1)YesYesNoOpen balls of radius ½ are intervals of length 1, and finitely many cannot cover ℝ
Infinite set, discrete distance (every two points 1 apart)YesYesNoBalls of radius ½ are single points

Here ℓ² is the space of sequences whose squares add to a finite sum, and eₙ has a 1 in place n and 0 elsewhere.

The last two rows show the real lesson. "Bounded" depends on the distance function, and compactness does not. The distance d′ gives the same open sets as the usual distance on ℝ, so ℝ is non-compact either way. For metric spaces the correct statement is that a space is compact exactly when it is complete (every Cauchy sequence converges) and totally bounded (for every ε > 0, finitely many ε-balls cover it). In ℝⁿ, bounded sets are totally bounded and closed sets are complete, so that statement reduces to Heine–Borel.

In a metric space, compact, sequentially compact (every sequence has a subsequence converging inside the set) and limit point compact (every infinite subset has a limit point in the set) all mean the same thing. In general topological spaces the three notions differ, which is why the GATE Topology section (Section 10) lists compactness, sequentially compact and limit point compact separately. Prepare the equivalence proof for metric spaces and a counterexample for topological spaces.

How do you prove the Heine–Borel theorem in an exam?

Prove it in two directions. Compact implies closed and bounded takes two short arguments. Closed and bounded implies compact takes three steps: a closed interval, a box in ℝⁿ, then a closed subset of the box.

Compact implies bounded. The balls B(0, m), for m = 1, 2, 3, …, cover K. A finite subcover lies inside the largest ball chosen, so K is bounded.

Compact implies closed. Take p outside K. The sets Uₘ = {x : |x − p| > 1/m} are open and cover K, because every point of K differs from p. A finite subcover is just U_M for the largest M chosen. So K misses the whole ball of radius 1/M about p, which makes the complement of K open.

Closed and bounded implies compact.

Hands remove extra paper discs from a covered paper strip, leaving just a few that still cover it.
Picking a few sets out of an endless cover that still covers the whole interval is the heart of the proof.
  1. 1

    A closed interval [a,b] is compact.

    Suppose an open cover has no finite subcover. Bisect the interval. One half has no finite subcover either. Repeat, and you get nested intervals of length (b − a)/2ᵏ. The nested interval property gives a point x lying in all of them. Some set U in the cover contains an interval (x − δ, x + δ). Once (b − a)/2ᵏ < δ, the kth interval sits inside U, so U alone is a finite subcover. That is a contradiction.
  2. 2

    A box [−r, r]ⁿ is compact.

    Bisect every side at once, giving 2ⁿ sub-boxes, and run the same argument. The nested sequence of closed boxes with diameters tending to 0 has a common point (nested box property).
  3. 3
    A closed bounded set K is compact.
    K sits inside some box. Given an open cover of K, add the open set ℝⁿ ∖ K. Together they cover the box, so finitely many suffice. Remove ℝⁿ ∖ K from that finite list and the rest still covers K.

Step 3 is where closedness enters, so write it out in full. Patrick Stevens' walkthrough builds the same route from the box case.

Test yourself with four checks. Each has a pass condition.

  • State the theorem. Pass if you use the words "every open cover" and "finite subcover", and do not say "can be covered by finitely many open sets".
  • Cover for (0,1). Pass if you name a cover whose union is exactly (0,1) and show no finite part covers it.
  • Step 3 of the proof. Pass if you add ℝⁿ ∖ K to the cover and remove it at the end.
  • One failure outside ℝⁿ. Pass if you give a closed bounded set, name the cover or sequence, and say why it has no finite subcover or convergent subsequence.

Why is the theorem named after Heine and Borel?

The name does not match the history. Dirichlet's lectures, published in 1904, used a finite subcover implicitly, and Eduard Heine, Weierstrass and Pincherle used similar techniques. Émile Borel stated and proved a form in 1895, restricted to countable covers. Pierre Cousin (1895), Lebesgue (1898) and Schoenflies (1900) extended it to arbitrary covers (see the history of the theorem). Textbooks vary in which open-cover version they call Heine–Borel because the result was extended over several decades.

An old library desk with stacked bound volumes and loose sheets under a tall window.
The theorem's credit was spread across several mathematicians and decades of lecture notes and papers.

Who teaches Real Analysis, where compactness sits, at SBTech Math?

Real Analysis, where compactness sits, is taught by Vivek Sir in our live and recorded classes for CSIR-UGC NET and GATE. Vivek Sir also teaches Abstract Algebra. Teaching is in Hindi and English.

The CSIR-NET and GATE Mathematics 2027 course includes continuous doubt support and weekly doubt sessions or personal mentoring. As of October 2026 the course costs ₹15,999 one time, or four instalments of ₹3,999.75. A ₹999 Demo Plan gives 10 days of access. Our digital products carry a no-refund policy, so try the free material first.

Our free content includes demo classes, the PDF Drive, notes and previous-year questions. Tell us which exam you are preparing for and which step of the proof is giving you trouble, and we will point you to the right course through contact us. We reply to contact-form enquiries within 24 hours.

To choose a Real Analysis course for your exam, read Real Analysis Course: What Your Exam Needs and What to Buy.

Prepare Real Analysis with Vivek Sir at SBTech Math

Tell us which exam you are preparing for and which step of the proof is giving you trouble, and we will point you to the right course.
Contact Us

Frequently asked questions

The converse is that every compact set is closed and bounded, and it holds in every metric space, not just ℝⁿ. The direction that fails outside ℝⁿ is the original one: closed and bounded does not give compact.
In ℝⁿ, Bolzano–Weierstrass says every bounded sequence has a convergent subsequence. For a closed bounded set, the limit stays inside the set. Together they show that closed bounded sets in ℝⁿ are sequentially compact, and the CSIR-UGC NET syllabus lists both theorems together.

Its main use is that [a,b] is compact. From that, a continuous real function on [a,b] is bounded, attains its maximum and minimum, and is uniformly continuous. Each of these results proceeds by covering the interval and extracting a finite subcover.

Yes, outside ℝⁿ. The unit vectors e₁, e₂, … in ℓ² all lie in its closed unit ball, but no subsequence converges. The rationals give another example.

Yes. The syllabus names the theorem in Unit 1, so be able to state it, prove it in the three steps above and apply it to continuous functions on [a,b].

Sources

  1. 1.Heine–Borel theorem, Wikipedia
  2. 2.Walter Rudin, Principles of Mathematical Analysis, Theorem 2.41
  3. 3.CSIR-UGC NET common syllabus for Parts B and C, Mathematical Sciences (CSIR HRDG)
  4. 4.GATE 2027 Mathematics (MA) syllabus, Indian Institute of Technology Madras
  5. 5.Discovering a proof of Heine–Borel, Patrick Stevens

Keep reading

SBTechMath.

India's trusted Mathematics learning platform for CSIR-NET, GATE, IIT-JAM, CUET PG, and competitive exam aspirants. Learn concepts that help you succeed.

© 2026 SBTech Math

Powered by PageLens.ai

Crack CSIR-NET, GATE & IIT-JAM with concept-first learning.

Start Now