Lecture 6 - Cardinality

A lot of this may be review for you.

Recall

Let f:A→B 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)|a∈A}
  • f is one-to-one when ∀a1,a2∈A(a1≠a2⇒f(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 ∀b∈B∃a∈A 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 n∈N

A is infinite if it is not finite.

Infinite Cardinality Equivalence

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

Countability

A is countable iff A∼N. Then we can order the elements an for each n∈N.

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

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

f(n)={n2n is even0n=1n−12otherwise

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)=x−12x(1−x)

Will work (you can verify yourself).
☐

More Facts from Set Theory

We have:

  1. If A⊆B and B is countable, then A is at most countable.
  2. If A1,...,Ak are each countable, then A1∪⋯∪Ak is countable.
  3. If A1,A2,A3,... are each countable, then ⋃i=1∞Ai is still countable.
  4. If A1,A2,A3,... are each at most countable, then ⋃i=1∞Ai is at most countable.

We also have the following theorem:

Schroder-Bernstein Theorem

If f:A→B is 1-to-1 and g:B→A is 1-to-1, then A∼B.

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 aj∈Ai.

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 n∈N, let:

An={ab|a,b∈Z,−n≤a≤n,1≤b≤n}

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

R is uncountable.

Proof
Let A={x1,x2,x3,...} where xn∈R for each n∈N. We'll show A≠R.

Have each Ii be a closed interval where xi∉Ii and each Ii⊇Ii+1. We can use the Nested Interval Property to say that ∃x∈⋂Ii.

But for any n∈N if x=xn then xn∉In so clearly x∉In which is a contradiction. Thus then there is no n to make this possible, so our list is false.
☐