4

I am trying to figure out if the class of subsets of integers is countably infinite or not. I know that a collection of all finite subsets of integers is countable. I believe i need to use diagonalization to prove whether it's true or not but I'm not sure how to approach it.

All Help is greatly appreciated!

tinlyx
  • 1,534
Jeff
  • 793
  • I would suggest adding the tag "Set Theory". – William Sep 04 '11 at 23:49
  • 5
    @William: The set theory tag is for "for set theory topics typically studied at the advanced undergraduate or graduate level." Thus, I added the (elementary-set-theory) tag instead. – t.b. Sep 05 '11 at 00:01
  • 4
    For any particular subset, any particular integer is either in the subset or not in the subset. –  Sep 04 '11 at 23:46

4 Answers4

12

No, the set of all subsets of the integer is not countable. Since $\mathbb{Z}$ has the same cardinality as $\mathbb{N}$, it suffice to consider all subsets of $\mathbb{N}$.

For each subset $X$ of $\mathbb{N}$ consider the characteristic function $\chi_X$ defined by

$\chi_X(z) = \begin{cases} 1 & \quad z \in X \\ 0 & \quad z \notin X \end{cases}$

In this way you associate injectively and subjectively each subset $X$ of $\mathbb{N}$ with a function in $2^{\mathbb{N}}$. $2^\mathbb{N}$ has cardinality strictly larger than $\mathbb{N}$. This is proved by the typical Cantor diagonalization argument.

Also, Cantor Diagonalization and the function I wrote above can be used to show more generally that the set of all subsets of a given set has cardinality strictly greater than the given set.

In response to comment :

You can think of a function from $\mathbb{N} \rightarrow 2$ a infinite binary strings of $0$'s and $1$'s. Assume that $2^{\mathbb{N}}$ is countable. That is there is a bijection $\sigma$ from $\mathbb{N}$ to $2^\mathbb{N}$. Then define the function $h : \mathbb{N} \rightarrow 2$ as follows

$h(n) = \begin{cases} 1 & \quad (\sigma(n))(n) = 0 \\ 0 & \quad (\sigma(n))(n) = 1 \end{cases}$

Informally, this is the familiar argument, form a new binary string by going down the diagonal and switching $0$ for $1$ and $1$ for $0$. Now this is a a perfectly good binary string hence it down appear as $\sigma(k)$ for some $k$ if $\sigma$ is indeed a bijection. However, it can not be $\sigma(k)$ for any $k$ since it differs from $\sigma(k)$ in at least the $k^\text{th}$ entry.

I hope this helps.

William
  • 19,935
  • 1
    Thank You For Your Response! I was wondering, How can i use Cantor's Diagonalization to prove this? – Jeff Sep 04 '11 at 23:55
  • I provided a brief sketch of diagonalization argument for proving $2^\mathbb{N}$ is not countable. I hope that was what you were asking. – William Sep 05 '11 at 00:05
3

It is not. For any family $\mathscr A=(A_x)$ of subsets of a given set $X$, indexed by $x$ in $X$, consider the subset $B$ of $X$ defined as follows: $B$ is the set of elements $x$ of $X$ such that $x\notin A_x$. Then $B$ cannot be any of the sets $A_x$, hence any family $\mathscr A$ indexed by $X$ cannot contain every subset of $X$.

This argument is called Cantor's diagonal argument (where diagonal refers to the diagonal of a hypothetical array whose lines would be indexed by $X$ and columns would be indexed by $\mathscr A$). It shows that the set of all subsets of $X$ has cardinality greater than $X$, for any set $X$.

Did
  • 279,727
3

Edit. I rewrote this answer since there was a small, but significant, inaccuracy in my earlier hint. Thanks to GEdgar for pointing out the error, and to both GEdgar and Henning Makholm for suggestions for fixes.

First, note that William Chan demonstrates a bijection from the power set of $\mathbb N$ to the set of infinitely long $0$-$1$ strings (call1 this set $Z$). This is nothing but the map sending $S \subseteq \mathbb N$ to its characteristic vector (function).

Now, given an infinite $0$-$1$ string, we can transform it to a real number by placing a binary point in the beginning, and interpretting it as a binary expansion of a real number; this number will clearly lie in $[0,1]$. (If this seems too informal, see leo's answer for a formal definition.) So we have a map from $Z$ to the reals in $[0,1]$.

This map is certainly not injective, since $0.00111\ldots_{2}$ and $0.01000\ldots_{2}$ represent the same real number. (This was, in fact, the error in the previous hint.) However, it is surjective, basically because all real numbers (in $[0,1]$) have a binary expansion (with nothing before the binary point). And we only need surjectivity for this idea to go through.

Now, since $[0,1]$ is uncountable, can you see that $Z$ is also uncountable? What can you then conclude about the cardinality of $2^{\mathbb N}$? For the first part, you will need the fact that there exists no surjective mapping from a countable set to an uncountable set.

1Edit. Per Zhen Lin's comment, I changed $\lbrace 0,1 \rbrace^\omega$ to $\lbrace 0,1 \rbrace^{\mathbb N}$. I decided to call this set simply $Z$, instead of $\lbrace 0,1 \rbrace^{\omega}$ or $\lbrace 0,1 \rbrace^{\mathbb N}$. See the comments below. Thanks to Asaf for the clarification anyway.

Srivatsan
  • 26,311
  • Unfortunately, this correspondence has a few bad points, where two different 0-1 strings correspond to the same real. – GEdgar Sep 05 '11 at 03:00
  • You could note that there are only countably many numbers it fails to be one-to-one for, and then do some Hilbert-holtel-esque shuffling to make them all fit anyway. – hmakholm left over Monica Sep 05 '11 at 04:05
  • @Henning Thank you for your suggestion. I'll think about how to do this correctly. – Srivatsan Sep 05 '11 at 04:13
  • Instead of writing down an explicit bijection (Henning suggests how to do that), it is probably better to rely on Schroeder-Bernstein, and write down two explicit injections, one in each direction. – GEdgar Sep 05 '11 at 12:30
  • @Gedgar Turns out that there's a simple fix after all :). Thanks again for your help. – Srivatsan Sep 06 '11 at 14:29
  • @Henning See my above comment. Thanks for your help too. – Srivatsan Sep 06 '11 at 14:30
  • @Srivatsan: It's worth noting that $2^\omega$ is a countable ordinal, but $2^{\aleph_0}$ is an uncountable cardinal. With that in mind, I would avoid writing ${ 0, 1 }^\omega$ for the set of all $0$-$1$ sequences. (I would just write ${ 0, 1 }^{\mathbb{N}}$.) – Zhen Lin Sep 06 '11 at 14:39
  • @Zhen I am not sure if that was an error, but I changed it anyway. For this answer, I just need some name for the same; even something unimaginative, like $A$, will do :). – Srivatsan Sep 06 '11 at 14:46
  • @Zhen: I believe it was remarked somewhere before on the site (perhaps even to you). $2^\omega$ is treated as an ordinal only when the context is obvious that this is an ordinal exponentiation. Otherwise it is the cardinal of the continuum. – Asaf Karagila Sep 06 '11 at 14:48
  • @Asaf, Zhen, I can intuitively see what you both are trying to say, but I cannot follow at a technical level :). I'll try to get down and understand this sometime. But for now, Asaf, can you tell me if the new answer is correct? Also does you comment imply that using ${0,1 }^{\omega}$ is also ok? – Srivatsan Sep 06 '11 at 14:54
  • @Asaf: Now that you mention it, I think I do remember that. Yes, I am inclined to agree that the ordinal $2^\omega$ is unlikely to come up, being equal to $\omega$... – Zhen Lin Sep 06 '11 at 14:56
  • @Srivatsan: Assuming the axiom of choice, yes. This seems correct. My comment did not imply that ${0,1}^\omega$ is correct but rather said it in unclear words :-) – Asaf Karagila Sep 06 '11 at 14:57
  • @Asaf That's good enough for me, as of now at least :). Thank you. – Srivatsan Sep 06 '11 at 14:59
  • @Zhen Lin: If a completely unambiguous notation for the set of functions from $\omega$ to $2={0,1}$ is wanted, I would use $^\omega 2$ or $^\omega{0,1}$. – Brian M. Scott Sep 20 '11 at 06:19
1

The answer is no. I think the best way to see this is the @Didier Piau's answer. Now, to another, the problem can be reduced to show that the class of subsets of natural numbers is no countable, as William Chan say. I'll show that class of infinite subsets of natural numbers is not numerable. This is just a little change of the Srivatsan's argument.

We say that a set $A$ is numerable, if is equipotent to the set $\mathbb{N}$ of natural numbers. We say that $A$ is countable, if is finite or numerable.

Lemma. If $A\subseteq B$ and $B$ countable, then $A$ is countable.

Now, consider the class of infinite subsets of natural numbers $\mathfrak{I}$. Define $\psi:\mathfrak{I}\to ]0,1]$ by $$\psi(A)=\sum_{n\in \mathbb{N}}\frac{\chi_A(n)}{2^n},$$ where $\chi$ is as in the William Chan's answer. The function $\psi$ is well defined because of the uniqueness of the infinite expansion in base $2$ of the numbers in $]0,1]$. Since a infinite string of 0-1s (that is not always $0$ from a moment) corresponds to a infinite subset of $\mathbb{N}$, $\psi$ is a bijection and therefore since $]0,1]$ isn't numerable, we conclude that $\mathfrak{I}$ is not numerable. Then by the lemma the class of subsets of $\mathbb{N}$ isn't countable.

leo
  • 10,433