Section 1.2 Sets and Equivalence Relations
Subsection Set Theory
A set is a well-defined collection of objects; that is, it is defined in such a manner that we can determine for any given object whether or not belongs to the set. The objects that belong to a set are called its elements or members. We will denote sets by capital letters, such as or if is an element of the set we write
A set is usually specified either by listing all of its elements inside a pair of braces or by stating the property that determines whether or not an object belongs to the set. We might write
for a set containing elements or
if each in satisfies a certain property For example, if is the set of even positive integers, we can describe by writing either
We can find various relations between sets as well as perform operations on sets. A set is a subset of written or if every element of is also an element of For example,
and
Trivially, every set is a subset of itself. A set is a proper subset of a set if but If is not a subset of we write for example, Two sets are equal, written if we can show that and
It is convenient to have a set with no elements in it. This set is called the empty set and is denoted by Note that the empty set is a subset of every set.
To construct new sets out of old sets, we can perform certain operations: the union of two sets and is defined as
We can consider the union and the intersection of more than two sets. In this case we write
and
for the union and intersection, respectively, of the sets
When two sets have no elements in common, they are said to be disjoint; for example, if is the set of even integers and is the set of odd integers, then and are disjoint. Two sets and are disjoint exactly when
Sometimes we will work within one fixed set called the universal set. For any set we define the complement of denoted by to be the set
Proposition 1.2.
Proof.
We will prove (1) and (3) and leave the remaining results to be proven in the exercises.
(1) Observe that
and
Also,
(3) For sets and
A similar argument proves that
Theorem 1.3. De Morgan’s Laws.
Proof.
(1) If then the theorem follows immediately since both and are the empty set. Otherwise, we must show that and Let Then So is neither in nor in by the definition of the union of sets. By the definition of the complement, and Therefore, and we have
To show the reverse inclusion, suppose that Then and and so and Thus and so Hence, and so
The proof of (2) is left as an exercise.
Example 1.4.
Subsection Cartesian Products and Mappings
Given sets and we can define a new set called the Cartesian product of and as a set of ordered pairs. That is,
Example 1.5.
We define the Cartesian product of sets to be
If we often write for (where would be written times). For example, the set consists of all of 3-tuples of real numbers.
Subsets of are called relations. We will define a mapping or function from a set to a set to be the special type of relation where each element has a unique element such that Another way of saying this is that for every element in assigns a unique element in We usually write or Instead of writing down ordered pairs we write or The set is called the domain of and
is called the range or image of We can think of the elements in the function’s domain as input values and the elements in the function’s range as output values.
Example 1.6.
Suppose and In Figure 1.7 we define relations and from to The relation is a mapping, but is not because is not assigned to a unique element in that is, and
Given a function it is often possible to write a list describing what the function does to each specific element in the domain. However, not all functions can be described in this manner. For example, the function that sends each real number to its cube is a mapping that must be described by writing or
Consider the relation given by We know that but is or This relation cannot be a mapping because it is not well-defined. A relation is well-defined if each element in the domain is assigned to a unique element in the range.
If is a map and the image of is i.e., then is said to be onto or surjective. In other words, if there exists an for each such that then is onto. A map is one-to-one or injective if implies Equivalently, a function is one-to-one if implies A map that is both one-to-one and onto is called bijective.
Example 1.8.
Let be defined by Then is one-to-one but not onto. Define by where is a rational number expressed in its lowest terms with a positive denominator. The function is onto but not one-to-one.
Given two functions, we can construct a new function by using the range of the first function as the domain of the second function. Let and be mappings. Define a new map, the composition of and from to by
Example 1.10.
Consider the functions and that are defined in Figure 1.9 (top). The composition of these functions, is defined in Figure 1.9 (bottom).
Example 1.11.
Example 1.12.
Example 1.13.
Example 1.14.
Theorem 1.15.
Proof.
We will prove (1) and (3). Part (2) is left as an exercise. Part (4) follows directly from (2) and (3).
(1) We must show that
For we have
(3) Assume that and are both onto functions. Given we must show that there exists an such that However, since is onto, there is an element such that Similarly, there is an such that Accordingly,
If is any set, we will use or to denote the identity mapping from to itself. Define this map by for all A map is an inverse mapping of if and in other words, the inverse function of a function simply “undoes” the function. A map is said to be invertible if it has an inverse. We usually write for the inverse of
Example 1.16.
Example 1.17.
Example 1.18.
Suppose that
hence, the inverse map is given by
It is easy to check that
Not every map has an inverse. If we consider the map
given by the matrix
then an inverse map would have to be of the form
and
Example 1.19.
Theorem 1.20.
A mapping is invertible if and only if it is both one-to-one and onto.
Proof.
Suppose first that is invertible with inverse Then is the identity map; that is, If with then Consequently, is one-to-one. Now suppose that To show that is onto, it is necessary to find an such that but with Let
Conversely, let be bijective and let Since is onto, there exists an such that Because is one-to-one, must be unique. Define by letting We have now constructed the inverse of
Subsection Equivalence Relations and Partitions
A fundamental notion in mathematics is that of equality. We can generalize equality with equivalence relations and equivalence classes. An equivalence relation on a set is a relation such that
for all (reflexive property); implies (symmetric property); and imply (transitive property).
Given an equivalence relation on a set we usually write instead of If the equivalence relation already has an associated notation such as or we will use that notation.
Example 1.21.
Example 1.22.
Suppose that and are differentiable functions on We can define an equivalence relation on such functions by letting if It is clear that is both reflexive and symmetric. To demonstrate transitivity, suppose that and From calculus we know that and where and are both constants. Hence,
Example 1.23.
Example 1.24.
Let and be matrices with entries in the real numbers. We can define an equivalence relation on the set of matrices, by saying if there exists an invertible matrix such that For example, if
Then therefore, the relation is reflexive. To show symmetry, suppose that Then there exists an invertible matrix such that So
the relation is transitive. Two matrices that are equivalent in this manner are said to be similar.
A partition of a set is a collection of nonempty sets such that for and Let be an equivalence relation on a set and let Then is called the equivalence class of We will see that an equivalence relation gives rise to a partition via equivalence classes. Also, whenever a partition of a set exists, there is some natural underlying equivalence relation, as the following theorem demonstrates.
Theorem 1.25.
Given an equivalence relation on a set the equivalence classes of form a partition of Conversely, if is a partition of a set then there is an equivalence relation on with equivalence classes
Proof.
Suppose there exists an equivalence relation on the set For any the reflexive property shows that and so is nonempty. Clearly Now let We need to show that either or Suppose that the intersection of and is not empty and that Then and By symmetry and transitivity hence, Similarly, and so Therefore, any two equivalence classes are either disjoint or exactly the same.
Conversely, suppose that is a partition of a set Let two elements be equivalent if they are in the same partition. Clearly, the relation is reflexive. If is in the same partition as then is in the same partition as so implies Finally, if is in the same partition as and is in the same partition as then must be in the same partition as and transitivity holds.
Corollary 1.26.
Two equivalence classes of an equivalence relation are either disjoint or equal.
Let us examine some of the partitions given by the equivalence classes in the last set of examples.
Example 1.27.
In the equivalence relation in Example 1.21, two pairs of integers, and are in the same equivalence class when they reduce to the same fraction in its lowest terms.
Example 1.28.
In the equivalence relation in Example 1.22, two functions and are in the same partition when they differ by a constant.
Example 1.29.
We defined an equivalence class on by if Two pairs of real numbers are in the same partition when they lie on the same circle about the origin.
Example 1.30.
Let and be two integers and suppose that We say that is congruent to modulo or is congruent to mod if is evenly divisible by that is, for some In this case we write For example, since is divisible by We claim that congruence modulo forms an equivalence relation of Certainly any integer is equivalent to itself since is divisible by We will now show that the relation is symmetric. If then is divisible by So is divisible by and Now suppose that and Then there exist integers and such that and To show transitivity, it is necessary to prove that is divisible by However,
If we consider the equivalence relation established by the integers modulo then
The integers modulo are a very important example in the study of abstract algebra and will become quite useful in our investigation of various algebraic structures such as groups and rings. In our discussion of the integers modulo we have actually assumed a result known as the division algorithm, which will be stated and proved in Chapter 2.