Mathematical logic and foundations Proof
Proof that the rationals are countable
Builds on Countably infinite setRational numbersInjective functionWell-ordering principleThe integers are countableBijective iff it has a two-sided inverseCountable setProduct of countable sets is countableComposition of injections is injectiveSchröder–Bernstein theorem
Proof
We find injections in both directions and apply the Schröder–Bernstein theorem.
- Let be a rational number. Then for some and some integer .
- So the set is nonempty. By the well-ordering principle, it has a least element .
- Define by . Its first entry is an integer by the choice of .
- The map is injective. If , then and . Dividing by gives .
- By the integers are countable, there is a bijection . Its inverse is a bijection, so it is injective. Hence is countable.
- The set is countable, through the identity map. By the product of countable sets is countable, there is an injection .
- The composite is injective.
- The inclusion , , is injective.
- By the Schröder–Bernstein theorem, steps 7 and 8 give a bijection . So is countably infinite.
Idea
Code each rational by its smallest positive denominator and the matching numerator. This gives an injection into the countable set , so is countable. Since also contains a copy of , the Schröder–Bernstein theorem upgrades this to a bijection with .
Reading path
To understand this page from the ground up, read these 59 pages in order. The foundations come first. The path takes the proofs Proof of the commutativity of addition by induction, Proof that a composition of injections is injective, Proof that a function is bijective iff it has a two-sided inverse, Proof that the product of countable sets is countable, Proof of the Schröder–Bernstein theorem, Proof that the integers are countable, Proof of strong induction from ordinary induction, Proof of the well-ordering principle from strong induction, Proof of the division algorithm.
- Definition by recursion concept
- Divisibility definition
- Element definition
- Mathematical induction concept
- Natural numbers object
- Peano axioms concept
- Proposition concept
- Rational numbers object
- Set definition
- Successor function definition
- Disjunction definition
- Implication definition
- Predicate definition
- Family of sets definition
- Ordered pair definition
- Union definition
- Addition of natural numbers definition
- The successor function is injective statement
- Zero is not a successor statement
- Existential quantifier definition
- Universal quantifier definition
- Cartesian product definition
- Proof of the commutativity of addition by induction proof
- Union of a family of sets definition
- Subset definition
- Order on the natural numbers definition
- Uniqueness quantifier definition
- Binary relation definition
- Commutativity of addition statement
- Proof of strong induction from ordinary induction proof
- Function definition
- Strong induction statement
- Codomain definition
- Function composition definition
- Identity function definition
- Injective function definition
- Image of a set definition
- Proof of the well-ordering principle from strong induction proof
- Surjective function definition
- Left inverse definition
- Right inverse definition
- Proof that a composition of injections is injective proof
- Countable set definition
- Well-ordering principle statement
- Bijective function definition
- Composition of injections is injective statement
- Proof of the division algorithm proof
- Cantor pairing function example
- Countably infinite set definition
- Proof that a function is bijective iff it has a two-sided inverse proof
- Division algorithm statement
- Proof of the Schröder–Bernstein theorem proof
- Bijective iff it has a two-sided inverse statement
- Proof that the integers are countable proof
- Proof that the product of countable sets is countable proof
- Schröder–Bernstein theorem statement
- The integers are countable statement
- Product of countable sets is countable statement
- Proof that the rationals are countable proof
Where this leads
7 pages build on this one.
- The reals have the cardinality of the continuum
- The rationals are countable
- The cumulative distribution function determines the distribution
- A monotone function has countably many discontinuities
- Proof that a monotone function has countably many discontinuities
- Proof that the reals have the cardinality of the continuum
- Proof that the cumulative distribution function determines the distribution, by the π-λ theorem
Further reading
About this page
| Tag | NZS3WREM6K |
|---|---|
| URI | m2://NZS3WREM6K |
| Kind | proof |
| Writing | W0 stub |
| MSC | 03E10 |
| Proves | The rationals are countable |
| Uses | Countably infinite set, Rational numbers, Injective function, Well-ordering principle, The integers are countable, Bijective iff it has a two-sided inverse, Countable set, Product of countable sets is countable, Composition of injections is injective, Schröder–Bernstein theorem |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.