Density of Rationals in R
The density of the rationals in the reals is one of the most important properties of . It states that between any two distinct real numbers, no matter how close, there exists a rational number. This property has profound consequences: it means that is "everywhere" in , and every real number can be approximated arbitrarily well by rationals.
Statement
For all with , there exists such that
Equivalently: is dense in in the topological sense β every nonempty open interval in contains a rational number. In metric space language, (the closure of is all of ).
Proof
Let with . We seek with .
Step 1: By the Archimedean property (Theorem 1.1), there exists such that
Step 2: Consider the set
By the Archimedean property, is nonempty (since is unbounded above). By the well-ordering principle for , the set has a least element. Let be the smallest integer greater than .
Step 3: By the minimality of , we have
In particular, . Adding to the right side and using Step 1:
Thus , which gives
Step 4: Let . Then , as desired.
The proof uses two facts:
- The Archimedean property (to find such that ).
- The well-ordering principle (to find the least integer ).
Both are consequences of the completeness axiom for .
Corollaries and consequences
For every , there exists a sequence in such that .
For each , by density, choose with . Then , so .
This corollary says is dense in in the sense that every real is a limit point of . Formally, (the closure of in the standard topology on is all of ).
The set of irrational numbers is also dense in . That is, for all in , there exists an irrational with .
By density of , choose with . Then satisfies . Since is irrational and is rational, is irrational.
Every real number has a decimal expansion , where and for . The truncations
are rational numbers converging to . This is a concrete manifestation of density: every real is the limit of its decimal approximations.
The number is irrational, but can be approximated by rationals:
These are the decimal truncations, and they converge to . The density theorem guarantees such approximations exist for every real number.
Similarly, is approximated by
Historical approximations include , , and the excellent .
Density and uniform approximation
Let be continuous. For every , there exists a function taking only rational values such that
For each , by density, choose a rational with . By continuity, there exists such that for all with . Then for such ,
The intervals cover ; by compactness, finitely many suffice. Define piecewise using the corresponding rationals on each subinterval (with a measurable selection for overlaps). Then for all .
This result is a precursor to the Stone-Weierstrass theorem, which says that polynomials (or more generally, algebras separating points) are dense in . The density of in is the "pointwise" analogue; uniform approximation requires compactness.
Countability and measure
Although is dense in , it is a countable set (it can be put in bijection with ). In contrast, is uncountable. So a countable dense subset exists in β this is a key property of separable metric spaces.
In terms of Lebesgue measure, has measure zero: . Thus, even though is dense, it is "negligible" in the measure-theoretic sense. Almost every real number (in the sense of Lebesgue measure) is irrational.
The Cantor set is uncountable, has measure zero, and is nowhere dense (its interior is empty). This contrasts with , which is countable, has measure zero, and is dense. Density and size (cardinality/measure) are independent properties.
Comparison with other dense sets
The set of dyadic rationals β rationals of the form for , β is also dense in . This is useful in analysis because dyadic subdivisions (binary) are computationally efficient.
The set of algebraic numbers (roots of polynomials with integer coefficients) is countable and dense in . It properly contains (including , , etc.) and is the algebraic closure of in .
The set of computable real numbers (numbers whose decimal expansion can be generated by a Turing machine) is countable and dense in . Almost all reals are uncomputable, yet the computable ones are dense!
Summary
The density of in is fundamental:
- Between any two reals, there is a rational (and an irrational).
- Every real is the limit of a sequence of rationals.
- is countable and has measure zero, yet is dense.
- Density is essential for approximation arguments, decimal expansions, and continuity.
This result, combined with the Archimedean Property, underpins much of real analysis. See Proof of Archimedean Property for the foundational result used in the proof.