Lecture 6 - Cardinality

A lot of this may be review for you.

Recall

Let f:AB be a map (a function) from set A to set B. Then:

  • The domain of f is A. The codomain of f is A.
  • The range of f is {f(a)|aA}
  • f is one-to-one when a1,a2A(a1a2f(a1)f(a2) . This is called being injective, or being a monomorphism. Alternatively it's f(a1)=f(a2)a1=a2.
  • f is onto if bBaA where f(a)=b. This is called being surjective, or being an epimorphism.
  • f is bijective or an isomorphism if it's both injective and surjective. We call this a 1-to-1 correspondance.

See Review of Set Theory and Functions for a more thorough review of these topics.

See the drawing for an example of a valid bijection:

Finite/Cardinality

A is finite if A or a one-to-one cover:

f:A{1,2,...,n}

for some nN

A is infinite if it is not finite.

Infinite Cardinality Equivalence

A,B have the same cardinality if a bijection f:AB.
We write AB if they have the same cardinality.

Countability

A is countable iff AN. Then we can order the elements an for each nN.

A is at most countable if it is either finite or countable.

We talked about Hilbert's Hotel. The idea is that NZ since we have the bijection:

f(n)={n2n is even0n=1n12otherwise

Now you can check that f is both injective and surjective.

(0,1)R

Proof
The idea is that we want a function that has the following shape:

Thus for simplicity we can have f(12)=0 for our case. We also want undefined at x=0,1 thus have:

f(x)=x12x(1x)

Will work (you can verify yourself).

More Facts from Set Theory

We have:

  1. If AB and B is countable, then A is at most countable.
  2. If A1,...,Ak are each countable, then A1Ak is countable.
  3. If A1,A2,A3,... are each countable, then i=1Ai is still countable.
  4. If A1,A2,A3,... are each at most countable, then i=1Ai is at most countable.

We also have the following theorem:

Schroder-Bernstein Theorem

If f:AB is 1-to-1 and g:BA is 1-to-1, then AB.

Let's prove (3):

Proof
For each Ai for i=1,... they can be counted. For instance:

A1={a1,a2,...}

Then denote a11,a12,... to be counting these elements. Namely each aij is elements ajAi.

To say the union is countable, we should be able to make a 1-to-1 correspondance to our a11,a12,... list. We can do this by using a diagonal counting of the elements:

☐ # Get to the Point!

Okay okay here's the big theorem:

Q is countable.

Proof
For nN, let:

An={ab|a,bZ,nan,1bn}

Notice that Q=i=1Ai. Each An is countable so using (3) then Q is countable.

R is uncountable.

Proof
Let A={x1,x2,x3,...} where xnR for each nN. We'll show AR.

Have each Ii be a closed interval where xiIi and each IiIi+1. We can use the Nested Interval Property to say that xIi.

But for any nN if x=xn then xnIn so clearly xIn which is a contradiction. Thus then there is no n to make this possible, so our list is false.