Complement [007R]

Finally, we want to define the complement of a set as the set of things which are not in the set. However, we have to be careful: this is a bit nonsensical on its own. For example, if A = \{1,2,3\}, what elements are in its complement? Surely the number 4 is, but what about my sister? Or Beethoven? Or the small brown rock I picked up and threw into a pond last Tuesday? We have to restrict ourselves to some universal set, a “universe of discourse” that contains all the potential elements we are considering; in a given context, all the sets we work with will be subsets of the universal set. (If we are working with typed sets, where the elements are all taken from a particular type, then the type itself serves as the universal set.)

Note that there is no way to take the complement of a set in Disco, since Disco can only work with finite sets. The complement of a finite set is often infinite, in the general case where the universe of discourse U is infinite. For example, \{1,2,3\} is a finite set of natural numbers, but its complement is the infinite set \{0, 4, 5, 6, \dots \}.

Context

Operations on sets [0071]

Backlinks

Remark. Algebraic laws for set operations [007T]