MTH 131 - Set Theory
MTH 131 - Set Theory
1
1.2 SETS AND ELEMENTS, SUBSETS
A set may be viewed as any well-defined collection of objects, called the elements or members of the set.
One usually uses capital letters, A, B, X, Y, . . . , to denote sets, and lowercase letters, a, b, x, y, . . ., to denote
elements of sets. Synonyms for “set” are “class,” “collection,” and “family.”
Membership in a set is denoted as follows:
a ∈ S denotes that a belongs to a set S
a, b ∈ S denotes that a and b belong to a set S
Here ∈ is the symbol meaning “is an element of.” We use ∈ to mean “is not an element of.”
Specifying Sets
There are essentially two ways to specify a particular set. One way, if possible, is to list its members separated
by commas and contained in braces { }. A second way is to state those properties which characterized the elements
in the set. Examples illustrating these two ways are:
A = {1, 3, 5, 7, 9} and B = {x | x is an even integer, x > 0 }
That is, A consists of the numbers 1, 3, 5, 7, 9. The second set, which reads:
B is the set of x such that x is an even integer and x is greater than 0,
denotes the set B whose elements are the positive integers. Note that a letter, usually x, is used to denote a typical
member of the set; and the vertical line | is read as “such that” and the comma as “and.”
EXAMPLE 1.1
(a) The set A above can also be written as A = {x | x is an odd positive integer, x < 10 }.
(b) We cannot list all the elements of the above set B although frequently we specify the set by
B = {2, 4, 6, . . .}
where we assume that everyone knows what we mean. Observe that 8 ∈ B, but 3 ∈/ B .
1
[
Subsets
Suppose every element in a set A is also an element of a set B, that is, suppose a ∈ A implies a ∈ B. Then
A is called a subset of B. We also say that A is contained in B or that B contains A. This relationship is written
A⊆B or B⊇A
Two sets are equal if they both have the same elements or, equivalently, if each is contained in the other. That is:
If A is not a subset of B, that is, if at least one element of A does not belong to B , we write A ⊆ B.
Then C ⊆ A and C ⊆ B since 1 and 3, the elements of C , are also members of A and B . But B ⊆ A since some
of the elements of B , e.g., 2 and 5, do not belong to A. Similarly, A ⊆ B.
Property 1: It is common practice in mathematics to put a vertical line “|” or slanted line “/” through a symbol
to indicate the opposite or negative meaning of a symbol.
Property 2: The statement A ⊆ B does not exclude the possibility that A = B. In fact, for every set A we have
A ⊆ A since, trivially, every element in A belongs to A. However, if A ⊆ B and A = B, then we say A is a
proper subset of B (sometimes written A ⊂ B).
Property 3: Suppose every element of a set A belongs to a set B and every element of B belongs to a set C.
Then clearly every element of A also belongs to C. In other words, if A ⊆ B and B ⊆ C , then A ⊆ C .
The above remarks yield the following theorem.
Theorem 1.1: Let A, B, C be any sets. Then:
(i) A ⊆ A
(ii) If A ⊆ B and B ⊆ A, then A = B
(iii) If A ⊆ B and B ⊆ C, then A ⊆ C
Special symbols
Some sets will occur very often in the text, and so we use special symbols for them. Some such symbols are:
N = the set of natural numbers or positive integers: 1, 2, 3, . . .
Z = the set of all integers: . . . , −2, −1, 0, 1, 2, . . .
Q = the set of rational numbers
R = the set of real numbers
C = the set of complex numbers
Observe that N ⊆ Z ⊆ Q ⊆ R ⊆ C.
Universal Set, Empty Set
All sets under investigation in any application of set theory are assumed to belong to some fixed large set
called the universal set which we denote by
U
unless otherwise stated or implied.
Given a universal set U and a property P, there may not be any elements of U which have property P. For
example, the following set has no elements:
Such a set with no elements is called the empty set or null set and is denoted by
There is only one empty set. That is, if S and T are both empty, then S = T , since they have exactly the same
elements, namely, none.
The empty set ∅ is also regarded as a subset of every other set. Thus we have the following simple result
which we state formally.
Theorem 1.2: For any set A, we have ∅ ⊆ A ⊆ U.
Disjoint Sets
Two sets A and B are said to be disjoint if they have no elements in common. For example, suppose
Then A and B are disjoint, and A and C are disjoint. But B and C are not disjoint since B and C have elements
in common, e.g., 5 and 6. We note that if A and B are disjoint, then neither is a subset of the other (unless one is
the empty set).
Fig. 1-1
However, if A and B are two arbitrary sets, it is possible that some objects are in A but not in B, some are
in B but not in A, some are in both A and B , and some are in neither A nor B; hence in general we represent A
and B as in Fig. 1-1(c).
Recall that sets A and B are said to be disjoint or nonintersecting if they have no elements in common or,
using the definition of intersection, if A ∩ B = ∅, the empty set. Suppose
S=A∪B and A∩B=∅
EXAMPLE 1.4
(a) Let A = {1, 2, 3, 4}, B = {3, 4, 5, 6, 7}, C = {2, 3, 8, 9}. Then
(b) Let U be the set of students at a university, and let M denote the set of male students and let F denote the set
of female students. The U is the disjoint union of M of F ; that is,
This comes from the fact that every student in U is either in M or in F , and clearly no student belongs to
both M and F , that is, M and F are disjoint.
The following properties of union and intersection should be noted.
Property 1: Every element x in A ∩ B belongs to both A and B; hence x belongs to A and x belongs to B . Thus
A ∩ B is a subset of A and of B; namely
A∩B⊆A and A∩B⊆B
Property 2: An element x belongs to the union A ∪ B if x belongs to A or x belongs to B ; hence every element
in A belongs to A ∪ B, and every element in B belongs to A ∪ B. That is,
A⊆A∪B and B⊆A∪B
A\B = {1, 2}, A\C = {1, 4}, B\C = {4, 5, 6, 7}, A\E = {1, 3},
B \A = {5, 6, 7}, C \A = {8, 9}, C\B = {2, 8, 9}, E\A = {6, 8, 10, 12, . . .}.
Furthermore:
A ⊕ B = (A\B) ∪ (B\A) = {1, 2, 5, 6, 7}, B ⊕ C = {2, 4, 5, 6, 7, 8, 9},
A ⊕ C = (A\C) ∪ (B\C) = {1, 4, 8, 9}, A ⊕ E = {1, 3, 6, 8, 10, . . .}.
Fundamental Products
Consider n distinct sets A1, A2, …, An. A fundamental product of the sets is a set of the form
Thus U is the disjoint union of the fundamental products (Problem 1.60). There is a geometrical description
of these sets which is illustrated below.
EXAMPLE 1.6 Figure 1-5(a) is the Venn diagram of three sets A, B, C. The following lists the m = 2 3= 8
fundamental products of the sets A, B, C:
The eight products correspond precisely to the eight disjoint regions in the Venn diagram of sets A, B , C as
indicated by the labeling of the regions in Fig. 1-5(b).
Fig. 1-5
EXAMPLE 1.7
(a) The set A of the letters of the English alphabet and the set D of the days of the week are finite sets. Specifically,
A has 26 elements and D has 7 elements.
(b) Let E be the set of even positive integers, and let I be the unit interval, that is,
The notation n(S) or |S| will denote the number of elements in a set S. (Some texts use #(S) or card(S)
instead of n(S).) Thus n(A) = 26, where A is the letters in the English alphabet, and n(D) = 7, where D is the
days of the week. Also n(∅) = 0 since the empty set has no elements.
The following lemma applies.
Lemma 1.6: Suppose A and B are finite disjoint sets. Then A ∪ B is finite and
n(A ∪ B) = n(A) + n(B)
This lemma may be restated as follows:
Lemma 1.6: Suppose S is the disjoint union of finite sets A and B . Then S is finite and
n(S) = n(A) + n(B)
Proof. In counting the elements of A ∪ B, first count those that are in A. There are n(A) of these. The only other
elements of A ∪ B are those that are in B but not in A. But since A and B are disjoint, no element of B is in A,
so there are n(B) elements that are in B but not in A. Therefore, n(A ∪ B) = n(A) + n(B).
For any sets A and B, the set A is the disjoint union of A\B and A ∩ B. Thus Lemma 1.6 gives us the
following useful result.
Corollary 1.7: Let A and B be finite sets. Then
For example, suppose a class U with 30 students has 18 full-time students. Then there are 30 −18 = 12 part-time
students in the class U.
Inclusion–Exclusion Principle
There is a formula for n(A ∪ B) even when they are not disjoint, called the Inclusion–Exclusion Principle.
Namely:
Theorem (Inclusion–Exclusion Principle) 1.9: Suppose A and B are finite sets. Then A ∪ B and A ∩ B are
finite and
n(A ∪ B) = n(A) + n(B) − n(A ∩ B)
That is, we find the number of elements in A or B (or both) by first adding n(A) and n(B) (inclusion) and then
subtracting n(A ∩ B) (exclusion) since its elements were counted twice.
We can apply this result to obtain a similar formula for three sets:
Corollary 1.10: Suppose A, B, C are finite sets. Then A ∪ B ∪ C is finite and
EXAMPLE 1.8 Suppose a list A contains the 30 students in a mathematics class, and a list B contains the
35 students in an English class, and suppose there are 20 names on both lists. Find the number of students:
(a) only on list A, (b) only on list B, (c) on list A or B (or both).
(a) List A has 30 names and 20 are on list B; hence 30 − 20 = 10 names are only on list A.
(b) Similarly, 35 − 20 = 15 are only on list B.
(c) We seek n(A ∪ B). By inclusion–exclusion,
n(A ∪ B) = n(A) + n(B) − n(A ∩ B) = 30 + 35 − 20 = 45.
1.7 CLASSES OF SETS, POWER SETS
Given a set S, we might wish to talk about some of its subsets. Thus we would be
considering a set of sets.
Whenever such a situation occurs, to avoid confusion, we will speak of a class of sets or collection of sets
rather
than a set of sets. If we wish to consider some of the sets in a given class of sets, then we speak
of subclass or
subcollection.
(a) Let A be the class of subsets of S which contain exactly three elements of S. Then
That is, the elements of A are the sets {1, 2, 3}, {1, 2, 4}, {1, 3, 4}, and {2, 3, 4}.
(b) Let B be the class of subsets of S, each which contains 2 and two other elements of S. Then
The elements of B are the sets {1, 2, 3}, {1, 2, 4}, and {2, 3, 4}. Thus B is a subclass of
A, since every
element of B is also an element of A. (To avoid confusion, we will sometimes enclose the sets of a
class in
brackets instead of braces.)
Power Sets
For a given set S , we may speak of the class of all subsets of S. This class is called the power set of
S , and
will be denoted by P (S). If S is finite, then so is P (S). In fact, the number of elements in P (S) is 2 raised
to the
power n(S). That is,
n(P (S)) = 2n(s)
P (S) = [∅, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, S]
Note that the empty set ∅ belongs to P (S) since ∅ is a subset of S. Similarly, S belongs to P (S). As
expected
from the above remark, P (S) has 23= 8 elements.