Two sets are equipotent when a bijection joins them. A set is countable when it is equipotent to (some authors include finite sets; we say at most countable for “finite or countable”).
Examples
Example 1.7 (A pairing function, computed)
The bijection of the proof deserves to be seen at work. Its first values:
Row collects the integers for which is exactly divisible by : every natural number appears exactly once. Decoding is as explicit as encoding: for , factor , so . The closing insight: countability proofs are often algorithms in disguise — here, “factor out the twos”.
Example 1.8 (The algebraic numbers are countable)
A complex number is algebraic when it annihilates some nonzero polynomial with rational coefficients. The set of algebraic numbers is countable: polynomials of degree over inject into , a finite product of countable sets (Proposition 1.6 (2)); the union over enumerates the nonzero rational polynomials as ; each has finitely many roots; and
is a countable union of finite sets (Proposition 1.6 (3)), infinite since it contains . Combined with the uncountability of (Theorem 1.9 below), this proves — without exhibiting a single one — that transcendental numbers exist and form an uncountable majority: Cantor’s counting argument of 1874, existence by cardinality alone.
Example 1.11
and are equipotent: the identity injects one way, the other; the theorem manufactures the (necessarily discontinuous) bijection. Likewise , (via -type bijections) and (binary expansions, Exercise 1.3) are all equipotent: “the cardinality of the continuum”.