




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
This document delves into various aspects of set theory, relations, and logic. It covers topics such as cartesian products, equivalence classes, partitions, truth functions, and logical equivalence. The document also provides examples and explanations of connectives in truth tables, quantifiers, and the homeomorphic properties of graphs. It further discusses the symmetries of tetrahedron and the group of its symmetries.
Typology: Lecture notes
1 / 263
This page cannot be seen from the preview
Don't miss anything!
DRAFT
DRAFT
DRAFT
DRAFT
The following notations will be followed throughout the book.
This chapter will be devoted to understanding set theory, relations, functions. We start with the basic set theory.
1.1 Sets
Mathematicians over the last two centuries have been used to the idea of considering a collection of objects/numbers as a single entity. These entities are what are typically called sets. The technique of using the concept of a set to answer questions is hardly new. It has been in use since ancient times. However, the rigorous treatment of sets happened only in the 19-th century due to the German math- ematician Georg Cantor. He was solely responsible in ensuring that sets had a home in mathematics. Cantor developed the concept of the set during his study of the trigonometric series, which is now known as the limit point or the derived set operator. He developed two types of transfinite numbers, namely, transfinite ordinals and transfinite cardinals. His new and path-breaking ideas were not well received by his contemporaries. Further, from his definition of a set, a number of contradictions and paradoxes arose. One of the most famous paradoxes is the Russell’s Paradox, due to Bertrand Russell in 1918. This paradox amongst others, opened the stage for the development of axiomatic set theory. The interested reader may refer to Katz [8]. In this book, we will consider the intuitive or naive view point of sets. The notion of a set is taken as a primitive and so we will not try to define it explicitly. We only give an informal description of sets and then proceed to establish their properties. A “well-defined collection” of distinct objects can be considered to be a set. Thus, the principal property of a set is that of “membership” or “belonging”. Well-defined, in this context, would enable us to determine whether a particular object is a member of a set or not.
7
DRAFT
Members of the collection comprising the set are also referred to as elements of the set. Elements of a set can be just about anything from real physical objects to abstract mathematical objects. An important feature of a set is that its elements are “distinct” or “uniquely identifiable.” A set is typically expressed by curly braces, { } enclosing its elements. If A is a set and a is an element of it, we write a ∈ A. The fact that a is not an element of A is written as a 6 ∈ A. For instance, if A is the set { 1 , 4 , 9 , 2 }, then 1 ∈ A, 4 ∈ A, 2 ∈ A and 9 ∈ A. But 7 6 ∈ A, π 6 ∈ A, the English word ‘four’ is not in A, etc.
Example 1.1.1. 1. Let X = {apple, tomato, orange}. Here, orange ∈ X, but potato 6 ∈ X.
We now address the idea of distinctness of elements of a set, which comes with its own subtleties.
Example 1.1.2. 1. Consider the list of digits 1, 2 , 1 , 4 , 2. Is it a set?
Definition 1.1.3. The set S that contains no element is called the empty set or the null set and is denoted by { } or ∅. A set that has only one element is called a singleton set.
One has three main ways for specifying a set. They are:
Note that the above expressions are certain rules that help in defining the elements of the set X. In general, one writes X = {x : p(x)} or X = {x | p(x)} to denote the set of all elements x (variable) such that property p(x) holds. In the above, note that “colon” is sometimes replaced by “|”.
X = {x : x is an even integer greater than 3}.
Then, X can also be specified by (a) 4 ∈ X, (b) whenever x ∈ X, then x + 2 ∈ X, and (c) every element of X satisfies the above two rules.
DRAFT
(b) R ∪ (S ∪ T ) = (R ∪ S) ∪ T and R ∩ (S ∩ T ) = (R ∩ S) ∩ T (union and intersection are associative operations). (c) S ⊆ S ∪ T, T ⊆ S ∪ T. (d) S ∩ T ⊆ S, S ∩ T ⊆ T. (e) S ∪ ∅ = S, S ∩ ∅ = ∅. (f ) S ∪ S = S ∩ S = S.
Proof. 2 a. Let x ∈ R ∪ (S ∩ T ). Then, x ∈ R or x ∈ S ∩ T. If x ∈ R then, x ∈ R ∪ S and x ∈ R ∪ T. Thus, x ∈ (R ∪ S) ∩ (R ∪ T ). If x 6 ∈ R, then x ∈ S ∩ T. So, x ∈ S and x ∈ T. Here, x ∈ R ∪ S and x ∈ R ∪ T. Thus, x ∈ (R ∪ S) ∩ (R ∪ T ). In other words, R ∪ (S ∩ T ) ⊆ (R ∪ S) ∩ (R ∪ T ). Now, let y ∈ (R ∪ S) ∩ (R ∪ T ). Then, y ∈ R ∪ S and y ∈ R ∪ T. Now, if y ∈ R ∪ S then either y ∈ R or y ∈ S or both. If y ∈ R, then y ∈ R∪(S∩T ). If y 6 ∈ R then the conditions y ∈ R∪S and y ∈ R∪T imply that y ∈ S and y ∈ T. Thus, y ∈ S ∩T and hence y ∈ R∪(S ∩T ). This shows that (R∪S)∩(R∪T ) ⊆ R∪(S ∩T ), and thereby proving the first distributive law. The remaining proofs are left as exercises.
Exercise 1.2.4. 1. Complete the proof of Lemma 1.2.3.
Definition 1.2.5. Let X and Y be two sets.
Example 1.2.6. 1. Let A = { 1 , 2 , 4 , 18 } and B = {x ∈ Z : 0 < x ≤ 5 }. Then,
A \ B = { 18 }, B \ A = { 3 , 5 } and A∆B = { 3 , 5 , 18 }.
S \ T = {x ∈ R : 0 ≤ x < 0. 5 } and T \ S = {x ∈ R : 1 < x < 7 }.
X \ Y = {{b, c}, {{b}, {c}}}, Y \ X = {a, c} and X∆Y = {a, c, {b, c}, {{b}, {c}}}.
DRAFT
In naive set theory, all sets are essentially defined to be subsets of some reference set, referred to as the universal set, and is denoted by U. We now define the complement of a set.
Definition 1.2.7. Let U be the universal set and X ⊆ U. Then, the complement of X, denoted by Xc, is defined by Xc^ = {x ∈ U : x 6 ∈ X}.
We state more properties of sets.
Lemma 1.2.8. Let U be the universal set and S, T ⊆ U. Then,
The De-Morgan’s laws help us to convert arbitrary set expressions into those that involve only complements and unions or only complements and intersections.
Exercise 1.2.9. Let S and T be subsets of a universal set U.
Definition 1.2.10. Let X be a set. Then, the set that contains all subsets of X is called the power set of X and is denoted by P(X) or 2X^.
Example 1.2.11. 1. Let X = ∅. Then P(∅) = P(X) = {∅, X} = {∅}.
1.3 Relations
In this section, we introduce the set theoretic concepts of relations and functions. We will use these concepts to relate different sets. This method also helps in constructing new sets from existing ones.
DRAFT
(b) R = {(a, a), (b, b), (c, c), (d, d), (a, b), (a, c), (b, c)}. (c) R = {(a, a), (b, b), (c, c)}. (d) R = {(a, a), (a, b), (b, a), (b, b), (c, d)}. (e) R = {(a, a), (a, b), (b, a), (a, c), (c, a), (c, c), (b, b)}. (f) R = {(a, b), (b, c), (a, c), (d, d)}. (g) R = {(a, a), (b, b), (c, c), (d, d), (a, b), (b, c)}. (h) R = {(a, a), (b, b), (c, c), (d, d), (a, b), (b, a), (b, c), (c, b)}. (i) R = {(a, a), (b, b), (c, c), (a, b), (b, c)}.
Sometimes, we draw pictures to have a better understanding of different relations. For example, to draw pictures for relations on a set X, we first put a node for each element x ∈ X and label it x. Then, for each (x, y) ∈ R, we draw a directed line from x to y. If (x, x) ∈ R then a loop is drawn at x. The pictures for some of the relations is given in Figure 1.1.
a (^) b
c (^) d
A × A
a (^) b
c (^) d
Example 2.b
a (^) b
c (^) d
Example 2.c
Figure 1.1: Pictorial representation of some relations from Example 2
a
b c
R Figure 1.2: Pictorial representation of the relation in Example 3
DRAFT
Definition 1.3.7. Let X and Y be two nonempty sets and let R be a relation from X to Y. Then, the inverse relation, denoted by R−^1 , is a relation from Y to X, defined by R−^1 = {(y, x) ∈ Y × X : (x, y) ∈ R}. So, for all x ∈ X and y ∈ Y
(x, y) ∈ R if and only if (y, x) ∈ R−^1.
Example 1.3.8. 1. If R = {(1, a), (1, b), (2, c)} then R−^1 = {(a, 1), (b, 1), (c, 2)}.
One can ask similar questions for an element y ∈ Y. To accommodate all these, we introduce a notation in the following definition.
Definition 1.3.9. Let R be a nonempty relation from X to Y. Then,
Notation 1.3.10. Let R be a nonempty relation from X to Y. Then,
Example 1.3.11. Let a, b, c, and d be distinct symbols and let R = { 1 , a), (1, b), (2, c)}. Then,
Proposition 1.3.12. Let R be a nonempty relation from X to Y , and let Z be any set.
Proof. We prove the last two parts. The proof of the first two parts is left as an exercise.
(^1) In some texts, the set X is referred to as the domain set of R and it should not be confused with dom R.
DRAFT
Remark 1.4.4. 1. If X = ∅, then by convention, one assumes that there is a function, called the empty function, from X to Y.
Definition 1.4.5. Let X be a nonempty set.
Exercise 1.4.6. 1. Do the following relations represent functions? Why?
(a) f : Z → Z defined by i. f = {(x, 1) : 2 divides x} ∪ {(x, 5) : 3 divides x}. ii. f = {(x, 1) : x ∈ S} ∪ {(x, −1) : x ∈ Sc}, where S = {n^2 : n ∈ Z} and Sc^ = Z \ S. iii. f = {(x, x^3 ) : x ∈ Z}. (b) f : R+^ → R defined by f = {(x, ±
x) : x ∈ R+}, where R+^ is the set of all positive real numbers. (c) f : R → R defined by f = {(x,
x) : x ∈ R}. (d) f : R → C defined by f = {(x,
x) : x ∈ R}. (e) f : R−^ → R defined by f = {(x, loge |x|) : x ∈ R−}, where R−^ is the set of all negative real numbers. (f ) f : R → R defined by f = {(x, tan x) : x ∈ R}.
f −^1 (B)
for each B ⊆ Y.
DRAFT
Definition 1.4.7. A function f : X → Y is said to be injective (also called one-one or an injection) if for all x, y ∈ X, x 6 = y implies f (x) 6 = f (y). Equivalently, f is one-one if for all x, y ∈ X, f (x) = f (y) implies x = y.
Example 1.4.8. 1. Let X be a nonempty set. Then, the identity map Id on X is one-one.
Definition 1.4.9. Let f : X → Y be a function. Let A ⊆ X and A 6 = ∅. The restriction of f to A, denoted by fA, is the function fA = {(x, y) : (x, y) ∈ f, x ∈ A}.
Example 1.4.10. Define f : R → R by f (x) = 0 if x is rational, and f (x) = 1 if x is irrational. Then, fQ : Q → R is the zero function.
Proposition 1.4.11. Let f : X → Y be a one-one function and let Z be a nonempty subset of X. Then fZ is also one-one.
Proof. Suppose fZ (x) = fZ (y) for some x, y ∈ Z. Then f (x) = f (y). As f is one-one, x = y. Thus, fZ is one-one.
Definition 1.4.12. A function f : X → Y is said to be surjective (also called onto or a surjection) if f −^1 ({b}) 6 = ∅ for each b ∈ Y. Equivalently, f : X → Y is onto if there exists a pre-image under f , for each b ∈ Y.
Example 1.4.13. 1. Let X be a nonempty set. Then the identity map on X is onto.
g(y) =
y, if y ∈ X, a, if y ∈ Y \ X.
Then g is an onto function.
Definition 1.4.14. Let X and Y be sets. A function f : X → Y is said to be bijective (also call a bijection) if f is both one-one and onto. The set X is said to be equinumerous^1 with the set Y if there exists a bijection f : X → Y. (^1) If X is equinumerous with Y then X is also said to be equivalent to Y.
DRAFT
Theorem 1.5.4. [Properties of the identity function] Let X and Y be two nonempty sets and Id be the identity function on X. Then, for any two functions f : X → Y and g : Y → X,
f ◦ Id = f and Id ◦ g = g.
Proof. By definition, (f ◦ Id)(x) = f (Id(x)) = f (x), for all x ∈ X. Hence, f ◦ Id = f. Similarly, the other equality follows.
We now give a very important bijection principle.
Theorem 1.5.5. [Bijection principle] Let f : X → Y and g : Y → X be functions such that (g ◦ f )(x) = x for each x ∈ X. Then f is one-one and g is onto.
Proof. To show that f is one-one, suppose f (a) = f (b) for some a, b ∈ X. Then
a = (g ◦ f )(a) = g (f (a)) = g (f (b)) = (g ◦ f )(b) = b.
Thus, f is one-one. To show that g is onto, let a ∈ X. Write b = f (a). Now, a = (g ◦ f )(a) = g(f (a)) = g(b). That is, we have found b ∈ Y such that g(b) = a. Hence, g is onto.
Exercise 1.5.6. 1. Let f, g : W → W be defined by f = {(x, 2 x) : x ∈ W} and g = {
x, x 2
x is even} ∪ {(x, 0) : x is odd}. Verify that g ◦ f is the identity function on W, whereas f ◦ g maps even numbers to even numbers and odd numbers to 0.
Show that f is a bijection and g = f −^1. Can we conclude the same without assuming the second condition?
1.6 Equivalence relation
We look at some relations that are of interest in mathematics.
Definition 1.6.1. Let A be a nonempty set. Then, a relation R on A is said to be
DRAFT
Exercise 1.6.2. For relations defined in Example 1.3.6, determine which of them are
Definition 1.6.3. Let A be a nonempty set. A relation on A is called an equivalence relation if it is reflexive, symmetric and transitive. It is customary to write a supposed equivalence relation as ∼ rather than R. The equivalence class of the equivalence relation ∼ containing an element a ∈ A is denoted by [a], and is defined as [a] := {x ∈ A : x ∼ a}.
Example 1.6.4. 1. Consider the relations on A of Example 1.3.6.
(a) The relation in Example 1.3.6.1 is not an equivalence relation; it is not symmetric. (b) The relation in Example 1.3.6.2a is an equivalence relation with [a] = {a, b, c, d} as the only equivalence class. (c) Other relations in Example 1.3.6.2 are not equivalence relations. (d) The relation in Example 1.3.6.4 is an equivalence relation with the equivalence classes as i. [0] = {... , − 15 , − 10 , − 5 , 0 , 5 , 10 ,.. .}. ii. [1] = {... , − 14 , − 9 , − 4 , 1 , 6 , 11 ,.. .}. iii. [2] = {... , − 13 , − 8 , − 3 , 2 , 7 , 12 ,.. .}. iv. [3] = {... , − 12 , − 7 , − 2 , 3 , 8 , 13 ,.. .}. v. [4] = {... , − 11 , − 6 , − 1 , 4 , 9 , 14 ,.. .}. (e) The relation in Example 1.3.6.5 is an equivalence relation with the equivalence classes as [0] = {... , − 3 n, − 2 n, −n, 0 , n, 2 n,.. .}. [1] = {... , − 3 n + 1, − 2 n + 1, −n + 1, 1 , n + 1, 2 n + 1,.. .}. [2] = {... , − 3 n + 2, − 2 n + 2, −n + 2, 2 , n + 2, 2 n + 2,.. .}. .. . [n − 2] = {... , − 2 n − 2 , −n − 2 , − 2 , n − 2 , 2 n − 2 , 3 n − 2 ,.. .}. [n − 1] = {... , − 2 n − 1 , −n − 1 , − 1 , n − 1 , 2 n − 1 , 3 n − 1 ,.. .}.
Proposition 1.6.5. [Equivalence relation divides a set into disjoint classes] Let ∼ be an equivalence relation on a nonempty set X. Then,
That is, an equivalence relation ∼ on X divides X into disjoint equivalence classes.
Proof. 1. Let a, b ∈ X be distinct elements of X. If the equivalence classes [a] and [b] are disjoint, then there is nothing to prove. So, assume that there exists c ∈ X such that c ∈ [a] ∩ [b]. That is, c ∼ a and c ∼ b. By symmetry of ∼ it follows that a ∼ c and b ∼ c. We will show that [a] = [b]. For this, let x ∈ [a]. Then x ∼ a. Since a ∼ c and ∼ is transitive, we have x ∼ c. Again, c ∼ b and transitivity of ∼ imply that x ∼ b. Thus, x ∈ [b]. That is, [a] ⊆ [b]. A similar argument proves that [b] ⊆ [a]. Thus, whenever two equivalence classes intersect, they are indeed equal.