Power Sets and Why They Are Always Bigger
Count the subsets of a set, see why there are 2 to the n of them, and follow Cantor's short proof that no set can match its power set.
Key takeaways
- The power set of A contains every subset of A, including the empty set and A itself.
- A set with n elements has 2ⁿ subsets, because each element is independently either in or out.
- Cantor's theorem says that no function from any set onto its power set exists.
- Applying the power set again and again gives an endless sequence of ever larger infinite sizes.
The power set of a set A is the set of all subsets of A. For a finite set with n elements it has 2ⁿ members, which is always more than n.
The remarkable part is that "bigger" survives into the infinite. No set, however large, can have its elements matched up with all of its subsets, and the proof takes only a few lines.
Listing the subsets
A set B is a subset of A, written B ⊆ A, if every element of B belongs to A. The power set, written P(A), collects all such B. For the notation behind this, see set theory basics.
| A | P(A) | Number of subsets |
|---|---|---|
| ∅ | {∅} | 1 |
| {a} | ∅, {a} | 2 |
| {a, b} | ∅, {a}, {b}, {a, b} | 4 |
| {a, b, c} | ∅, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c} | 8 |
Two entries are easy to forget. The empty set ∅ is a subset of every set, and every set is a subset of itself. Even P(∅) is not empty: it has one member, which is ∅.
Why the count is 2 to the n
To build a subset of a set with n elements, go through the elements one at a time and decide: in or out. That is two choices, made n times independently, giving 2 × 2 × ... × 2 = 2ⁿ outcomes. Different decisions produce different subsets, and every subset arises.
You can record the decisions as a string of 0s and 1s. For {a, b, c}, the string 101 means the subset {a, c}. So subsets correspond exactly to binary strings of length 3, which are the numbers 0 through 7 written in base two.
A second view groups subsets by size. For three elements there are 1, 3, 3 and 1 subsets of sizes 0 to 3, which is a row of Pascal's triangle. Their total, 8, illustrates a fact explored in the binomial theorem and counting subsets.
You can also argue by induction. Adding one new element x to a set doubles the number of subsets: each old subset appears once without x and once with it.
How fast it grows
Each extra element doubles the count. Hypothetical example: the numbers are made up to show the method, not a quote or an average.
With 10 elements there are 1,024 subsets, with 20 there are 1,048,576, and with 30 there are more than a billion. This is why computer searches that try every subset stall quickly as the input grows.
Since 2ⁿ > n for every whole number n ≥ 0, a finite set is always smaller than its power set. For infinite sets, counting no longer helps, and we need a better meaning of "bigger".
The structure inside a power set
A power set is more than a heap of subsets. Inclusion arranges them. For {a, b, c}, put ∅ at the bottom, the three one-element sets above it, the three two-element sets above those, and {a, b, c} at the top. Draw a line wherever one set is obtained from another by adding a single element. The picture has the shape of a cube, with 8 corners and 12 edges.
This is a standard example of a partial order: some pairs can be compared, such as {a} ⊆ {a, b}, while others, such as {a} and {b}, cannot.
The operations of union, intersection and complement stay inside P(A), so the power set is closed under all of them. It also pairs up neatly with itself. Sending each subset to its complement is a bijection from P(A) to P(A) that turns the picture upside down. That is why there are exactly as many subsets of size k as of size n − k.
Half of all subsets of a nonempty finite set have an even number of elements. To see it, pick one element x and switch its status, adding it if absent and removing it if present. This pairs every even-sized subset with an odd-sized one.
A puzzle about nested power sets
Starting from the empty set and taking power sets repeatedly gives sets of sizes 0, 1, 2, 4, 16 and then 65,536.
∅ has 0 elements
P(∅) = {∅} has 1
P(P(∅)) has 2: ∅ and {∅}
next has 4
next has 16
next has 2¹⁶ = 65,536 The step after that has 2 raised to the power 65,536 elements, far beyond anything that could be written out. Everything in these sets is built from nothing but braces, which hints at how numbers can be built from sets.
Comparing infinite sizes
Two sets have the same size, or cardinality, if there is a bijection between them: a pairing in which each element of one has exactly one partner in the other, with none left over. A function from A to B is surjective, or onto, if every element of B is hit. These ideas are laid out in injective, surjective and bijective functions.
Set A is strictly smaller than B if there is a one-to-one function from A into B but no bijection between them.
For power sets, the first half is easy. The rule a ↦ {a} sends different elements to different subsets. The question is whether some cleverer pairing could use up all of P(A).
Cantor's theorem
Theorem. For every set A, no function f from A to P(A) is surjective.
Proof. Let f be any such function, so that f(a) is a subset of A for each a in A. Define the set
D = {a ∈ A : a ∉ f(a)} That is, D gathers the elements that do not belong to their own assigned subset. D is a subset of A, so it is a member of P(A). Suppose some d in A had f(d) = D. Ask whether d belongs to D.
If d ∈ D: by the definition of D, d ∉ f(d) = D. contradiction
If d ∉ D: then d ∉ f(d), so d meets the condition,
and d ∈ D. contradiction Both answers are impossible, so no such d exists. The subset D is missed by f. Since f was arbitrary, no function from A onto P(A) exists. Combined with the one-to-one function a ↦ {a}, this shows A is strictly smaller than P(A).
Watching the proof work
Take A = {1, 2, 3} and try the assignment below.
| a | f(a) | Is a in f(a)? | Is a in D? |
|---|---|---|---|
| 1 | {1, 2} | yes | no |
| 2 | ∅ | no | yes |
| 3 | {1, 3} | yes | no |
So D = {2}, which is not among the three values. D differs from f(1) over the element 1, from f(2) over the element 2, and from f(3) over the element 3. The set was built to disagree with each f(a) at the point a.
That strategy is the same one used in Cantor's diagonal argument: write each subset as a row of in/out marks, walk down the diagonal and flip every entry.
The ladder of infinities
Apply the theorem to the natural numbers ℕ. Its power set P(ℕ) is infinite but cannot be listed as a first, second, third and so on. So P(ℕ) is uncountable, while ℕ is countably infinite. In fact P(ℕ) has the same size as the set of real numbers.
Now apply the theorem again to P(ℕ), then to P(P(ℕ)), and continue. Each step is strictly larger than the one before. There is therefore no largest set size.
Is there a size strictly between that of ℕ and that of P(ℕ)? The claim that there is none is the continuum hypothesis. It can be neither proved nor refuted from the standard axioms, assuming they are consistent, as discussed in the continuum hypothesis.
No set of everything
Suppose there were a set V containing every set. Every subset of V is a set, so P(V) would be contained in V. That would make P(V) no larger than V, contradicting Cantor's theorem.
The set D in the proof is closely related to Russell's collection of sets that are not members of themselves. If A = V and f sends each set to itself, D becomes exactly Russell's collection. The story continues in Russell's paradox. Standard axiomatic set theory includes an axiom guaranteeing that every set has a power set, and avoids a set of all sets.
Common mistakes
- Writing a where {a} is needed. Members of P(A) are sets, so {a} ∈ P(A), while a itself usually is not.
- Leaving out ∅ or A. Both always belong.
- Thinking the theorem only rejects one pairing. The proof starts with an arbitrary f, so it rules out all of them.
- Assuming all infinite sets are the same size. Cantor's theorem shows otherwise.
As an exercise, choose your own function from {1, 2, 3} to its power set, compute D, and confirm it is not in the list. Then try to repair the function by assigning D to one of the elements, and watch a new D appear.