Use the inclusive convention: a set is countable if it admits an injective function into . This includes every finite set and the empty set. If is injective and , its restriction to is still injective, proving directly that every subset of a countable set is countable.
Enumerate pairs by diagonals. The positive-integer Cantor pairing function
is a bijection : on the diagonal , its values are through , each once, and these consecutive blocks partition . This proves countability without assuming any product theorem.
For a sequence of countable sets , choose injections . For in their union, let be the least index containing . The map
is injective: its encoded index and the injective within-set code recover . Thus a countable union of countable sets is countable. Selecting the injections for an arbitrary given family uses the usual axiom of countable choice; when the encodings are supplied, the displayed construction is entirely explicit.
For finite Cartesian powers, start with the identity injection on and recursively encode as . This proves that is countable for every positive integer and is the constructive proof of the finite Cartesian power of a countable set property.
For each positive integer , let consist of the functions for which is a period. Restriction to the residues is a bijection : any tuple extends uniquely to all of by taking residues modulo , including negative arguments. Hence is countable. Every periodic function belongs to some , so
There is no need to assume the chosen period is minimal; multiple descriptions only create overlap, which does not invalidate the union argument. This is an instance of the cardinality of integer-periodic function spaces principle.
A set is countable if it admits an injection into the natural numbers; this includes finite sets and the empty set. Use for the enumeration. The Cantor pairing function
is a bijection . Indeed, on the diagonal , its values are the consecutive integers from through . These intervals are disjoint, and the next starts one beyond the preceding endpoint. Every nonnegative integer therefore determines exactly one diagonal , then exactly one , and finally . If one's convention starts the natural numbers at one, translate both coordinates by one. Thus is a countable set.
For countable sets , choose injections and . The map is an injection, proving their Cartesian product is countable. Repeating this proves that every finite Cartesian power of a countable set is countable.
For a sequence of countable sets , choose an injection for each . For , let be the least index containing . The map
is an injection: its value recovers and then . This proves the countable union of countable sets theorem. Selecting all uses the usual axiom of countable choice; if enumerations are already supplied, the construction itself needs no additional choices.
For a countable set , the polynomials of polynomial degree at most with coefficients in are described by coefficient tuples in . The finite Cartesian power of a countable set result makes this a countable set. Taking the union over shows there are only countably many such polynomials altogether; restricting to the nonzero polynomials preserves countability.
A nonzero polynomial of polynomial degree has at most distinct roots of a polynomial. To see the bound, a root gives the factorization by the factor theorem, and each other root is a root of , whose degree is ; induction starts with a nonzero constant, which has no roots. Thus is a countable union of countable sets, each of them finite, and is a countable set.
Starting with the given countable set , mathematical induction now shows that every is countable. A final application of the countable union of countable sets theorem gives
This countability argument does not require that the sequence of sets be increasing.
Write and enumerate . Each injective function is determined by the finite tuple . Thus these functions form a subset of the finite Cartesian product . A finite Cartesian power of a countable set is countable: for example, group the index tuples by the maximum of their coordinates, obtaining a countable union of countable sets consisting of finite groups.
There are also infinitely many such injective functions, since
defines pairwise distinct examples. Therefore is a countably infinite set.