Chapter 1
Set theory
1.1. Sets and functions
In these notes, we assume some basic notions from set theory, for which we give only the briefest of reviews. We won’t attempt to define a set formally here. Instead, we simply make some remarks about them. Vaguely, a set is a collection of objects. Not every collection of objects is a set: the “collection” of all sets is not a set. On the other hand, most reasonable collections of objects are sets: the integers, the real numbers, the movies in your DVD collection (seemingly, a soon-to-be dated notion), those are sets.
Sets consist of elements. If is a set, we write to mean that is an element of (or “ is in ”). Similarly, means that is not an element of (which only really makes sense if both and the elements of are elements of some common larger set so they can be compared.)
Examples 1.1.1. §
- a.
-
The empty set is the set with no elements.
- b.
-
The set consisting of elements called , , and is denoted , and this notation extends to any finite collection of objects.
- c.
-
The set of positive integers is again a set.
- d.
-
The real numbers form a set.
Any collection of elements of a set is called a subset of and is a set itself. We write to mean that is a subset of . If and are different subsets of , then we write and we say that and are distinct subsets.
A property that only some elements of satisfy allows us to specify a subset of consisting of elements of that satisfy , which we denote in set-theoretic notation by
or just if is understood.
Example 1.1.2. §
The subset of is the set of even integers.
Definition 1.1.3. §
Let be a set and be a subset of . Then denotes the complement of in , which is defined as
If is a subset of that is not itself, then it is called a proper subset, and we write (or ). Given two subsets and of a larger set , we can form their union and their intersection , which are also subsets of .
Definition 1.1.4. §
Given sets and , the direct product is the set of pairs with and .
In set-theoretic notation, we may write this as
Definition 1.1.5. §
A function from a set to a set is a rule that to each associates a single element , known as the value of at .
Notation 1.1.6. §
We sometimes refer to a function as a map, and we sometimes write to indicate that , or in other words that maps (or sends) to .
We can, of course, compose functions, as in the following definition.
Definition 1.1.7. §
Let , , and be sets and and functions. The composition (or composite function) of with is the function such that for all .
Definition 1.1.8. §
Let be a function.
- a.
-
The function is one-to-one (or injective, or an injection) if for every such that , one has .
- b.
-
The function is onto (or surjective, or a surjection) if for every , there exists an such that .
- c.
-
The function a one-to-one correspondence (or bijective, or a bijection) if it is both one-to-one and onto.
Remark 1.1.9. §
In other words, to say a function is one-to-one is to say that it sends at most one element of to any given element of . To say that it is onto is to say that it sends at least one element of to any given element of . So, of course, to say that it is a one-to-one correspondence is to say that it sends exactly one element of to each element of .
Examples 1.1.10. §
- a.
-
The map defined by for every is one-to-one, but not onto.
- b.
- c.
-
The function defined by is onto, but not one-to-one.
Definition 1.1.11. §
Proposition 1.1.12. §
Let and be finite sets of the same order, and let be a function. Then is one-to-one if and only if it is onto.
Proof.
Let , and denote the elements of by . If for some , then the subset of has fewer than elements, hence cannot equal . Conversely, if has fewer than elements, then for some . Therefore is not one-to-one if and only if it is not onto, as desired. □
Note that every bijection has an inverse.
Definition 1.1.13. §
If is a bijection, then we define the inverse of to be the function satsifying for the unique such that .
Given a bijection , note that
for all and . In other words, (resp., ) is the function that takes every element of (resp., ) to itself.
Example 1.1.14. §
The function defined by has inverse .
Often, it is useful to use what is called an indexing set to define a collection, which is just some given set, like the natural numbers. Given objects for each , we can use set-theoretic notation to define a set consisting of them
that is in one-to-one correspondence with via the map that takes to .
Definition 1.1.15. §
Let be a set and be a collection of subsets of indexed by a set .
- a.
-
The intersection and union of the sets are defined as
respectively.
- b.
-
If for every with , we say that the sets are disjoint.
- c.
-
If the collection of is disjoint, then their union is called a disjoint union and is often written as
Definition 1.1.16. §
Let be a collection of sets. The direct product of the is the set of tuples
In other words, an element of is a choice of one element of for each .
1.2. Relations
In this section, we consider several types of a very general construct called a relation.
Definition 1.2.1. §
A relation is a subset of . We often write to indicate that .
Examples 1.2.2. §
As a first example, we see that functions can be considered as relations.
Remark 1.2.3. §
A function gives rise to a relation
known as the graph of . Equivalently, each relation in such that for each there exists a unique with gives rise to a function defined by (where ).
Example 1.2.4. §
The relation in corresponding to is the graph of in the usual sense.
We will consider two other types of relations.
Definition 1.2.5. §
An equivalence relation on is a relation in that satisfies the following properties.
- a.
-
(reflexivity) For all , we have .
- b.
-
(symmetry) For any , we have if and only if .
- c.
-
(transitivity) If satisfy and , then .
Examples 1.2.6. §
- a.
-
Equality is an equivalence relation on any set . As a relation, it defines the subset of .
- b.
-
The relation on is not an equivalence relation, as it is not symmetric.
- c.
-
Let be a positive integer, and consider the relation on defined by if is divisible by . This is an equivalence relation known as congruence modulo . We will write in place of , as is standard.
Definition 1.2.7. §
Let be an equivalence relation on a set . The equivalence class of is the set .
Examples 1.2.8. §
- a.
-
The equivalence classes under on a set are just the singleton sets for .
- b.
-
The equivalence class of under on is .
Definition 1.2.9. §
We refer to the set of equivalence classes of under congruence modulo as the integers modulo , and denote it . (Note that number theorists usually denote this set .) A typical member has the form
for some integer . An equivalence class is known as a congruence class modulo .
Lemma 1.2.10. §
The distinct equivalence classes of under an equivalence relation are disjoint, and is the disjoint union of its distinct equivalence classes.
Proof.
The second statement follows from the first once we known that different equivalence classes are disjoint, since every is in some equivalence class. For the first statement, suppose that and are elements of , and let and denote their respective equivalence classes under . If and are not disjoint, then there exists , so and . But then by symmetry of , and so for any , we have implies by transitivity of . Given that and using , we then have , again by transitivity. Hence . But since and are interchangeable in the last sentence, we have as well. Therefore, , which is to say any two equivalence classes of are either distinct or equal. □
Definition 1.2.11. §
Let be a set and an equivalence relation on .
- a.
-
For any equivalence class of , a representative of is just an element of .
- b.
-
A set of representatives (of the equivalence classes) of under is a subset of such that each equivalence class of contains exactly one element of .
Example 1.2.12. §
The set is a set of representatives of under congruence modulo .
Definition 1.2.13. §
A partial ordering on a set is a relation in that satisfies the following properties.
- i.
-
(reflexivity) For all , we have .
- ii.
-
(antisymmetry) If satisfy and , then .
- iii.
-
(transitivity) If satisfy and , then .
A set together with a partial ordering is referred to as a partially ordered set.
Examples 1.2.14. §
- a.
-
The relation on is a partial ordering, as is .
- b.
-
The relation on is not a partial ordering, as it is not reflexive.
- c.
-
The relation on the set of subsets of any set , which is known as the power set of , is a partial ordering.
- d.
-
The relation is a partial ordering on any set.
- e.
-
The relation is not a partial ordering on , as and are congruent, but not equal.
Given a partial ordering on a set , we can speak of minimal and maximal elements of .
Definition 1.2.15. §
Let be a set with a partial ordering .
- a.
-
A minimal element in (under ) is an element such that if and , then .
- b.
-
A maximal element is an element such that if and , then .
Minimal and maximal elements need not exist, and when they exist, they need not be unique. Here are some examples.
Examples 1.2.16. §
- a.
-
The set has no minimal or maximal elements under .
- b.
-
The interval in has the minimal element but no maximal element under .
- c.
-
The power set of has the minimal element and maximal element under .
- d.
-
Under on , every element is both minimal and maximal.
- e.
-
Consider the set of nonempty sets of the integers , with partial ordering . The minimal elements of are exactly the singleton sets for .
One can ask for a condition under which maximal (or minimal) elements exist. To phrase such a condition, we need two more notions.
Definition 1.2.17. §
Let be a set with a partial ordering . A chain in is a subset of such that if , then either or .
That is, a chain is a subset under which every two elements can be compared by the partial ordering.
Example 1.2.18. §
The power set of is not a chain, as we have neither contained in , nor contained in . However, its subset does form a chain.
Example 1.2.19. §
Any subset of forms a chain under .
The previous example leads us to the following definition, which we mention primarily as a remark.
Definition 1.2.20. §
If is itself a chain under , then is said to be a total ordering on .
We need the notion of bounds on subsets of a partially ordered set.
Definition 1.2.21. §
Let be a set with a partial ordering . Let be a subset of . An upper bound on under is an element such that for all .
That is, an upper bound on a subset is an element of the set that is at least as large as every element in the subset. Note that the upper bound need not, but can, be contained in the subset itself. (And, of course, lower bounds could have been defined similarly.)
Examples 1.2.22. §
- a.
-
The subset of has an upper bound under . In fact, any element is an upper bound for . The subset has the same upper bounds.
- b.
-
The subset of has no upper bound under .
We now come to Zorn’s lemma, which is equivalent to the so-called “axiom of choice”, and as such, is as much an axiom as it is a theorem (and more of a theorem than it is a lemma). Some, though far from most, mathematicians prefer not to include the axiom of choice among the axioms of set theory, fearing that the resulting collection of axioms may be logically incompatible. For the purposes of this book, we will have no such qualms, and we state Zorn’s lemma without proof: the reader may take it as an axiom.
Theorem 1.2.23 (Zorn’s lemma). §
Let be a set with a partial ordering , and suppose that every chain in has an upper bound. Then contains a maximal element.
Later on in these notes, we will see a couple of examples where Zorn’s lemma can be used to produce the existence of maximal elements in situations of use to algebraists. Zorn’s lemma is the form of the axiom of choice considered most conducive to applications in algebra.
Finally, let us consider the notion of generation. We have the following rather obvious lemma.
Lemma 1.2.24. §
Let be a set and be a subset. Let be a subset of containing such that is closed under intersection, and let be the (nonempty) subset of elements of containing . Then the intersection of the elements of is the unique minimal element of . That is, it is the smallest subset of in containing .
We think of of some property of certain subsets of that itself satisfies, where a subset of is in it has the property. As is closed under intersection, for any subset of , we may speak of the smallest subset that contains and has property . We then think of this subset as the subset of with property generated by . For instance, we have the following.
Example 1.2.25. §
Let be a set and be a relation on . The set of equivalence relations on is closed under intersection, as one may easily check, and is an equivalence relation. Thus, the intersection all equivalence relations containing is the smallest equivalence relation containing . We call the equivalence relation generated by .
Two elements are equivalent under if and only if there exist a sequence of elements with and for some such that , , or for every . To see this, one checks two things: first, that what we have just described defines an equivalence relation on , and secondly, that any equivalence relation on must contain every such pair .
1.3. Binary operations
To give context to the term “binary operation”, which we study in this section, here is what one might refer to simply as an “operation”.
Definition 1.3.1. §
Notation 1.3.2. §
The value of under an operation is denoted . It is often referred to as the product of and under (when confusion does not arise from this language).
Example 1.3.3. §
The set acts on for any by left diagonal multiplication. That is, we have
for and . Geometrically, this is the action of scaling of a vector.
If is a subset of , we can ask if the values for and land in .
Definition 1.3.4. §
Let be a (left) operation of on . A subset of is said to be closed under (or, left multiplication by ) if for all and .
Example 1.3.5. §
Consider the operation of multiplication. The subset of even numbers in is closed under this operation, which is to say left multiplication by integers. That is, if and , then . However, the subset of odd numbers is not closed under this operation. For instance, and , but .
Definition 1.3.6. §
Let be an operation and be a subset of that is closed under . Then the restriction of to an operation of on is the operation defined by for all and .
In this text, we will most often encounter binary operations.
Definition 1.3.7. §
A binary operation on a set is an operation of on itself.
Remarks 1.3.8. §
Let be a set.
- a.
-
A binary operation on is simply a function .
- b.
-
We often refer to a binary operation on more simply as an “operation” on , the fact that is operating on itself being implied.
Examples 1.3.9. §
The following are binary operations.
Examples 1.3.10. §
- a.
-
Exponentiation is not a binary operation on , as , for instance, has two possible values. It is therefore not well-defined.
- b.
-
Addition is not a binary operation on the set of nonzero real numbers, as , and . We say that is not closed under addition.
- c.
-
Division in not a binary operation on , as division by is not defined, but division is a binary operation on .
We can define a binary operation on a finite set via a multiplication table.
Example 1.3.11. §
Consider the set . The following table defines a binary operation on :
The entry in row and column is, by way of example, , and therefore, . On the other hand, is located in the row corresponding to and column of , and hence .
In the previous example, we could have filled in the nine entries in the bottom right 3-by-3 square arbitrarily with elements of , as there are no conditions of the values of a binary operation. Often, it is useful to impose conditions that give additional structure.
Definition 1.3.12. §
Let be a set.
- a.
-
A binary operation on is associative if
for all .
- b.
-
A binary operation on is commutative if
for all .
Examples 1.3.13. §
- a.
-
Addition is associative and commutative on , , , , , , and .
- b.
-
Subtraction is neither associative nor commutative on the sets , , , , , , and .
- c.
-
Multiplication is associative and commutative on , , , , , , and is associative but not commutative on for .
- d.
-
Union and intersection are associative and commutative binary operations on .
- e.
-
Composition on is an associative binary operation, but it is not commutative if has at least elements.
Definition 1.3.14. §
Let be a set and a binary operation on . Two elements are said to commute under if .
Commutativity of a binary operation on a finite set can be seen on its mutliplication table, as the table is then symmetric across the diagonal. Associativity is hard to see, but it is a strong condition. Here are some examples.
Examples 1.3.15. §
The following are tables of binary operations on the set :
Of these, only is associative, while only and are commutative, since and do not commute under .
Example 1.3.16. §
We can define operations and on as follows. Let , and recall that we denote their equivalence classes under congruence modulo by . We define and . These are well-defined, as if and are congruent modulo to and , respectively, then and .
Definition 1.3.17. §
A set together with a binary operation is called a binary structure, and we write it as a pair .
Remark 1.3.18. §
If is a binary structure, then we often refer to as the underlying set.
Example 1.3.19. §
The pair is a binary structure, as is .
Definition 1.3.20. §
Let be a binary structure. A subset is said to be closed under the binary operation if for all .
Definition 1.3.21. §
Let be a binary structure and a closed subset of . Then the restriction of to is a binary operation defined by for all . We usually denote more simply by .
Remark 1.3.22. §
If is a binary operation and is a closed subset of , then is a binary structure as well.
Examples 1.3.23. §
- a.
-
The subsets , , and of are closed under the binary operation .
- b.
-
The subset of is not closed under , though it is under .
- c.
-
The set of all nonempty subsets of a set is closed under the binary operation on , but not under the operation (unless has fewer than two elements).
- d.
-
The matrices in with determinant are closed under multiplication. The resulting binary structure is denoted .
Remark 1.3.24. §
If is a binary operation, then we can also think of it as an operation. However, the notions of a subset of being closed under as a binary operation and being closed under as an operation do not in general coincide. The first says that restricts to a binary operation , while the second says that restricts to an operation . In other words, the first requires only that the product of any two elements of lands in (under ), while the second says that the product lands in for any and any , which is a stronger condition.
Example 1.3.25. §
Consider the set and the binary operation of multiplication on it. The set of odd numbers is closed under multiplication thought of as a binary operation, since the product of any two odd numbers is odd. However, it is not closed thought of as an operation of on itself, since the product of an even number and an odd number is not odd (as in Example 1.3.5).
Look for similarities in the following tables of binary structures with underlying sets of order .
In fact, if we replace by , by , by , and by , the first table becomes the second. In a sense, these binary operations are the “same”. We give this notation of sameness a technical definition. Note that to be the same in this sense, there must exist a bijection between the sets: i.e., if they are finite, they must have the same number of elements.
Definition 1.3.26. §
Let and be binary structures. We say that they are isomorphic if there exists a bijection such that
for all . We then say that is an isomorphism.
Remark 1.3.27. §
If we remove the condition of bijectivity in Definition 1.3.26, then the map with is called a homomorphism of binary structures.
In the above example , , and , and the condition that for all is exactly that the multiplication tables match.
Examples 1.3.28. §
- a.
-
The map defined by defines an isomorphism from to itself.
- b.
-
The map defined by is not an isomorphism from to itself. It satisfies , but it is not onto.
- c.
-
Let . Define by . This is an isomorphism from to , since
for all .
- d.
-
The map defined by is not an isomorphism from to itself, as
On the other hand, the same map does define an isomorphism from to .
We have the following lemma.
Lemma 1.3.29. §
Suppose that is an isomorphism from to . Then the inverse of is an isomorphism from to .
Proof.
Let . Then there exists with and We have
and
so
as desired. □
Example 1.3.30. §
The inverse of with is , which satisfies
for .
In fact, the properties of being isomorphic puts an equivalence relation on any set of binary structures.
Example 1.3.31. §
The set of representatives for the isomorphism classes (i.e., equivalence classes under isomorphism) of binary structures on the set has elements. That is, one can construct at most 10 tables for binary operations on that give binary structures, no two of which are isomorphic, as the reader can check.