lacunary - Mathnotes

Finite, Countable, and Uncountable Sets

Note \@{finite-countable-reference-note}

This section was developed by following Rudin, Principles of Mathematical Analysis, Chapter 2. The definitions and theorems are directly or nearly directly from there, but the proofs are at least attempts at expressing my own understanding.

Cardinality and Countability

Definition: Cardinal Number, Equivalent \@{cardinal-number-equivalent}

Given two sets, A and B, if there is a bijection (a one-to-one mapping of A onto B) between A and B, we say A and B have the same cardinal number, or that A and B are equivalent. We denote this as AB.

Definition: Finite \@{finite}

A set A is said to be finite if ANn for some n.

Referenced by (13 direct, 40 transitive)

Transitive (depth 1):

Transitive (depth 2):

Definition: Countable \@{countable}

A set A is said to be countable if there exists a bijection between A and the set of all positive integers Z>0, that is, if AZ>0.

Referenced by (22 direct, 15 transitive)

Countably Infinite Sets

Theorem \@{infinite-subset-of-countable-is-countable}

Every infinite subset E of a countably infinite set A is countable.

Proof \@{proof-of-infinite-subset-of-countable-is-countable}

Assume A is countably infinite, EA, and |E|=. Arrange a sequence {xn} from the distinct elements of A. Let n1 be the smallest positive integer such that xn1E, and then pick n2,,nk1 by assigning the next n in the sequence the index of the left-most entry in {xn} that has not yet been picked. Then, let nk be the smallest integer greater than nk1 such that xnkE. Now, {nk} is a sequence of strictly increasing positive integers giving us the indices of the first k elements of E in {xn}.

Now, define f:Z>0E as f(k)=xkn, which is a bijection between the positive integers and E, showing that E is countable.

Intuition \@{infinite-subset-of-countable-is-countable-intuition}

We can show this by putting A into a sequence {xn} of distinct values, so it can be indexed with the positive integers, and then constructing a subsequence of {xn} that are only the indices of elements of E.

As an example, consider the even numbers {0,2,4,} as a subset of the non-negative integers {0,1,2,}. Then, the indices of the even numbers are {1,3,5,}, and f(1)=0,f(1)=2,.

Note \@{infinite-subset-of-countable-is-countable-note}

This means that countably infinite sets are the smallest infinite sets. Any infinite subset of one has the same cardinal number as the parent set, and the same cardinal number as the set of natural numbers - 0 - "aleph null."

Intersections and Unions of Sets

Theorem \@{union-of-a-sequence-of-countable-sets-is-countable}

Let {En},n=1,2,3, be a sequence of countable sets. Then let S=n=1En. Then, S is countable.

Proof \@{proof-of-union-of-a-sequence-of-countable-sets-is-countable}

We can construct an infinite array where the rows are sequence constructed by the sets that make up the entries of {En}. Then, we can create a single sequence from all the entries of the sets of {En} by iterating over them in the following order:

sequence = []
for i in range(1, k):
    for j in range(0, i):
        n = i - j
        m = j + 1
        sequence.append(f"E_{n},{m}")

Which, for k=5, yields

E1,1,E2,1,E1,2,E3,1,E2,2,E1,3,E4,1,E3,2,E2,3,E1,4.

This sequence may contain duplicates, so some indices may need to be skipped in constructing a subset T of the positive integers such that T S, but we've now shown that S is at most countable. To show S is infinite and therefore countable, note that the infinite set E1 is a subset of S,, and therefore S is infinite and countable.

Referenced by (1 direct)
Theorem \@{n-tuples-of-countable-elements-are-countable}

Let A be a countable set, and let Bn be the set of all n-tuples (a1,,an) where akA(k=1,,n), and the elements a1,,an need not be distinct. Then Bn is countable.

Proof \@{proof-of-n-tuples-of-countable-elements-are-countable}

We will proceed using proof by induction. First, for the base case, note that B1 is the set of 1-tuples formed by elements of A, so B1=A and is thus countable. Now, for the inductive step, assume Bn1 is countable (n=2,3,4,). Then we have that

Bn={(b,a)|bBn1,aA}=bBn1(b×A).

So, for any given n1-tuple b, we form n-tuples by appending each element of a to it, and so the set of pairs (b,a) has the same cardinality as A, and is thus countable. Bn is thus the union of the countable set of countable sets (the set of sets formed by appending each element of A to each element of Bn1) and is therefore countable itself, by a theorem proved above. Therefore, by induction, every Bn is countable.

Corollary \@{rationals-are-countable}

The set of rational numbers is countable.

Proof \@{proof-of-rationals-are-countable}

Rational numbers just formed from pairs of integers: (a,b)a/b,b0, so we use the above theorem with n=2.

Referenced by (1 direct)

Uncountably Infinite Sets

Theorem \@{binary-sequences-are-uncountable}

Let A be the set of all sequences whose elements are the digits 0 and 1. This set A is uncountable.

Proof \@{proof-of-binary-sequences-are-uncountable}

Let E be a countable subset of A, and call the elements of E s1,s2,s3,. We will construct a new sequence p in the following way:

pn=¬snn,n=1,2,3,

That is, the nth digit of p will be the opposite of whatever the nth digit of sn is. So, p differs from s1 in the first digit, from s2 in the second digit, s3 in the third digit, and so on, so that it differs from all elements of E, and therefore is not contained in E. But, p is definitely in A since it its elements are the digits 0 and 1. Therefore, E is a proper subset of A, so any countable subset of A must be a proper subset of A. But, A can't be a proper subset of itself, and therefore A must be uncountable.

Note \@{binary-sequences-are-uncountable-note}

This approach to proving this theorem is due to Cantor and is called diagonalization, and the animation below illustrates why.

Corollary \@{reals-are-uncountable}

The set of real numbers is uncountable.

Proof \@{proof-of-reals-are-uncountable}

I won't give a full proof here, but this can be accomplished by considering the binary representation of real numbers in the interval [0,1) consists of infinite sequences of 0 and 1.