Fix an integer and the Euclidean norm on . A set is bounded if it lies in some finite-radius ball, closed if its complement is open, and compact if every cover by open subsets of has a finite subcover. We use real completeness, including the nested closed interval property.
Heine–Borel in finite-dimensional Euclidean space
Theorem. A set is compact if and only if it is closed and bounded. The empty set satisfies all three properties.
Compact implies bounded. The open balls , an integer, cover . A finite subcover puts inside the largest of these balls.
Compact implies closed. Suppose and . The balls , , cover . Choose a finite subcover with centers and set . If lies in the ball centered at , the triangle inequality gives . Hence misses , so the complement is open.
Closed and bounded implies compact. Let nonempty be closed and bounded. Enclose it in a closed cube with . Suppose an open cover of has no finite subcover. Divide each coordinate interval into two closed halves. The resulting closed subcubes cover . At least one subcube has intersection with that is not finitely coverable by the given family; otherwise the finite union of the finite subcovers would cover . Select such a subcube and repeat. This produces nested closed cubes with side length and not finitely coverable, hence nonempty.
For each coordinate, the nested interval property gives a common coordinate value. Together these give . Every pair of points in has distance at most , so the intersection contains only . Choose . Then . A closed set contains such a limit: if were in its open complement, a ball around would eventually contain outside , a contradiction. Thus .
One member of the cover contains , and openness gives for some . For sufficiently large , every point of is within of , so alone covers . This contradicts the selection of . Therefore every open cover has a finite subcover. The number is finite; replacing it by infinitely many subpieces would invalidate this argument.
Continuous images and extreme values
Theorem. If is compact and is continuous relative to , then is compact. In particular, a continuous on nonempty compact is bounded and attains its maximum and minimum.
Proof. An open cover of pulls back to relatively open sets , with open in . These cover , so finitely many suffice. Their corresponding cover , proving compactness. For scalar , the image is nonempty, closed and bounded by the theorem already proved in dimension one. Let . For each , the definition of supremum supplies with . Then , and closedness places in the image. Thus the maximum is attained. Applying the same argument to gives the minimum. This proves existence, not a formula for the maximizing input.
Worked example: the sphere needed for the real spectral theorem. The sphere is nonempty because it contains , and it is bounded. The reverse triangle inequality proves norm continuity, so is closed as the inverse image of the closed set . Heine–Borel makes it compact. For a real matrix , the polynomial is continuous, so its restriction to the sphere attains both extrema. Symmetry of is not needed for this existence claim; it is needed in the subsequent spectral argument and the gradient formula .
Exercises
P01. Explain why the compactness assertion fails for the open unit ball even though that ball is bounded.
P02. Which step of the cube proof fails if is not closed? Give an example.
P03. For on the unit circle, find the extreme values of and every point where equality holds. Distinguish the existence theorem from the calculation.
Full solutions
P01. The open unit ball is not closed: lies in it for and converges to outside it. A compact set would be closed by the proved necessity, so the ball is not compact. Boundedness alone is insufficient.
P02. The limit of may be outside , at a point , so no member of the cover need contain . Explicitly take , the cover for integers , and the nested closed intervals for integers . These open intervals cover , but any finite collection has a positive smallest left endpoint and therefore fails to cover . The intervals have common point zero, which is outside ; consequently no member of the cover contains . This is exactly where the closed-set proof can fail.
P03. Writing with gives . The minimum is two, attained exactly at , and the maximum is five, attained exactly at . Compactness and continuity guarantee that extrema exist; the displayed identity determines their values and all equality cases.