Countable Sets

A set A is countable if NA. An infinite set that is not countable is called an uncountable set.
Q countable, R uncountable

i. Q is countable
ii. R is uncountable

Proof
i:
Set A1={0} and for each n2 let An be the set defined by:

An={±pq|p,qN,p+q=n,p,q are in lowest terms}

For example:

A1={0},A2={11,11},A3={12,12,21,21},

We can make the following pairings:

Pasted image 20241006153346.png

Trying to write the explicit formula for f here is a bit awkward. But what's important is given any rational qQ then q=mn so then q=mnAm+n. So 227A29 for example. This argument shows surjectivity. To show one-to-one (injective) notice that each An is disjoint with other Am's, thus any two rationals that aren't in the same set cannot equal.

ii:
Assume that there does exist some bijection f:NR. Then x1=f(1),x2=f(2), so then we can say:

R={x1,x2,}

and be confident each real xR is one of these xi's.

Using the Nested Interval Property, let I1 be a closed interval that does not contain x1. Next, let I2 be a closed interval within I1 that doesn't contain x2. Repeat this process such that:

  1. In+1In
  2. xn+1In+1

Now consider n=1In. If xn0 is some real number from the list then xn0In0+1. As a result then xn0n=1In. Since xn0 was arbitrary then n=1In=.

However, the Nested Interval Property states that n=1In, so then there is some xn=1In such that it's not in our list of xi's, which is a contradiction. Thus R must be uncountable.

What about I? Since R=QI and via theorem then I must be the I cannot be countable since if it was then otherwise R would be.

If AB and B is countable, then A is either countable or finite.
Theorem

i. If A1,A2,,Am are each countable sets, then the union A1A2Am is countable.
ii. If An is a countable set for each nN then n=1An is countable.

The proofs of these are pretty easy to show and are left to the read (always wanted to do that).