Power set
A set has a handful of subsets. What happens if we gather all of them into one set, and how large is that set?
Where you are 15 in Sets
Why this exists
Subsets answer questions one at a time: is this set inside that one? Many questions are about all the subsets at once. How many different ways can a committee be chosen from a club? Which settings can a board of switches be in? Which subsets of A are also subsets of B? To talk about all the subsets of a set as a single object, we collect them into one set.
That set is the power set. Its members are themselves sets, so it is the first place where a set of sets is not a curiosity but the natural thing to write down. Counting it gives one of the most used formulas in discrete mathematics, 2^n, and comparing power sets turns facts about subsets into facts about membership.
Definition
The power set of a set A is the set of all subsets of A. It is written \mathcal{P}(A):
So for any object X,
That one line is the whole definition at work: a question about membership in \mathcal{P}(A) is a question about being a subset of A, and the other way round.
For S = \{r, s, t\} there are eight subsets, so
Three things are worth seeing in this list.
- The empty set and S itself are always members, because \varnothing \subseteq A and A \subseteq A for every set A.
- Every member of \mathcal{P}(S) is a set. The letter r is a member of S but not of \mathcal{P}(S); the set \{r\} is a member of \mathcal{P}(S) but not of S (elements and membership).
- \lvert \mathcal{P}(S)\rvert = 8, counting each subset once, as in the cardinality of a finite set.
Intuition
A subset is a row of yes-or-no answers. To pick a subset of \{r, s, t\}, go through the members in order and answer “in?” for each. Write 1 for yes and 0 for no. The string 101 means r in, s out, t in, which is \{r, t\}. The string 000 is \varnothing and 111 is the whole set. Every string of three digits names exactly one subset, and every subset has exactly one string.
The strings are the corners of a cube. Strings of three digits are the coordinates of the eight corners of a cube, and two corners share an edge when their strings differ in one place, that is, when one subset is the other with a single member added.
Figure 1 draws this cube with the subsets in levels by size. Walking up a line adds one member.
Adding a member doubles the count. In Figure 1 the four subsets without t sit on one solid square, and the four with t sit on the other. A dashed line joins each X without t to X \cup \{t\}. So the subsets of \{r, s, t\} are the subsets of \{r, s\} taken twice, once as they are and once with t added: 4 + 4 = 8.
Results
Membership. X \in \mathcal{P}(A) if and only if X \subseteq A. In particular \varnothing \in \mathcal{P}(A) and A \in \mathcal{P}(A).
The empty set. \mathcal{P}(\varnothing) = \{\varnothing\}, a set with one member.
Counting. If A is finite with \lvert A\rvert = n, then
Power sets keep inclusion. A \subseteq B if and only if \mathcal{P}(A) \subseteq \mathcal{P}(B).
Intersections. \mathcal{P}(A \cap B) = \mathcal{P}(A) \cap \mathcal{P}(B) for all sets A and B.
Unions. \mathcal{P}(A) \cup \mathcal{P}(B) \subseteq \mathcal{P}(A \cup B) for all sets A and B, and the inclusion can be proper.
Why it is true
The empty set. The only subset of \varnothing is \varnothing itself: a subset of \varnothing can have no members. So \mathcal{P}(\varnothing) = \{\varnothing\}. This set is not empty. It has one member, and that member happens to be the empty set.
Counting, first proof: strings. Proof. List the members of A as a_1, a_2, \dots, a_n. Send each subset X to the string b_1 b_2 \cdots b_n, where b_i = 1 if a_i \in X and b_i = 0 if a_i \notin X. Two different subsets differ about some member a_i, so their strings differ in place i. Every string comes from a subset, namely the set of those a_i with b_i = 1. So subsets and strings are matched one to one, and there are as many subsets as strings. A string is built in n stages with two choices at each, so by the fundamental counting principle there are 2 \cdot 2 \cdots 2 = 2^n strings. \square
Counting, second proof: doubling. Proof. We use induction on n. For n = 0 the set is \varnothing, and \lvert \mathcal{P}(\varnothing)\rvert = 1 = 2^0. Now suppose every set with n members has 2^n subsets, and let A have n + 1 members. Choose one member a, and let A' be the set of the other n members. The subsets of A fall into two groups.
- Those without a. These are exactly the subsets of A', so there are 2^n of them.
- Those with a. Removing a from such a subset leaves a subset of A', and adding a to a subset Y of A' gives Y \cup \{a\}, a subset with a. These two moves undo each other, so this group is matched one to one with the subsets of A' and also has 2^n members.
No subset is in both groups, so A has 2^n + 2^n = 2^{n + 1} subsets. \square
The first proof counts all the subsets at once. The second says what one new member does, which is often the more useful fact: it is the dashed lines of Figure 1.
Power sets keep inclusion. Proof. Suppose A \subseteq B, and let X \in \mathcal{P}(A). Then X \subseteq A and A \subseteq B, so X \subseteq B because inclusions chain, and X \in \mathcal{P}(B). For the converse, suppose \mathcal{P}(A) \subseteq \mathcal{P}(B). Since A \subseteq A, we have A \in \mathcal{P}(A), so A \in \mathcal{P}(B), which says A \subseteq B. \square
Intersections. Proof. For any set X, the following conditions are equivalent.
The first and last steps are the definitions of power set and intersection. For the middle step: if X \subseteq A \cap B, each x \in X is in both A and B, so X \subseteq A and X \subseteq B; and if X \subseteq A and X \subseteq B, each x \in X is in both, so in A \cap B. Every step goes both ways, so the two sets have the same members. \square
Unions. Proof. Let X \in \mathcal{P}(A) \cup \mathcal{P}(B). Then X \subseteq A or X \subseteq B. In the first case, X \subseteq A \subseteq A \cup B; in the second, X \subseteq B \subseteq A \cup B. Either way X \in \mathcal{P}(A \cup B). \square
The reverse inclusion fails as soon as A and B are two different one-member sets, say A = \{r\} and B = \{s\}. Then \{r, s\} \subseteq A \cup B, so \{r, s\} \in \mathcal{P}(A \cup B), but \{r, s\} is a subset of neither A nor B. A subset of a union may take some members from each part, and such a subset belongs to neither power set.
Worked examples
Member or subset of a power set
Let A = \{6, 8\}. Decide which are true: (a) 6 \in \mathcal{P}(A) (b) \{6\} \in \mathcal{P}(A) (c) \{6\} \subseteq \mathcal{P}(A) (d) \{\{6\}\} \subseteq \mathcal{P}(A) (e) \varnothing \in \mathcal{P}(A) and \varnothing \subseteq \mathcal{P}(A).
SolutionFirst list the four members: \mathcal{P}(A) = \{\varnothing, \{6\}, \{8\}, \{6, 8\}\}. A membership claim is checked against this list; a subset claim is checked by taking each member of the left side and looking for it in the list.
(a) False. The members of \mathcal{P}(A) are sets, and 6 is a number. 6 \in A, but that is a different statement.
(b) True, because \{6\} \subseteq A.
(c) False. The only member of \{6\} is the number 6, which is not in the list.
(d) True. The only member of \{\{6\}\} is the set \{6\}, which is in the list.
(e) Both true. \varnothing \subseteq A, so \varnothing is a member; and \varnothing is a subset of every set, \mathcal{P}(A) included.
Power sets built from nothing
Starting from \varnothing, take the power set three times. List each set and count its members.
SolutionThe only subset of \varnothing is \varnothing, so \mathcal{P}(\varnothing) = \{\varnothing\}, with 1 member.
\{\varnothing\} has one member, so it has 2^1 = 2 subsets: \varnothing and \{\varnothing\} itself. So \mathcal{P}(\mathcal{P}(\varnothing)) = \{\varnothing, \{\varnothing\}\}.
That set has two members, call them \varnothing and \{\varnothing\}. Its subsets are no members, one member or both:
with 2^2 = 4 members. The counts run 1, 2, 4, and the next power set would have 2^4 = 16 members, then 2^{16} = 65{,}536.
A board of switches
Yindi’s lighting board has six switches, numbered 1 to 6. A setting of the board is fixed by which switches are on. How many settings are there? Which setting does the string 101100 name? How many settings have switch 1 on and switch 2 off?
SolutionA setting is the set of switches that are on, so the settings are the members of \mathcal{P}(\{1, 2, 3, 4, 5, 6\}). There are 2^6 = 64 of them.
Reading the string place by place, 1 means on: the string 101100 names \{1, 3, 4\}.
For the last question, the first two places of the string are fixed as 1 and 0. The other four places are free, each with two choices, so there are 2^4 = 16 such settings. Equivalently, these settings are \{1\} \cup Y for Y any subset of \{3, 4, 5, 6\}, and that set has 2^4 subsets.
Intersection and union of two power sets
Let A = \{1, 4, 9\} and B = \{4, 9, 16\}. Find \mathcal{P}(A) \cap \mathcal{P}(B), and compare \lvert \mathcal{P}(A) \cup \mathcal{P}(B)\rvert with \lvert \mathcal{P}(A \cup B)\rvert.
SolutionA set is in both power sets exactly when it is a subset of both A and B, that is, of A \cap B = \{4, 9\}. So
as the intersection result says.
For the union, each power set has 2^3 = 8 members and they share 4, so by counting a union \lvert \mathcal{P}(A) \cup \mathcal{P}(B)\rvert = 8 + 8 - 4 = 12. But A \cup B = \{1, 4, 9, 16\} has four members, so \lvert \mathcal{P}(A \cup B)\rvert = 2^4 = 16.
The four missing subsets are those that contain both 1 (only in A) and 16 (only in B): \{1, 16\}, \{1, 4, 16\}, \{1, 9, 16\} and \{1, 4, 9, 16\}. Each one takes a member from each side, so it lies in neither power set.
When the union inclusion is an equality
Prove that \mathcal{P}(A) \cup \mathcal{P}(B) = \mathcal{P}(A \cup B) if and only if A \subseteq B or B \subseteq A.
SolutionProof. Suppose first that A \subseteq B. Then A \cup B = B, and \mathcal{P}(A) \subseteq \mathcal{P}(B) because power sets keep inclusion, so
The case B \subseteq A is the same with the names swapped.
Conversely, suppose the two sets are equal. The set A \cup B is a subset of itself, so it is a member of \mathcal{P}(A \cup B), hence of \mathcal{P}(A) \cup \mathcal{P}(B). So A \cup B \subseteq A or A \cup B \subseteq B. In the first case every member of B, being in A \cup B, is in A, so B \subseteq A. In the second, A \subseteq B in the same way. \square
Can a set be inside its own power set?
For which of these sets is A \subseteq \mathcal{P}(A)? (a) A = \{1, 2\} (b) A = \varnothing (c) A = \{\varnothing\} (d) A = \{\varnothing, \{\varnothing\}\}
SolutionA \subseteq \mathcal{P}(A) says that every member of A is a member of \mathcal{P}(A), that is, every member of A is itself a set and a subset of A.
(a) No. The member 1 is a number, not a set, so it is not in \mathcal{P}(A).
(b) Yes, vacuously: \varnothing is a subset of every set.
(c) Yes. The only member is \varnothing, and \varnothing \subseteq A.
(d) Yes. \varnothing \subseteq A as always, and \{\varnothing\} \subseteq A because its one member \varnothing is in A.
In (b), (c) and (d) the set A is one of the sets from Example 2, and in each case A is a proper subset of \mathcal{P}(A): the power set always has more members, since 2^n > n.
Boundaries
A power set’s members are sets. \mathcal{P}(A) never contains a member of A as such, unless that member happens also to be a subset of A, as \varnothing was in Example 6.
\mathcal{P}(\varnothing) is not empty. It is \{\varnothing\}, with one member, and 2^0 = 1 agrees.
The count 2^n is for finite sets. An infinite set has infinitely many subsets, so no number counts its power set. Comparing sizes then needs matching one to one.
Unions do not pass through. \mathcal{P}(A \cup B) can be strictly larger than \mathcal{P}(A) \cup \mathcal{P}(B), and Example 5 shows the two agree only when one of A, B contains the other. Intersections always pass through.
The members of A must be distinct. \{1, 1, 2\} is the set \{1, 2\}, with 2^2 = 4 subsets, not 2^3. Count members after repeats collapse.
Where this goes next
Sorting the 2^n members of \mathcal{P}(A) by size gives the entries of a row of Pascal’s triangle, and the four levels of Figure 1 hold 1, 3, 3, 1 subsets. The yes-or-no view of a subset is the bridge from sets to strings, which is how many counting problems are solved.
Power sets carry set identities, as in proving a set identity, and a relation on A is a member of the power set of A \times A, the Cartesian product of A with itself. For infinite sets, the power set is the first way to build something strictly larger: Cantor’s theorem shows that no set can be matched one to one with its power set, so there is no largest infinity.
Exercises
Members of a power set
- List the members of \mathcal{P}(\{5, 10\}).
- List the members of \mathcal{P}(\{w, x, y, z\}) that have exactly two members.
- Let B = \{1, \{2\}\}. List the members of \mathcal{P}(B).
- Let A = \{3, 4, 5\}. True or false: (a) \{3, 5\} \in \mathcal{P}(A) (b) 4 \in \mathcal{P}(A) (c) \{\varnothing\} \subseteq \mathcal{P}(A) (d) \{4\} \subseteq \mathcal{P}(A) (e) \{\{3\}, \{4, 5\}\} \subseteq \mathcal{P}(A) (f) \varnothing \in \mathcal{P}(A)
- Is \{\{\varnothing\}\} a member of \mathcal{P}(\mathcal{P}(\varnothing))? Is it a subset of \mathcal{P}(\mathcal{P}(\varnothing))?
- Let A = \{1, \{1\}\}. Find A \cap \mathcal{P}(A).
Counting subsets
- How many members does \mathcal{P}(\{1, 2, \dots, 10\}) have?
- A set A has \lvert \mathcal{P}(A)\rvert = 4{,}096. How many members does A have?
- A set A has 3 members. How many members does \mathcal{P}(\mathcal{P}(A)) have?
- Using the members of \{1, 2, \dots, 8\} in order, which subset does the string 01101001 name, and which string names \{1, 8\}?
- How many subsets of \{1, 2, \dots, 10\} contain none of 1, 2 and 3?
- A set B is made by adding one new member to a set A, and \mathcal{P}(B) has 32 more members than \mathcal{P}(A). How many members does A have?
Power sets and the set operations
In Exercises 13 and 14, A = \{1, 2, 3\} and B = \{3, 4\}.
- List \mathcal{P}(A) \cap \mathcal{P}(B), and check that it equals \mathcal{P}(A \cap B).
- Find \lvert \mathcal{P}(A) \cup \mathcal{P}(B)\rvert and \lvert \mathcal{P}(A \cup B)\rvert, and name one member of \mathcal{P}(A \cup B) that is in neither power set.
- Give two different sets A and B with \mathcal{P}(A) \cup \mathcal{P}(B) = \mathcal{P}(A \cup B).
- Suppose A and B have no member in common. What is \mathcal{P}(A) \cap \mathcal{P}(B)?
Reasoning
- Prove that if \mathcal{P}(A) = \mathcal{P}(B), then A = B.
- Explain why \mathcal{P}(A) always has at least one member, and has exactly one member only when A = \varnothing.
- Let A be a finite set and a \in A. Explain, using the doubling argument, why exactly half of the subsets of A contain a.
- Prove that every member of \mathcal{P}(A \cup B) can be written as X \cup Y with X \in \mathcal{P}(A) and Y \in \mathcal{P}(B).
Answers
- \varnothing, \{5\}, \{10\}, \{5, 10\}: four members, 2^2 = 4.
- \{w, x\}, \{w, y\}, \{w, z\}, \{x, y\}, \{x, z\}, \{y, z\}: six of them.
- \mathcal{P}(B) = \{\varnothing, \{1\}, \{\{2\}\}, \{1, \{2\}\}\}. The two members of B are 1 and \{2\}, and a subset takes neither, one or both. The set \{2\} is not a subset of B, because 2 \notin B.
- (a) True, \{3, 5\} \subseteq A. (b) False, 4 is a number, not a subset of A. (c) True, its one member \varnothing is in \mathcal{P}(A). (d) False, its member 4 is not in \mathcal{P}(A). (e) True, both \{3\} and \{4, 5\} are subsets of A. (f) True.
- Not a member, but a subset. \mathcal{P}(\mathcal{P}(\varnothing)) = \{\varnothing, \{\varnothing\}\}, and \{\{\varnothing\}\} is neither of these two sets. Its one member \{\varnothing\} is a member of \mathcal{P}(\mathcal{P}(\varnothing)), so it is a subset.
- A \cap \mathcal{P}(A) = \{\{1\}\}. The member \{1\} of A is a subset of A because 1 \in A. The member 1 is not a set, so it is not in \mathcal{P}(A).
- 2^{10} = 1{,}024.
- 12, since 2^{12} = 4{,}096.
- \mathcal{P}(A) has 2^3 = 8 members, so \mathcal{P}(\mathcal{P}(A)) has 2^8 = 256.
- The places holding 1 are 2, 3, 5 and 8, so the subset is \{2, 3, 5, 8\}. The set \{1, 8\} is named by 10000001.
- 2^7 = 128: such a subset is any subset of \{4, 5, \dots, 10\}, which has 7 members.
- 5. If \lvert A\rvert = n, the difference is 2^{n + 1} - 2^n = 2^n, and 2^n = 32 gives n = 5.
- \{\varnothing, \{3\}\}. These are the only sets that are subsets of both, and A \cap B = \{3\} has power set \{\varnothing, \{3\}\}.
- \lvert \mathcal{P}(A) \cup \mathcal{P}(B)\rvert = 8 + 4 - 2 = 10 and \lvert \mathcal{P}(A \cup B)\rvert = 2^4 = 16. One member in neither is \{1, 4\}, which takes 1 from A only and 4 from B only.
- For example A = \{1\} and B = \{1, 2\}. Since A \subseteq B, both sides equal \mathcal{P}(B), by Example 5.
- \{\varnothing\}. It equals \mathcal{P}(A \cap B) = \mathcal{P}(\varnothing), and the only set inside both A and B is \varnothing.
- Since \mathcal{P}(A) \subseteq \mathcal{P}(B), power sets keeping inclusion gives A \subseteq B; since \mathcal{P}(B) \subseteq \mathcal{P}(A), it gives B \subseteq A. By double inclusion, A = B. \square
- \varnothing \subseteq A for every set A, so \varnothing \in \mathcal{P}(A). If A has a member a, then \{a\} \subseteq A is a second member, different from \varnothing. So one member only happens when A has no members, and then \mathcal{P}(\varnothing) = \{\varnothing\}.
- Let A' be A without a, with m members. The doubling argument splits the subsets of A into those without a, which are the 2^m subsets of A', and those with a, matched one to one with the same 2^m sets by Y \mapsto Y \cup \{a\}. The two groups are the same size, so each is half of the 2^{m + 1} subsets.
- Let Z \in \mathcal{P}(A \cup B), so Z \subseteq A \cup B. Take X = Z \cap A and Y = Z \cap B. Then X \subseteq A and Y \subseteq B. Every z \in Z is in A or in B, so in X or in Y; and X and Y lie inside Z. So Z = X \cup Y. \square