Concise Introduction To Logic and Set Theory
Concise Introduction To Logic and Set Theory
Reasonable efforts have been made to publish reliable data and information, but the author and pub-
lisher cannot assume responsibility for the validity of all materials or the consequences of their use.
The authors and publishers have attempted to trace the copyright holders of all material reproduced
in this publication and apologize to copyright holders if permission to publish in this form has not
been obtained. If any copyright material has not been acknowledged please write and let us know so
we may rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced,
transmitted, or utilized in any form by any electronic, mechanical, or other means, now known or
hereafter invented, including photocopying, microfilming, and recording, or in any information
storage or retrieval system, without written permission from the publishers.
For permission to photocopy or use material electronically from this work, access www.copyright.
com or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA
01923, 978-750-8400. For works that are not available on CCC please contact mpkbookspermis-
[email protected]
Trademark notice: Product or corporate names may be trademarks or registered trademarks and are
used only for identification and explanation without intent to infringe.
DOI: 10.1201/9780429022838
Preface......................................................................................................................vii
About Authors...........................................................................................................ix
v
vi Contents
Bibliography ..........................................................................................................157
Index......................................................................................................................159
Preface
The book deals with two most important branches of mathematics, namely, logic
and set theory. Logic and set theory are two closely related branches of mathemat-
ics that play very crucial role in the foundations of mathematics, and together these
produced several beautiful results in all of mathematics. The book is designed for
various courses where mathematical logic and set theory are required either as com-
pulsory subjects or as parts of other subjects. The book consists of five chapters, and
they are organised as follows:
Chapter 1 deals with basics of mathematical logic. The chapter starts with the
concept of “set” briefly with examples. Then several topics and notions, such as
propositions, connectives, tautology, contradiction, quantifiers, logical reasoning,
mathematical proof, direct and contrapositive proof, contradiction proof, and in-
duction principle, are discussed with examples. Exercises are also incorporated at
different places of the chapter.
Chapter 2 starts with the basic notions of set theory. Then several elementary
properties and operations on sets, such as union of sets, intersection of sets, com-
plement of set, and difference and symmetric difference of sets, are discussed with
examples and diagrammatic representations. Finally, the chapter discusses indexed
families of sets. Several exercises relevant to the topics discussed are also incorpo-
rated at different places within the chapter.
Chapter 3 deals with the notion of relations with lots of examples, diagram-
matic representations, and exercises. In particular, the chapter discusses notions
such as ordered pairs and Cartesian product, relations on sets, type of relations,
equivalence relations, equivalence classes, congruence, and partial and total ordered
relations.
Chapter 4 discusses the concept of functions, and basic ideas associated with this
notion with the help of several examples and diagrammatic representations. In par-
ticular, the chapter discusses concepts such as domain and range of a function, graph
of a function, functions that are onto and one-to-one, composite function, inverse
function, and direct images and inverse images under function. Relevant exercises
are also added at different locations of the chapter.
Chapter 5 deals with the cardinality of sets. Several notions and associated ideas
on finite and infinite sets, equivalent sets, countable and uncountable sets, and car-
dinal arithmetic are also discussed. Finally, Cantor’s theorem, Schröder–Bernstein
theorem and axiom of choice are presented. This chapter also contains several exam-
ples and exercises.
We would like to offer our sincere thanks to all the authors who have con-
tributed extensively in the field of set theory and mathematical logic and our family
vii
viii Preface
members and friends who have encouraged us to develop this book. The authors
are also grateful to Ants Aasma (Estonia) for carefully reading/editing the book and
making several fruitful suggestions to improve the presentation of the book.
Iqbal H. Jebril
Hemen Dutta
Ilwoo Cho
March 2021
About Authors
Iqbal H. Jebril is Professor in the Department of Mathematics at Al-Zaytoonah
University of Jordan, Amman, Jordan. He obtained his Ph.D. from the National Uni-
versity of Malaysia (UKM), Malaysia. His fields of research interest include func-
tional analysis, operator theory, and fuzzy logic. He has several prestigious journal
and conference publications to his credit. He is also serving for several journals and
conferences in different capacities.
Hemen Dutta obtained his M.Phil and Ph.D. both in mathematics and also com-
pleted postgraduate Diploma in Computer Application from Gauhati University, In-
dia. He is a regular teaching faculty member in the Department of Mathematics at
Gauhati University, India. His current research interests include topics in nonlinear
analysis and mathematical modelling. He is currently a regular and guest editor of
several SCI/SCIE indexed journals. He has also published several thematic issues in
leading journals and books with reputed publishers.
Ilwoo Cho obtained his Ph.D. from the Department of Mathematics, University of
Iowa, USA. His major fields of research are free probability, operator theory, op-
erator algebra, and dynamical systems. He is full professor in the Department of
Mathematics & Statistics at Saint Ambrose University, USA. He is also an assistant
editor of Complex Analysis & Operator Theory and Mathematics Reviewer of the
American Mathematical Society.
ix
1 Mathematical Logic
Logic is the analysis of reasoning, and it concerns with the picture of thought not
with its subject. Mathematical logic, however, is one of the mathematical branches
that concerns with explaining types of reasoning used by mathematicians.
In this chapter, we present set concept briefly. Set theory is the cornerstone in
the foundations of mathematical logic, and it is the device of defining and analyzing
primary concepts. After that we define the proposition and explain the way to connect
simple propositions with one link or more to get a compound proposition. Then, we
talk about the qualified propositions and valid arguments. We conclude the chapter
with methods of mathematical proof.
1.1 SETS
In this section, we present a simple introduction of sets, which form a base of study-
ing logic. In chapter two, we will describe set theory in more detail, giving notations
and results, which we need later.
Although we will not formally define the word “set”, we will use it to refer to a
collection of objects of some sort. We indicate that an object x is in a set A by writing
x ∈ A. If x is not in A, we write x 6∈ A. The objects in a set A are usually called the
elements of A.
Example 1.1.1
(1) 2 ∈ {1, 2, 3, a, b},
(2) 3 6∈ {−1, 0, 1}.
We say that sets A and B are equal and write A = B in case A and B contain exactly
the same elements.
Example 1.1.2 ( √ )
3 n πo
0, , 6, 1 = 1, 6, sin 2π , cos .
2 6
We shall use the following notations for some common sets of numbers,
DOI: 10.1201/9780429022838-1 1
2 Concise Introduction to Logic and Set Theory
(a, b)
a b
Whereas, the closed interval [a, b] is the set of real numbers between a and b, and
it includes the endpoints a and b, that is
[a, b] = {x ∈ R | a ≤ x ≤ b},
[a, b]
a b
the half-open interval (or half closed) [a, b) & (a, b]
[a, b)
a b
Note that
[a, ∞) = {x ∈ R | x ≥ a}, (a, ∞) = {x ∈ R | x > a},
[a, )
a
Definition 1.2.1 A proposition (or statement) is a sentence that is either true or false.
Thus, a proposition has exactly one truth value: true, which we denote by T, or false,
which we denote by F.
P, Q, R, S, . . .
Definition 1.2.3 Any two propositions can be combined by the word “and” to form
a composite proposition, which is called conjunction of the original propositions.
Symbolically, the conjunction of two propositions P and Q is denoted by P ∧ Q.
4 Concise Introduction to Logic and Set Theory
Example 1.2.4 Let P be “it is raining” and let Q be “the sun is shining”. Then P ∧ Q
denotes the proposition “it is raining and the sun is shining”.
The truth value of the composite proposition P ∧ Q satisfies the following property:
Note that the first line is a short way of saying that if P is true and Q is true, then
P ∧ Q is true. The other lines have analogous meaning.
Definition 1.2.8 Any two propositions can be combined by the word “or” to form a
new proposition, which is called disjunction of the original two propositions. Sym-
bolically, the disjunction of propositions P and Q is denoted by P ∨ Q.
Any two propositions can be combined by the word “or” to form a new proposition,
which is called the disjunction of the original two propositions. Symbolically, the
disjunction of propositions P and Q is denoted by P ∨ Q.
√
Example 1.2.9 Let P √ be “1 6= 5” and let Q be “ 2 is irrational”. Then P ∨ Q is the
proposition “1 6= 5 or 2 is irrational”.
The truth value of the composite proposition P ∨ Q satisfies the following property:
Property 1.2.10 If P is true or Q is true or both P and Q are true, then P ∨ Q is true;
otherwise, P ∨ Q is false. In other words, the disjunction of two propositions is false
only if each component is false.
Mathematical Logic 5
The truth value of the negation of a proposition satisfies the following property:
Example 1.2.15 Consider the propositions in Example 1.2.12 above. Notice that (a)
is true, and (b) and (c), its negations, are false.
Example 1.2.16 Consider the propositions in Example 1.2.13 above. Notice that (a)
is false, and (b) and (c), its negations, are true.
Definition 1.2.17 Many propositions, especially in mathematics, are of the form “if
P, then Q”. Such propositions are called conditional propositions and are denoted by
P ⇒ Q.
6 Concise Introduction to Logic and Set Theory
The truth value of the conditional proposition P ⇒ Q satisfies the following property:
Property 1.2.21 If P and Q have the same truth value, then P ⇔ Q is true; if P and
Q have opposite truth values, then P ⇔ Q is false.
Property 1.2.21 can be written in the form of a table as follows:
P Q P⇔Q
T T T
T F F
F T F
F F T
Mathematical Logic 7
Hence (P ⇔ Q) ∧ (Q ⇒ P) ≡ P ⇔ Q.
Hence (P ⇒ Q) ≡∼ P ∨ Q.
8 Concise Introduction to Logic and Set Theory
Exercises
1. Which of the following sentences are propositions? Justify your answer.
(a) x < 5.
(b) x + y = y + x.
(c) ∃ x ∈ N, such that x < 3.
1
(d) lim = 0.
n→∞ n
(e) He is a good player.
(f) This sentence is true.
2. Find the solution set of the following sentences:
(a) x − 2 < 5 and x ∈ {0, 1, 2, 3},
(b) |x| + 1 < 3 in {0, 1, 2, 3, 5},
(c) (x + 2)(x − 1) = 0 in {5, 6, 8},
(d) 2x2 + 3x + 1 = 0 in Q,
(e) x2 + 1 = 0 in R.
3. Determine the truth value of each of the following propositions:
(a) For all real numbers x, x2 = 0.
(b) If f (x) = x3 , then f ′ (x) = 3x2 .
(c) For any natural number n, n2 = n.
(d) 2 is a real number ⇔ Damascus is in Syria.
(e) There exists a natural number n such that n2 = n.
(f) There exists a rational number q such that q < 2.
1
(g) e is a rational number and lim = 1.
n→∞ n
√
(h) For all x ∈ R, x2 = |x| and 9 6= 5.
(i) π is a rational number or π is a real number.
√
(j) Paris is in France or 25 = 4.
(k) ∼ (π is not a rational number).
(l) 2 < 1 ⇒ 2 < 3.
(m) 3 > 7 ⇒ 10 < 8.
(n) 5 is real number ⇔ 2/3 is natural number.
√
(o) 2 = 4 ⇒ x2 dx = x4 .
R
Mathematical Logic 9
Example 1.3.2 The proposition “P or not P”, i.e. P∨ ∼ P, is a tautology. This fact
is verified by constructing a truth table.
P ∼P P∨ ∼ Q
T F T
F T T
Example 1.3.4 The proposition “P and not P”, i.e. P∧ ∼ P, is a contradiction. The
fact is verified by the following table:
P ∼P P∧ ∼ Q
T F F
F T F
Exercises
1. Show that (P ⇒ Q) 6≡ (Q ⇒ P).
2. Show that (P ⇒ Q) ≡ (∼ Q ⇒∼ P).
3. The inverse of P ⇒ Q is ∼ P ⇒∼ Q. Show (P ⇒ Q) 6≡ (∼ P ⇒∼ Q).
4. Show that P ⇒ Q iff P∧ ∼ Q is a contradiction.
5. Put the proposition
“Every differentiable function at a point is continuous at that point” in form
P ⇒ Q, and write its inverse and its contrapositive.
Mathematical Logic 11
1.4 QUANTIFIERS
Let A be a set. An open sentence on A is an expression, denoted by P(x), which has
the property that P(a) is true or false for each a ∈ A.
Example 1.4.1 Let P(x) be “x + 3 > 8”. Then P(x) is an open sentence on N.
Example 1.4.2 Let P(x) be “x + 3 > 8”. Then P(x) is not an open sentence on C
since inequalities are not defined for all complex numbers.
If P(x) is an open sentence on a set A, then the set of elements a ∈ A with the
property that P(a) is true, is called truth set Tp of P(x). In other words,
Tp = {x : x ∈ A, P(x) is true },
or, simply,
Tp = {x : P(x)}.
Example 1.4.3 Let P(x) be “x + 3 > 8” defined on N. Then the truth set of P(x) on
N is
Tp = {x : x ∈ N, x + 3 > 8} = {6, 7, 8, 9, . . .}.
Tp = {x; x ∈ N, x + 2 < 1} = φ .
Tp = {x : x ∈ N, x + 3 ≥ 4} = {1, 2, 3, . . .} = N.
Mathematical Logic 13
Definition 1.4.6 Let P(x) be an open sentence on a set A. Then the proposition
(∀ x ∈ A) or ∀ x P(x) can be read as “For every element x in A, P(x) holds” or
simply, “For all x, P(x)”.
The symbol ∀, which reads “for all” or “for every”, is called the universal quan-
tifier.
Example 1.4.7 The proposition for all natural number n, n + 3 ≥ 4 is true since
{n : n + 3 ≥ 4} = {1, 2, 3, . . . } = N.
Example 1.4.8 The proposition for all natural number n, n + 2 > 5 is false since
{n : n + 2 > 5} = {4, 5, 6, . . . } 6= N.
Definition 1.4.9 Let P(x) be an open sentence on a set A. Then the proposition
“∃ x ∈ A) P(x)” or “∃ x, P(x)” reads “There exists x ∈ A such that P(x) holds” or
simply, “For some x, P(x)”.
The symbol ∃, which reads “there exists” or “for some” or “for at least”, is called
the existential quantifier.
{n ∈ N : n + 4 < 7} = {1, 2} 6= φ .
{n ∈ N : n + 6 < 5} = φ .
Definition 1.4.12 For an open sentence P(x), the proposition “(∃ !x), P(x)” is read
“There exists a unique x, such that P(x)”. The sentence “(∃ !x), P(x)” is true, when
the truth set for P(x) contains exactly one element from the universe; hence ∃ ! is
called the unique existence quantifier.
Definition 1.4.13 Now we define the negation of propositions, which contain quan-
tifiers. The negation of the proposition “All the integers are positive” reads “It is not
true that all integers are positive”; in other words, there exists at least one integer,
which is not positive.
Symbolically, if Z denotes the set of integer, then the above can be written as
∼ (∀ x ∈ Z)P(x) ≡ (∃ x ∈ Z) ∼ P(x).
In other words,
Example 1.4.16 The negation of the proposition “All prime numbers are odd” is
equivalent to the proposition “there exists a number that is prime and not odd”.
In other words, if A is the set of prime numbers, then
Exercises
1. Complete the proof of Theorem 1.4.14.
2. Translate the following English sentences into symbolic sentences with quan-
tifiers:
(a) There exists a rational number between arbitrary two different real
numbers.
(b) The set of real numbers contains a smallest positive integer.
(c) For every positive real number x, there is a unique real number y, such
that 2y = x.
(d) For every nonzero complex number, there is a unique complex number,
such that their product is π .
(e) For every complex number, there is at least one complex number, such
that the product of the two complex numbers is a real number.
Mathematical Logic 15
3. Which of the following propositions are true? (Here the universal set is R.)
(a) (∀ x), |x| = x.
(b) (∀ x), x2 = x.
(c) (∀x), x + 1 > x.
(d) (∃x), x + 2 = x.
(e) (∃x), |x| = 0.
4. Negate each of the propositions in Exercise 3.
5. Let A = {1, 2, 3, 4, 5}. Determine the truth value of each of the propositions.
(a) (∃ x ∈ A) x + 3 = 10.
(b) (∀ x ∈ A) x + 3 < 10.
(c) (∃ x ∈ A) x + 3 < 5.
(d) (∀ x ∈ A) x + 3 ≤ 7.
6. Negate each of the propositions in Exercise 5.
7. Let {1, 2, 3} be the universal set. Determine the truth value of each of the
following propositions:
(a) (∃ x) (∀ y), x2 < y + 1.
(b) (∀ x) (∀ y), x2 + y2 < 12.
(c) (∀ x) (∀ y), x2 + y2 < 12.
(d) (∃ x) (∀ y) (∃ z), x2 + y2 < 2z2 .
(e) (∃ x) (∃ y) (∀ z), x2 + y2 < 2z2 .
8. Negate each of the following propositions:
(a) (∀ x) (∃ y) P(x) ∨ Q(x).
(b) (∃ x) (∀ y) P(x) ⇒ Q(x).
(c) (∃ x) (∃ y) P(x) ∧ Q(x).
9. Which of the following are true?
(a) (∀ x ∈ N) x + x ≥ x.
(b) (∀ x ∈ R) x + x ≥ x.
(c) (∃ x ∈ N) 2x + 3 = 6x + 7.
(d) (∃ x ∈ R) 3x = x2 .
(e) (∃ x ∈ R) 3x = x.
(f) (∀ x ∈ R) x2 + 6x + 5 ≥ 0.
(g) (∀ x ∈ R) x2 + 4x + 5 ≥ 0.
16 Concise Introduction to Logic and Set Theory
(h) (∃ x ∈ N) x2 + x + 41 is prime.
(i) (∀ x ∈ N) x2 + x + 41 is prime.
10. Which of the following are true? (Here the universal set is the set of real num-
bers).
(a) (∀ x) (∃ y) x + y = 0.
(b) (∃ x) (∀ y) x + y = 0.
(c) (∃ x) (∀ y) x2 + y2 = −1.
(d) (∀ x) x > 0 ⇒ (∃ y)y < 0 ∧ xy > 0.
(e) (∀ y) (∃ x) (∀ z) xy = xz.
(f) (∃ !y) y < 0 ∧ y + 3 = 0.
(g) (∀ y) (∃ !x) x = y2 .
Example 1.5.2
1. Consider the following propositions:
S1 : Some mathematicians are philosophers,
S2 : Ahmad is a mathematician,
S : Then Ahmad is a philosopher.
The argument S1 , S2 ⊢ S does not valid, because not all mathematicians are
philosophers.
2. Consider the following propositions:
S1 : All poets are interesting people,
S2 : Ahmad is an interesting person,
S : Ahmad is a poet.
The argument S1 , S2 ⊢ S is fallacy.
3. Consider the following propositions:
S1 : No college professor is wealthy,
S2 : Some poets are wealthy,
S : Some poets are not college professors.
The argument S1 , S2 ⊢ S is valid.
Mathematical Logic 17
Remark 1.5.3
1. Note that the truth value of an argument
S1 , S2 , . . . , Sn ⊢ S
does not depend upon the particular truth value of each of the propositions in
the argument.
2. Note that the argument
S1 , S2 , . . . , Sn ⊢ S
is valid if and only if the proposition
(S1 ∧ S2 ∧ · · · ∧ Sn ) ⇒ S is a tautology.
3. Note that Venn diagrams are very often used to determine the validity of an
argument.
Show that the argument S1 , S2 ⊢ S does not valid by constructing a Venn diagram, in
which the premises S1 and S2 hold, but the conclusion S does not hold.
Lazy People
Students
Males
Notice that both premises hold, but the conclusion does not hold.
Show that the argument S1 , S2 ⊢ S does not valid by constructing a Venn diagram, in
which the premises S1 and S2 hold, but the conclusion S does not hold.
18 Concise Introduction to Logic and Set Theory
Notice that the premises hold, but the conclusion does not hold. Hence the argu-
ment is not valid.
P ⇒ Q, ∼ P ⊢∼ Q.
The first method of proof, which we will examine, is the direct proof of a conditional
sentence. How do we prove a statement in the form P ⇒ Q?
This implication is false only when P is true and Q is false. A direct proof of
P ⇒ Q will have the following form:
Mathematical Logic 19
Proof.
Assume P
:
:
Therefore Q
Thus P ⇒ Q.
Proof Suppose ∼ Q.
:
:
Therefore ∼ P (Via a direct proof).
Thus ∼ Q ⇒∼ P.
Therefore P ⇒ Q.
Thus a2 is odd.
So, by contrapositive, if a2 is even, then a is even.
Proof Consider P : x 6= 0,
Q : x−1 6= 0.
We need to show that P ⇒ Q.
Suppose ∼ (P ⇒ Q) is true.
Since ∼ (P ⇒ Q) ≡ P∧ ∼ Q,
then P∧ ∼ Q is true, that is x 6= 0 ∧ x−1 = 0 is true.
Since x · x−1 = 1 and x−1 = 0 ⇒ x · x−1 = x · 0 = 0,
then 1 = 0.
So, one has (1 = 0) and (1 6= 0).
It contradicts the number equality. Consequently ∼ (P ⇒ Q) is false.
Thus P ⇒ Q is true.
Hence x 6= 0 ⇒ x−1 6= 0.
Mathematical Logic 21
√
Example 1.6.6 Prove that 2 is an irrational number.
√
Proof Suppose
√ that 2 is a rational number.
Then 2 = ba , where a, b are positive integers with gcd(a, b) = 1.
Hence we obtain
√ a
2 = ⇒ a2 = 2b2
b
⇒ a2 is even
⇒ a is even
⇒ a = 2k, for some integer k.
Then
Exercises
1. For each set of premises, find a conclusion, such that the argument is valid,
and such that the premise is necessary for the conclusion.
(a) S1 , S2 , S3 ⊢ S,
S1 : No student is lazy,
S2 : Jallal is an artist,
S3 : All artists are lazy,
S: .
(b) S1 , S2 , S3 , S4 ⊢ S,
S1 : All lawyers are wealthy,
S2 : Poets are temperamental,
S3 : Ahmad is a lawyer,
S4 : No temperamental person is wealthy,
S: .
2. Determine the validity of the following argument:
P ⇒ Q, Q ⊢ P
22 Concise Introduction to Logic and Set Theory
(b) P ⇒ Q, ∼ R ⇒∼ Q ⊢ P ⇒∼ R.
7. For the given premises, determine a suitable conclusion so that the argument
is valid.
(a) P ⇒∼ Q, Q.
(b) P ⇒∼ Q, R ⇒ Q.
(c) P ⇒∼ Q, ∼ P ⇒ R.
(d) P ⇒∼ Q, R ⇒ P, Q.
8. Prove that if a, b are even integers, then a + b is even.
9. Prove that if a is an even integer and b is an odd integer, then a + b is odd.
10. Prove that x is odd integer iff x + 1 is even integer.
11. Prove that if x is a real number, then |x| ≥ 0.
12. Prove that if x, y are real numbers, then |xy| = |x||y|.
13. Prove that ∀ x ∈ R, x ≤ |x|.
Mathematical Logic 23
1.7 INDUCTION
1.7.1 INTRODUCTION
Proof by induction involves propositions, which depend on the natural numbers, n =
1, 2, 3, . . .. It often uses summation notation, which we now briefly review before
discussing induction itself.
We use the symbol ∑ to denote a sum over its argument for each natural number
i from the lowest value for i (appears below) to the maximum value for i (appears
above).
For example, we write the sum of natural numbers up to a value n as:
i
1 + 2 + 3 + · · ·+ (n − 1) + n = ∑ .
i=1
24 Concise Introduction to Logic and Set Theory
Example 1.7.1 Write the following sums without the summation notation:
4
1
(a) ∑ 3i ,
i=1
3
(b) ∑ (2i + 1),
i=1
5
i−1
(c) ∑ .
i=1 i
3
(b) ∑ (2i + 1) = (2 × 1 + 1) + (2 × 2 + 1) + (2 × 3 + 1) = 3 + 5 + 7,
i=1
5
i−1 1−1 2−1 3−1 4−1 5−1 1 2 3 4
(c) ∑ =
1
+
2
+
3
+
4
+
5
= 0+ + + + .
2 3 4 5
i=1 i
n(n + 1)
1 + 2 + 3 + · · ·+ n = ,
2
n
n(n + 1)
i.e., P(n) = ∑ i = .
i=1 2
Mathematical Logic 25
Solution:
Step (a) Let us check whether the formula is true for n = 1. Indeed
1
• ∑ i = 1,
i=1
1(1+1) 1(2) 2
• 2 = 2 = 2 = 1,
i.e., the formula is true for n = 1.
Step (b) Now suppose that the formula is true for n = k and prove that it remains true
for n = k + 1. In other words, the question is:
k
k(k + 1) ? k+1 (k + 1)(k + 2)
∑i= 2
−→ ∑ i =
2
.
i=1 i=1
Example 1.7.3 Prove that for all positive integers n, the following results hold.
n
1. ∑ (2i − 1) = n2 ,
i=1
1 2n −1
2. 2 + 41 + 81 + · · · + 21n = 2n .
Solution:
1. Step (a) For n = 1 the formula is true, since
• ∑1i=1 (2i − 1) = 2 · 1 − 1 = 2 − 1 = 1,
• (1)2 = 1.
Step (b) Assume that the result is true for n = k, i.e
k
∑ (2i − 1) = k2 .
i=1
26 Concise Introduction to Logic and Set Theory
1 1 1 1 2k − 1
+ + + ···+ k =
2 4 8 2 2k
As for n = k + 1 the sum may be written as
1 1 1 1 1 2k − 1 1
+ + + · · · + k + k+1 = + k+1
2 4 8 2 2 2k 2
2k − 1 2 1
= . +
2k 2 2k+1
2k+1 − 2 1
= k+1
+ k+1
2 2
2k+1 − 1
= .
2k+1
then we have shown that if p(k) is true, then P(k + 1) is true.
Solution:
1. Step (a) for n = 2,
2 ≥ 2.
n3 − n = (2)3 − 2 = 6 = 3 × 2, so divisible by 3.
we have
(k + 1)3 − (k + 1) = k3 + 3k2 + 3k + 1 − (k + 1)
= (k3 − k) + 3k2 + 3k
= 3r + 3k2 + 3k
= 3(r + k2 + k)
We have
k < 2k ⇒ k + 1 < 2k + 1
⇒ k + 1 < 2k + 2k , (1 < 2k )
⇒ k + 1 < 2x2k = 2k+1
Exercises
1. Write the first four terms for each given sequence.
(a) an = n − 1,
(b) an = n + 2,
n−2
(c) an = n+1 ,
(d) an = (1 + n2 )n ,
(e) an = (−3)n−1 ,
(−1)n+1
(f) an = n2 .
28 Concise Introduction to Logic and Set Theory
A, B,C, D, E, . . . .
a, b, c, d, e . . . .
Definition 2.1.1
Let φ = {x : x 6= x}. Then φ is a set with no elements and is called an empty set.
Example 2.1.2
{x ∈ R : x = x + 1} = φ = {x ∈ N : x < 0}.
Definition 2.1.3
Let A and B be sets. We say that A is a subset of B iff every element of A is also an
element of B. In symbols this is
A ⊆ B ⇔ (∀ x)(x ∈ A ⇐ x ∈ B).
DOI: 10.1201/9780429022838-2 29
30 Concise Introduction to Logic and Set Theory
Example 2.1.4
Let A = {1, 3, 4}, B = {−1, 0, 1, 3, 4}. Then A ⊂ B.
Example 2.1.5
N ⊂ R, Z ⊂ Q.
Theorem 2.1.6
(a) For any set A, φ is a subset of A.
(b) For any set A, A ⊆ A.
Proof
(a) Let A be any set. We need to show that
∀ x(x ∈ φ ⇒ x ∈ A).
Which is equivalent to
x 6∈ A ⇐ x 6∈ φ (contrapositive condition).
Theorem 2.1.7
If A is a subset of B and B is a subset of C, then A is a subset of C. That is
(A ⊆ B ∧ B ⊆ C) ⇒ A ⊆ C.
Proof
To prove that A ⊆ C, we must show that
∀ x(x ∈ A ⇒ x ∈ C).
Since A ⊆ B, then
∀ x(x ∈ A ⇒ x ∈ B),
and since B ⊆ C, then
∀ x(x ∈ B ⇒ x ∈ C).
Hence ∀ x(x ∈ A ⇒ x ∈ C).
Therefore A ⊆ C.
Remark 2.1.8
For a given set A, the subsets φ and A are called improper subsets of A, while any
subset of A other than φ or A is called a proper subset.
Set Theory 31
Definition 2.1.9
For an arbitrary set A, the set of all the subsets of A is called the power set of A. We
denote the power set of A by P(A). Thus
P(A) = {B : B ⊆ A}.
Example 2.1.10
Let A = {4, 7}. Then
P(A) = {φ , {4}, {7}, A}.
Example 2.1.11
Let M = {a, b, c}. Then
P(M) = {φ , {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, M}.
Theorem 2.1.12
If A is a set with n elements, the power set P(A) has 2n elements.
Proof
Suppose A has n elements. We may write A as A = {x1 , x2 , . . . , xn }. To describe a
subset B of A, we need to know for each xi ∈ A whether the element is in B. For
each xi , there are two possibilities (xi ∈ B or xi 6∈ B), so there are 2 · 2 · 2 · · · . . . · · · 2 (n
factors) different ways of i making a subset of A. Therefore, P(A) has 2n elements.
Definition 2.1.13
Let A and B be sets. Then A = B iff A ⊆ B and B ⊆ A.
Example 2.1.14
Let A = {x : x is a solution to x2 − 4 = 0} and B = {2, −2}. Prove that A = B.
Proof
We must show that A ⊆ B and B ⊆ A.
Let
t ∈ A ⇒ t2 − 4 = 0
⇒ (t − 2)(t + 2) = 0
⇒ t = 2 or t = −2,
so t ∈ B. This proves the inclusion
A ⊆ B. (2.1)
By substitution we see that both 2 and −2 are solutions to
x2 − 4 = 0.
Thus
B ⊆ A. (2.2)
It follows from Equations (2.1) and (2.2) that A = B.
32 Concise Introduction to Logic and Set Theory
Definition 2.1.15
All the sets under investigation will likely be subsets of a fixed set. We call this set
the universal set or universe of discourse. We denote this set by U.
A ∪ B = {x : x ∈ A or x ∈ B}.
That is, x ∈ A ∪ B ⇔ x ∈ A ∨ x ∈ B.
Example 2.2.2
In the Venn diagram, we have shaded A ∪ B, that is the area of A and the area of B
B B
B
A
A
A
Example 2.2.3
Let X = {a, b, c, d}, Y = {e, b, a, r}. Then
X ∪Y = {a, b, c, d, e, r}.
Example 2.2.4
Let A = {x ∈ N : 3 < x < 10} and B = {x ∈ N : 1 ≤ x ≤ 3}.
Then A ∪ B = {x ∈ N : 1 ≤ x < 10}.
Example 2.2.5
Let Ne = {x ∈ N : x is an even number}
= {2, 4, 6, 8, . . .},
No = {x ∈ N : x is an odd number}
= {1, 3, 5, 7, . . .}.
Then
Ne ∪ No = {1, 2, 3, 4, 5, 6, . . .} = N.
Theorem 2.2.6
Let A and B be sets. Then
(a) A ⊆ A ∪ B and B ⊆ A ∪ B,
(b) A ⊆ B ⇔ A ∪ B = B.
Set Theory 33
Proof
(a) Let x ∈ A,
then
x ∈ A ⇒ x ∈ A∨x ∈ B
⇒ x ∈ A ∪ B.
Thus A ⊆ A ∪ B.
By the same manner, we prove that B ⊆ A ∪ B.
(b) Suppose A ⊆ B and x ∈ A ∪ B.
Then
x ∈ A∪B ⇒ x ∈ A∨x ∈ B
⇒ x ∈ B ∨ x ∈ B (since A ⊆ B)
⇒ x ∈ B.
Thus A ∪ B ⊆ B.
Since B ⊆ A ∪ B (by part (a)), then A ∪ B = B.
Conversely, suppose that A ∪ B = B.
Since A ⊆ A ∪ B (by part (a)), then A ⊆ B.
Theorem 2.2.7
Let A, B, and C be sets. Then
(a) A ∪ A = A (Idempotent law),
(b) A ∪ B = B ∪ A (Commutative law),
(c) A ∪ (B ∪C) = (A ∪ B) ∪C (Associative law).
Proof
We prove (b) and leave (a), (c) as Exercise 2. Suppose x ∈ A ∪ B,
then
x ∈ A∪B ⇔ x ∈ A∨x ∈ B
⇔ x ∈ B ∨ x ∈ A.
Thus A ∪ B = B ∪ A.
Theorem 2.2.8
Let A be a set. Then
(a) A ∪ φ = A,
(b) A ∪U = U, where U is the universal set.
34 Concise Introduction to Logic and Set Theory
Proof
(a) Since φ ⊆ A, then
A ∪ φ = A( by Theorem 2.2.6).
A ∪U = U( by Theorem 2.2.6).
A ∩ B = {x : x ∈ A and x ∈ B}.
That is,
x ∈ A ∩ B ⇔ x ∈ A ∧ x ∈ B.
Example 2.2.10
In the Venn diagram, we have shaded A ∩ B.
B A
A B
A B
Example 2.2.11
Let A = {1, 2, x, y}, B = {2, 3, x, 4}. Then
A ∩ B = {2, x}.
Example 2.2.12
Let A = {x ∈ N : x ≤ 6}, B = {x : x is a prime number and ≤ 6}.
Then
A ∩ B = {1, 2, 3, 4, 5, 6} ∩ {2, 3, 5}
= {2, 3, 5}.
Example 2.2.13
Let A = {x ∈ R : 0 ≤ x ≤ 5} and B = {x ∈ R : 1/3 ≤ x ≤ 7}.
Then
A ∩ B = {x ∈ R : 1/3 ≤ x ≤ 5}.
Set Theory 35
Definition 2.2.14
Let A, B be sets. We say that A and B are disjoint iff
A ∩ B = φ.
Example 2.2.15
Let A = {x ∈ N : x is an odd number} and B = {x ∈ N : x is an even number}.
Since A ∩ B = φ , then A and B are disjoint. But A ∩ N 6= φ , thus A and N are not
disjoint.
Theorem 2.2.16
Let A and B be sets. Then
(a) A ∩ B ⊆ A and A ∩ B ⊆ B,
(b) A ⊆ B ⇔ A ∩ B = A.
Proof
(a) To prove A ∩ B ⊆ A, let x ∈ A ∩ B. Then
x ∈ A∩B ⇒ x ∈ A∧x ∈ B
⇒ x ∈ A.
So, A ∩ B ⊆ A
By the same manner, we prove that A ∩ B ⊆ B.
(b) Assume that A ⊆ B and let x ∈ A. Then
x ∈ A ⇒ x ∈ B.
Then x ∈ A ∧ x ∈ B.
That is
x ∈ A ⇒ x ∈ A∧x ∈ B
⇒ x ∈ A ∩ B.
Then A ⊆ A ∩ B.
Since A ∩ B ⊆ A (by part (a)), then A ∩ B = A.
Conversely, assume that A ∩ B = A. As A ∩ B ⊆ B (by part (a)), then A ⊆ B.
Theorem 2.2.17
Let A, B, and C be sets. Then
(a) A ∩ A = A (Idempotent law),
(b) A ∩ B = B ∩ A (Commutative law),
(c) A ∩ (B ∩C) = (A ∩ B) ∩C (Associative law).
36 Concise Introduction to Logic and Set Theory
Proof
We prove (c) only, and leave (a), (c) as Exercise 3. Let x ∈ A ∩ (B ∩C).
Then
x ∈ A ∩ (B ∩C) ⇔ x ∈ A ∧ x ∈ (B ∩C)
⇔ x ∈ A ∧ (x ∈ B ∧ x ∈ C)
⇔ (x ∈ A ∧ x ∈ B) ∧ x ∈ C
⇔ x ∈ (A ∩ B) ∧ x ∈ C
⇔ x ∈ (A ∩ B) ∩C.
Theorem 2.2.18
Let A be a set. Then
(a) A ∩ φ = φ ,
(b) A ∩U = A, where U is the universal set.
Proof
(a) Since φ ⊆ A, then φ ∩ A = φ (by Theorem 2.2.16).
(b) Since A ⊆ U, then A ∩U = A (by Theorem 2.2.16).
Proof
(a) Let x ∈ A ∩ (B ∪C). Then
x ∈ A ∩ (B ∪C) ⇔ x ∈ A ∧ x ∈ (B ∪C)
⇔ x ∈ A ∧ (x ∈ B ∨ x ∈ C)
⇔ (x ∈ A ∧ x ∈ B) ∨ (x ∈ A ∧ x ∈ C)
⇔ x ∈ (A ∩ B) ∨ x ∈ (A ∩C)
⇔ x ∈ (A ∩ B) ∪ (A ∩C).
Theorem 2.2.20
Let A and B be sets. Then
(a) A ⊆ B ⇔ P(A) ⊆ P(B),
(b) P(A) ∩ P(B) = P(A ∩ B),
(c) P(A) ∪ P(B) ⊇ P(A ∪ B).
Proof
(a) Suppose A ⊆ B and let X ∈ P(A). Then
X ∈ P(A) ⇒ X ⊆ A
⇒ X ⊆ B (since A ⊆ B)
⇒ X ∈ P(B).
Thus P(A) ⊆ P(B).
Conversely, suppose that P(A) ⊆ P(B) and let x ∈ A.
Then
x ∈ A ⇒ {x} ⊆ A
⇒ {x} ∈ P(A)
⇒ {x} ∈ P(B) (since P(A) ⊆ P(B))
⇒ x ∈ B.
Thus A ⊆ B.
(b) Let X ∈ P(A) ∩ P(B). Then
X ∈ P(A) ∩ P(B) ⇒ X ∈ P(A) ∧ X ∈ P(B)
⇒ X ⊆ A∧X ⊆ B
⇒ X ⊆ A∩B
⇒ X ∈ P(A ∩ B).
Thus
P(A) ∩ P(B) ⊆ P(A ∩ B). (2.3)
Now, let X ∈ P(A ∩ B). Then
X ∈ P(A ∩ B) ⇒ X ⊆ A ∩ B
⇒ X ⊆ A∧X ⊆ B
⇒ X ∈ P(A) ∧ X ∈ P(B)
⇒ X ∈ P(A) ∩ P(B).
Thus
P(A ∩ B) ⊆ P(A) ∩ P(B). (2.4)
From (2.3) and (2.4), we conclude that P(A) ∩ P(B) = P(A ∩ B).
(c) The proof is left as Exercise 5.
38 Concise Introduction to Logic and Set Theory
Exercises
1. Complete the proof of Theorem 2.1.6.
2. Complete the proof of Theorem 2.2.7.
3. Complete the proof of Theorem 2.2.17.
4. Complete the proof of Theorem 2.2.19.
5. Complete the proof of Theorem 2.2.20.
6. Let X ∪Y = X for every set X. Show that Y = φ .
7. Describe the set
φ ⊆ A ∩ B ⊆ A ∪ B.
A = {x ∈ Z+ : x = 2y, y ∈ Z},
B = {x ∈ Z+ : x = 2y + 1, y ∈ Z},
C = {x ∈ Z+ : x = 3y, y ∈ Z}.
(A ∩ B) ∪C = A ∩ (B ∪C) iff C ⊆ A.
A ∩C = φ ⇒ A ∩ (B ∪C) = A ∩ B.
A ∪ B = φ ⇒ A = φ ∧ B = φ.
A ∪C = B ∪C?
Set Theory 39
C ⊆ A ∩ B.
A ∩ B ⊆ X ∩Y.
20. Write the power set, P(X), for each of the following sets:
(a) X = {a, {a}},
(b) X = {1, 2, 3, 4},
(c) X = {φ , {φ }},
(d) X = {φ , a, b, {a, b}}.
21. True or false?
(a) For every set A, φ ⊆ A.
(b) For every set A, {φ } ⊆ A.
(c) φ ∈ {φ , {φ }}.
(d) {φ } ∈ {φ , {φ }}.
(e) {φ } ⊆ {φ , {φ }}.
(f) {1, 2, 5} ⊆ {1, 2, 5, {6, 7}}.
AC = {x : x ∈ U, x ∈ A}
Example 2.2.22
In the Venn diagram, we have shaded the complement of A;
that is the area outside of A.
40 Concise Introduction to Logic and Set Theory
Example 2.2.23
Let the universal set U be Z and let A = {x : x ≤ 3}. Then
AC = {4, 5, 6, 7, . . .}.
Example 2.2.24
Let the universal set U be N and let
A = {2, 4, 6, 8, . . .}.
Then
AC = {1, 3, 5, 7, . . .}.
Theorem 2.2.25
Let A and B be sets. Then
A ⊆ B ⇒ BC ⊆ AC .
Proof
Since A ⊆ B, then x ∈ A ⇒ x ∈ B.
Thus x 6∈ B ⇒ x 6∈ A.
That is, x ∈ BC ⇒ x ∈ AC .
Hence BC ⊆ AC .
Theorem 2.2.26
Let A be a set. Then
(AC )C = A.
Proof
It is clear that
x ∈ (AC )C ⇔ x 6∈ AC
⇔ x ∈ A.
Thus (AC )C = A.
Definition 2.2.27
Let A and B be sets. The difference of A and B is defined by
A − B = {x : x ∈ A and x 6∈ B}.
Set Theory 41
Remark 2.2.28
A − B = A ∩ BC .
Example 2.2.29
Let A = N and let B = No . Then
A − B = Ne .
Example 2.2.30
Let A and B be sets. Then
A − B = BC − AC .
Proof
We have
x ∈ A − B ⇔ x ∈ A ∧ x 6∈ B
⇔ x 6∈ AC ∧ x ∈ BC
⇔ x ∈ BC − AC .
Thus A − B = BC − AC .
Theorem 2.2.31
Let A be a set. Then
(a) U C = φ ,
(b) φ C = U,
(c) A ∩ AC = φ ,
(d) A ∪ AC = U.
Proof
(a) Since U is the universal set, then
U C = {x ∈ U ∧ xU}
= φ.
A ∩ AC = {x ∈ A ∧ x ∈ AC }
= {x ∈ A ∧ x 6∈ A}
= φ.
42 Concise Introduction to Logic and Set Theory
(d)
A ∪ AC = {x ∈ A ∨ x ∈ AC }
= {x ∈ A ∨ x ∈ U − A}
= U.
(a) (A ∪ B)C = AC ∩ BC ,
(b) (A ∩ B)C = AC ∪ BC .
Proof
(a) We have
x ∈ (A ∪ B)C ⇔ x 6∈ A ∪ B
⇔ x 6∈ A ∧ x 6∈ B
⇔ x ∈ AC ∧ x ∈ BC
⇔ x ∈ AC ∩ BC .
Thus (A ∪ B)C = AC ∩ BC .
(b) See Exercise 2.
A∆B = (A − B) ∪ (B − A).
Example 2.2.34
In the Venn diagram, we have shaded A∆B.
B A
A B A B
Theorem 2.2.35
Let A and B be sets. Then
1. A∆φ = A,
2. A∆B = φ ⇔ A = B.
Proof
(a)
A∆φ = (A − φ ) ∪ (φ − A)
= A∪φ
= A.
Remark 2.2.36
By using the laws of sets algebra, we can prove the properties of the sets without
using the definitions of ⊆, ∩, and ∪.
Example 2.2.37
Prove that A ∪ (A ∩ B) = A.
Proof
A ∩ B ⊆ A (by Theorem 2.2.16). Thus
A ∪ (A ∩ B) = A.
Example 2.2.38
Prove that A ∩ (A ∪ B) = A.
Proof
We have always A ⊆ A ∪ B. Thus
A ∩ (A ∪ B) = A (by Theorem 2.2.16).
Example 2.2.39
Prove that A ∩ (AC ∪ B) = A ∩ B.
Proof
A ∩ (AC ∪ B) = (A ∩ AC ) ∪ (A ∩ B)
= φ ∪ (A ∩ B)
= A ∩ B.
44 Concise Introduction to Logic and Set Theory
Example 2.2.40
Prove that A ∪ (A ∪ BC )C = A ∪ B.
Proof
A ∪ (A ∪ BC )C = A ∪ (AC ∩ (BC )C )
= A ∪ (AC ∩ B)
= (A ∪ AC ) ∩ (A ∪ B)
= U ∩ (A ∪ B)
= A ∪ B.
Exercises
1. Complete the proof of Theorem 2.2.31 (b).
2. Complete the proof of Theorem 2.2.32 (b).
3. Let A, B be the subsets of U. Prove that
(a) A ⊆ B ⇔ A ∩ BC = φ ,
(b) A ⊆ B ⇔ AC ∪ B = U,
(c) A ⊆ B ⇔ (A ∩ BC ) ⊂ AC ,
(d) A ⊆ B ⇔ (A ∩ BC ) ⊂ B.
4. Prove that
(a) A∆φ = A,
(b) A∆B = B∆A,
(c) A∆(B∆C) = (A∆B)∆C,
(d) A ∩ (B∆C) = (A ∩ B)∆(A ∩C),
(e) A∆A = φ ,
(f) (A∆C = B∆C) ⇒ A = B.
5. Prove that the equation
(A ∩ X) ∪ (B ∩ X C ) = φ
(A ∩ X) ∪ (B ∩ X C) = (C ∩ X) ∪ (D ∩ X C )
has a solution iff B∆D ⊆ (A∆CC ), and find all the solutions.
Set Theory 45
7. Prove that
(a) A ∩ (B − C) = (A ∩ B) − C,
(b) (A ∪ B) − C = (A − C) ∪ (B − C),
(c) A − (B ∪C) = (A − B) ∩ (A − C),
(d) A − (B ∩C) = (A − B) ∪ (A − C).
8. Prove that
(a) A ∪C = B ∪C iff A∆B ⊆ C,
(b) (A ∪C)∆(B ∪C) = (A∆B) − C.
9. Prove that if A ⊆ B and C = B − A, then A = B − C.
10. Prove that (Generalized of De Morgan’s laws)
(a) (A1 ∪ A2 ∪ · · · ∪ An )C = AC1 ∩ AC2 ∩ · · · ∩ ACn ,
(b) (A1 ∩ A2 ∩ · · · ∩ An )C = AC1 ∪ AC2 ∪ · · · ∪ ACn .
Example 2.3.2
Let I = N. For all k ∈ N, let
Ak = {1, 2, 3, . . . , k}.
Example 2.3.3
Let I = {1, 2, 3, 4, 5}. Consider the sets A1 = {1, 10}, A2 = {2, 4, 6, 8, 10}, A3 =
{3, 6, 9}, A4 = {4, 8}, A5 = {5, 6, 10}. Then A = {A1 , A2 , A3 , A4 , A5 } is an indexed
family of sets. Furthermore, such an indexed family of sets is denoted by
{Ai }i∈I .
46 Concise Introduction to Logic and Set Theory
Example 2.3.5
Let A1 = {1, 10}, A2 = {2, 4, 6, 10}, A3 = {3, 6, 9}, A4 = {4, 8}, A5 = {5, 6, 10}, and
I = {2, 3, 5}. Then
[ \
Ai = {2, 3, 4, 5, 6, 9, 10}, and Ai = {6}.
i∈I i∈I
Example 2.3.6
Let Bn = [0, 1/n], where n ∈ N. Then
[ \
Bi = [0, 1], and Bi = {0}.
i∈N i∈N
Theorem 2.3.7
Let {Ai }i∈I be an indexed family of sets.
(a) If Ai ⊆ B, ∀ i ∈ I, then ⊆ B.
S
i∈I Ai
(b) If B ⊆ Ai , ∀ i ∈ I, then B ⊆
S
i∈I Ai .
Proof
[
(a) Suppose Ai ⊆ B, ∀ i ∈ I and let x ∈ Ai .
i∈I
Then ∃ j ∈ I, x ∈ A j .
A j ⊆ B, then x ∈ B.
Since[
Thus Ai ⊆ B.
i∈I
(b) Exercise.
Theorem 2.3.8 (Generalized De Morgan’s laws) Let {Ai }i∈I be an indexed family
of sets. Then
Ai )C = ACi ,
[ \
(a) (
i∈I i∈I
\
Ai )C =
[
(b) ( ACi .
i∈I i∈I
Set Theory 47
Proof
(a) Let x ∈ ( Si∈I Ai )C .
S
Thus
[
Ai )C ⊆
\
( ACi . (2.5)
i∈I i∈I
\
Conversely, suppose that y ∈ ACi .
i∈I
Then y ∈ ACi , ∀ i ∈ I ⇒ y 6∈ Ai , ∀ i ∈ I
⇒ y 6∈ Si∈I Ai
S
⇒ y ∈ ( i∈I Ai )C .
Thus
\
ACi ⊆ (
[
Ai )C . (2.6)
i∈I i∈I
Ai )C = ACi .
[ \
(
i∈I i∈I
(b) Exercise.
Theorem 2.3.9 (Generalized distribution law) Let {Ai }i∈I and {B j } j∈J be indexed
families of sets. Then
[ [ [
(a) ( Ai ) ∩ ( B j) = (Ai ∩ B j ),
i∈I j∈J (i, j)∈I×J
\ \ \
(b) ( Ai ) ∪ ( B j) = (Ai ∪ B j ).
i∈I j∈J (i, j)∈I×J
Proof
[ [
(a) Suppose x ∈ ( Ai ) ∩ ( B j)
i∈I j∈J
⇒ (∃ h ∈ I, x ∈ Ah ) ∧ (∃ k ∈ J, x ∈ Bk )
⇒ ∃(h, k) ∈ I × J, x ∈ Ah ∩ Bk
[
⇒ ∃x ∈ (Ai ∩ B j ).
(i, j)∈I×J
Thus
[ [ [
( Ai ) ∩ ( B j) = (Ai ∩ B j ). (2.7)
i∈I j∈J (i, j)∈I×J
48 Concise Introduction to Logic and Set Theory
[
Conversely, let y ∈ (Ai ∩ B j ).
(i, j)∈I×J
Then, there exists (s,t) ∈ I × J, such that y ∈ As ∩ Bt , that is (∃s ∈ I ∧ t ∈ J)
such that (y ∈ As , y ∈ Bt ). Thus
(∃s ∈ I, y ∈ As ) ∧ (∃t ∈ J, y ∈ Bt ).
Therefore
[ [
y∈ Ai ∧ y ∈ Bj
i∈I j∈J
[ [
⇒y∈( Ai ) ∩ ( B j)
i∈I j∈J
[ [ [
⇒ (Ai ∩ B j ) ⊆ ( Ai ) ∩ ( B j ). (2.8)
(i, j)∈I×J i∈I j∈J
Exercises
1. Let {Ai }i∈I and {B j } j∈J be indexed families of sets. Prove that
[ [ [ \
(a) ( Ai ) − ( B j) = [ (Ai − B j )],
i∈I j∈J i∈I j∈J
\ \ \ [
(b) ( Ai ) − ( B j) = [ (Ai − B j )].
i∈I j∈J i∈I j∈J
is also a covering of A.
3. Consider
1 1 1
Aα = 1, , , . . . , , ∀ α ∈ Z+
2 3 α
For X = {x ∈ R : 0 ≤ x ≤ 1} to find
(a) ∩{Aα : α ∈ Z+ },
(b) ∪{X − Aα : α ∈ Z+ },
(c) ∪{Aα : α ∈ Z+ },
(d) ∪{X − Aα : α ∈ Z+ }.
Set Theory 49
[ [
(a) B ∩ ( Ai ) = (B ∩ Ai ),
i∈I i∈I
\ \
(b) B ∪ ( Ai ) = (B ∩ Ai ).
i∈I i∈I
9. Find the union and intersection of each of the following families or indexed
collections A, where
(a) A = {{1, 2, 3, 4, 5}, {2, 3, 4, 5, 6}, {3, 4, 5, 6, 7}, {4, 5, 6, 7, 8}},
(b) A = {{1, 3, 5}, {2, 4, 6}, {7, 9, 11, 13}, {8, 10, 12}},
(c) A = {An : n ∈ N}, An = {1, 2, 3, . . . , n}, ∀ n ∈ N,
(d) A = {An : n ∈ N}, An = N − {1, 2, 3, . . ., n}, ∀ n ∈ N,
(e) A is the collection of all sets of integers that contain 10,
(f) A = {An : n ∈ {1, 2, 3, . . ., 10}}, A1 = {1}, A2 = {2, 3}, A3 = {3, 4, 5}, . . . ,
A10 = {10, 11, . . ., 19},
(g) A = {An : n ∈ N}, An = (0, n1 ), ∀ n ∈ N,
(h) A = {Ar : r ∈ R+ }, R+ = (0, ∞), Ar = [−π , r) for r ∈ R+ ,
(i) A = {Ar : r ∈ R}, Ar = [|r|, 2|r| + 1], ∀ r ∈ R,
(j) A = {An : n ≥ 3}, An = [ 1n , 2 + 12 ], ∀ n ≥ 3,
(k) A = {Cn : n ∈ Z}, Cn = [n, n + 1], ∀ n ∈ Z.
3 Relations
If x and y are integers, we might say that x is related to y when x is less than y. In this
chapter, we will study the idea of “is related to” by making the notion of a relation
precise.
Definition 3.1.1
An ordered pair consists of two elements, say a and b, in which one of them, say a, is
designated as the first element and the other as the second element. An ordered pair
is denoted by (a, b).
Example 3.1.2
The ordered pairs (5, 6) and (6, 5) are different,
that is (5, 6) 6= (6, 5).
Example 3.1.3
The set {5, 6} is not an ordered pair since the elements 5 and 6 are not designated.
Remark 3.1.4
An ordered pair (a, b) can be defined rigorously by
from this definition, the fundamental property of ordered pairs can be proven:
(a, b) = (c, d) ⇔ a = c ∧ b = d.
Definition 3.1.5
Let A and B be sets. The Cartesian product of A and B consists of all ordered pairs
(a, b), where a ∈ A and b ∈ B. It is denoted by
A × B,
A × B = {(a, b) : a ∈ A, b ∈ B}.
Example 3.1.6
Let A = {a, b} and B = {1, 2, 3}. Then
A × B = {(a, 1), (a, 2), (a, 3), (b, 1), (b, 2), (b, 3)}.
DOI: 10.1201/9780429022838-3 51
52 Concise Introduction to Logic and Set Theory
Example 3.1.7
Let C = {x, y}. Then
Example 3.1.8
Let A = R the set of real numbers. Then
R × R = {(x, y) : x, y ∈ R}.
Remark 3.1.9
1. If the set A has n elements and the set B has m elements, then A × B has nm
elements.
2. The Cartesian product of two sets is not commutative, that is A × B 6= B × A.
3. If A or B is empty set, then A × B = φ .
4. If either A or B is infinite and the other is not empty, then A × B is infinite.
The concept of the Cartesian product can be extended to more than two sets in a
natural way.
The Cartesian product of sets A, B, and C, denoted by
A × B × C,
A1 , A2 , . . . , An
denoted by
A1 × A2 × · · · × An ,
consists of all ordered n-tuples (a1 , a2 , . . . , an ), where
a 1 ∈ A1 , a 2 ∈ A2 , . . . , a n ∈ An ,
Example 3.1.10
Let A = {x, y}, B = {1, 2, 3}, and C = {a, b}. Then
A × B × C = {(x, 1, a), (x, 1, b), (x, 2, a), (x, 2, b), (x, 3, a), (x, 3, b),
(y, 1, a), (y, 1, b), (y, 2, a), (y, 2, b), (y, 3, a), (y, 3, b)}.
Relations 53
Example 3.1.11
If Ai = R, 1 ≤ i ≤ n. Then
A1 × A2 × · · · × An = {(a1 , a2 , . . . , an ) : ai ∈ R, 1 ≤ i ≤ n}
and is denoted by Rn .
Theorem 3.1.12
Let A and B be nonempty sets. Then
A × B = B × A iff A = B
Proof
Suppose A × B = B × A.
Let a ∈ A, then
∀ b ∈ B, (a, b) ∈ A × B
⇒ (a, b) ∈ B × A
⇒ a ∈ B ∧ b ∈ A.
Hence a ∈ A ⇒ a ∈ B, and
therefore, A ⊆ B
Similarly we prove that B ⊆ A.
Thus A = B.
Conversely, suppose that A = B.
It is clear that A × A = A × A.
Thus A × B = B × A.
Theorem 3.1.13
Let A, B, and C be sets. Then
(a) A × (B ∩C) = (A × B) ∩ (A × C),
(b) A × (B ∪C) = (A × B ∪ (A × C),
(c) (A × B) ∩ (C × D) = (A ∩C) × (B ∩ D).
Proof
(a) Suppose (x, y) ∈ A × (B ∩C). Then
EXERCISES
1. Prove the part (b) of Theorem 3.1.13.
2. If A, B, and C are sets, prove that
(a) A × φ = φ ,
(b) (A × B) ∪ (C × D) ⊆ (A ∪C) × (B ∪ D).
3. Find a and b if
(a + b, 3a + 5b) = (a − b, 2a − 7b).
4. Prove that if (x, y, z) = (u, v, w), then
x = u ∧ y = v ∧ z = w.
5. Let A = {1, 3, 5, 7}, B = {−2, −9, 6}, C = {x, y, z}. Find
(a) (A ∪ B) × C,
(b) (A × C) ∪ (B × C),
(c) (A ∪ B) × (B ∪C).
Relations 55
17. Let A = {a, b}, B = {2, 3}, and C = {3, 4}. Find
(a) A × (b ∪C),
(b) (A × B) ∪ (A × C),
(c) A × (B ∩C),
(d) (A × B) ∩ (A × C).
18. Suppose that the ordered pairs (x + y, 1) and (3, x − y) are equal. Find x and y.
56 Concise Introduction to Logic and Set Theory
Example 3.2.2
Let A = {1, 5}, B = {2, 4, 6}, then
R = {(1, 2), (1, 6), (5, 6)} is a relation from A to B.
We have 1R2, 5R6. Also the following sets
S = {(2, 1), (2, 5), (6, 1), (6, 5)}
T = {(4, 1)} are relations from B to A.
Example 3.2.3
Let X = {a, b, c, 3}, Y = {1, 2, 5}, then
R = {(a, 1), (b, 1), (c, 2), (3, 2), (3, 5)}
is a relation from X to Y . We have aR1, 3R2, and 3R5. However, 3 6R 1 and b 6R 2. The
sets
S = {(1, a), (2, 3), (5, a)}
T = {(2, c)}
are relations from Y to X.
Example 3.2.4
Let R = {(x, y) ∈ R × R : x ≤ y}. Then
(1, 1) ∈ R and (3, 7) ∈ R. But (3, 2) 6∈ R, and (10, 6) 6∈ R.
Example 3.2.5
Let X be a set. Then the set
R = {(A, B) ∈ P(X) × P(X) : A ⊆ B}
is a relation on the set P(X).
Example 3.2.6
Let A be the set of the lines in the xy-plane. The set
R = {(a, b) ∈ A × A : a//b}
is a relation on A.
Relations 57
Example 3.2.7
Consider the relation R on the set N × N given by
Remark 3.2.8
Since the relation is a set, then we can define union, intersection, and difference of
two relations.
For example, if R and S are relations from A to B, that is
R ⊆ A × B and S ⊆ A × B, then R ∪ S ⊆ A × B, R ∩ S ⊆ A × B,
Example 3.2.9
Let
R = {(x, y) ∈ R × R : x + y = 5},
S = {(x, y) ∈ R × R : 2x − y = 4}.
Then
R ∩ S = {(x, y) ∈ R × R : x + y = 5 ∧ 2x − y = 4}
= {(3, 2)}.
Definition 3.2.10
Let R be a relation from A to B, the domain of R, denoted by Dom(R), is
Thus, the domain of R is the set of all first coordinates of ordered pairs in R, and
the range of R is the set of all second coordinates. By definition, Dom(R) ⊆ A and
Rng(R) ⊆ B.
58 Concise Introduction to Logic and Set Theory
Example 3.2.11
Let A = {1, 2, 3, 4}, B = {x, y, z}, and
Then
Dom(R) = {1, 2, 4},
and
Rng(R) = {x, z}.
Example 3.2.12
Let R be a relation on R defined by
R = {(x, y) ∈ R × R : y = x2 }.
Then
Then,
Rng(R) = {y ∈ R : y ≥ 0}.
Definition 3.2.13
Let R be a relation from A to B, then the inverse of R is
Example 3.2.14
Let R = {(1, b), (1, c), (3, c)}. Then
Example 3.2.15
Let R = {(x, y) ∈ R × R : x ≤ y}. Then
Example 3.2.16
Let S be a relation on A = N ∪ {0}, defined by
S = {(a, b) ∈ A × A : a = 0}
= {(0, 0), (0, 1), (0, 2), . . . }.
Relations 59
Then
S−1 = {(x, y) ∈ A × A : y = 0}
= {(0, 0), (1, 0), (2, 0), . . . }.
Example 3.2.17
Let T be a relation on R, defined by
T = {(x, y) ∈ R × R : y = x2 }.
Then
T −1 = {(x, y) ∈ R × R : x = y2 }.
Theorem 3.2.18
Let R be a relation on A. Then
(R−1 )−1 = R.
Proof
Let (x, y) ∈ (R−1 )−1 , then
Thus
Hence
(R−1 )−1 = R.
Theorem 3.2.19
If R is a relation from A to B, then
(a) Dom(R) = Rng(R−1 ),
(b) Rng(R) = Dom(R−1 ).
60 Concise Introduction to Logic and Set Theory
Proof
(a) We have
Then
Thus,
Dom(R) = Rng(R−1 ).
Definition 3.2.20
Let R be a relation from A to B and let
Remark 3.2.21
If R is a relation on A and C = D, then
R ∩ (C × C) is called restriction of R on C,
denoted by R|C .
Example 3.2.22
Let A = {x ∈ N : x is even},
B = {x ∈ N : x is odd},
C = {2, 4, 6},
and
D = {1, 3, 5}.
Relations 61
Example 3.2.23
Let
A = {x ∈ Z : −16 ≤ x ≤ 16},
B = {x ∈ N : x ≤ 16}.
If R is a relation on A defined by
R = {(x, y) ∈ A × A : y = x2 + 1},
then R|B = {(0, 1), (1, 2), (2, 5), (3, 10)}.
Definition 3.2.24
If R is a relation from A to B and S is a relation from B to C, then the composite of R
and S, denoted by S ◦ R, is defined by
Example 3.2.25 Let A = {1, 2, 3, 4}, B = {x, y, z, w}, and C = {a, b, c}.
Let R be a relation from A to B, defined by
R = {(1, x), (1, y), (2, y), (3, z), (4, w)},
1 x a
2 y
b
3 z
c
4 w
S ◦ R = {(1, a), (1, b), (2, a), (2, b), (4, c)}.
62 Concise Introduction to Logic and Set Theory
R = {(x, y) ∈ R × R : y = x + 1},
S = {(x, y) ∈ R × R : y = x2 }.
Then
and
Clearly, S ◦ R 6= R ◦ S.
IA ◦ R = R ◦ IA = R,
IA = {(x, x) : x ∈ A}.
Proof We have
IA ◦ R ⊆ R (3.7)
R ⊆ IA ◦ R (3.8)
(T ◦ S) ◦ R ⊆ T ◦ (S ◦ R). (3.9)
T ◦ (S ◦ R) ⊆ (T ◦ S) ◦ R. (3.10)
T ◦ (S ◦ R) = (T ◦ S) ◦ R.
(T ◦ R−1) ∩ S 6= φ ⇒ (S ◦ R) ∩ T 6= φ .
Thus
(S ◦ R) ∩ T = φ ⇔ (T ◦ R−1) ∩ S = φ .
64 Concise Introduction to Logic and Set Theory
Exercises
1. Complete the proof of Theorem 3.2.19.
2. Complete the proof of Theorem 3.2.28.
3. Let X = {a, b, c}, and Y = {r}. Find all the relations from X to Y .
4. Suppose that A has n elements. How many relations are there on A?
5. Let S be a relation from X to Y , T be a relation from Y to Z and let A ⊆ X.
Define
S(A) = {y : (x, y) ∈ S, x ∈ A}.
Prove that
(a) S(A) ⊆ Y ,
(b) (T ◦ S)(A) = T (S(A)),
(c) S(A ∪ B) = S(A) ∪ S(B),
(d) S(A ∩ B) = S(A) ∩ S(B).
6. Let S and T be relations from X to Y . Prove that
(a) (S ∩ T )−1 = S−1 ∩ T −1 ,
(b) (S ∪ T )−1 = S−1 ∪ T −1 .
7. Show by an example that S ◦ R 6= R ◦ S, where R and S are relations on a set A.
8. Let G be a relation from X to Y and H be a relation from Y to Z. Prove that
(a) Dom(G ◦ H) ⊆ Dom(H),
(b) Rng(G ◦ H) ⊆ Rng(G),
(c) if Rng(H) ⊆ Rng(G), then Dom(G ◦ H) = Dom(H).
9. Let G, H, J, and K be relations on a set A. Prove that
(a) G ⊆ H ∧ J ⊆ K ⇒ G ◦ J ⊆ H ◦ K,
(b) G ⊆ H ⇔ G−1 ⊆ H −1 .
10. Let G and H be relations on a set A. Prove that
(a) Dom(G ∪ H) = Dom(G) ∪ Dom(H),
(b) Rng(G ∪ H) = Rng(G) ∪ Rng(H).
11. Let R be a relation on a set A and let B,C ⊆ A. Prove that
(a) R|B∩C = (R|B ) ∩ (R|C ),
(b) R|B∪C = (R|B ) ∪ (R|C ).
12. Find the domain and range for the relation T on R given by xTy iff
√
(a) y = 2x + 1, (b) y = x − 1,
(c) y ≤ x2 , (d) |x| < 2 ∧ y = 3,
2
(e) y = x + 3, (f) y = x12 ,
(g) y 6= x, (h) |x| < 2 ∧ y = 3.
Relations 65
15. Find the composites for the relations defined in Exercise 11.
16. Let A = {1, 2, 3, 4}. Give an example of relations R and S on A, such that
S ◦ R 6= R ◦ S and (S ◦ R)−1 6= S−1 ◦ R−1 .
(x, x) ∈ R, ∀ x ∈ A.
R = {(a, a), (a, c), (b, b), (b, d), (c, c), (c, d), (d, d)}.
Then R is reflexive relation, since (a, a), (b, b), (c, c), (d, d) ∈ R.
If T = {(a, a), (a, c), (b, d), (c, c), (d, d)} is a relation on A,
then T is not reflexive, since (b, b) 6∈ T .
The relations R2 and R3 are reflexive but R1 and R4 are not reflexive. Why?
Relations 67
Example 3.3.4 Let X be arbitrary set and let R1 , R2 be two relations on P(X) defined
as follows:
R1 = {(A, B) ∈ P(X) × P(X) : A ⊆ B},
R2 = {(A, B) ∈ P(X) × P(X) : A ∩ B = φ }.
R1 is reflexive, since A ⊆ A, ∀ A ∈ P(X). But R2 is not reflexive, since A∩A = A 6= φ .
Example 3.3.9 Let X be a nonempty set and let R1 and R2 be relations on P(X)
defined by
R1 = {(A, B) ∈ P(X) × P(X) : A ⊂ B},
R2 = {(A, B) ∈ P(X) × P(X) : A = X − B}.
R1 is not but R2 is symmetric.
R is transitive, since
x < y ∧ y < z ⇒ x < z.
That is
(x, y) ∈ R ∧ (y, z) ∈ R ⇒ (x, z) ∈ R.
(x, y) ∈ R ∧ (y, x) ∈ R ⇒ x = y.
Remark 3.3.15 The statement: “R is not symmetric” does not mean that R is anti-
symmetric.
Example 3.3.16 Let X be an arbitrary set and let R be a relation on P(X) defined by
R is antisymmetric, since
A ⊆ B ∧ B ⊆ A ⇒ A = B.
T = {(x, y) ∈ N × N : x ≤ y}.
T is antisymmetric, since
x ≤ y ∧ y ≤ x ⇒ x = y.
R ∩ R−1 = IA .
Thus R ∩ R−1 = IA .
Conversely, suppose that R ∩ R−1 = IA , and let
(x, y) ∈ R ∧ (y, x) ∈ R.
Then (x, y) ∈ R ∧ (x, y) ∈ R−1 . Hence (x, y) ∈ R ∩ R−1 . Therefore (x, y) ∈ IA and thus
x = y. This proves that R is antisymmetric.
Exercises
1. Let S be a relation on a set X. Prove that
(a) S is transitive iff S ◦ S = S.
(b) if S is reflexive and transitive, then
S ◦ S = S.
G ⊆ H ⇔ G ◦ H = H.
R1 = {(x, y) ∈ R × R : x = y},
R2 = {(x, y) ∈ R × R : x < y}.
Example 3.4.3 Let X be a nonempty set and let S and T be relations on P(X) defined
by
Example 3.4.4 Let A be the set of all the lines on a plane and let R and S be relations
on A defined by
R = {(x, y) ∈ A × A : x//y},
S = {(x, y) ∈ A × A : x⌊y}.
a + b = c + d ⇒ c + d = a + b.
a + b = c + d ∧ c + d = e + f ; i.e., a + b = e + f .
Proof
1. Since R and S are reflexive, then
∀ x ∈ A, (x, x) ∈ R ∧ (x, x) ∈ S.
Thus (x, x) ∈ R ∩ S, ∀ x ∈ A. Hence R ∩ S is a reflexive relation on A.
2. Suppose (x, y) ∈ R ∩ S, then
Thus R ∩ S is symmetric.
3. Suppose (x, y) ∈ R ∩ S ∧ (y, z) ∈ R ∩ S, then
R ◦ R = R.
(x, y) ∈ R ∧ (y, z) ∈ R.
Thus
R ◦ R ⊆ R. (3.11)
R ⊆ R ◦ R. (3.12)
R ◦ R = R.
R = {(1, 1), (2, 2), (3, 3), (4, 4), (1, 3), (3, 1)}.
a ∈ [a].
74 Concise Introduction to Logic and Set Theory
a ∈ [a] ⇒ a ∈ [b]
⇒ (a, b) ∈ R.
x ∈ [a] ⇒ (x, a) ∈ R.
Thus,
[a] = [b].
(d) Suppose that [a] ∩ [b] 6= φ , and let x ∈ [a] ∩ [b]. Then
Definition 3.4.11 Let {Ai }i∈I be a family of nonempty subsets of A. Then {Ai }i∈I is
called partition of A iff
∈ I, Ai ∩ A j = φ ∧ Ai = A j .
1. ∀ i, j[
2. A = Ai .
i∈I
Example 3.4.12 Let A = Z and let X = Ze and Y = Zo . It is clear that X and Y are
nonempty subsets of A and X ∩Y = φ , also A = X ∪Y . Therefore, the set {X,Y } is a
partition of A.
Theorem 3.4.13 Let R be an equivalence relation on a set A and let {[a]}a∈A be the
family of all the equivalence classes of R in A. Then {[a]}a∈A is a partition of A.
Relations 75
Theorem 3.4.14 If A is a nonempty set and {Ai }i∈I is a partition of A, then there
exists an equivalence relation R on A, such that {Ai }i∈I are the equivalence classes
of R.
x ∈ Ai ∧ x ∈ Ai ⇒ (x, x) ∈ R.
y ∈ [x] ⇒ y ∈ Ai .
76 Concise Introduction to Logic and Set Theory
Then
z ∈ Ai ∧ x ∈ Ai
⇒ (z, x) ∈ R
⇒ z ∈ [x].
Consequently,
z ∈ Ai ⇒ z ∈ [x],
that is Ai ⊆ [x]. Hence Ai = [x].
Example 3.4.15 Let A = {1, 3, 5, 7, 9}, X = {1, 3}, Y = {5, 7}, and Z = {9}. Then
by Theorem 4.2.47, there exists an equivalence relation R, such that the equivalence
classes of R form the partition {X,Y, Z}.
The relation R is
R = IA ∪ {(1, 3), (3, 1), (5, 7), (7, 5)}.
It is easy to prove the following properties:
1. The set {X,Y, Z} is a partition of the set A.
2. R is an equivalence relation on A.
The equivalence classes of R are
We note that
X = [1] = [3],
Y = [5] = [7],
Z = [9].
3.5 CONGRUENCE
Definition 3.5.1 Let n be a positive integer. If a and b are integers, we say that a is
congruent to b modulo n, and we write
35 ≡ −7 (mod 6)
19 ≡ 82 (mod 9).
11 | (67 − 5).
a ≡ b (mod n).
Theorem 3.5.2 For a fixed positive integer n, the relation of congruence modulo n
is an equivalence relation on Z.
Proof
1. As
n | 0 ⇒ n | (a − a)
⇒ a ≡ a (mod n),
a ≡ b (mod n) ⇔ n | (a − b)
⇔ n | −(b − a)
⇔ n | (b − a).
Then n | (a − b) ∧ n | (b − c).
Therefore, there exists integers r, s, such that
a − b = rn ∧ b − c = sn.
Proof
(a) As
a ≡ b (mod n) ⇔ a = b + sn, s ∈ Z
and
c ≡ d (mod n) ⇔ c = d + tn, t ∈ Z
⇔ a + c = b + d + (s + t)n
⇔ a + c = b + d + kn, k ∈ Z,
a ≡ b (mod n) ⇒ n | (a − b)
and
c ≡ d (mod n) ⇒ n | (c − d).
Then
n | (a − b)c + (c − d)b; i.e., n | ac − bd.
This means that ac ≡ bd (mod n).
Example 3.5.5 Suppose that a ≡ 2 (mod 7) and b ≡ 5 (mod 7). We will determine
the remainder, when 45a + b is divided by 7.
For this purpose, we write
and
a ≡ 2 (mod 7).
Multiplying these congruence’s, we obtain
Exercises
1. When is a relation R on a set A not reflexive?
2. Let A = {1, 2, 3, 4} and R = {(1, 10), (1, 3), (2, 2), (3, 1), (4, 4)}. Is R reflexive?
3. Let R, S, T , and H be relations on N, defined by
R = {(x, y) ∈ N × N : x | y},
S = {(x, y) ∈ N × N : x ≤ y},
T = {(x, y) ∈ N × N : x and y are relatively prime},
H = {(x, y) ∈ N × N : x + y = 10}.
State whether or not each of these relations is reflexive.
4. Let B = {1, 2, 3}. Consider the following relations on B:
G = {(1, 2), (3, 2), (2, 2), (2, 3)},
H = {(1, 20), (2, 3), (1, 3)},
K = {(1, 1), (2, 2), (2, 3), (3, 2), (3, 3)},
L = {(1, 2)},
P = B × B.
State whether or not each of these relations is reflexive.
5. When is a relation R on a set A not symmetric?
6. Is there a set A, in which every relation is symmetric?
7. State whether or not each relation in Exercise 3 is symmetric.
8. State whether or not each relation in Exercise 4 is symmetric.
9. State whether or not each relation in Exercise 3 is transitive.
10. State whether or not each relation in Exercise 4 is transitive.
11. State whether or not each relation in Exercise 3 is antisymmetric.
12. Let C = {i, −1, −i, 1}, where i2 = −1, and let R be a relation on C defined by
R = {(x, y) ∈ C × C : xy = ±1}.
A = {1, 2, 3, 4, 5}
14. Let C = {i, −1, −i, 1}, where i2 = −1, and let R be a relation on C ×C defined
by
R = {((x, y), (u, v)) ∈ (C × C) × (C × C) : xy = uv}.
Show that R is an equivalence relation, and give the partition of C × C associ-
ated with R.
15. Describe the partition for each of the following relation:
(a) R = {(x, y) ∈ R × R : x − y ∈ Z},
(b) S = {(x, y) ∈ Z × Z : x + y is even},
(c) T = {(x, y) ∈ R × R : sin x = sin y}.
16. Describe the equivalence relation on each of the following sets with the given
partition:
(a) N.{{1}, {2, 3}, {4, 5, 6, 7}, {8, 9, 10, 11, 12, 13, 14, 15}, . . .},
(b) Z.{. . . , {−2}, {−1}, {0}, {1}, {2}, {3, 4, 5, . . .}},
(c) R.{(−∞, 0), {0}, (0, ∞)},
(d) Z.{A, B}, where A = {x ∈ Z : x < 3} and B = Z − A.
17. Let A be the set of all people and let R be a relation on A defined by
R = {(x, y) ∈ A × A : xy = 1}.
R = {(x, y) ∈ A × A : x − y ∈ Q}.
T = {(x, y) ∈ A × A : xy = 0}.
26. Let A = {1, 2, 3}. Give an example of a relation on A with the following spec-
ified properties:
(a) Reflexive and symmetric, but not transitive,
(b) Symmetric and transitive, but not reflexive,
(c) Transitive, but not reflexive or symmetric.
27. Let R and S be relations on a set A. State whether each of the following state-
ments is true or false:
(a) If R is symmetric, then R−1 is symmetric.
(b) If R is transitive and S is transitive, then R ∪ S is transitive.
(c) If R is reflexive and S is reflexive, then R ∩ S is reflexive.
28. What type of relation is R if
(a) R ∩ R−1 = φ ?
(b) R = R−1 ?
29. Write all the equivalence relations on the set
A = {0, 1, 2}.
R = {(x, y) ∈ Z × Z : x ≤ y},
S = {(x, y) ∈ Z × Z : 3 | (x − y),
Remark 3.6.5 Let < be the usual “strict” inequality on the natural numbers (or, in-
tegers, or rational numbers, or real numbers). Then it is not a partial ordering because
it is not reflexive.
Theorem 3.6.7 If R is a partial order relation on a set A, then R−1 is a partial order
relation on A.
Proof
1. Since R is reflexive; i.e., (x, x) ∈ R, ∀ x ∈ A, then
∀ x, y ∈ A, (x, y) ∈ R ∧ (y, x) ∈ R ⇒ x = y,
then
∀ x, y ∈ A, (y, x) ∈ R−1 ∧ (x, y) ∈ R−1 ⇒ x = y.
Thus R−1 is antisymmetric.
Relations 85
then
∀ x, y, z ∈ A, (y, x) ∈ R−1 ∧ (z, y) ∈ R−1 ⇒ (z, x) ∈ R−1
Thus R−1 is transitive.
As R−1 is reflexive, antisymmetric, and transitive, then R−1 is a partial order
relation on A.
∀ a ∈ A, (a, a) ∈ R ∩ R−1 .
(a, b) ∈ R ◦ R ∧ (b, c) ∈ R ◦ R ⇒ ∃ x ∈ A
such that
(a, x) ∈ R ∧ (x, b) ∈ R,
and ∃ y ∈ A such that
(b, y) ∈ R ∧ (y, c) ∈ R.
Then
and
That is,
(a, b) ∈ R ∧ (b, c) ∈ R ⇒ (a, c) ∈ R.
Then R is transitive.
As R is reflexive, antisymmetric, and transitive, then R is a partial order relation
on A.
Necessity (see Exercise 1).
Definition 3.6.9 Let A be a partially ordered set by the partial order relation R and
let (a, b) ∈ A, such that aRb. We can express that by one of the following diagrams,
called Hasse diagram.
Example 3.6.10 Let A = {1, 3, 5, 12} and R = {(x, y) ∈ A × A : x ≤ y}. It is clear that
R is a partial order relation on A. The Hasse diagram of the partial order relation R is
Example 3.6.11 Let A = {2, 6, 20, 15} and let R = {(x, y) ∈ A × A : x | y}. Then R is
a partial order relation on A. The Hasse diagram of R is
(2, 3)
(1, 2) (1, 3)
(3)
(1)
(2)
∅
Relations 87
Definition 3.6.13 Let A be a partially ordered set by the relation R. The element
b ∈ A is called the least element of A if and only if
bRx, ∀ x ∈ A.
Example 3.6.14 Let A = {3, 6, 9, 12, 15} and let R, S, and T , be relations on A de-
fined by
R = {(x, y) ∈ A × A : x ≤ y},
S = {(x, y) ∈ A × A : x ≥ y},
T = {(x, y) ∈ A × A : x | y}.
3 ≤ x, ∀ x ∈ A.
15 ≥ x, ∀ x ∈ A.
3 | x, ∀ x ∈ A.
Example 3.6.15 Let X be any set and let R be a relation on P(X) defined by
φ ⊆ A, ∀ A ∈ P(X).
Theorem 3.6.16 Let R be a partial order relation on a set A. If A has a least element,
then it is unique.
bRc ∧ cRb,
bRc ∧ cRb ⇒ b = c.
xRa, ∀ x ∈ A.
88 Concise Introduction to Logic and Set Theory
Example 3.6.18 Let A = {3, 5, 6, 9, 10, 12, 13}, and let G, H, and K be relations on
A defined by
G = {(x, y) ∈ A × A : x ≤ y},
H = {(x, y) ∈ A × A : x ≥ y},
K = {(x, y) ∈ A × A : x | y}.
The relations G, H, and K are partial order relations on A. The number 13 is the
greatest element for A associated to G, since
x ≤ 13, ∀ x ∈ A.
x ≥ 3, ∀ x ∈ A.
But there does not exist the greatest element associated to K, because there does not
exist an element a ∈ A that divides by each element of A.
Example 3.6.19 Let X be an arbitrary set, and let R be a relation on P(X) defined
by
R = {(A, B) ∈ P(X) × P(X) : A ⊆ B}.
R is a partial order relation on P(X). Since A ⊆ X, ∀ A ∈ P(X), then X is the greatest
element for P(X) associated to R.
Proof Suppose that A has two greatest elements a and b. Then aRb ∧ bRa, by defi-
nition of the greatest element.
Hence
aRb ∧ bRa ⇒ a = b,
since R is antisymmetric.
Thus the greatest element, if exist, is unique.
mRx and m 6= x.
Example 3.6.22 Let A = {3, 6, 7, 12, 13, 15, 18} and let R, S, and T be relations on A
defined by
R = {(x, y) ∈ A × A : x ≥ y},
S = {(x, y) ∈ A × A : x ≤ y},
T = {(x, y) ∈ A × A : x | y}.
Relations 89
The relations R, S, and T are partial order relations on A. The number 3 is maximal
element for A associated to R, since there does not exist x ∈ A such that
3 ≥ x and 3 6= x.
The number 18 is the maximal element for A associated to S, since there does not
exist x ∈ A, such that
18 ≤ x and 18 6= x.
The number 7 is a maximal element for A associated to T , since there does not exist
x ∈ A, such that
7 | x and 7 6= x.
Also 12, 13, 15, and 18 are maximal elements associated to T .
Example 3.6.23 Let X = {1, 3, 5, 6, 7} and E = {{1, 3}, {5, 7}, {1, 3, 5}, {1, 3, 7},
X}. Let G and H be relations on E defined by
G = {(A, B) ∈ E × E : A ⊆ B},
H = {(A, B) ∈ E × E : A ⊇ B}.
The relations G and H are partial order relations on E. The set X is the maximal
element for E associated to G. The set {5, 7} is a maximal element for E associated
to H, since there does not exist B ∈ E, such that
{5, 7} ⊇ B and {5, 7} 6= B.
Definition 3.6.24 Let R be a partial order relation on a set A. The element n ∈ A is
called minimal element of A associated to R if there does not exist an element x ∈ A,
such that xRn and x 6= n.
R and S are partial order relations on E. Both {a, b} and {b, d} are minimal elements
of E associated to R. X is the minimal element of E associated to S.
Definition 3.6.27 Let A be a partially ordered set with respect to the relation ≤, and
let B be a subset of A. An element a ∈ A is called upper bound of B in A if
∀ x ∈ B, a ≥ x(xRa, ∀ x ∈ B).
In this case, we say that B is bounded above. An element a ∈ A is called lower bound
of B in A if
∀ x ∈ B, a ≤ x(aRx, ∀ x ∈ B).
In this case, we say that B is bounded below.
R = {(x, y) ∈ R × R : x ≤ y},
and let B = [2, 3]. The number 5 ∈ R is an upper bound of B. The number 1 ∈ R is a
lower bound of B.
Example 3.6.29 Let A = {5, 3, 10, 12, 30} and let R be a relation on A defined by
R = {(x, y) ∈ A × A : x | y},
and let B = {5, 10}. The number 30 ∈ A is an upper bound of B. The number 5 ∈ A
is a lower bound of B.
Definition 3.6.30 Let R be a partial order relation on a set A and let B be a subset of
A. The element x ∈ A is called a least upper bound (or supremum) of B if
x is an upper bound of B and
xRy, for every upper bound y of B.
We write Sup(B) (or LUB(B)) to denote the supremum of B.
Definition 3.6.31 Let R be a partial order relation on a set A and let B be a subset of
A. The element x ∈ A is called a greatest lower bound (or infimum) of B if
x is a lower bound of B, and
yRx, for every lower bound y of B.
We write Inf(B) (or GLB(B)) to denote the infimum of B.
T = {(x, y) ∈ R × R : x ≤ y},
and let B = [−1, 5]. It is clear that T is a partial order relation on R. Then Sup(B) = 5
and Inf(B) = −1.
Relations 91
Remark 3.6.33 Let ≤ be a partial order relation on a set A, and let B be a subset of
A. Then the following assertion hold.
1. If Sup(B) exists, it is unique, and if Inf(B) exists, it is unique.
2. b is an upper bound of B associated to the relation ≤ iff b is a lower bound of
B associated to the relation ≥.
3. b = Sup(B) associated to ≤ iff b = Inf(B) associated to ≥.
R = {(x, y) ∈ Z × Z : x ≤ y}.
R = {(x, y) ∈ A × A : x | y}.
R is a partial order set on A. It is not necessary that any pair x, y ∈ A are comparable.
For example 3, 5 ∈ A, but 3 ∤ 5 and 5 ∤ 3.
R is a partial order relation on P(X). It is not necessary that any pair of subsets A, B
are comparable. For example, if A = {1}, B = {5}, we see that A 6⊆ B, B 6⊆ A.
Definition 3.6.39 Let R be a partial order relation on a set A, and let B be a subset
of A.B is called a totally ordered subset (or B is a chain in A) if any pair of elements
(a, b) ∈ B are comparable, i.e., aRb or bRa.
If any pair of elements (a, b) ∈ A are comparable, A is called totally ordered set.
Example 3.6.40 The set Z is a totally ordered set with the relation ≤.
92 Concise Introduction to Logic and Set Theory
A = {1, 2, 3, 4, 5, 6, 7, 8, 9},
B = {2, 4, 8},
and
R = {(x, y) ∈ A × A : y | x}.
The set A is not totally ordered set, but B is a totally ordered set.
Example 3.6.42 Let A, B be totally ordered sets with the relations R and S, respec-
tively. Then the Cartesian product A × B can be totally ordered by the relation T as
follows:
(a, c)T (b, d) if and only if aRb, a, b ∈ A,
or
a = b, cSd, c, d ∈ B.
This order is called lexicographical order of A × B. For example, let A = {1, 3, 5},
B = {2, 4} and let
R = {(x, y) ∈ A × A : x ≤ y},
S = {(x, y) ∈ B × B : x | y}.
It is clear that R and S are total order relations on A and on B, respectively. Suppose
T is the lexicographical order of
A × B = {(1, 2), (1, 4), (3, 4), (3, 2), (5, 2), (5, 4)}.
See that (1, 2)T (1, 4), since 1 = 1 and 2 | 4. Also (1, 2)T (3, 2), since 1 < 3. The fol-
lowing graph explains (A × B, R × S):
Theorem 3.6.43 Let R be a total order relation on a set A. Then A has at most one
minimal element, which is the least element of A. Also A has at most one maximal
element, which is the greatest element of A.
Proof Assume that a1 , a2 are maximal elements with a1 6= a2 . Then there does not
exist x ∈ A, such that
xRa1 and x 6= a1 .
Relations 93
xRa2 and x 6= a2 .
As A is the totally ordered set, then a1 Ra2 or a2 Ra1 . This contradicts that a1 6= a2 .
Thus a1 = a2 .
Now, we prove that a1 is the least element of A, that is a1 Rx, ∀ x ∈ A.
Suppose there exists x ∈ A, such that a1 R6 x. Then xRa1 , since A is the totally ordered
set. But this contradicts that a1 is the least element, thus a1 is the least element of A.
The proof of the second part is left as Exercise 2.
B = {x, y} ⊆ A.
Then B has a least element x or y. So, for any two elements x, y ∈ A, we have that x, y
are comparable. Thus A is totally ordered.
Example 3.6.46 Let A = {2, 3, 4, 5, 6} and R = {(x, y) ∈ A × A : x ≤ y}. Thus the set
A is well-ordered.
Example 3.6.48 The set of integers Z, with the total order relation ≤, is not well-
ordered, since the subset
A = {. . . , −2, −1, 0} ⊂ Z
Proof Let
T = {y ∈ A : y > a}.
T is not empty subset of A, why?
Then T has a least element, say b. Thus b is the immediate successor of a.
∀ x ∈ A, (y ∈ B, xRy) ⇒ x ∈ B.
94 Concise Introduction to Logic and Set Theory
Proof Suppose P(x) is not true for all x ∈ A. We define the set
T = {y ∈ A : P(x) is false}.
As T is a subset of A, then T has a least element, say m. Since P(x) is true ∀ x < m,
then P(m) is true. But P(m) is false, since m is the least element of T such that P(m)
is false. Thus P(x) is true ∀ x ∈ A.
Exercises
1. Complete the proof of Theorem 3.6.8.
2. Complete the proof of Theorem 3.6.43.
3. Let A = {0, 1, 2}. Write all the partial order relations, possible, on A. Which of
those relations are total order relations?
4. Is φ a partial order relation?
5. Let S be a nonempty \
family of partial order relations on a set A. Prove that
δ is a partial order relation on A.
δ ∈S
10. Draw the Hasse diagram for the partial ordered set (X, S), where
X = {a, b, c, d, e},
S = {(a, d), (a, c), (a, b), (a, e), (b, e), (c, e), (d, e)}.
X = {a, b, c, d},
S = {(c, d)} ∪ IX .
Determine the maximal elements, minimal elements, the least element, and the
greatest element.
12. Prove that every finite set is a well-ordered set.
13. Prove that any subset of a well-ordered set is a well-ordered set.
14. Let {Si }i∈I be a nonempty family of equivalence relations on X, such that
({Si }i∈I , ⊆)
[
is a total ordered set. Prove that Si is an equivalence relation on X.
i∈I
15. Let (A, R), (B, S) be partially ordered sets, and A × B an ordered set by the
lexicographical relation T . Prove that if (a, b) is a greatest element of A × B,
then a is a greatest element of A.
16. Show that if R is an antisymmetric relation, then x 6= y and imply yR6 x.
17. Let R be a relation on N given by
21. Let X be a set. Consider the partial order relation ⊆ on P(X). Let C and D
be subsets of X. Prove that the least upper bound of {C, D} is C ∪ D and the
greatest lower bound of {C, D} is C ∩ D.
22. Let R be a relation on N given by
4.1 FUNCTIONS
4.1.1 DOMAIN AND RANGE
Definition 4.1.1 Let A and B be sets and let f be a relation from A to B. f is said to
be a function if the following conditions hold:
1. ∀ x ∈ A, ∃ y ∈ B, such that (x, y) ∈ f .
2. If (x, y) ∈ f and (x, z) ∈ f , then y = z.
A = {1, 3, 5, 7},
B = {2, 4, 6},
A = {1, 3, 5, 9},
B = {3, 7, 11, 16, 19},
f = {(x, y) : y = 2x + 1}.
A = {1, 3, 5, 9},
B = {3, 7, 11, 16},
DOI: 10.1201/9780429022838-4 97
98 Concise Introduction to Logic and Set Theory
and let
f = {(x, y) : y = 2x + 1}.
Then f is not a function, since 9 ∈ A, but there does not exist y ∈ B, such that (9, y) ∈
f.
A function f from A to B is also called a mapping from A to B.
We write
f : A → B,
and this is read “ f maps A to B” or “ f is a function from A to B”. The set A is called
the domain of f , denoted by Dom( f ). The set B is called the codomain of f , denoted
by codom( f ).
Definition 4.1.5 Let f : A → B. If (x, y) ∈ f , then we write y = f (x), and we say that
y is the value of f at x, or the image of x under f . In such a case, x is said to be the
pre mage of y under f .
Remark 4.1.6 One can use Venn diagram to clarify a function from A to B.
A = {a, b, c},
B = {2, 1, −1},
a –1
b 1
c 2
This diagram indeed indicates that the mapping f is wholly defined on A, and each
element of A is uniquely assigned to be a single corresponding element of B, and
hence, it is a function.
By definition, the range Rng( f ) is the set of all images of A under f . So, sometimes,
Rng( f ) is also denoted by f (A).
f = {(x, y) : y = x2 }.
Rng( f ) = {y ∈ R : y ≥ 0}.
G = {(x, y) ∈ A × B : y = f (x)}
f (x) = x2 .
Then,
G = {(x, y) ∈ R × R : y = x2 }
1 1 1 1
= {(0, 0), (1, 1), (−1, 1), ( , ), (− , ), . . . }.
2 4 2 4
Example 4.1.15 Let
A = {1, 3, 4, 5},
B = {3, 7, 9, 11, 13, 15},
f (x) = 2x + 1.
The graph G of f is
G = {(x, y) ∈ A × B : y = 2x + 1}
= {(1, 3), (3, 7), (4, 9), (5, 11)}.
Notion 4.1.16 Let A and B be sets. The set of all functions from A to B is denoted
by
BA .
Proof Suppose
A = {x1 , x2 , . . . , xm } and
B = {y1 , y2 , . . . , yn }.
x1 is related to y1
or to y2
:
:
:
or to yn ,
Functions 101
x is related to y1
or to y2
:
:
or to yn .
So, every element of {x1 , x2 , . . . , xm } has n-different ways to be related to one element
of {y1 , y2 , . . . , yn }. Thus the number of the ways, making the m-many elements of A
related to n-many elements of B, is
n · n · n . . .n(m times) = nm .
or “ f is an onto function,”
if
Rng( f ) = B.
In other words, “ f is onto function” if and only if
f = {(x, y) ∈ A × B : y = 5x + 1}.
f = {(3, 4), (5, 6), (7, 8), (9, 10), (11, 4)}.
f = {(x, y) : y = x2 + 1}.
Example 4.2.6 Let A = {3, 5, 8}, B = {1, 2, 4, 6}, and let f , g be functions from A to
B defined by
f = {(x, y) ∈ A × B : y = x3 },
g = {(x, y) ∈ A × B : y = 3x2 + 1}.
x31 = x32 ⇒ x1 = x2 ,
x1 6= x2 ⇒ f (x1 ) 6= f (x2 ).
1 1
= .
x21 + 1 x22 + 1
f (2) = f (−2) = 5,
and let
f = {(x, y) ∈ A × B : y = 2x},
g = {(x, y) ∈ A × B : y = x + 1}.
if
1. A = C,
2. B = D,
3. f (x) = g(x), ∀ x ∈ A.
f (x) = |x|,
f (x) = x2 ,
g(x) = x2 .
f (x) = x, ∀ x ∈ A.
f = {(x, y) ∈ A × A : x = y}
= {(1, 1), (2, 2), (3, 3)}.
Remark 4.2.17 The identity function is one-to-one and onto, and hence, it is a bi-
jection.
f (x) = c, ∀ x ∈ A.
f (x) = 3, ∀ x ∈ R.
Definition 4.2.25 Let B be a subset of A and C = {0, 1}, and let f be the relation
from A to C defined by (
0 if x ∈ B,
f (x) =
1 if x ∈ A − B.
The function f : A → C is called the characteristic function of B in A.
By definition, characteristic functions are onto {0, 1}, if and only if B is a non
empty proper subset of A. It is not hard to check that a characteristic function of a
non empty subset B in A is not onto {0, 1}, if and only if B = A.
f = {(x, y) ∈ R × R : y = f (x) = x2 },
g = {(x, y) ∈ N × R : y = g(x) = x2 }.
One can check that if a function is one-to-one, then its restrictions are one-to-one,
however, even though a function is onto, the corresponding restrictions are not onto,
in general. By definitions, every inclusion function is understood to be a restriction.
g : D → B,
g(x) = f (x), ∀ x ∈ A,
that is g|A = f .
f :R→R
It can be verified that, even though f is onto (or, one-to-one), its extensions are
not onto (respectively, one-to-one), in general. That is, the one-to-one-ness, and the
onto-ness of functions do not affect those of extensions in general.
f = {(x, y) ∈ R × R : y = |x|},
where (
x if x ≥ 0,
|x| =
−x if x < 0.
This function is called the absolute value function.
Functions 107
f : N → A,
f (1) = 3,
f (3) = 5,
f (5) = 1.
By the very definition, every canonical function is onto the quotient set A/R, but it
is not one-to-one, because if two distinct elements x and y of A are related under an
equivalence relation R, then they induce the same equivalence class, that is, [x] = [y],
implying f (x) = f (y).
R = {(x, y) ∈ Z × Z : y − x is even}.
The function f : Z → Z/R, defined by f (n) = [n], is a canonical function. For exam-
ple,
f (2) = [2] = [0],
f (5) = [5] = [1].
We remark that f : Z → Z/R is onto but not one–one.
One can generalize this concept with Dom( f ). In addition, codom( f ) are the Carte-
sian product of more than two sets. For example,
f : R4 → R2 ,
defined by
f (x, y, z, w) = (3x + y, 4z + w),
is a function in four variables.
Then, d : A× A → R+ is a distance function, called the discrete distance (or, the Dirac
measure). In this case, if A contains more than one element, then d is onto {0, 1}.
Pi : A1 × A2 → Ai (i = 1, 2),
is the projection of R2 on R.
f1 : B → A,
f2 : C → A,
Exercises
1. Let f : [1, ∞) → R be a function defined by
f (x) = 4x − 1.
Find Dom( f ).
2. Draw the graph of the following relations and determine which of the follow-
ing graphs represents a function:
(a) f = {(x, y) ∈ R × R : 2x − y = 4}.
(b) g = {(x, g(x)) ∈ R × R : g(x) = x2 + 4}.
(
2x, x ∈ (−2, 4).
(c) h = {(x, y) : y = 3x+1
2 , x ∈ (−4, 2).
Prove that
f |B∩C = g|B∩C .
If h = f ∪ g, prove that
h : B ∪C → A
is a function with g = h|C and f = h|B .
8. Let S and T be nonempty sets. Prove that there exists a bijection between S × T
and T × S.
112 Concise Introduction to Logic and Set Theory
BA = φ ⇔ A = φ ∧ B = φ .
f :A→B
if and only if, there exist relations J and H from A to B, such that
(H ∩ J) ◦ G = (H ◦ G) ∩ (J ◦ G).
Functions 113
g ◦ f : A → C is a function.
(x, z) ∈ g ◦ f . (4.3)
(x, y1 ) ∈ f ∧ (x, y2 ) ∈ f ⇒ y1 = y2 .
x1 y1 z1
x2 y2 z2
Thus (y1 , z2 ) ∈ g.
Since g : B → C is a function, then
(y1 , z1 ) ∈ g ∧ (y1 , z2 ) ∈ g ⇒ z1 = z2 ,
so, if
(x, z1 ) ∈ g ◦ f ∧ (x, z2 ) ∈ g ◦ f ,
Functions 115
then
z1 = z2 . (4.4)
By Equations (4.3) and (4.4), one can conclude that
g◦ f : A →C
is a function.
The above theorem can be re-stated as follows:
f g
g˚f
b y s
t
c z
Then the composite function g ◦ f : A → C is defined to be a function satisfying,
(g ◦ f )(a) = g( f (a)) = g(y) = t,
(g ◦ f )(b) = g( f (b)) = g(z) = r,
(g ◦ f )(c) = g( f (c)) = g(y) = t,
116 Concise Introduction to Logic and Set Theory
having its domain A, and its range contained in C. That is, it satisfies the following
diagram:
a g˚f r
b s
c t
(g ◦ f )(x) = g( f (x))
= g(4x2 )
= 3(4x2 ) + 1
= 12x2 + 1,
( f ◦ g)(x) = f (g(x))
= f (3x + 1)
= 4(3x + 1)2
= 36x2 + 24x + 4.
The above example demonstrates that the composite functions f ◦ g and g ◦ f are
not identical, in general, and hence, the composition (◦) is not commutative (as an
operation on functions).
f (x1 ) = f (x2 ) ⇒ x1 = x2 .
(g ◦ f )(x1 ) = (g ◦ f )(x2 ) ⇒ x1 = x2 .
Thus f is one-to-one.
118 Concise Introduction to Logic and Set Theory
(g ◦ f )(x) = z,
Remark 4.3.9 Note that the converse of Theorem 4.3.8 does not hold true. Even
though f is one-to-one, and g is onto, the composite function g ◦ f is not necessarily
a bijection. See Example 4.3.10 below.
f (x) = x,
g(x) = x2 .
Then g ◦ f : R → R+ is defined by
(g ◦ f )(x) = x2 .
f −1 = {(x, y) : (y, x) ∈ f }.
A = {5, 7, 9},
B = {−2, 4},
and let f = {(5, −2), (7, −2), (9, 4)}. Then the corresponding inverse f −1 is deter-
mined to be
f −1 = {(−2, 5), (−2, 7), (4, 9)},
as a relation. It is clear that f : A → B is a function, but f −1 : B → A is not a function.
Functions 119
(x, y) ∈ f ⇒ (y, x) ∈ f −1 .
Dom( f −1 ) = B (4.5)
x1 = x2 . (4.6)
f −1 : B → A
is a function.
By Theorem 4.3.19 and by the invertibility ( f −1 )−1 = f , we obtain the following
result.
f −1 : B → A
is a bijective function.
f −1 (y1 ) = f −1 (y2 ) = x.
Then
(y1 , x) ∈ f −1 ∧ (y2 , x) ∈ f −1 .
So,
(x, y1 ) ∈ f ∧ (x, y2 ) ∈ f .
That is
y1 = f (x) ∧ y2 = f (x).
This implies y1 = y2 . Thus, f −1 : B → A is one-to-one.
Functions 121
Proof We here prove part 1, and leave the proof of part 2, for readers, as exercise.
1. Since f : A → B is invertible, then
f −1 : B → A
IA (x) = x, ∀ x ∈ A,
Exercises
1. Let f : A → B, g : B → C, and h : C → D be functions. Then h ◦ (g ◦ f ) : A → C
is a function. Prove that
h ◦ (g ◦ f ) = (h ◦ g) ◦ f .
x+1
(c) f : R → R given by f (x) = x+2 ,
g : R → R given by g(x) = x2 + 1.
3. Find the domain and range of each composite function in Exercise 2.
4. Describe two extensions with domain R for the function
(a) f = {(x, y) ∈ N × N : y = x2 },
(b) f = {(x, y) ∈ N × N : y = 3}.
5. Let A = R − {3} and B = R − {1}. Let the function
f :A→B
x−2
be defined by f (x) = x−3 . Show that f is both one-one and onto.
Find a formula for f −1 .
6. Suppose f : A → B. Which of the following assertions is always true?
(a) f (A) ⊂ B.
(b) f (A) = B.
(c) f (A) ⊃ B.
[a.]
7. Let f : A → B, g : B → A, and let g ◦ f = IA . Are the following assertions true
or false?
(a) g = f −1 .
(b) f is an one-one function.
(c) f is onto function.
(d) g is an onto function.
(e) g is an one-to-one function.
8. Consider the following functions:
(a) f1 : [−2, 2] → R,
(b) f2 : [0, 3] → R,
(c) f3 : [−3, 0] → R,
(d) f4 : [−5, 3) → R.
Find the rang of f1 , f2 , f3 , and f4 , if each of these functions is defined by the
same formula
fi (x) = x2 , i = 1, 2, 3, 4.
Functions 123
h ◦ f = h ◦ g ⇒ f = g, ∀ f , g ∈ X X .
f ◦ h = g ◦ h ⇒ f = g, ∀ f , g ∈ X X .
f |C = f ◦ EC ,
IB ◦ f = f and f ◦ IA = f .
A ⊆ B ⇒ AW ⊆ BW .
21. Let A, B be sets. The symbol A ∼ B denotes that there exists a bijective function
from A to B. Prove that
25. Which of the functions in Exercise 24 are one-to-one? Justify your answers.
26. Prove that
(
x−2
(a) f (x) = x−4 ,
if x 6= 4,
1, if x = 4
is one-to-one and onto R,
x + 4, if x ≤ −2,
(b) f (x) = −x, if − 2 < x < 2 − x,
x − 4 if x ≥ 2
is onto R, but not one-to-one.
27. Prove that
(a) f : Z4 → Z8 defined by
f ([x]) = 2[x]
is one-one, but not onto,
Functions 125
(b) f : Z4 → Z2 defined by
f ([x]) = [3x]
is one-one but not onto,
(c) f : Z6 → Z6 defined by
f ([x]) = [x + 1]
is one-one and onto,
(d) f : Z4 → Z4 defined by
f ([x]) = [2x]
is neither one-to-one nor onto.
28. Suppose the set A has n elements and the set B has m elements. Find the num-
ber of
(a) one–one functions from A to B, assuming that
1. m < n 2. m = n 3. m > n
(b) onto functions from A to B, assuming that
1. m = n 2. m > n 3. m = n + 1
f (x) = x2 + 2.
Proof Suppose A = B, and let y ∈ f (A). Then ∃ x ∈ A, such that y = f (x). Since
A = B, then x ∈ B. Thus y = f (x) ∈ f (B). Hence
Similarly, we have
Remark 4.4.5 Even though f (A) = f (B), it is not necessary that A = B. See Example
4.4.6 below.
f : X →Y
Proof First, suppose A ∈ P(X), then A ⊆ X. Thus, f (A) ⊆ Y from which we get
f (A) ∈ P(Y ). Suppose f (A) = B, then
B1 = f ∗ (A) ∧ B2 = f ∗ (A),
Proof We here prove parts (a) and (c), and leave the proof of part (b) to the readers
as exercise.
(a) Suppose y ∈ f (C ∪ D). Then y ∈ f (C ∪ D) ⇔ ∃x ∈ C ∪ D, such that y = f (x)
⇔ ∃x ∈ C ∧ x ∈ D, such that y = f (x)
⇔ (∃x ∈ C, such that y = f (x)) ∧ (∃x ∈ D, such that y = f (x))
⇔ f (x) ∈ f (C) ∧ f (X) ∈ f (D)
⇔ y ∈ f (C) ∧ y ∈ f (D)
⇔ y ∈ ( f (C) ∪ f (D)).
Consequently, f (C ∪ D) = f (C) ∪ f (D).
(c) Suppose y ∈ f (C) − f (D). Then y ∈ f (C) ∧ y 6∈ f (D). Since y ∈ f (C), ∃ x ∈ C,
such that y = f (x). This implies
Therefore, x 6∈ D; i.e.,
∃ x ∈ C ∧ x 6∈ D
such that
y = f (x).
So, ∃ x ∈ C − D such that y = f (x). This implies that y ∈ f (C − D). In con-
clusion,
y ∈ f (C) − f (D) ⇒ y ∈ f (C − D).
Thus, f (C) − f (D) ⊆ f (C − D).
f :A→B
f (C ∩ D) = f (φ ) = φ ,
and
f (C) = f ({3}) = {2}, f (D) = f ({5}) = {2}.
Thus,
f (C) ∩ f (D) = {2},
from which we obtain that
f −1 (D) = {x ∈ A : f (x) ∈ D}
Note that, even though the inverse images are expressed under the symbol f −1 ,
this symbol does not mean the inverse function of f . It is simply used pure symboli-
cally. Even if f is not invertible, one can define and write the corresponding inverse
images as above.
f (x) = x2 + 1,
then
Also
x ∈ f −1 (C) ⇔ f (x) ∈ C
⇔ f (x) ∈ D(since C = D)
⇔ x ∈ f −1 (D).
Remark 4.4.13 Even though f −1 (C) = f −1 (D), it is not necessary that C = D. See
Example 4.4.14 below.
f (x) = |x|,
Functions 129
Notice that f −1 ((−2, 1)) = f −1 ((−1, 1)), but (−2, 1) 6= (−1, 1).
Proof We show part (b) and leave the proof of parts (a) and (c) to the readers as
exercise.
(b) Suppose x ∈ f −1 (C ∩ D). Then
x ∈ f −1 (C ∩ D) ⇔ f (x) ∈ C ∩ D
⇔ f (x) ∈ C ∧ f (x) ∈ (D)
⇔ x ∈ f −1 (C) ∧ x ∈ f −1 (D)
⇔ x ∈ f −1 (C) ∩ f −1 (D).
Notion 4.4.16 For a set A, by 2A , we denote the set of all the functions from A to
{a, b}.
Theorem 4.4.17 For every set A, then there exists a bijection between 2A and the
power set P(A) of A.
Proof Suppose we let 2 = {0, 1}, notationally. We define a relation R from P(A) to
2A by
R = {(B, F) ∈ P(A) × 2A : f = λB },
where λB is the characteristic function, i.e.,
(
0, x ∈ B,
λB (x) =
1, x ∈ A − B,
(B, λB ) ∈ R. (4.9)
130 Concise Introduction to Logic and Set Theory
Exercises
1. Let X = {a, b, c, d}, Y = {x, y, z, w}, and let
f : X → Y be a function defined by
f (a) = x, f (b) = y
f (c) = z, f (d) = w.
Find each of
f ({a, b}), f ({b, c}), f ({c, d})
f −1 ({x, z}), f −1 ({y, z, w}).
2. Let f : R → R be defined by f (x) = 2x2 + 1. Find f ((0, 2)).
3. Let f : R → R be defined by f (x) = 2x − 1. Find f ((−1, 1)).
4. Let f : R → R be defined by
(
x − 2, x ≥ 2,
f (x) =
2x + 1, x < 2.
f (x, y) = x2 + y2 .
Find
(a) f −1 ({1, 2, 3, 4, 5, 6}).
(b) f −1 ({4, 6, 8, 10}).
(c) f ({(1, 1), (2, 2), (4, 1), (1, 4)}).
11. Let f : N × N → N be a function defined by f (m, n) = 2m 3n .
Find
(a) f (A × B), where A = {1, 2, 4}, B = {3, 4},
(b) f −1 ({5, 6, 7, 8, 9, 10}).
12. Let f : N × N → N be a function defined by
Example 5.1.3 Let X = {x, y, z} and Y = {a, b}. It is impossible to find a bijection
between X and Y . Hence X and Y are not equivalent; that is, X 6≈ Y .
Example 5.1.4 Let A and B be the open intervals (0, 1) and (2, 5), respectively. Let
f : A → B be a function defined by
f (x) = 3x + 2.
Since f is a bijection, A ≈ B.
Example 5.1.5 Let N be the set of all natural numbers, and M be the set of all even
numbers, and let f : N → M be a function defined by
f (n) = 2n.
In the very above example, we note that M ⊂ N, and N ≈ M, showing that set N of
natural numbers is equipotent to a proper subset M of all even numbers. It provides
a difference between finiteness and infiniteness of sets.
By Example 5.1.5 and Definition 5.1.6, one can conclude that, indeed, set N of nat-
ural numbers is infinite.
idA : A → A,
defined by
idA (a) = a, for all a ∈ A.
It is not hard to check this function idA is a bijection.
Suppose now two sets A and B are equipotent. Since A ≈ B, there exists a bijec-
tion,
f : A → B,
implying the existence of a bijection,
f −1 : B → A,
g : A → B, and h : B → C.
h ◦ g : A → C,
of h and g. Note and recall that this function h ◦ g is not only invertible, but also,
A ≈ C.
Theorem 5.1.8 Let A, B,C, and D be sets with A ≈ C and B ≈ D. If A and B are
disjoint, and if C and D are disjoint, then A ∪ B ≈ C ∪ D.
f ∪ g : A ∪ B → C ∪ D,
defined by
f (x) if x ∈ A
f ∪ g (x) =
g(x) if x ∈ B,
f ∪ g,
Theorem 5.1.9 Let A, B,C, and D be sets with A ≈ C and B ≈ D. Then A×B ≈ C ×D.
f × g : A × B → C × D,
by
f × g ((a, b)) = ( f (a), g(b)) ,
for all (a, b) ∈ A × B. We leave the detailed proof to the readers.
136 Concise Introduction to Logic and Set Theory
#({1, 2, 3, . . ., k}) = k.
A ≈ B ⇐⇒ #(A) = #(B).
#(A) = #(B).
Conversely, if #(A) = #(B), then one can construct a bijection between A and B
because of the one-to-one-ness and the onto-ness of bijections, and hence, A ≈ B.
We will consider it more precisely below.
By this equivalence, one may/can understand the cardinality, say α , which is a
quantity, as a family of all sets having the same cardinalities α . For instance,
by regarding 2 as a family of all sets having their cardinalities 2. That is, the quantity
2 represents the cardinalities of all sets having two elements.
Remark 5.1.14
1. The cardinal numbers induced by finite sets are nothing but the cardinalities of
the sets.
2. The set A is finite if there does not exist a proper subset B of A, such that B ≈ A.
So, the finite cardinal numbers are determined uniquely up to cardinalities.
3. The cardinal number α is a finite number if it is the cardinality of a finite
set. Otherwise it is called an infinite cardinal number. In such a sense, a finite
cardinal number is also called a natural number. An infinite cardinal number
is called a transfinite number.
Cardinality of Sets 137
Now, let’s consider the cases where cardinal numbers are not finite.
Definition 5.1.17 The cardinal number c is defined to be the cardinality #((0, 1)) of
the subset (0, 1), the open interval,
of the set R of all real numbers. This cardinal number c is called the continuum (or,
the uncountable infinity).
f : (0, 1) → (a, b)
f (x) = tan x,
is a bijection. Hence the set R of real numbers has its cardinality, the continuum c,
that is,
# (R) = c.
So, without loss of generality, one can re-define the cardinal number c, the contin-
uum, by the cardinality of R.
Theorem 5.1.20 The transfinite number ℵ is strictly less than c. That is,
ℵ < c,
f : N → R,
by
f (n) = n in R, for all n ∈ N.
i.e., this embedding function f is clearly one-to-one. It means that the range of f is a
proper subset of R, and hence,
# (N) = ℵ ≤ c = # (R) .
Cardinality of Sets 139
Moreover, there are no one-to-one functions from R to N (See Section 5.1.2 further:
one can find a bijection from subset Q of all rational numbers to N). It shows that
c 6= ℵ.
Therefore,
ℵ < c,
as transfinite cardinal numbers.
Logically, there is no cardinal number between ℵ and c. Indeed, if there were a
cardinal number β such that
ℵ ≤ β < c,
then
β = ℵ + k, for some k ∈ {0} ∪ N ∪ {ℵ} ,
implying that
β = # (A) = # (N) = ℵ,
by the equipotent property of A and N:
A ≈ N ∪ Nk ≈ N.
ℵ < γ ≤ c,
then
γ = c − k, for some l ∈ {0} ∪ N∪ {ℵ} ,
implying that
γ = #(B) = #(R) = c,
by the equipotent property of B and R:
B ≈ R − Nk ≈ R.
In particular, all finite cardinal numbers are from subset {0} ∪ N of C , and the trans-
finite cardinal numbers are {ℵ, c} in C .
140 Concise Introduction to Logic and Set Theory
By definition, the empty set φ whose cardinality is 0, and all nonempty finite sets
whose cardinalities are in N, and the sets equipotent to N whose cardinalities are ℵ
are countable.
(a1 , a2 , a3 , . . . )
f (n) = an ,
whose domain is N. Note here that the mutual distinctness of entries is crucial.
Q+ ≈ N × N.
Q+ ≈ N × N ≈ N.
Therefore, Q+ is countable.
Q+ +
0 = Q ∪ {0}
of Q is countable.
Note-and-recall that N ≈ E, where E is the proper subset of N consisting of all
even numbers, by the existence of a bijection ge : N → E defined by
And, similarly, one can check that N ≈ O, where O is the proper subset of N consist-
ing of all odd numbers, by the existence of a bijection go : N → O defined by
Q+ −
0 ≈ E ≈ N, and Q ≈ O ≈ N.
Q = Q+ −
0 ∪ Q ≈ E ∪ O = N.
# (Q) = ℵ.
Proof Suppose a set A is countable. Assume first that A is finite. If A = φ , then it has
only one subset φ , itself, satisfying #(φ ) = 0. If A ≈ Nk , for some k ∈ N, then
# (B) ≤ k < ℵ,
for all subsets B of A. So, if A is finitely countable, then all subsets of A are (finitely)
countable.
Now, assume that A is infinitely countable, i.e., A ≈ N, equivalently, #(A) = ℵ.
Note that a subset X of N satisfies
X = φ,
Cardinality of Sets 143
or
X ≈ Nk , for some k ∈ N,
or
X = N,
implying that
# (X) ∈ {0} ∪ N ∪ {ℵ} .
Since A ≈ N, if B is an arbitrary subset of A, then
# (B) ∈ {0} ∪ N ∪ {ℵ} ,
too. Therefore, all subsets of a countable set A are countable.
Exercises
1. Prove that set Z of all integers is countable.
2. Let A and B be sets. Prove that if A is finite, then A ∩ B is finite.
3. Prove that Nk × Nr is finite, for k, r ∈ N.
4. Prove that if A is infinite, and A ⊆ B, then B is infinite.
5. Prove that if A and B are finite sets, then A × B is finite.
6. Show that if A ≈ φ , then A = φ .
n o
7. Show that a set S = 21k , k ∈ N is countable.
Definition 5.1.30 Let α and β be cardinals numbers, and let A and B be disjoint sets
such that α = #(A), β = #(B). Then
α + β = #(A ∪ B).
3 + 5 = α + β = #{1, 2, 3, 4, 5, 6, 7, 9} = 8,
since A and B are disjoint.
A = {1, 3, 5, . . . },
B = {2, 4, 6, . . . }.
ℵ + ℵ = #(A ∪ B)
= #(N)
= ℵ,
implying that
ℵ + ℵ = ℵ.
Cardinality of Sets 145
Proof
1. Let A, B, and C be mutually disjoint sets, such that
α = #(A), β = #(B) and γ = #(C),
Then
(α + β ) + γ = #(A ∪ B) + #(C)
= #((A ∪ B) ∪C)
= #((A ∪ (B ∪C))
= #(A) + #(B ∪C)
= α + (β + γ ).
Remark 5.1.36 The cancellation law does not hold on C . For example
ℵ + ℵ = ℵ = 1 + ℵ,
but ℵ 6= 1 in C .
146 Concise Introduction to Logic and Set Theory
Definition 5.1.37 Let α and β be cardinal numbers, and let A and B be such that
α = #(A), and β = #(B). Then the product αβ of α and β is defined by
αβ = #(A × B).
Note that, different from the addition (+), the multiplication (·) does not need the
disjoint condition by the very definition of the Cartesian product.
α = #(A) = 3, β = #(B) = 5,
and
(3)(5) = αβ = #({2, 3, 4} × {q, p, r, s,t}) = 15.
Then
α (β γ ) = # (A × (B × C))
= # (A × B × C)
= # ((A × B) × C) = (αβ ) γ .
Thus, the first formula holds.
Since
A × B ≈ B × A,
we have
# (A × B) = αβ = β α = # (B × A),
and hence, the second formula holds.
Cardinality of Sets 147
and assume further that the two sets B and C are disjoint. Then
Since B ∩C = φ , we have
(A × B) ∩ (A × C) = φ .
Thus,
α (β + γ ) = #(A × B) + #(A × C)
= αβ + αγ ,
Definition 5.1.41 Let α and β be cardinal numbers, and let A and B be sets satisfying
that α = #(A), and β = #(B). Then the power α β is defined by
α β = # AB .
B ∩C = φ ,
and
α = #(A), β = #(B), γ = #(C).
148 Concise Introduction to Logic and Set Theory
Note that
α β +γ = #(AB∪C ), α β α γ = #(AB × AC ),
and AB∪C consists of all the functions with domain B ∪C and codomain A. Also AB
and AC have the similar meaning. So, it suffices to show
AB∪C ≈ AB × AC .
( f |B , f |C ).
F : AB∪C → AB × AC
defined by
F( f ) = ( f |B , f |C ),
is a bijection, because B ∩C = φ . Thus,
AB∪C ≈ AB × AC .
#(P(A)) = 2α .
Proof We already proved that there exists a bijection between P(A) and 2A . That is,
P(A) ≈ 2A . Therefore,
#(P(A)) = #(2A ) = 2α .
Remark 5.1.45 1. The above theorem can be re-stated by that: # (P(A)) = 2#(A),
for all sets A.
2. Cantor’s theorem tell us that, for any cardinal number α ,
α < 2α .
3. ℵ < 2ℵ .
4. 2ℵ = c.
Cardinality of Sets 149
Proof
1. Since N × N is countable,
N × N ≈ N.
Therefore, ℵℵ = ℵ.
2. Let f : N × (0,1) → (0, ∞) be a function defined by
f (x, y) = x + y.
x = 0.x1 x2 x3 . . . ,
y = 0.y1 y2 y3 . . . .
So,
(0, 1) × (0, 1) ≈ (0, 1).
i.e., we have
#((0, 1) × (0, 1) = #(0, 1).
Therefore, cc = c.
150 Concise Introduction to Logic and Set Theory
#(N) = ℵ ≤ c = #(R).
ℵ < c.
α ≤ α,
Theorem 5.1.51 For cardinal numbers α , β , and γ , the following properties hold:
1. α ≤ α (Reflexiveness).
2. If α ≤ β and β ≤ α , then α = β (Anti-symmetry).
3. If α ≤ β and β ≤ γ , then α ≤ γ (Transitivity).
α ≤ α in C .
α ≤ β , and β ≤ α .
If α = #(A), and β = #(B), for sets A and B, then the above order relations (or,
inequalities) mean that
f (A) ⊆ B, and f −1 (B) ⊆ A,
Cardinality of Sets 151
f −1 (B) = {a ∈ A | f (a) ∈ B}
is the pre image of f . By the one-to-one-ness of f and the second set inclusion, one
can realize that the pre image f −1 (B) is identified with the range of the inverse
f −1 : B → A, implying that this one-to-one function f is actually a bijection. In other
words,
A ≈ B, if and only if #(A) = #(B).
Therefore, two cardinal numbers α and β are identically same in C .
Now, assume that
α ≤ β and β ≤ γ ,
in C . If α = #(A), β = #(B), and γ = #(C) for sets A, B, and C, respectively, then
the above inequalities implies that
g(a) = {a}.
#(A) ≤ #(P(A)).
Thus, it is sufficient to show that #(A) 6= #(P(A)). Suppose #(A) = #(P(A)), that is,
A ≈ P(A). Then there exists a function g : A → P(A), which is a bijection. Let
B = {x ∈ A : x 6∈ g(x)}.
152 Concise Introduction to Logic and Set Theory
It is clear that B ⊆ A, B ∈ P(A). Since g is onto P(A), there exists a ∈ A such that
g(a) = B. So, if a ∈ B, then a 6∈ g(a) = B, meanwhile, if a 6∈ B, then a ∈ g(a), which
implies a ∈ B. Thus, we obtain contradictions in both possible cases.
It means that there does not exist a bijection between A and P(A), equivalently,
#(A) 6= #(P(A)). Therefore,
#(A) < #(P(A)).
It is not difficult to check that if a set A is finite, then
and hence,
# (P(N)) = c = # (R) ,
implying that the cardinalities of the power sets of infinitely countable sets are identi-
fied with continuum c, and they are understood to be the cardinalities of uncountable
sets. Equivalently, that
2ℵ = c,
in set C of all cardinal numbers.
f0 : B → A ∪ X.
f1 (X) = X,
f2 (X) = f ( f1 (X)).
Let
∞
[
C= fi (X).
i=1
f0 : B → A ∪ X by
Cardinality of Sets 153
(
b, if b ∈ C,
f0 (b) =
f (b), if b ∈ B − C.
The function f0 is onto, since
f0 (B) = f0 (C ∪ (B − C))
= f0 (C) ∪ f0 (B − C)
= C ∪ f (B − C)
= X ∪ F(C) ∪ f (B − C)
= X ∪ f (B)
= X ∪ A.
A ≈ B.
(g ◦ h) : B → (g ◦ h)(B)
is a bijection.
Let S = B1 − (g ◦ h)(B). Then, by the above lemma, there exists a bijection be-
tween B and B1 , where
B1 = (g ◦ h)(B) ∪ S.
Hence
B ≈ B1 ,
but B1 ≈ A. Consequently A ≈ B.
if α ≤ β and β ≤ α , then α = β .
P′ (A) = P(A) − {φ }.
f (B) ∈ B, ∀ B ∈ P′ (A),
Such a choice function f is well-defined by the axiom of choice. That is, one can
choose f (b) as an element of B, for b ∈ B, and for all B ∈ P (A).
f ({a, b}) = a,
f ({a}) = a,
f ({b}) = b.
Cardinality of Sets 155
Exercises
1. Arrange the following cardinal numbers in order:
(a) α γ ≤ β γ ,
(b) γ α ≤ γ β ,
(c) α + γ ≤ β + γ .
(d) αγ ≤ β γ .
(a) αβ = 0 ⇒ α = 0 ∨ β = 0,
(b) αβ = 1 ⇒ α = 1 ∧ β = 1.
α ≤ β ⇔ ∃γ , such that β = α + γ .
(a) α β ≤ γ δ ,
(b) αβ ≤ γδ .
2. Cohen, P.J., Set Theory and The Continuum Hypothesis, Dover Publications, Inc., New
York, 2008.
3. Dummit, D. S. and Foote, R. M., Abstract Algebra, 2nd Edition, Wiley India Pvt. Ltd.,
New Delhi, 2008.
4. Hall, M., The Theory of Groups, Dover Publications, Inc., New York, 2018.
5. Kamke, E., Theory of Sets, Dover Publications, Inc., New York, 2003.
7. Lipschutz, S., Theory and Problems of Set Theory and Related Topics, Schaum
Publishing Co., New York, 1964.
8. Malik, S.B., Basic Number Theory, Vikas Publishing House Pvt. Ltd., New Delhi,
1996.
9. Rosen, K., Discrete Mathematics and Its Applications with Combinatorics and Graph
Theory, 7th Edition, McGraw Hill Education, New York, 2017.
10. Smith, D., and Andre, R. St., A Transition to Advanced Mathematics, 5th Edition,
S.Chand (G/L) & Company Ltd, New Delhi, 2001.
11. Spence, L.E., and Eynden, C.V., Elementary Abstract Algebra, Harpercollins College
Div, New York,1993.
12. Suppes, P., Axiomatic Set Theory, Dover Publications, Inc., New York, 2012.
157
Index
A intersection of sets, 34–39
Absolute value function, 106, 107 union of sets, 32–34
Antisymmetric relation, 68 Equivalence classes, 70–76
Axiom of choice, 154–155 Equivalence relations, 70–76, 135
Euler, 97
B Even integers, 2
Bernoulli, J., 97
Bijection, 134, 135, 141, 152, 153 F
Functions, 97–131
C composite functions, 114–125
Canonical function, 107, 108 direct images and inverse images,
Cardinal arithmetic, 144–149 125–131
Cardinality, sets, 133–155 domain and range, 97–99
cardinal number, 133–153 graph of, 99–101
countable sets, 140–143 inverse functions, 114–125
equipotent sets, 133–139 onto functions, 101–110
order types, 150–151
Cartesian product, 51–55, 92, 109, G
140 Generalized distribution law,
Characteristic function, 105 47–48
Closed interval, 2
Complex numbers, 2 H
Composite proposition, 4 Half-open interval, 2
Composite relations, 114 Hasse diagram, 86
Composition, 115
Compound proposition, 10 I
Congruence, 76–79 Identity function, 104
Connectives, 3–7 Inclusion function, 105, 123
Constant function, 104 Indexed families, sets, 45–49
Contradiction, 10–12, 20–23 Indexing set, 45
Contrapositive proof, 18–20 Induction, 23–28
principle, 24–27
D Integers, 1
Direct images, 125–131 Intersection of sets, 34–39
Direct proof, 18–20 Inverse functions, 114–125,
Distance function, 108, 109 133
Inverse images, 125–131
E
Elementary properties, sets L
difference and symmetric Leibnitz, G.W., 97
difference, 42–45 Logical reasoning, 16–18
159
160 INDEX