In set theory, a subset of a set is a set such that every element of also belongs to . This relationship, called inclusion, is written . It permits : a subset need not be smaller than the containing set. If and , then is a proper subset of . Inclusion expresses containment between sets, rather than membership of an individual object in a set. (abstractmath.org)
Definition and notation
The definition can be expressed using first-order logic:
Thus, there must be no element of outside . Equivalently, means that some satisfies and . The reverse relation is written , read “ is a superset of .” These formulations describe the same containment relationship from opposite directions. (web.stanford.edu)
Proper inclusion is unambiguously written . The symbol has differing conventions: some authors use it for proper inclusion, while others allow equality. Consequently, the surrounding definitions determine its meaning. For example, the integers form a proper subset of the real numbers, since every integer is real but some real numbers are not integers. (abstractmath.org)
Examples and membership
For and , every element of occurs in , so . By contrast, , because . A set-builder expression specifies a subset through a condition:
The restriction supplies the containing set; the additional condition selects its elements. This construction also works when listing every element is impractical. (abstractmath.org)
Inclusion must be distinguished from membership, denoted . If , then and , but : its listed elements are numbers, not singleton sets. Sets may themselves be elements of other sets, so membership and inclusion can both apply to the same objects, but neither relation generally implies the other. (web.stanford.edu)
Basic properties and proofs
Every set is a subset of itself. The empty set is a subset of every set, because it has no element that could violate the defining condition. This does not mean that the empty set is an element of every set. (abstractmath.org)
Inclusion is reflexive, antisymmetric, and transitive:
- Reflexive: .
- Antisymmetric: and imply .
- Transitive: and imply .
It therefore defines a partial order on any set of sets. It is not generally a total order: and , for example, are incomparable under inclusion. (ocw.mit.edu)
A standard proof of takes an arbitrary element and establishes . To disprove inclusion, one counterexample suffices. Set equality is often proved by establishing both and , rather than comparing descriptions or enumerating elements. (web.stanford.edu)
Relationship to set operations
The intersection consists of elements common to both sets, while the union contains elements belonging to either. These definitions give useful equivalent tests:
Likewise, precisely when the difference is empty. These equivalences follow by checking which elements each expression contains. (people.csail.mit.edu)
If both sets lie inside a fixed set , their complements are taken relative to . Inclusion reverses under complementation:
The containing set matters: changing changes the complement, although it does not change whether . (people.csail.mit.edu)
Power sets and finite counting
The power set is the set of all subsets of . It converts inclusion into membership:
For example,
Both the empty set and the original set are included. (people.csail.mit.edu)
If has elements, it has exactly subsets: each element is independently included or excluded. There are proper subsets, since only itself is removed from the count. In combinatorics, the number of subsets containing exactly elements is the binomial coefficient . Unlike an ordered selection, a subset does not record the order in which its elements were chosen. (mathworld.wolfram.com)
Inclusion and infinite size
Inclusion and cardinality are distinct. A subset cannot have greater cardinality than its containing set, but a proper subset of an infinite set may have equal cardinality. For example, the even natural numbers form a proper subset of the natural numbers, yet gives a bijection between them. Both are countably infinite. (ocw.mit.edu)
By Cantor’s theorem, however, always has strictly greater cardinality than , even when is infinite. Thus, the natural numbers have uncountably many subsets, despite having only countably many individual elements. The number of subsets is not determined by treating proper inclusion as ordinary numerical inequality. (ocw.mit.edu)