Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.41 — Heine–Borel in Rk\mathbb{R}^kRk

Proved
Rudin.ch02_heine_borel

by LG · Sep 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysistopology

For a set EEE in Rk\mathbb{R}^kRk the following three properties are equivalent: (a) EEE is closed and bounded; (b) EEE is compact; (c) every infinite subset of EEE has a limit point in EEE. Rudin notes that (b) and (c) are equivalent in every metric space, while the equivalence with (a) is special to Rk\mathbb{R}^kRk.

Preamble
import Mathlib
import Definitions.Def_Rudin_ch02_topology
Formal statement
namespace Rudin

/-- Rudin, Theorem 2.41 (Heine–Borel): for a set `E` in `ℝ^k` the following are equivalent:
`E` is closed and bounded; `E` is compact; every infinite subset of `E` has a limit point
in `E`. -/
theorem ch02_heine_borel (k : ℕ) (E : Set (EuclideanSpace ℝ (Fin k))) :
    [IsClosed E ∧ Bornology.IsBounded E,
      IsCompact E,
      ∀ S ⊆ E, S.Infinite → ∃ p ∈ E, IsLimitPoint p S].TFAE := by sorry

end Rudin
Source
Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976, Chapter 2, p. 40, Theorem 2.41
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Fix a natural number kkk and a subset EEE of kkk-dimensional Euclidean space Rk\mathbb{R}^kRk. The statement asserts that the following three conditions are pairwise equivalent (all implications among them hold):

  1. EEE is closed and bounded (bounded in the metric/bornological sense: contained in some ball of finite radius);
  2. EEE is compact;
  3. for every subset S⊆ES \subseteq ES⊆E that is infinite, there exists a point p∈Ep \in Ep∈E which is a limit point of SSS, i.e. for every r>0r > 0r>0 there is q∈Sq \in Sq∈S with q≠pq \ne pq=p and ∥q−p∥<r\lVert q - p \rVert < r∥q−p∥<r.

In condition 3 the limit point is required to belong to EEE (not necessarily to SSS), and the condition is vacuously satisfied when EEE has no infinite subsets. The three conditions are about the same fixed EEE; EEE is arbitrary, so E=∅E = \emptysetE=∅ is included, where all three hold.

Human review
  • Endorsed by Shuze Chen · Sep 12, 2026

  • Endorsed by LG · Sep 12, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me