MTH104 Full Hadouts by Z.F - 1
MTH104 Full Hadouts by Z.F - 1
Z.
Z.
F
What is this course?
Why do we study it?
What is the relation between sets and logic?
Z.
F
In mathematics, a proof is a demonstration that,
assuming certain axioms, some statement is necessarily
true. That is, proof is a logical argument, not an
empirical one. One must demonstrate that a proposition
is true in all cases before it is considered a theorem of
mathematics. An unproven proposition for which there
is some sort of empirical evidence is a conjecture.
Mathematical logic is the framework upon which
rigorous proofs are built. It is the study of the principles
and criteria of valid inference and demonstrations.
Z.
F
In set theory, we study sets, which are informally
collection of objects. Although any type of object can
be collected into a set, set theory is applied most often
to objects that are relevant to mathematics. A rigorous
analysis of set theory belongs to the foundations of
mathematics and mathematical logic. A Set Theorist
explores what is provable—and what is not provable—
when one is allowed to use all of the usual tools of
mathematical constructions and proofs (tools such
as: creating
Z.
F
function spaces, completions of various kinds of
objects, taking quotients, forming products, induction
and recursion, etc.).
F
Z.
Z.
F
A fundamental concept in all branches of mathematics is
that of a set. A set is any well-defined list, collection, or
class of objects. The objects in sets, as we shall see
from our examples, can be anything: numbers, people,
letters, rivers, etc. These objects are called the elements
or members of the set.
F
Z.
Z.
F
Sets will usually be denoted by capital letters
A, B, X, Y,…
The elements in our sets will usually be represented by
lower case letters
a, b, x, y,…
If we define a particular set by actually listing its
members, for example, let A consists of the numbers
1,3, 7 and 10, then we write
A = {1, 3, 7, 10}
The statement “p belongs to A” is written as p A .The
statement that p is not an element of A, is written p A
Z.
F
that is, the elements are separated by commas and
enclosed in brackets { }. We call this the tabular form
of a set.
But if we define a particular set by stating properties
which its elements must satisfy, for example, let B be
the set of all even numbers, then we use a letter, usually
x, to represent an arbitrary element and we write
B = {x| x is even}
We call this the set-builder form of a set.
F
Z.
F
Z.
F
Z.
Z.
F
All sets under investigation in any application of set
theory are assumed to be contained in some large fixed
set called the universal set or universe. We will denote
the universal set by U.
Examples are given below:
In plane geometry, the universal set consists of all
points in the plane.
In human population studies the universal set consists
of all people in the world.
Z.
F
It is convenient to introduce the concept of the empty set,
that is, a set which contains no elements. This set is
sometimes called the null set. We denote it by symbol
ø.
Z.
F
1. Let A be the set of people in the world who are
older than 200 years.
2. Let B { x | x 2 4, x is odd}.Then B is the empty set .
3. The set S {x : x is a positive integer, x 2 3} has no
elements since no positive integer has the required
property.
Z.
F
Suppose every element in a set A is also an element of a
set B ; then A is called a subset of B. We also say that A
is contained in B or B contains A. This relationship is
written
A B or B A
Z.
F
Consider the sets
A {1, 3, 5, 8, 9}, B {1, 2, 3, 5, 7}, C {1, 5}
Then C A and C B . But B A.
The set A {2,3, 4,5} is not a subset of B {x : x is even}
since 3 A but 3 B .
Z.
F
Every set A is a subset of the universal set U since, by
definition, all the elements of A belong to U. Also
empty set ø is a subset of A.
Every set A is a subset of itself since, trivially, the
elements of A belong to A.
If A B and B C, then A C .
If A B and B A, then A = B.
Z.
F
If A B, then it is still possible that A = B. When A B
but A ≠ B, we say that A is a proper subset of B.
For example, suppose
A = {1,2}, B = {1,2,3}, C = {1,3,2}
Then A and B are both subsets of C; but A is a proper
subset of C, whereas B is not a proper subset of C.
F
Z.
Z.
F
In this topic, we will study a number of set operations,
including the basic operations of union, intersection,
and difference of sets, where new sets will be assigned
to pairs of sets A and B.
Z.
F
The union of two sets A and B, denoted by A B, is the set
of all elements which belong to A or B; that is
A B {x : x A or x B}
The intersection of two sets A and B, denoted by AB, is
the set of all elements which belong to both A and B;
that is
A B {x : x A and x B}
Z.
F
Let A = {1,2,3,4}, B = {3,4,5,6,7}, C = {2,3,8,9}.
Then
Z.
F
Let U denote the set of students at a university, and let M
and F denote, respectively, the set of male and female
students at the university. Then
M∪ F= U
since each student in U is either in M or in F . On the
other hand,
M⋂F = ø
since no students belong to both M and F.
Z.
F
For any set A and B, we have
1) A B A and A B B
2) A A B and B A B
By combining the above two results, we can write
A B A A B and A B B A B
Z.
F
Complement of a set A, denoted by Ac , is the set of
elements which belong to U but which do not belong
to A; that is,
Ac {x : x U , x A}
Z.
F
Let U = {a, b, c, …, y, z} be the universal set, and let
A = {a,b,c,d,e}, B = {e, f, g}, V = {a,e,i,o,u}
Then
Z.
F
Suppose the set R of real numbers is the universal set.
denotes the set of rational numbers. Hence c will
denote the set of irrational numbers.
Z.
F
Let A and B be sets. The difference of A and B, denoted
by A/B, is the set of elements which belong to A but
which do not belong to B ; that is,
A / B {x : x A, x B}
Many texts denote A/B by A-B.
Z.
F
Consider the sets
A = {1,2,3,4}, B = {3,4,5,6,7}, C = {6,7,8,9}
Then
A/B=
B/C=
B/A=
C/B=
Z.
F
The symmetric difference of the sets A and B, denoted by
A B ( A B ) / ( A B)
or
A B (A/ B) (B/ A)
Z.
F
Consider the sets
A = {1,2,3,4}, B = {3,4,5,6,7}, C = {6,7,8,9}
Then
A B
BC
F
Z.
Z.
F
A Venn diagram is a pictorial representation of sets where sets
are represented by enclosed areas in the plane. The universal U
represented by the points in a rectangle, and other sets are
represented by disks lying within the rectangle. If A B , then
the disks representing A will entirely within the disk
representing B, as shown in the following figure.
Z.
F
If A and B are disjoint, then the disk representing A will
be separated from the disk representing B, as in the
following figure.
Z.
F
On the other hand, if A and B are two arbitrary sets, it is
possible that some elements are in A but not in B, some
elements are in B but not in A, some are in both A and
B, and some are in neither A nor B; hence , in general,
we represent A and B as in the following way.
Z.
F
1) Union of A and B
2) Intersection of A and B
Z.
F
3) Complement of A
4) Difference of A and B
Z.
F
7) Symmetric difference of A and B
F
Z.
Z.
F
Sets under the operations of union, intersection and
complement satisfy various laws(identities). Which are
listed below one by one.
Idempotent Laws
A A A and A A A
Z.
F
Associative Laws
A ( B C ) ( A B) C
and
A ( B C ) ( A B) C
Z.
F
Commutative Laws
A B B A
and
A B B A
Z.
F
Distributive Laws
A (B C) (A B) (A C)
and
A (B C) (A B) (A C)
Z.
F
Identity Laws
A A, A U A
and
A U U , A
Z.
F
Involution Law
( Ac )c A
Z.
F
Complement Laws
A Ac U , A Ac
and
U c , c U
Z.
F
DeMorgan’s Laws
( A B )c Ac B c
and
( A B )c Ac B c
Z.
F
The identities that we have discussed above are arranged
in pairs. We now consider the principle behind this
arrangement. Let E be an equation of set algebra. The
dual E* of E is the equation obtained by replacing each
occurrence of , ,U , in E by , , ,U , respectively.
For example, the dual of
(U A) (B A) A is ( A) (B A) A.
Z.
F
Question. Write the dual ( A U )c A .
Solution.
The dual is
F
Z.
Z.
F
A set is said to be finite if it contains exactly m distinct
elements where m denotes some nonnegative integer.
Otherwise set is said to be infinite. For example, the
empty set ø and the set of letters of the English
alphabet are finite sets, whereas the set of even positive
integers {2, 4, 6,…} is infinite.
Notation
The notation n(A) or |A| will denote the number of
elements in a finite set A.
Z.
F
Suppose A and B are finite disjoint sets. Then A B is
finite and
n(A B) = n(A) + n(B)
For example,
Z.
F
Let A be any set in a finite universal set U. Then
n( Ac ) n(U ) n( A)
Do it yourself as assignment.
F
Z.
Z.
F
The absolute value of a real number a, denoted by |a|,
may be viewed as the distance between a and the 0 on
the real line R. Formally, |a|= a or –a according as a is
positive or negative, and |0| = 0. That is:
a, if a 0
a
a, if a 0
2) 6 ≤ -2x ≤ 4
Z.
F
The inequality |x| < 5 may be interpreted to mean that the
distance between x and the origin 0 is less than 5; hence
x must lie between -5 and 5 on the real line R. How?
Z.
F
Q. Rewrite |x-5| < 5without the absolute value sign.
Z.
F
A set A of real numbers is said to be dense in R if every
open interval contains a point of A.
A B {(a, b) : a A, b B}
One usually writes A2 instead of A A.
Z.
F
is the set of all ordered pairs of real numbers. In
2
xy-plane, each point P represents an ordered pair (a, b)
of real numbers and vice versa. 2 is also called the
Cartesian plane.
Z.
F
Let A = {1, 2} and B = {a, b, c}. Then
Z.
F
The idea of a product of sets can be extended to any
finite number of sets. Specifically, for any sets A1 , A2 , ..., Am
the set of all m-element lists (a1 , a 2 ,..., a m ), where each ai Ai
is called the cartesian product of the sets A1 , A2 ,..., Am . It
is denoted by A1 A2 ... Am
Z.
F
Let A = {1, 2}, B = {x, y, z}, C= {3, 4}. Find A B C.
Z.
F
Let A = {1, 2}, B = {a, b, c}, C= {c, d}. Find A ( B C ).
F
Z.
Z.
F
Let A and B be sets. A binary relation or, simply, a
relation from A to B is a subset of A B . Suppose R is a
relation from A to B. Then R is a set of ordered pairs
where each first element comes from A and each
second element comes from B. That is,
Z.
F
The domain of a relation R from A to B is the set of all
first elements of the ordered pairs which belong to R,
and so it is subset of A; and the range of R is the set of
all second elements, and so it is a subset of B.
For example if R = {(1, y), (1, z), (3, y)} is the relation
from A = {1, 2, 3} to B = {x, y, z}, then
1 1 1
Note:( R ) R. Also domain of R is the range of R, and
vice versa.
Z.
F
Let A = {1, 2, 3, 4, 5, 6}, and let R be the relation on A
defined by “x divides y”, written x|y.
a) Write R as a set of ordered pairs.
1
b) Find the inverse relation R of R.
F
Z.
Z.
F
Consider, for example, the following relation R from A =
{1, 2, 3} to B = {x, y, z}:
R = {(1, y), (1, z), (3, y)}
We can represent this relation R in two ways as follows:
Z.
F
There is another way of picturing a relation R when R is a
relation from a finite set A to itself. Consider the set A
= {1, 2, 3, 4} and the following relation R:
R = {(1, 2), (2,2), (2, 4), (3, 2), (3, 4), (4, 1), (4, 3)}
First we write down the elements of the set A, and then
we draw an arrow from each element x to each element
y whenever x is related to y.
Z.
F
Given A = {1, 2, 3 ,4} and B = {x, y, z}. Let R be the
following relation from A to B:
R = {(1, y), (1, z), (3, y), (4, x), (4, z)}
Draw the arrow diagram of R.
Z.
F
Given A = {1, 2, 3 ,4, 6} and let R be the relation on A
defined by “x divides y”, written x|y. Draw its directed
graph.
Here R = {(1,1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (2,2),
(2,4), (2,6), (3,3), (3,6), (4,4), (6,6)}
F
Z.
Z.
F
Let A, B, C be sets, and let R be a relation from A to B
and let S be a relation from B to C. Then R and S give
rise to a relation from A to C denoted by R o S and
defined as follows:
R o S ={(a, c): there exist b ϵ B for which (a, b) ϵ R and
(b, c) ϵ S}
That is,
Countable Set
A set is countable if it is finite or denumerable, and a set
is nondenumerable if it is not countable.
In particular,
Z.
F
The cardinal number of the unit interval I = [0, 1] is
denoted by c and it is called the power of continuum.
Thus:
Example 2
Let n be a finite cardinal.
We may write
Z.
F
Example 3
Consider the set P of positive integers and the unit
interval I, that is, consider the sets
if
Z.
F
Suppose that every pair of elements of S are comparable.
Then S is said to be linearly or totally ordered.
Although an ordered set S may not be linearly ordered, it
is still possible for a subset A of S to be linearly
ordered. Such a linearly ordered subset A of an ordered
set S is called a chain in S.
Z.
F
a) Consider the set P of positive integers ordered by
divisibility.
b) B = {3, 15, 5}
c) C = {2, 8, 32, 4}
d) D = {7}
F
Z.
Z.
F
Let S be a partially ordered set, and suppose a, b ϵ S. We
say that a is an immediate predecessor of b, or that b is
an immediate successor of a, or that b is a cover of a,
written a << b, if a < b but no element in S lies
between a and b, that is, there exists no element c in S
such that a < c < b.
For example, consider the set P = {1, 2, 3, 4,…} with the
order <. Then we can see that 1 << 2, 2 << 3, and so on.
Z.
F
Suppose S is a finite partially ordered set. Then the order
on S is completely known once we know all pairs a, b
in S such that a << b. This follows from the fact that x
< y if and only if x << y or there exists elements
F
a minimal element of S if no element of S strictly
precedes(is less than) a; that is, if
x ≤ a implies x = a
For example, let A = {1, 2, 3, 4, 6, 8, 9, 12, 18, 24} be
ordered by divisibility. Then we can see that A has only
one minimal element, 1.
Z.
Let S be a partially ordered set. An element b ϵ S is called
F
a maximal element of S if no element of S strictly
succeeds(is greater than) b; that is, if
x ≥ b implies x = b
For example, let A = {1, 2, 3, 4, 6, 8, 9, 12, 18, 24} be a
set ordered by divisibility. Then we can see that A has
two maximal elements, 18 and 24.
Z.
F
Geometrically speaking, a is a minimal element of S if no
edge enters a(from below), and b is a maximal element
of S if no edge leaves b (in an upward direction).
Note:S can have more than one minimal and more than
one maximal element. Hasse diagram of divisibility
relation on set A = {1, 2, 3, 4, 6, 8, 9, 12, 18, 24} is
given below:
Z.
F
If S is infinite, then S may have no minimal and maximal
element. For instance, the set Z of integers with the
usual order ≤ has no minimal and maximal element. On
the other hand, if S is finite, then S has atleast one
minimal and one maximal element.
Z.
An element a ϵ S is called a first element of S if a ≤ x for
F
every x ϵ S, that is, if a precedes every other element in
S.
Similarly, an element b ϵ S is called a last element of S if
y ≤ b for every y ϵ S, that is, b succeeds every other
element in S.
For example, let A = {1, 2, 3, 4, 6, 8, 9, 12, 18, 24} be a
set ordered by divisibility. 1 is minimal element of A
which is also the first element of A. Set A has two
maximal element and neither is a last element.
Z.
F
Note: We note that S can have at most one first element
which must be a minimal element of S, and S can have
at most one last element which must be a maximal
element of S. Generally speaking, S may have neither a
first nor a last element, even when S is finite.
Z.
F
a) Consider the set P = {1, 2, 3,…} with the usual order
≤.
F
diagram below and let A = {4, 5, 7}.
Z.
F
Consider the set Q of rational numbers, and its subset
F
Z.
Z.
F
Suppose X and Y are partially ordered sets. A one-to-
one(injective) function f :X → Y is called a similar
mapping from X into Y if f preserves the order relation,
that is, if the following conditions holds for any pair a,
b ϵ X:
a ≤ b in X if and only if f(a) ≤ f(b) in Y
The above condition is equivalent to the following two
conditions:
Z.
F
Two ordered sets X and Y are said to be order-isomorphic
or isomorphic or similar, written
F
isomorphic to the set of even positive integers E = {2,
4, 6, …} since the function f : P → E defined by f(x) =
2x is an isomorphism between P and E.
Z.
Consider the usual ordering ≤ of the positive integers P =
F
{1, 2, 3,…} and the negative integers A = {-1, -2, -3,
…}. Then P is not order-isomorphic to A.
Proof.
F
Z.
Z.
F
Let A be an ordered set. Then A is said to be well-ordered
if every subset of A contains a first element.
Note: Any well-ordered set A is linearly ordered.
Proof.
Z.
F
Let A be a well-ordered set. Then:
(i) Every subset of A is well-ordered.
(ii) If B is similar to A, then B is well-ordered.
Z.
F
Consider the following two subsets of well-ordered set P:
Z.
F
Let A be a well-ordered set. The initial segment s(a) of an
element a ϵ A consists of all elements in A which
strictly precedes a. In other words,
F
well-ordered sets such that λ = ord(A) and μ = ord(B).
Then
λ<μ
if A is similar to an initial segment of B. Accordingly,
F
Z.
F
Z.
Z.
F
Let C be a non-empty set of non-empty sets. A function
f : C → ∪C is called a choice function for C if f(A) ϵ A
for all A ϵ C.
Z.
F
Let C be the set of countries on earth, thinking of each
country as a collection of cities. Then ∪C is the set of
all cities on earth, and the function f that assigns to each
country its capital city is an example of a choice
function for C.
For example,
let A ϵ C denotes Pakistan, then f (A) = Islamabad ϵ A.
Z.
F
Let C be the collection of all pairs of shoes in the world.
Then the function that picks the left shoe out of each
pair is a choice function for C.
Example 3
Let C = P(N)\ {ø}. The function f(A) = min(A) is a choice
function on A.
Z.
F
Notice that in these examples, and in most other
examples the reader might think of, the choice function
f is defined by some rule: “choose the left shoe”,
“choose the least element”, “choose the capital city”,
and so on. In all of these we simply define the choice
function.
What the axiom of choice does is guarantee that there
always exist choice functions, even in the absence of
such a rule for defining one easily.
Z.
F
Let C be a non-empty set of non-empty sets. There exists
a choice function for C.
F
Z.
Z.
F
A proposition is a declarative sentence which is true or false,
but not both. Consider, for example, the following eight
sentenes:
(i) Paris is in France.
(ii) 1+1=2
(iii) 2+2=3
(iv) Islamabad is in Sri lanka.
(v) 9 < 6
(vi) x = 2 is a solution of x 4.
2
Therefore
Solution.
F
Z.
F
Z.
F
Z.
F
Z.
Z.
F
Find the argument form for the following argument and
determine whether it is valid. Can we conclude that the
conclusion is true if the premises are true?
F
set A. Consider the expression
Which reads
F
b) The proposition ∃𝑛 ∈ 𝑃 𝑛 + 6 < 4 is false since
Z.
What is the truth value of ∃𝑥𝑝(𝑥), where 𝑝(𝑥) is the
F
statement “𝑥 2 > 10” and the domain consists of the
positive integers not exceeding 4?
Z.
Determine the truth value of each of these
F
statements if the domain of each variable consists of
all real numbers.
2
a) ∃𝑥(𝑥 = 2)
b) ∃𝑥(𝑥 2 = −1)
c) ∀𝑥(𝑥 2 + 2 ≥ 1)
d) ∀𝑥(𝑥 2 ≠ 𝑥)
F
Z.
Z.
Consider the propositional function 𝑝(𝑥) as “𝑥 is prime” with domain
F
set 𝐴 = {2,3,5}.
Z.
Consider the propositional function 𝑝(𝑥) as “𝑥 2 > 10” with domain set 𝐴
F
= {1,2,3,4}.
F
Z.
Z.
Consider the propositional function 𝑝(𝑥) as “𝑥 has taken a course in
F
calculus” and the domain consists of the students in your class. Then
the statement:
“Every student in your class has taken a course in calculus.” This
statement is a universal quantification, namely,
F
Z.
Z.
Consider the proposition,
F
“There is a student in this class who has taken a course in calculus.”
This is the existential quantification, namely,
Z.
Consider the proposition,
F
“There is a student in this class who has taken a course in calculus.”
This is the existential quantification, namely,
Z.
What are the negations of the statements ∀𝑥(𝑥 2 > 𝑥) and ∃𝑥(𝑥 2 = 2).
F
Z.
Suppose that the domain of the propositional function 𝑝(𝑥) consists of
F
the integers 0, 1, 2, 3 and 4. Write out each of these propositions
using disjunctions, conjunctions, and negations.
a) ∃𝑥𝑝 𝑥
b) ∀𝑥𝑝 𝑥
c) ∃𝑥~𝑝 𝑥
d) ∀𝑥~𝑝 𝑥
e) ~∃𝑥𝑝 𝑥
f) ~∀𝑥𝑝(𝑥)
F
Z.
Z.
Theorem:
F
Propositions:
Proof:
Axioms
Lemma:
Z.
Corollary:
F
Conjecture:
F
Z.
Z.
Proving mathematical theorems can be difficult. To construct proofs
F
we need all available ammunition, including a powerful of different
proof methods. These methods provide the overall approach and
strategy of proofs. Understanding these methods is a key component
of learning how to read and construct mathematical proofs.
In this course, we will focus on proving the conditional statements. The
followings proofs technique will be discussed here:
1) Direct proofs
2) Indirect proofs
Z.
A direct proof of a conditional statement 𝑝 → 𝑞 is
F
constructed when the first step is the assumption
that 𝑝 is true; subsequent steps are constructed
using axioms, definitions, and previously proved
theorems, together with rules of inference, to show
that 𝑞 must also be true. Before we give the first
example, we need to define some terminology.
Z.
The integer 𝑛 is even if there exists an integer 𝑘 such
F
that 𝑛 = 2𝑘, and 𝑛 is odd if there exists an integer 𝑘
such that 𝑛 = 2𝑘 + 1.
Z.
Give a direct proof of the theorem “If 𝑛 is an odd integer, then
F
𝑛2 is odd.”
Solution:
Z.
Give a direct proof that if 𝑚 and 𝑛 are both perfect squares,
F
then 𝑛𝑚 is also a perfect square.
Solution:
Z.
Prove that if 𝑛 is any even integer, then (−1)𝑛 = 1.
F
Solution:
Z.
Use a direct proof to show that the product of two rational
F
numbers is rational.
Solution.
Z.
1) Prove that the product of an even integer and an odd
F
integer is even.
2) Prove that the square of an even integer is even.