Main Page | See live article | Alphabetical index

Set-builder notation

In set theory and its applications to logic, mathematics, and computer science, set-builder notation is a notation for describing a set by indicating the properties that its members must satisfy.

The simplest sort of set-builder notation is {x : P(x)}, where P is a predicate in one variable. This indicates the set of everything satisfying the predicate P, that is the set of every object x such that P(x) is true. For example:

The last example shows how set-builder notation can be tricky. The set described in that example in fact cannot exist (see Russell's paradox).

For this reason, set-builder notation can be modified to certain special forms. One of these is {x in A : P(x)}, where A is a previously defined set. This indicates the set of every element of A that satisfies the predicate P. For example:

In axiomatic set theory, this set is guaranteed to exist by the axiom schema of separation. We avoid Russell's paradox here because there is no set of all sets (at least not in the usual development of axiomatic set theory).

Another variation on set-builder notation describes the members of the set in terms of members of some other set. Specifically, {F(x) : x in A}, where F is a function symbol and A is a previously defined set, indicates the set of all values of members of A under F. For example:

In axiomatic set theory, this set is guaranteed to exist by the axiom schema of replacement.

These notations can be combined in the form {F(x) : x in A, P(x)}, which indicates the set of all values under F of those members of A that satisfy P. For example:

This example also shows how multiple variables can be used (both p and q in this case).

The notation can be complicated, especially as in the previous example, and abbreviations are often employed when context indicates the nature of a variable. For example:

As the last example shows, such an abbreviated notation again might not denote an actual nonparadoxical set, unless there is in fact a set of all objects that might be described by the variable in question.