|
Elementary Set TheoryPhilip J. ErdelskyJuly 20, 2010 |
Please e-mail comments, corrections and additions to the webmaster at pje@efgh.com.
A set is a collection of items considered as a whole. If there are only a few items, the set can be defined by listing them in braces. For example, the set A might be defined as follows:
A = {1,2,3}
The items in a set are called elements or members of the set.
They are also said to belong to the set or to be in the set,
and the set is said to
contain them. The symbol
is used to express
this relationship -- a
A
means a belongs to A, and
a
A means a does not
belong to A.
Two sets are equal if they contain exactly the same elements. That is, set A is equal to set B if every element of A is also an element of B, and every element of B is also an element of A. The order in which the elements of a set are listed in its definition is irrelevant. For example, the sets {1,2,3} and {3,2,1} are equal.
An element cannot belong to a set more than once. Therefore, when a set is defined by listing its elements, each element is listed only once.
A set that contains no elements is called the empty set, and is
represented by the symbol
.
If every element of the set A is also an element of the set B,
then A is
said to be a subset of B, represented symbolically by
A
B, or B is said to include A.
Every set is a subset of itself, and the
empty set is a subset of every set.
If A
B and there is at least one
element of B that is not an
element of A, then A is said to be a proper subset of B,
represented symbolically by
A
B.
A subset is often defined by some property of its elements. For example, let A = {1,2,3,4,5,6}, and let B = {2,4,6}. Then B could be defined as the set of all elements of A which are even, or in symbols:
B ={xA | x is even}.
Here "|" means "such that". The word "all" is understood. In some cases the set A may also be understood.
The intersection of any number of sets is the set of elements that they
all have in common. For example, the intersection of {1,2,3,4,5},
{2,3,4,5,6,7,8,9} and {3,5,7,9} is {3,5}. It is clear that the intersection
of a collection of sets is a subset of every set in the collection.
The intersection of two sets A and B is represented symbolically by
A
B.
The intersection operation has several obvious properties:
B =
B
A.
B)
C =
A
(B
C).
B = A if, and only if,
A
B.
The union of any number of sets is the set of all of their elements.
For example the union of {1,2,3,4,5},
{2,3,4,5,6,7,8,9} and {3,5,7,9} is {1,2,3,4,5,6,7,8,9}. It is clear that
every set in a union is a subset of their union.
The union of two sets A and B is represented symbolically by
A
B.
The union operation has several obvious properties:
B =
B
A.
B)
C =
A
(B
C).
B = B if, and only if,
A
B.
Two sets are said to be disjoint if they have no elements in common;
i.e., A and B are disjoint if
A
B =
. Three or more sets are said to be
disjoint if every two of them are disjoint.
The notation A-B is used to indicate the set of all elements of A that are not elements of B. This operation has no standard name, but when B is a subset of A, A-B is sometimes said to be the complement of B in A.
The relationships among sets are often represented pictorially by a Venn diagram, in which sets are represented as the interiors of overlapping circles (or other plane figures). Set combinations are represented by areas bounded by the circles, as shown in the following example for two sets:

An ordered pair is a set of two elements in a specified order. An ordered pair is usually written (a,b) where a is the first element and b is the second element. Two ordered pairs (a,b) and (c,d) are equal if a=c and b=d. Reversing the elements of an ordered pair produces a different ordered pair if the elements are not the same. For example, the ordered pair (1,2) is not equal to the ordered pair (2,1).
For two sets A and B, the cross product
A
B is the set of all ordered
pairs whose first and second elements are elements of A and B, respectively.
That is,
AB = {(a,b) | a
A and b
B}