How Do You Find the Cardinality of a Set Containing Sets?
At a glance
- 1. Identify the outer set
Look at the elements immediately inside the outermost pair of braces.
- 2. Count distinct elements
Count each different outer element once, even if that element is itself a set.
- 3. Check equality
Sets with the same members are equal, so they count as one element.
- 4. Keep levels separate
The number of members inside a nested set does not change the outer set’s cardinality.
To find the cardinality of a set whose elements are themselves sets, count the distinct elements of the outer set. A nested set counts as one element at that level; its own members are not counted separately when finding the outer set’s cardinality.
For example, the set has cardinality . Its two elements are the set and the set . The fact that those elements contain two and three numbers, respectively, does not make the outer set have five elements.
Read the braces from the outside in
In an expression with nested braces, the outermost braces define the set whose cardinality you are being asked to find. The expressions separated at that outer level are its elements. Each such element may itself be a set.
For instance, in
the elements of are , , and . Assuming these are distinct, . The first two elements are sets, but each still contributes just one element to .
A useful question to ask is: “What are the objects immediately inside the outermost braces?” Count those objects, after accounting for any that are equal.
Worked examples
Two nested sets with different sizes
Let
The outer set has two elements:
Therefore, . The inner sets have cardinalities and , but adding those numbers would answer a different question: it would count their members, not the elements of .
A set containing one set
Let
There is one object inside the outer braces: the set . Thus , even though the sole element of has cardinality .
The number of braces can help you see the nesting, but braces themselves are not elements. Count the objects specified by the outermost braces.
Equal sets do not count twice
Consider
Because order does not matter in a set, . So the first two displayed entries describe the same element of . The distinct elements are and , giving .
This illustrates that a set is not a list: repeated or differently ordered descriptions of the same set do not create additional elements.
The empty set and nested empty sets
The empty set has no elements, so . But the set whose only element is the empty set, , has cardinality . One level farther in, also has cardinality : its only element is .
These examples show why it matters to identify which set you are counting. The contents of a nested set belong to that nested set, not automatically to the outer set.
What if the outer set is infinite?
The same principle applies to infinite sets: the cardinality concerns the distinct elements at the outer level. For example,
is the set of singleton sets for natural numbers . Under the usual convention that is infinite, is countably infinite. Each member of is a one-element set, and there is one such member for each natural number.
Common mistakes
- Adding the sizes of the inner sets. This does not give the outer set’s cardinality. Count outer elements instead.
- Counting every written entry separately. Check whether two entries define equal sets; equal elements count once.
- Treating braces as elements. Braces indicate how a set is written. They are not objects to count.
- Confusing with . The first has zero elements; the second has one.
- Stopping at the wrong level. In a nested expression, specify which pair of outer braces defines the set whose cardinality you need.
In short, identify the outer set, list its distinct immediate elements, and count them. The fact that some or all of those elements are sets does not change the counting rule.
References
- Paul R. Halmos, Naive Set Theory
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.