If and are sets and every element of is also an element of , then:
- is a subset of , written
- is a superset of , written
If but is not equal to (i.e. there is at least one element of which is not an element of ), then:
- is a proper (strict) subset of , written
- is a proper (strict) superset of , written
Formally, a subset is constructed
where the formula is the indicator function of , such that for all where evaluates to true, , and for all where evaluates to false, .
The set of all subsets of a set is called its power set.