← Index

Limits of Logic #1: Cantor's Theorem

From: Limits of Logic (Jeffrey Sanford Russell)

1.5.3 Exercise: Cantor's Theorem

For any set AA, there is no onto function from AA to PAPA.

Proof:

Consider a function f:APAf:A→PA and assume for contradiction that it is an onto function. That means, for any subset XAX⊆A, there is some aAa∈A such that f(a)=Xf(a)=X.

Consider X=aAaf(a)X={a∈A|a∉f(a)}.

Since ff is an onto function (by assumption), there is some a0Aa0∈A such that f(a0)=Xf(a0)=X.

Now, either a0Xa0∈X or a0Xa0∉X.

If a0Xa0∈X, then by the criteria of membership in XX, we have that a0Xa0f(a0)a0Xa0∈X⟹a0∉f(a0)⟹a0∉X which is a contradiction.

If a0Xa0∉X, then by the criteria of membership in XX, we have that a0Xa0f(a0)a0Xa0∉X⟹a0∈f(a0)⟹a0X which is a contradiction.

And so, there is no such a0Aa0∈A such that f(a0)=Xf(a0)=X, which implies that ff is not onto, and this contradicts our assumption.

Therefore, there is no onto function from a set AA to its power set PAPA.


This is a theorem about how sets work, fundamentally. Particularly, it is expressing a fact about sizes of sets -- a set is always smaller than its power set.

Why is this theorem interesting?

The theorem is immediately interesting because it expresses that the power set operation on any set takes us to another set that is strictly larger than the original one. This takes us to different sizes of infinities. For example, the set of natural numbers N is infinite, which means its powerset PNPℕ is of an even larger infinite size.

But there's something interesting beyond just moving to larger and larger sets. Sometimes we care about two things thing-1 (with set representation XX) and thing-2 (with set representation PXPX) where the fact that there's always something "left over" in thing-2 when mapping to it from thing-1 expresses an interesting fact about the non set theoretic relationship between the two things.

1.5.4 Example: Undefinable Sets

Let SS be a set of strings of symbols. Let LL be a set of "descriptions" ( LSL⊆S ).

Any dLd∈L is a "description" such that for any string sSs∈S, dd is either "true of" ss or not.

Call a set of strings XX is definable if and only if there is some dLd∈L such that dd is "true of" all sXs∈X.

A consequence of Cantor's theorem is that there'll always be some set of strings that is undefinable.

Consider any function f:LPSf:L→PS and not that since LSL⊆S, the function cannot be onto.

Now let ff be such that for dLd∈L, f(d)=Xf(d)=X such that dd is "true of" all sXs∈X. Therefore, the range of ff is the set of all definable sets of strings. Since ff cannot be onto, there is always some XSX⊆S that is not definable.

And so, we can immediately draw an interesting conclusion about (this informal sense of) definability and truth from Cantor's theorem. There is at least one set of strings such that no one description is true of all strings of that set -- an undefinable set.

Of course, there is much more to say about truth, definability, the set of all strings and their formal senses. That said, the example's strngth has nothing to do with considering a set of strings, or the "true of" relation. The example can be stated in a generic form.

Let AA be a non-empty set. For any two place relation RR, call an XAX⊆A definable iff there is some aAa∈A such that aRxaRx for all xXx∈X. There will always be some undefinable subset XAX⊆A.


It's also interesting to relate Cantor's theorem to Russell's paradox. Informally stated as the "barber paradox":

The barber shaves all men in the community who do not shave themselves, and only them.

Now, does the barber shave himself? If yes, then the barber does shave someone who shaves himself -- a contradiction. If no, then the barber does not shave all men who do not shave themselves -- a contradiction as well.

Therefore, our statement cannot be true. This gives us Cantor's theorem when we consider the statement as a stand-in for a set

X=xAxf(x)X={x∈A|x∉f(x)}

where AA is the set of "all men in the community" and the function f:APAf:A→PA takes a man in the community aAa∈A to the set of men that he shaves f(a)Af(a)⊆A. This makes XX the set of all men who only shave those who don't shave themselves.

Is it a paradox that XX exists? No, the existence of XX is not a paradox; it simply expresses that the "shaves" relation (or any function from a set to the power set) is not onto -- Cantor's theorem.