Enumerability and countability [00MG]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Definition Enumerable set [00ME]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
A set A is said to be enumerable whenever there exists a surjection \mathbb {N}\twoheadrightarrow A, referred to as an enumeration.
In an enumeration e\colon \mathbb {N}\twoheadrightarrow A of a set A, we think of n:\mathbb {N} as a “code” for a:A when e{\mathopen {}\left (n\right )\mathclose {}}=a; these “codes” are not unique unless e is an isomorphism. By virtue of the viewpoint of quotients as surjections developed in Example [00MB], enumerability expresses when a given set can be built up from the natural numbers by quotienting (i.e. identifying codes that are taken to the same element by the enumeration).
Definition Countable set [00MH]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
A countable set is one that is either empty or enumerable.
Lemma Alternative definition of countability [00MI]
- January 29, 2024
- Jon Sterling
A set A is countable if and only if the disjoint union A+{\mathopen {}\left [1\right ]\mathclose {}} is enumerable.
Proof.
- January 29, 2024
- Jon Sterling
Suppose that A is countable. We must find a surjection \mathbb {N}\twoheadrightarrow A+{\mathopen {}\left [1\right ]\mathclose {}}; if A is empty, this is the same as to find a surjection \mathbb {N}\to {\mathopen {}\left [1\right ]\mathclose {}}, which we have by Example [00MA]. On the other hand, if we have an enumeration e\colon \mathbb {N}\twoheadrightarrow {A}, we may define an enumeration e'\colon \mathbb {N}\twoheadrightarrow A+{\mathopen {}\left [1\right ]\mathclose {}} as follows:
\begin {aligned} e'{\mathopen {}\left (0\right )\mathclose {}} &= 0\\ e'{\mathopen {}\left (n+1\right )\mathclose {}} &= e{\mathopen {}\left (n\right )\mathclose {}} \end {aligned}Conversely, suppose that A+{\mathopen {}\left [1\right ]\mathclose {}} is enumerable by e\colon \mathbb {N}\twoheadrightarrow A+{\mathopen {}\left [1\right ]\mathclose {}}. If A is empty, we are done. If to the contrary A is inhabited by some a_0, we let define e'\colon \mathbb {N}\twoheadrightarrow A as follows:
e'{\mathopen {}\left (i\right )\mathclose {}} = \begin {cases} e{\mathopen {}\left (i\right )\mathclose {}} &\text {when } e{\mathopen {}\left (i\right )\mathclose {}}:A\\ a_0 &\text {otherwise} \end {cases}Example An invertible enumeration of the integers [00MJ]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
We can define a bijective enumeration of the integers by “zigzagging” between the positive and the negative following the pattern{\mathopen {}\left (0, -1, 1,-2,2,-3,3,\ldots \right )\mathclose {}}:
\begin {aligned} e&\colon \mathbb {N}\twoheadrightarrow \mathbb {Z}\\ e{\mathopen {}\left (i\right )\mathclose {}} &= \begin {cases} 0 &\text {when } i=0\\ i\div 2 &\text {when } i > 0 \land 2\mid i\\ -{\mathopen {}\left (i+1\right )\mathclose {}}\div 2 &\text {when } i > 0 \land \lnot {\mathopen {}\left (2\mid i\right )\mathclose {}} \end {cases} \end {aligned}Lemma Non-empty subsets of enumerable sets are enumerable [00MK]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
Any non-empty subset of an enumerable set is enumerable.
Proof.
- January 29, 2024
- Jon Sterling
We will use the same method as in our proof of Lemma [00MI].
Let S\subseteq A be a non-empty subset of an enumerable set A, so that we have some s\in S and a surjection e\colon \mathbb {N}\twoheadrightarrow A. We define e'\colon \mathbb {N}\twoheadrightarrow {S} to send i:\mathbb {N} to e{\mathopen {}\left (i\right )\mathclose {}} if e{\mathopen {}\left (i\right )\mathclose {}}\in S and to s otherwise.
Lemma Cartesian product of countable sets [00ML]
- January 29, 2024
- Jon Sterling, with contributions from Marcelo Fiore
The product of countable sets is countable.
Proof.
- January 29, 2024
- Jon Sterling
Let A and B be countable sets. If either A or B is empty, then A\times B is empty and thus countable. Otherwise, let e_A\colon \mathbb {N}\twoheadrightarrow A and e_B\colon \mathbb {N}\twoheadrightarrow B be enumerations of A and B respectively. Then the function e_A\times e_B\colon \mathbb {N}\times \mathbb {N}\to A\times B can be seen to be surjective; letting f\colon \mathbb {N}\twoheadrightarrow \mathbb {N}\times \mathbb {N} be any enumeration of \mathbb {N}\times \mathbb {N}, can compose to obtain a surjection {\mathopen {}\left (e_A\times e_B\right )\mathclose {}}\circ f\colon \mathbb {N}\twoheadrightarrow A\times B by Theorem [00MD].