1.1: Sets
( \newcommand{\kernel}{\mathrm{null}\,}\)
We start off by providing a “definition” of a basic mathematical structure to which we will soon add bells and whistles. We use quotes here because what follows doesn't have the precision we usually require when defining a mathematical object.
Definition: Set
A set is an (unordered) collection of objects.
This is only sort of a “definition” because it is not a rigorous definition of a set. For instance, what do we mean by a “collection” of objects? This “definition” will be sufficient for our course, but be warned that defining a set in this vague way can lead to some serious mathematical issues, such as Russell's paradox. A mathematician whose expertise is in set theory may scowl disagreeably if you try to define a set as we have above.
Note
Let
Definition: Elements and Empty Set
The members of a set are called its elements. If
Sets must be well-defined: that is, it must be clear exactly which objects are in a set, and which objects aren't. For instance, the set of all integers is well-defined, but the set of all big integers is not well-defined, since it is unclear what “big” means in this context.
We refer to some sets so frequently in mathematics that we have special notation for them.
Example
Some common sets are:
We can further write denote by
We also provide notation for commonly considered sets of matrices:
Definition
Given
One common way of describing a set is to list its elements in curly braces, separated by commas; you can use ellipses to indicate a repeated pattern of elements. A few examples are
Another method is using set-builder notation. This consists of an element name (or names), followed by a colon (meaning “such that”), followed by a Boolean expression involving the element name(s), all surrounded by curly braces.
Note
The use of a colon to denote “such that” is only valid in the above set-builder notation context. Outside of this context, you should never use a colon to denote “such that”; instead, use the abbreviation “s.t.” or write out the actual words. Conversely, never use one of those ways of indicating “such that” within set-builder notation; always use a colon there. Why? Convention.
For example,
is the set
is the set of all complex numbers at distance
Note
If one simply writes
Definition: Subset and Superset
Set
Remark
Sometimes the notation
Note
One often proves that two sets
Example
We have the following:
Definition: Power Set
The power set of
Note
Be careful to use your curly braces correctly when writing power sets! Remember, the power set of a set is a set of sets.
The following provides a good example of using braces correctly.
Example
If
Definition: Union, Intersection, Difference, and Disjoint
-
If
and are subsets of a set then the union of and denoted is the set the intersection of and denoted is the set and the difference of and denoted (or ), is the set -
More generally, given any collection of subsets
( in some index set ) of a set the union of the is
and the intersection of the
-
Sets
and are disjoint if More generally, sets ( in some index set ) are disjoint if
and are mutually disjoint if
Notice that for any subsets
We define one more way of “combining” sets.
Definition: Direct Product and Ordered Pair
Let
An element
the elements
of
Example
For example, the Cartesian plane is the set



