Mathis SS
Mathis SS
Department of Mathematics
Addis Ababa University
Definition
A declarative sentence that is either true or false, but not both, is called a
proposition or statement. The word true or false that is assigned to a given
proposition is called the truth value of the proposition.
(a) If a given proposition is true, then we say that the truth value of the
proposition is True and it is denoted by T, and
(b) if a given proposition is false, we say that the truth value of the propo-
sition is False and it is denoted by F.
(AAU) Math 1012 (Chapter 1) April 24, 2021 3 / 119
Propositional Logic...
A proposition is a sentence that has truth value, but this does not mean
that we must always know what the truth value is.
A proposition is a sentence that has truth value, but this does not mean
that we must always know what the truth value is.
Example
Consider the following sentences.
(a) Addis Ababa university graduated 400,000 students it is 25 years an-
niversary.
(b) There were 20,000 women registered to run on the Ethiopian great run
in 2010 E.C.
(c) Athlet Haile Gebresilase was eating pasta for his dinner on Sene 30,
2012 E.C..
All of the above three sentences are propositions, but, in the absence of
records, the truth value of each of them may not be known.
Remark
(a) We use small letters to represent propositions and the most common
letters used to represent propositions are p, q, r , s, etc.
Remark
(b) Because we need to know the truth value of a proposition in all possible
scenarios, we consider all the possible combinations of the simple propo-
sitions that are combined together by Logical Connectives to form the
given proposition. The compilation of all possible scenarios in a tabular
form is called a truth table for the given proposition.
(c) To make a truth table, we start with columns corresponding to the
most basic statements (usually represented by letters) and assign T
for true and F for false for each simple proposition and determine the
truth values of the other propositions involved based on the rules for
the involved connectives.
(d) If there are k of these basic statements, then we will need 2k rows to
list all possible combinations of truth values.
(AAU) Math 1012 (Chapter 1) April 24, 2021 8 / 119
Propositional Connectives: Negation (¬)
Example
(1) The negation of ” 2 is a prime number”, which has truth value true, is
Example
(1) The negation of ” 2 is a prime number”, which has truth value true, is
”2 is not a prime number” and it has truth value false.
Example
(1) The negation of ” 2 is a prime number”, which has truth value true, is
”2 is not a prime number” and it has truth value false.
(2) Let p: Addis Ababa is the capital city of Ethiopia. Then ¬p
Example
(1) The negation of ” 2 is a prime number”, which has truth value true, is
”2 is not a prime number” and it has truth value false.
(2) Let p: Addis Ababa is the capital city of Ethiopia. Then ¬p : Addis
Ababa is not the capital city of Ethiopia.
(3) Let p:The book is interesting.Then ¬p
Example
(1) The negation of ” 2 is a prime number”, which has truth value true, is
”2 is not a prime number” and it has truth value false.
(2) Let p: Addis Ababa is the capital city of Ethiopia. Then ¬p : Addis
Ababa is not the capital city of Ethiopia.
(3) Let p:The book is interesting.Then ¬p : The book is not interesting.
Example
The conjunction of p : ”Today is Monday” and q : ”It is raining today” is
p ∧ q: ”Today is Monday and it is raining.” This sentence is true only on
rainy Mondays and is false on any other rainy day or on Mondays when it
does not rain.
Example
The conjunction of p : ”Today is Monday” and q : ”It is raining today” is
p ∧ q: ”Today is Monday and it is raining.” This sentence is true only on
rainy Mondays and is false on any other rainy day or on Mondays when it
does not rain.
Example
Let p : This book is interesting and q : I am staying at home. Then express
each of the following in sentences words: p ∧ q, (¬p) ∧ q and p ∧ (¬q).
Example
The conjunction of p : ”Today is Monday” and q : ”It is raining today” is
p ∧ q: ”Today is Monday and it is raining.” This sentence is true only on
rainy Mondays and is false on any other rainy day or on Mondays when it
does not rain.
Example
Let p : This book is interesting and q : I am staying at home. Then express
each of the following in sentences words: p ∧ q, (¬p) ∧ q and p ∧ (¬q).
(a) p ∧ q :
Example
The conjunction of p : ”Today is Monday” and q : ”It is raining today” is
p ∧ q: ”Today is Monday and it is raining.” This sentence is true only on
rainy Mondays and is false on any other rainy day or on Mondays when it
does not rain.
Example
Let p : This book is interesting and q : I am staying at home. Then express
each of the following in sentences words: p ∧ q, (¬p) ∧ q and p ∧ (¬q).
(a) p ∧ q : This book is interesting and I am staying at home.
Example
The conjunction of p : ”Today is Monday” and q : ”It is raining today” is
p ∧ q: ”Today is Monday and it is raining.” This sentence is true only on
rainy Mondays and is false on any other rainy day or on Mondays when it
does not rain.
Example
Let p : This book is interesting and q : I am staying at home. Then express
each of the following in sentences words: p ∧ q, (¬p) ∧ q and p ∧ (¬q).
(a) p ∧ q : This book is interesting and I am staying at home.
(b) (¬p) ∧ q :
Example
The conjunction of p : ”Today is Monday” and q : ”It is raining today” is
p ∧ q: ”Today is Monday and it is raining.” This sentence is true only on
rainy Mondays and is false on any other rainy day or on Mondays when it
does not rain.
Example
Let p : This book is interesting and q : I am staying at home. Then express
each of the following in sentences words: p ∧ q, (¬p) ∧ q and p ∧ (¬q).
(a) p ∧ q : This book is interesting and I am staying at home.
(b) (¬p) ∧ q :This book is not interesting and I am staying at home.
Example
The conjunction of p : ”Today is Monday” and q : ”It is raining today” is
p ∧ q: ”Today is Monday and it is raining.” This sentence is true only on
rainy Mondays and is false on any other rainy day or on Mondays when it
does not rain.
Example
Let p : This book is interesting and q : I am staying at home. Then express
each of the following in sentences words: p ∧ q, (¬p) ∧ q and p ∧ (¬q).
(a) p ∧ q : This book is interesting and I am staying at home.
(b) (¬p) ∧ q :This book is not interesting and I am staying at home.
(c) p ∧ (¬q) :
Example
The conjunction of p : ”Today is Monday” and q : ”It is raining today” is
p ∧ q: ”Today is Monday and it is raining.” This sentence is true only on
rainy Mondays and is false on any other rainy day or on Mondays when it
does not rain.
Example
Let p : This book is interesting and q : I am staying at home. Then express
each of the following in sentences words: p ∧ q, (¬p) ∧ q and p ∧ (¬q).
(a) p ∧ q : This book is interesting and I am staying at home.
(b) (¬p) ∧ q :This book is not interesting and I am staying at home.
(c) p ∧ (¬q) : This book is interesting and I am not staying at home.
Example
Consider the sentence: Today is hot, but it is not sunny. Since it is a surprise
that the day is hot without being sunny, we used ”but” instead of ”and”.
Example
Let p : Today is hot and q : Today is sunny. Write each of the following
sentences using symbols.
(a) Today is not hot, but it is sunny.
(b) Today is neither hot nor sunny.
First we have: ¬p: Today is not hot and ¬q: Today is not sunny. Then
(1) ¬p ∧ q: Today is not hot but it is sunny.
(2) ¬p ∧ ¬q: Today is neither hot nor sunny.
Example
Consider the propositions p : 2 is a prime number and q : 2 is an even
number. Find the true value of the each of the propositions: p ∧q, (¬p)∧q,
p ∧ (¬q) and (¬p) ∧ (¬q).
(a) p ∧ q:
Example
Consider the propositions p : 2 is a prime number and q : 2 is an even
number. Find the true value of the each of the propositions: p ∧q, (¬p)∧q,
p ∧ (¬q) and (¬p) ∧ (¬q).
(a) p ∧ q: Both p and q are true and hence p ∧ q is true.
Example
Consider the propositions p : 2 is a prime number and q : 2 is an even
number. Find the true value of the each of the propositions: p ∧q, (¬p)∧q,
p ∧ (¬q) and (¬p) ∧ (¬q).
(a) p ∧ q: Both p and q are true and hence p ∧ q is true.
(b) (¬p) ∧ q:
Example
Consider the propositions p : 2 is a prime number and q : 2 is an even
number. Find the true value of the each of the propositions: p ∧q, (¬p)∧q,
p ∧ (¬q) and (¬p) ∧ (¬q).
(a) p ∧ q: Both p and q are true and hence p ∧ q is true.
(b) (¬p) ∧ q: ¬p: 2 is not a prime number and its truth value is false.
Therefore, (¬p) ∧ q is false, by the rule of Conjunction, as ¬p is false
and q is true.
Example
Consider the propositions p : 2 is a prime number and q : 2 is an even
number. Find the true value of the each of the propositions: p ∧q, (¬p)∧q,
p ∧ (¬q) and (¬p) ∧ (¬q).
(a) p ∧ q: Both p and q are true and hence p ∧ q is true.
(b) (¬p) ∧ q: ¬p: 2 is not a prime number and its truth value is false.
Therefore, (¬p) ∧ q is false, by the rule of Conjunction, as ¬p is false
and q is true.
(c) p ∧ (¬q) :
Example
Consider the propositions p : 2 is a prime number and q : 2 is an even
number. Find the true value of the each of the propositions: p ∧q, (¬p)∧q,
p ∧ (¬q) and (¬p) ∧ (¬q).
(a) p ∧ q: Both p and q are true and hence p ∧ q is true.
(b) (¬p) ∧ q: ¬p: 2 is not a prime number and its truth value is false.
Therefore, (¬p) ∧ q is false, by the rule of Conjunction, as ¬p is false
and q is true.
(c) p ∧ (¬q) : ¬q: 2 is not an even number and its truth value is false.
Thus, p ∧ (¬q) is a false proposition, by the rule of conjunction.
Example
Consider the propositions p : 2 is a prime number and q : 2 is an even
number. Find the true value of the each of the propositions: p ∧q, (¬p)∧q,
p ∧ (¬q) and (¬p) ∧ (¬q).
(a) p ∧ q: Both p and q are true and hence p ∧ q is true.
(b) (¬p) ∧ q: ¬p: 2 is not a prime number and its truth value is false.
Therefore, (¬p) ∧ q is false, by the rule of Conjunction, as ¬p is false
and q is true.
(c) p ∧ (¬q) : ¬q: 2 is not an even number and its truth value is false.
Thus, p ∧ (¬q) is a false proposition, by the rule of conjunction.
(d) (¬p)∧(¬q)
Example
Consider the propositions p : 2 is a prime number and q : 2 is an even
number. Find the true value of the each of the propositions: p ∧q, (¬p)∧q,
p ∧ (¬q) and (¬p) ∧ (¬q).
(a) p ∧ q: Both p and q are true and hence p ∧ q is true.
(b) (¬p) ∧ q: ¬p: 2 is not a prime number and its truth value is false.
Therefore, (¬p) ∧ q is false, by the rule of Conjunction, as ¬p is false
and q is true.
(c) p ∧ (¬q) : ¬q: 2 is not an even number and its truth value is false.
Thus, p ∧ (¬q) is a false proposition, by the rule of conjunction.
(d) (¬p)∧(¬q) Since both ¬p and ¬q are false, the proposition (¬p)∧(¬q)
has truth value false, again by the rule of conjunction.
Example
The disjunction of the two sentences: p: Today is Monday” and q: ”It is
raining today” is p ∨ q: ”Today is Monday or it is raining today”. This
sentence is true on any day that is a Monday or a rainy day(including rainy
Monday) and is false on any day other than Monday and it also does not
rain.
Example
The disjunction of the two sentences: p: Today is Monday” and q: ”It is
raining today” is p ∨ q: ”Today is Monday or it is raining today”. This
sentence is true on any day that is a Monday or a rainy day(including rainy
Monday) and is false on any day other than Monday and it also does not
rain.
Example
Let p: 0 is a rational number and q: 3 is an even number. Find the truth
value of each of the propositions: p ∨ q, (¬p) ∨ q, p ∨ (¬q) and (¬p) ∨ (¬q).
The truth value for p is true, since 0 is a rational and q is false, since 3 is
not an even number. So,¬p is false and ¬q is true. then
Example (cont...)
(a) p ∨ q:
Example (cont...)
(a) p ∨ q:”0 is a rational number or 3 is a even number” is true, by the
rule of disjunction;
Example (cont...)
(a) p ∨ q:”0 is a rational number or 3 is a even number” is true, by the
rule of disjunction;
(b) (¬p) ∨ q:
Example (cont...)
(a) p ∨ q:”0 is a rational number or 3 is a even number” is true, by the
rule of disjunction;
(b) (¬p) ∨ q:”0 is not a rational number or 3 is an even number” is false,
by the rule of disjunction;
Example (cont...)
(a) p ∨ q:”0 is a rational number or 3 is a even number” is true, by the
rule of disjunction;
(b) (¬p) ∨ q:”0 is not a rational number or 3 is an even number” is false,
by the rule of disjunction;
(c) p ∨ (¬q):
Example (cont...)
(a) p ∨ q:”0 is a rational number or 3 is a even number” is true, by the
rule of disjunction;
(b) (¬p) ∨ q:”0 is not a rational number or 3 is an even number” is false,
by the rule of disjunction;
(c) p ∨ (¬q):”0 is a rational number or 3 is not an even number” is true,
by the rule of disjunction and
Example (cont...)
(a) p ∨ q:”0 is a rational number or 3 is a even number” is true, by the
rule of disjunction;
(b) (¬p) ∨ q:”0 is not a rational number or 3 is an even number” is false,
by the rule of disjunction;
(c) p ∨ (¬q):”0 is a rational number or 3 is not an even number” is true,
by the rule of disjunction and
(d) (¬p) ∨ (¬q):
Example (cont...)
(a) p ∨ q:”0 is a rational number or 3 is a even number” is true, by the
rule of disjunction;
(b) (¬p) ∨ q:”0 is not a rational number or 3 is an even number” is false,
by the rule of disjunction;
(c) p ∨ (¬q):”0 is a rational number or 3 is not an even number” is true,
by the rule of disjunction and
(d) (¬p) ∨ (¬q):”0 is not a rational number or 3 is not an even number”
is also true, by the rule of disjunction.
The use of ”or ” in propositional logic, is rather different from its normal
use in the English language. Let us consider the following example.
Example
If Tadesse says ”in this evening, I will go to a club or to a cinema”, he meant
that, he will go to a club or to a cinema, but not both. In this sentence
”or” is used in the exclusive sense.
But, in propositional logic, ”or” is used in the inclusive sense; that is, we
allow Tadesse the possibility of going to a club and going to a cinema,
without him being inconsistent.
Example
Let p: Today is Tuesday and q: Today is sunny. Then the proposition
p ⇒ q can be give as: ”If today is Tuesday, then it is sunny” and it is
(a) true if the day is not Tuesday or if the day is Tuesday and it is sunny,
and
(b) it is false only when the day is Tuesday, but it is not sunny.
Example
Let p: Today is Tuesday and q: Today is sunny. Then the proposition
p ⇒ q can be give as: ”If today is Tuesday, then it is sunny” and it is
(a) true if the day is not Tuesday or if the day is Tuesday and it is sunny,
and
(b) it is false only when the day is Tuesday, but it is not sunny.
Example
Find the truth value of each of the following implications.
(a) If it rains today, then 2 is a prime number.
(b) If 2 + 2 = 5, then all cars are blue.
(c) If 4 × 4 = 16, then (−1) × (−1) = 1.
Remark
One way to think of the meaning of p ⇒ q is to consider it as a contract that
says if the first condition is satisfied, then the second will also be satisfied.
If the first condition, p, is not satisfied, then the condition of the contract
is null and void. In this case, it does not matter if the second condition is
satisfied or not, the contract is still upheld.
Remark
One way to think of the meaning of p ⇒ q is to consider it as a contract that
says if the first condition is satisfied, then the second will also be satisfied.
If the first condition, p, is not satisfied, then the condition of the contract
is null and void. In this case, it does not matter if the second condition is
satisfied or not, the contract is still upheld.
Example
Write the logical implication of each of the following pair of statements and
find their truth values.
(a) Let p: 3 is greater than 2 and q: 4 is greater than 3. Then the
proposition p =⇒ q is read as
Remark
One way to think of the meaning of p ⇒ q is to consider it as a contract that
says if the first condition is satisfied, then the second will also be satisfied.
If the first condition, p, is not satisfied, then the condition of the contract
is null and void. In this case, it does not matter if the second condition is
satisfied or not, the contract is still upheld.
Example
Write the logical implication of each of the following pair of statements and
find their truth values.
(a) Let p: 3 is greater than 2 and q: 4 is greater than 3. Then the
proposition p =⇒ q is read as ”If 3 is greater than 2, then 4 is greater
than 3”. Since p is true and q is true, p =⇒ q is true.
Definition
Let p and q be two propositions. In the proposition p =⇒ q:
(a) p is called the premise, hypothesis, or the antecedent.
(b) q is called the conclusion or consequent.
(c) q =⇒ p is the called converse of p =⇒ q.
(d) ¬p =⇒ ¬q is called the inverse of p =⇒ q.
(e) ¬q =⇒ ¬p is called the contrapositive of p =⇒ q.
Example
Let p: ”It is raining” and q: ”It is cloudy”. Express each of the following
sentences in words.
(a) p =⇒ q (c) ¬p =⇒ ¬q
(b) q =⇒ p (d) ¬q =⇒ ¬p.
(AAU) Math 1012 (Chapter 1) April 24, 2021 25 / 119
Propositional Connectives: Bi-implication (⇔)...
If p and q are statements, then the logical bi-implication or bicondi-
tional proposition of p and q, denoted by p ⇐⇒ q, is a proposition
read as ”p if and only if q”
Rule of Bi-implication: Let p and q be propositions. Then the propo-
sition p ⇐⇒ q is true only when both p and q are true, or both p and
q are false and false otherwise.
The truth table for a bi-implication proposition is given in Table 5.
p q p ⇐⇒ q
T T T
T F F
F T F
F F T
Table: Truth table for bi-implication.
Example
Find the logical bi-implication and the truth value of each of the following
pairs of propositions.
(a) Let p: All even numbers are divisible by 2 and q: All natural numbers
divisible by 3 are odd.
Example
Find the logical bi-implication and the truth value of each of the following
pairs of propositions.
(a) Let p: All even numbers are divisible by 2 and q: All natural numbers
divisible by 3 are odd.
The logical bi-implication p ⇐⇒ q is ”All even numbers are divisible
by 2 if and only if all natural numbers divisible by 3 are odd.” Since p
is true and q is false, the proposition p ⇐⇒ q is false by the rule of
bi-implication.
Example
Find the logical bi-implication and the truth value of each of the following
pairs of propositions.
(a) Let p: All even numbers are divisible by 2 and q: All natural numbers
divisible by 3 are odd.
The logical bi-implication p ⇐⇒ q is ”All even numbers are divisible
by 2 if and only if all natural numbers divisible by 3 are odd.” Since p
is true and q is false, the proposition p ⇐⇒ q is false by the rule of
bi-implication.
(b) p: Every rhombus is a square and q: All numbers are odd.
Example
Find the logical bi-implication and the truth value of each of the following
pairs of propositions.
(a) Let p: All even numbers are divisible by 2 and q: All natural numbers
divisible by 3 are odd.
The logical bi-implication p ⇐⇒ q is ”All even numbers are divisible
by 2 if and only if all natural numbers divisible by 3 are odd.” Since p
is true and q is false, the proposition p ⇐⇒ q is false by the rule of
bi-implication.
(b) p: Every rhombus is a square and q: All numbers are odd.
The logical bi-implication p ⇐⇒ q is ”Every rhombus is a square if and
only if all numbers are odd”. Since both p and q are false, p ⇐⇒ q is
true by the rule of bi-implication.
In this section we will learn how to form new propositions by using more
than one propositional connectives and how to determine the truth val-
ues of such propositions.For example, if p, q, r and s are propositions,
then we form new propositions like p ∧ q, r ∨ s, p =⇒ q, r ⇐⇒ p, etc.
Definition
A proposition consisting of two or more propositions joined by propositional
connectives is called a compound proposition.
Individual propositions that are used to form a compound propositions are
called components of the compound proposition.
Example
If p, q and r are propositions with truth values true, false and true respec-
tively, then (p ∨ q) =⇒ r is a compound proposition with truth value true.
This is because,
(a) p ∨ q is true, by the rule of disjunction, since p is true and q is false
and
(b) (p ∨ q) =⇒ r is true, by the rule of implication, since p ∨ q is true (by
(a) above) and r is true.
Example
a) construct the truth table for the proposition ¬(p ∧ q)
b) construct the truth table for the proposition ¬p ∨ ¬q
c) compare the truth values of the compound propositions
(AAU) Math 1012 (Chapter 1) April 24, 2021 30 / 119
Compound (or complex) propositions
Remark
When dealing with compound propositions and determining the truth val-
ues of these propositions, we shall adopt the following conventions on the
use of parenthesis and we first determine truth values of propositions in a
parenthesis.
(a) If ”¬” occurs with other connectives, then ”¬” is applied first. For
example,
(i) ¬p ∧ q means (¬p) ∧ q.
(ii) p ∨ ¬q means p ∨ (¬q).
(iii) ¬q =⇒ ¬p means (¬q) =⇒ (¬p).
(iv) ¬p ⇐⇒ ¬q means (¬p) ⇐⇒ (¬q).
Remark (cont . . . )
(b) If the connectives ”¬”, or ”∨” or ”∧” occur with ”=⇒” or ”⇐⇒”,
then ”¬” or ∨” or ”∧” is applied first, and then ”=⇒” or “⇐⇒” is
applied. For example,
(i) p ∧ q =⇒ r means (p ∧ q) =⇒ r .
(ii) p ∨ q ⇐⇒ r means (p ∨ q) ⇐⇒ r .
(iii) ¬q =⇒ ¬p means (¬q) =⇒ (¬p).
(iv) ¬p ⇐⇒ r means (¬p) ⇐⇒ r .
(c) If the connectives ”=⇒” and ”⇐⇒” occur together, then ”=⇒” ap-
plied first and then ”⇐⇒” is applied.
For example, p ⇐⇒ q =⇒ r means p ⇐⇒ (q =⇒ r ).
Example
Given the propositions p : ”The earth is round” ; q : ”Mali is in Africa” and
r : ”Man is mortal”, express the following compound propositions in words.
(a) p =⇒ (q ∨ r ):
Example
Given the propositions p : ”The earth is round” ; q : ”Mali is in Africa” and
r : ”Man is mortal”, express the following compound propositions in words.
(a) p =⇒ (q ∨ r ):
If the earth is round, then either Mali is in Africa or man is mortal.
Example
Given the propositions p : ”The earth is round” ; q : ”Mali is in Africa” and
r : ”Man is mortal”, express the following compound propositions in words.
(a) p =⇒ (q ∨ r ):
If the earth is round, then either Mali is in Africa or man is mortal.
(b) (p ∧ ¬r ) =⇒ ¬q:
Example
Given the propositions p : ”The earth is round” ; q : ”Mali is in Africa” and
r : ”Man is mortal”, express the following compound propositions in words.
(a) p =⇒ (q ∨ r ):
If the earth is round, then either Mali is in Africa or man is mortal.
(b) (p ∧ ¬r ) =⇒ ¬q:
If the earth is round or man is not normal, then Mali is not in Africa.
Example
Given the propositions p : ”The earth is round” ; q : ”Mali is in Africa” and
r : ”Man is mortal”, express the following compound propositions in words.
(a) p =⇒ (q ∨ r ):
If the earth is round, then either Mali is in Africa or man is mortal.
(b) (p ∧ ¬r ) =⇒ ¬q:
If the earth is round or man is not normal, then Mali is not in Africa.
(c) (p ∧ q) ⇐⇒ r :
Example
Given the propositions p : ”The earth is round” ; q : ”Mali is in Africa” and
r : ”Man is mortal”, express the following compound propositions in words.
(a) p =⇒ (q ∨ r ):
If the earth is round, then either Mali is in Africa or man is mortal.
(b) (p ∧ ¬r ) =⇒ ¬q:
If the earth is round or man is not normal, then Mali is not in Africa.
(c) (p ∧ q) ⇐⇒ r :
The earth is round and Mali is in Africa if and only if man is mortal.
Exercise
Let p, q and r be propositions with truth values False, False and
True respectively. Determine the truth value of each of the follow-
ing compound propositions.
(a) ¬(¬p) ⇐⇒ q
(b) p ∨ (q ∧ r )
(c) p =⇒ (q ∨ r )
(d) (p ∧ ¬r ) ⇐⇒ q
(e) (p ∨ q) ∧ (p ∨ r )
(f) (p ∧ q) =⇒ ¬(q ∨ r )
Definition
Two compound propositions P and Q are said to be equivalent if they
have the same truth value for all possible combinations of truth values for
the component propositions occurring in both propositions, P and Q.
Example
From the fourth and fifth columns in Table6, we can see that P and Q have
the same truth value for all possible combinations of truth values of p and
q. Thus, the propositions P and Q are equivalent.
p q ¬p ¬q p =⇒ q q =⇒ p ¬p =⇒ ¬q ¬q =⇒ ¬p
T T F F T T T T
T F F T F T T F
F T T F T F F T
F F T T T T T T
Table: Truth table for conditional propositions.
As we can see it from the fifth and the eighth columns of Table 8, the proposition
p =⇒ q and its contrapositive ¬q =⇒ ¬p are equivalent. On the other hand, from
the fifth and the sixth columns of the same table, we can see that p =⇒ q and its
converse, q =⇒ p, are not equivalent. Also, from the fifth and seventh columns of
Table 8, we can see that p =⇒ q and its inverse, ¬p =⇒ ¬q, are not equivalent.
Since the sixth and the seventh columns of Table 9 are identical, the
propositions ¬(p ∧ q) and ¬p ∨ ¬q are equivalent. That is,
¬(p ∧ q) ≡ ¬p ∨ ¬q.
(AAU) Math 1012 (Chapter 1) April 24, 2021 44 / 119
Identities . . .
Example
show that ¬(p ⇒ q) and p ∧ ¬q are logically equivalent.
Example
show that ¬(p ⇒ q) and p ∧ ¬q are logically equivalent.
¬(p ⇒ q) ≡ ¬(¬p ∨ q)
Example
show that ¬(p ⇒ q) and p ∧ ¬q are logically equivalent.
¬(p ⇒ q) ≡ ¬(¬p ∨ q)
≡ ¬(¬p) ∧ ¬q
Example
show that ¬(p ⇒ q) and p ∧ ¬q are logically equivalent.
¬(p ⇒ q) ≡ ¬(¬p ∨ q)
≡ ¬(¬p) ∧ ¬q
≡ p ∧ ¬q
Exercise
Let p, q and r be propositions. Then prove each of the following
equivalences.
(a) p =⇒ (q ∨ r ) ≡ (¬q ∧ ¬r ) =⇒ ¬p.
(b) ¬(p ⇐⇒ q) ≡ (p ∧ ¬q) ∨ (q ∧ ¬p).
(c) p ⇐⇒ q ≡ [(p =⇒ q) ∧ (q =⇒ p)].
(d) p ⇐⇒ q ≡ (¬p) ⇐⇒ (¬q).
(AAU) Math 1012 (Chapter 1) April 24, 2021 46 / 119
Tautology and Contradiction
Definition
A compound proposition that is
(a) always true, no matter what the truth values of the component propo-
sitions that occur in it, is called a tautology;
(b) always false, no matter what the truth values of the component propo-
sitions that occur in it, is called a contradiction;
(c) neither a tautology nor a contradiction is called a contingency.
Definition
A compound proposition that is
(a) always true, no matter what the truth values of the component propo-
sitions that occur in it, is called a tautology;
(b) always false, no matter what the truth values of the component propo-
sitions that occur in it, is called a contradiction;
(c) neither a tautology nor a contradiction is called a contingency.
Example
Let p be a proposition. Show that
(a) P : p ∨ ¬p is a tautology and
(b) Q : p ∧ ¬p is a contradiction.
(c) R : (p ∨ q) ⇒ q is a contingency
(AAU) Math 1012 (Chapter 1) April 24, 2021 47 / 119
Tautology and Contradiction contd. . .
Example
Let p be a proposition. Show that
(a) P : p ∨ ¬p is a tautology
Example
Let p be a proposition. Consider the compound proposition p ⇐⇒ p.
(a) If p is true, then p ⇐⇒ p is true by the rule of bi-implication.
(b) If p is false, then p ⇐⇒ p is true again by the rule of bi-implication.
This implies, for any truth value of p, the compound proposition p ⇐⇒ p
is always true and hence it is a tautology.
(AAU) Math 1012 (Chapter 1) April 24, 2021 49 / 119
Tautologies and contradictions
Tautologies and contradictions are important and often used in
mathematical reasoning. One can use truth tables to determine if a given
compound proposition is a tautology, a contradiction or a contingency.
Example
p q ¬p p =⇒ q ¬p ∨ q (p =⇒ q) ⇐⇒ (¬p ∨ q)
T T F T T T
T F F F F T
F T T T T T
F F T T T T
Table: Truth Table for (p =⇒ q) ⇐⇒ (¬p ∨ q)
Hence the propositions p =⇒ q and ¬p ∨ q are equivalent propositions.
(AAU) Math 1012 (Chapter 1) April 24, 2021 51 / 119
Remark
In any tautology, if we substitute a proposition by another proposition
throughout its occurrence, the result is still a tautology
Example
If p is a proposition, then the proposition p ∨ p ⇐⇒ p is a tautology.
If q and r are propositions and we substitute r =⇒ q for p, the compound
proposition [(r =⇒ q) ∨ (r =⇒ q)] ⇐⇒ (r =⇒ q) is still a tautology.
Example
If p is a proposition, then the proposition p ∨ p ⇐⇒ p is a tautology.
If q and r are propositions and we substitute r =⇒ q for p, the compound
proposition [(r =⇒ q) ∨ (r =⇒ q)] ⇐⇒ (r =⇒ q) is still a tautology.
Example
If p, q and r are propositions, then [p∨(q∨r )] ⇔ [(p∨q)∨r ] is a tautology.If
we substitute p for q, then the proposition [p ∨ (p ∨ r )] ⇔ [(p ∨ p) ∨ r ] is
still a tautology.
Example
If p is a proposition, then the proposition p ∨ p ⇐⇒ p is a tautology.
If q and r are propositions and we substitute r =⇒ q for p, the compound
proposition [(r =⇒ q) ∨ (r =⇒ q)] ⇐⇒ (r =⇒ q) is still a tautology.
Example
If p, q and r are propositions, then [p∨(q∨r )] ⇔ [(p∨q)∨r ] is a tautology.If
we substitute p for q, then the proposition [p ∨ (p ∨ r )] ⇔ [(p ∨ p) ∨ r ] is
still a tautology.
Remark
Since a tautology is always true, the negation of a tautology is always false, and
hence a contradiction. Conversely, the negation of a contradiction is a tautology.
(AAU) Math 1012 (Chapter 1) April 24, 2021 52 / 119
Exercise
Example
If P(x) : x is divisible by 2; Q(y ) : y is an integer greater than 5; and
R(z) : z is a prime number, then
(a) P(x) ∧ Q(x) :
Example
If P(x) : x is divisible by 2; Q(y ) : y is an integer greater than 5; and
R(z) : z is a prime number, then
(a) P(x) ∧ Q(x) : x is divisible by 2 and x is an integer greater than 5.
(b) Q(x) ⇒ R(x) :
Example
If P(x) : x is divisible by 2; Q(y ) : y is an integer greater than 5; and
R(z) : z is a prime number, then
(a) P(x) ∧ Q(x) : x is divisible by 2 and x is an integer greater than 5.
(b) Q(x) ⇒ R(x) : If x is an integer greater than 5, then x is a prime
number.
(AAU) Math 1012 (Chapter 1) April 24, 2021 56 / 119
Compound open propositions
Example
contd
(c) (P(x) ∨ Q(x)) ⇔ R(x):
Example
contd
(c) (P(x) ∨ Q(x)) ⇔ R(x): x is divisible by 2 or x is an integer greater
than 5 if and only if x a prime number.
(d) ¬R(x):
Example
contd
(c) (P(x) ∨ Q(x)) ⇔ R(x): x is divisible by 2 or x is an integer greater
than 5 if and only if x a prime number.
(d) ¬R(x): x is not a prime number.
Example
contd
(c) (P(x) ∨ Q(x)) ⇔ R(x): x is divisible by 2 or x is an integer greater
than 5 if and only if x a prime number.
(d) ¬R(x): x is not a prime number.
Definition
Two open proposition Q(x) and R(x) are said to be equivalent if Q(a) ≡
R(a) for all possible individual a.
If the universe U is specified, then the open propositions Q(x) and R(x)
are said to be equivalent if Q(a) ≡ R(a) for all a in U.
Example
Consider the open propositions P(x) : x 2 − 1 = 0 and Q(x) : |x| ≥ 1 with
universe U = {−1, 0, 1}. Then
(a) P(−1) : (−1)2 − 1 = 0 is true and Q(−1) : | − 1| ≥ 1 is true;
(b) P(0) : (0)2 − 1 = 0 is false and Q(0) : |0| ≥ 1 is false and
(c) P(1) : (1)2 − 1 = 0 is true and Q(1) : |1| ≥ 1 is true.
Therefore, P(a) ≡ Q(a) for all a in U and hence the two open propositions
P(x) and Q(a) are equivalent on the universe U = {−1, 0, 1}.
Example
Let R(x) : x 2 + 5x + 4 = 0,
S(x) : (x + 1)(x + 4) = 0 and the universe U be the set of all real numbers.
Then
(a) for any a in U and a 6= −1, −4, both R(a) and S(a) are false and
(b) the propositions R(−1), R(−4), S(−1) and S(−4) are all true.
This implies R(a) and S(a) have the same truth value for any a in U.
Hence, R(a) ≡ S(a) for all a in U.
Definition
If P(x) is an open proposition and U is its universe, then the set of all elements t
of U such that P(t) is true is called the truth set of P(x). That is, the true set of
P(x) is {t ∈ U|P(t) is true }.
Definition
If P(x) is an open proposition and U is its universe, then the set of all elements t
of U such that P(t) is true is called the truth set of P(x). That is, the true set of
P(x) is {t ∈ U|P(t) is true }.
Example
Let U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} and P(x) : x is even. Then the truth set
of P(x) is {2, 4, 6, 8, 10}.
(AAU) Math 1012 (Chapter 1) April 24, 2021 63 / 119
Quantifiers in open propositions
Example
Consider the following open propositions with universe the set of integers,
Z: N(x) : x is a non-negative integer, E (x) : x is even, O(x) : x is odd and
P(x) : x is prime. Translate each of the following propositions into symbolic
form using the appropriate quantifiers and find their truth values.
(a) There exists an even integer.
Example
Consider the following open propositions with universe the set of integers,
Z: N(x) : x is a non-negative integer, E (x) : x is even, O(x) : x is odd and
P(x) : x is prime. Translate each of the following propositions into symbolic
form using the appropriate quantifiers and find their truth values.
(a) There exists an even integer. (∃x)E (x) with truth value true.
Example
Consider the following open propositions with universe the set of integers,
Z: N(x) : x is a non-negative integer, E (x) : x is even, O(x) : x is odd and
P(x) : x is prime. Translate each of the following propositions into symbolic
form using the appropriate quantifiers and find their truth values.
(a) There exists an even integer. (∃x)E (x) with truth value true.
(b) Every integer is either even or odd.
Example
Consider the following open propositions with universe the set of integers,
Z: N(x) : x is a non-negative integer, E (x) : x is even, O(x) : x is odd and
P(x) : x is prime. Translate each of the following propositions into symbolic
form using the appropriate quantifiers and find their truth values.
(a) There exists an even integer. (∃x)E (x) with truth value true.
(b) Every integer is either even or odd.(∀x)(E (x) ∨ O(x)) with truth value
true.
Example
Consider the following open propositions with universe the set of integers,
Z: N(x) : x is a non-negative integer, E (x) : x is even, O(x) : x is odd and
P(x) : x is prime. Translate each of the following propositions into symbolic
form using the appropriate quantifiers and find their truth values.
(a) There exists an even integer. (∃x)E (x) with truth value true.
(b) Every integer is either even or odd.(∀x)(E (x) ∨ O(x)) with truth value
true.
(c) All prime integers are non-negative.
Example
Consider the following open propositions with universe the set of integers,
Z: N(x) : x is a non-negative integer, E (x) : x is even, O(x) : x is odd and
P(x) : x is prime. Translate each of the following propositions into symbolic
form using the appropriate quantifiers and find their truth values.
(a) There exists an even integer. (∃x)E (x) with truth value true.
(b) Every integer is either even or odd.(∀x)(E (x) ∨ O(x)) with truth value
true.
(c) All prime integers are non-negative.(∀x)(P(x) =⇒ N(x)) with truth
value true.
Example
Consider the following open propositions with universe the set of integers,
Z: N(x) : x is a non-negative integer, E (x) : x is even, O(x) : x is odd and
P(x) : x is prime. Translate each of the following propositions into symbolic
form using the appropriate quantifiers and find their truth values.
(a) There exists an even integer. (∃x)E (x) with truth value true.
(b) Every integer is either even or odd.(∀x)(E (x) ∨ O(x)) with truth value
true.
(c) All prime integers are non-negative.(∀x)(P(x) =⇒ N(x)) with truth
value true.
(d) Not all integers are odd.
Example
Consider the following open propositions with universe the set of integers,
Z: N(x) : x is a non-negative integer, E (x) : x is even, O(x) : x is odd and
P(x) : x is prime. Translate each of the following propositions into symbolic
form using the appropriate quantifiers and find their truth values.
(a) There exists an even integer. (∃x)E (x) with truth value true.
(b) Every integer is either even or odd.(∀x)(E (x) ∨ O(x)) with truth value
true.
(c) All prime integers are non-negative.(∀x)(P(x) =⇒ N(x)) with truth
value true.
(d) Not all integers are odd.¬(∀x)O(x) with truth value true.
Example
Consider the following open propositions with universe the set of integers,
Z: N(x) : x is a non-negative integer, E (x) : x is even, O(x) : x is odd and
P(x) : x is prime. Translate each of the following propositions into symbolic
form using the appropriate quantifiers and find their truth values.
(a) There exists an even integer. (∃x)E (x) with truth value true.
(b) Every integer is either even or odd.(∀x)(E (x) ∨ O(x)) with truth value
true.
(c) All prime integers are non-negative.(∀x)(P(x) =⇒ N(x)) with truth
value true.
(d) Not all integers are odd.¬(∀x)O(x) with truth value true.
(e) Not all primes are odd.
Example
Consider the following open propositions with universe the set of integers,
Z: N(x) : x is a non-negative integer, E (x) : x is even, O(x) : x is odd and
P(x) : x is prime. Translate each of the following propositions into symbolic
form using the appropriate quantifiers and find their truth values.
(a) There exists an even integer. (∃x)E (x) with truth value true.
(b) Every integer is either even or odd.(∀x)(E (x) ∨ O(x)) with truth value
true.
(c) All prime integers are non-negative.(∀x)(P(x) =⇒ N(x)) with truth
value true.
(d) Not all integers are odd.¬(∀x)O(x) with truth value true.
(e) Not all primes are odd.¬(∀x)(P(x) =⇒ O(x)) with truth value true.
Example
Finding truth values of open propositions with quantifiers
(a) Let P(x) : x 2 + 1 > 0 and R, the set of real numbers, be the universe.
Then the truth value of the proposition (∀x)P(x)[i.e.(∀x)(x 2 + 1 > 0)]
is True, since the square of every real number is non-negative.
Example
Finding truth values of open propositions with quantifiers
(a) Let P(x) : x 2 + 1 > 0 and R, the set of real numbers, be the universe.
Then the truth value of the proposition (∀x)P(x)[i.e.(∀x)(x 2 + 1 > 0)]
is True, since the square of every real number is non-negative.
(b) Let Q(x) : x −1 = 0 and the universe U be the set of rational numbers.
The truth value for (∀x)Q(x)[i.e.(∀x)(x − 1) = 0] is False, since
Q(2) : 2 − 1 = 1 = 0 is false. On the other hand (∃x)Q(x) is True,
since Q(1) : 1 − 1 = 0 is true.
Example
Finding truth values of open propositions with quantifiers
(a) Let P(x) : x 2 + 1 > 0 and R, the set of real numbers, be the universe.
Then the truth value of the proposition (∀x)P(x)[i.e.(∀x)(x 2 + 1 > 0)]
is True, since the square of every real number is non-negative.
(b) Let Q(x) : x −1 = 0 and the universe U be the set of rational numbers.
The truth value for (∀x)Q(x)[i.e.(∀x)(x − 1) = 0] is False, since
Q(2) : 2 − 1 = 1 = 0 is false. On the other hand (∃x)Q(x) is True,
since Q(1) : 1 − 1 = 0 is true.
(c) Let S(x) : x 2 = −1 and R, the set of real numbers, be the universe
The truth value for (∃x)S(x) is false, since there is no real number
whose square is −1.
Example
Find the negation of each of the following propositions with the set of real
numbers as the universe.
(a) (∃x)(x 2 + 1 = 0)
Example
Find the negation of each of the following propositions with the set of real
numbers as the universe.
(a) (∃x)(x 2 + 1 = 0) First observe that (∃x)(x 2 + 1 = 0) is false
¬(∃x)(x 2 + 1 = 0) ≡ (∀x)(¬(x 2 + 1 = 0)) ≡ (∀x)(x 2 + 1 6= 0).
Hence, the negation for (∃x)(x 2 + 1 = 0) is (∀x)(x 2 + 1 6= 0),
which is true.
Example
Find the negation of each of the following propositions with the set of real
numbers as the universe.
(a) (∃x)(x 2 + 1 = 0) First observe that (∃x)(x 2 + 1 = 0) is false
¬(∃x)(x 2 + 1 = 0) ≡ (∀x)(¬(x 2 + 1 = 0)) ≡ (∀x)(x 2 + 1 6= 0).
Hence, the negation for (∃x)(x 2 + 1 = 0) is (∀x)(x 2 + 1 6= 0),
which is true.
(b) (∀x)(x − 1 ≥ 0)
Example
Find the negation of each of the following propositions with the set of real
numbers as the universe.
(a) (∃x)(x 2 + 1 = 0) First observe that (∃x)(x 2 + 1 = 0) is false
¬(∃x)(x 2 + 1 = 0) ≡ (∀x)(¬(x 2 + 1 = 0)) ≡ (∀x)(x 2 + 1 6= 0).
Hence, the negation for (∃x)(x 2 + 1 = 0) is (∀x)(x 2 + 1 6= 0),
which is true.
(b) (∀x)(x − 1 ≥ 0) First observe that (∀x)(x − 1 ≥ 0) is false
¬(∀x)(x − 1 ≥ 0) ≡ (∃x)¬(x − 1 ≥ 0) ≡ (∃x)(x − 1 < 0).
Therefore, the negation of (∀x)(x − 1 > 0) is (∃x)(x − 1 < 0),
which is true.
For example, the expression (∀x)(∃y )(x < y ), where x and y are variables
with universe the set of real numbers, a true proposition, namely, ”For
every number x, there is a number y , such that x is less than y ”,
i.e.,”given any real number, there is a real number greater than the given
number.”
But, if the order of the symbol (∀x) and (∃y ) is changed, in this case we
obtain: (∃y )(∀x)(x < y ) which is a false proposition, because there is no
number which is greater than every number. Therefore, changing the
positions of (∀x) and (∃y ) in a quantified proposition could give us a
different statement.
The logical situation between quantified propositions is given as follows
(∃y )(∀x)P(x, y ) =⇒ (∀x)(∃y )P(x, y )
Example
Let P(x, y ) : x + y = 5 and the universe, U, be the set of integers.
(a) The proposition (∃x)(∃y )P(x, y ) means that there is an integer x and
there is an integer y such that x + y = 5. The proposition is true
when x = 1 and y = 4, since 1 + 4 = 5. Therefore, the proposition
(∃x)(∃y )P(x, y ) is always true in the given universe.
(b) The proposition (∃x)(∀y )P(x, y ) means that there is an integer x such
that for every integer y , x + y = 5. But, this is false, since no fixed
value of x0 will make the statement true for all y in the universe.
For example, if y = 1, then x0 + 1 = 5 implies x0 = 4, but this x0 = 4
does not make the statement true for other values of y , as for example
4 + 4 = 8 6= 5 and P(4, 4)) is false.
Therefore, the proposition (∃x)(∀y )P(x, y ) is false in the universe.
Example (cont)
Let P(x, y ) : x + y = 5 and the universe, U, be the set of integers.
(c) (∀x)(∃y )P(x, y ) means that for every integer x there is an integer y
such that x + y = 5. If x + y = 5, then y = 5 − x and
x + y = x + (5 − x) = 5 and hence the proposition (∀x)(∃y )P(x, y ) is
true.
(d) (∀x)(∀y )P(x, y ) means that for every integer x and for every integer
y , x + y = 5. This proposition is false, because, for example if x = 1
and y = 3, we have 1 + 3 = 4 6= 5 and thus P(1, 3) is false.
Definition
A logical deduction (or argument form) is an assertion that a given set of
statements P1 , P2 , . . . Pn , called premises yield another statement Q called
the conclusion. Such a logical deduction is denoted by: P1 , P2 , . . . Pn ` Q
or
P1
P2
..
.
Pn
Q
Example
Let p : It is raining and q : The streets are wet.
Consider the following argument.
It is raining; If it is raining, then the streets are wet. Therefore, the streets
are wet.
Thus, the argument form can be written as p, p =⇒ q ` q.
Example
Let p : It is raining and q : The streets are wet.
Consider the following argument.
It is raining; If it is raining, then the streets are wet. Therefore, the streets
are wet.
Thus, the argument form can be written as p, p =⇒ q ` q.
Example
Let p :you study hard and q : you will pass the examination.
consider the argument.
If you study hard, then you will pass the examination; you study hard.
Therefore, you will pass the examination.
Thus, the argument form can be written as p =⇒ q, p ` q.
Definition
An argument form P1 , P2 , . . . , Pn ` Q is said to be valid if Q is true
whenever all the premises P1 , P2 , . . . , Pn are true; otherwise the argument
is said to be invalid.
Definition
An argument form P1 , P2 , . . . , Pn ` Q is said to be valid if Q is true
whenever all the premises P1 , P2 , . . . , Pn are true; otherwise the argument
is said to be invalid.
Example
Determine the validity of the argument p, p ∧ q ` q.
Definition
An argument form P1 , P2 , . . . , Pn ` Q is said to be valid if Q is true
whenever all the premises P1 , P2 , . . . , Pn are true; otherwise the argument
is said to be invalid.
Example
Determine the validity of the argument p, p ∧ q ` q.
Assume both p and p ∧ q are true. Then by the rule of conjunction, p ∧ q
is true only when both p and q are true. But, by assumption p is true.
Therefore, the conclusion, q, is true and hence the argument is valid.
(AAU) Math 1012 (Chapter 1) April 24, 2021 77 / 119
Argument and Validity . . . using truth tables
Example
Determine the validity of the argument p, p ∧ q ` q.
Example
Determine the validity of the argument p, p ∧ q ` q.
First let us construct a truth-table, for the statements appearing in the
argument form.
p q p∧q p ∧ (p ∧ q) (p ∧ (p ∧ q)) =⇒ q
T T T T T
T F F F T
F T F F T
F F F F T
Example (contd)
Determine the validity of the following argument forms.
p =⇒ q, ¬p ` q.
Example (contd)
Determine the validity of the following argument forms.
p =⇒ q, ¬p ` q.
First let us construct a truth-table, for the statements appearing in the
argument form.
p q p =⇒ q ¬p (p =⇒ q) ∧ ¬P ((p =⇒ q) ∧ ¬p) =⇒ q
T T T F F T
T F F F F T
F T T T T T
F F T T T F
From Table above, we can see that the premises p =⇒ q and ¬p are both
true in the third and fourth row and also in these cases q is true and F
respectively. Therefore, the argument is invalid.
(AAU) Math 1012 (Chapter 1) April 24, 2021 80 / 119
Remark
Definition
A formal proof of the validity of a given argument P1 , P2 , . . . , Pn ` Q is a
finite sequence of statements S1 , S2 , . . . , Sk such that Si is either a premise
of that argument or follows from the preceding statement by an elementary
valid argument and such that the last statement Sk is the conclusion Q of
the argument whose validity is being proved.
Example
Show that the hypotheses: It is not sunny this afternoon and it is colder than
yesterday. If we go swimming, then it is sunny. If we do not go swimming,
then we will take a canoe trip. If we take a canoe trip, then we will be home
by sunset. Lead to the conclusion: We will be home by sunset.
For the following argument identify the premises,write argument form and
check the validity of the following
1 If he studies medicine, he will get a good job. If he gets a good job,
he will get a good wage. He did not get a good wage. Therefore, he
did not study medicine.
2 ¬p ∧ ¬q, (q ∨ r ) =⇒ p, ` ¬r
3 (p ∨ q) =⇒ r ` p =⇒ r
Definition
A set is a well-defined collection of objects. Every object of the collection
is called an element or a member of the set.
Definition
A set is a well-defined collection of objects. Every object of the collection
is called an element or a member of the set.
Definition
A set is a well-defined collection of objects. Every object of the collection
is called an element or a member of the set.
Example
If A is the set of even numbers, then 2 ∈ A and 3 ∈
/ A, since we know from
our knowledge in theory of numbers that 2 is an even number and 3 is not
an even number.
(AAU) Math 1012 (Chapter 1) April 24, 2021 89 / 119
Description of sets
Example
1. The set of vowels in English alphabet is the set C = {a, e, i, o, u} and the
elements of the set are completely listed.
2. The set of positive integers that are factors of 12 is the set D =
{1, 2, 3, 4, 6, 12}. The elements of the set are completely listed.
3. The set of all possible outcomes, P, of rolling a die once is P = {1, 2, 3, 4, 5, 6}.
The elements of the set are completely listed.
Example
1. The set of two-digit positive integers that are divisible by 5 is the set D =
{10, 15, 20, . . . , 95}. The elements of the set are partially listed.
2. The set of odd natural numbers is O = {1, 3, 5, . . .}. The elements of the set
are partially listed and they follow a certain defined pattern.
3. The set of integers if Z = {. . . , −1, 0, 1, . . .}
Example
The following sets are given using set-builder method.
(a) V = {v |v is a consonant in the English alphabet}.
(b) O = {n|n is a positive odd number}.
(c) A = {x ∈ R|0 < x < 1}.
Example
The following sets are given using set-builder method.
(a) V = {v |v is a consonant in the English alphabet}.
(b) O = {n|n is a positive odd number}.
(c) A = {x ∈ R|0 < x < 1}.
Example
Each of the following are empty sets.
(1) A = {x ∈ R|x 2 = −1} is an empty set, because there is no real number
whose square is a negative number. That is, A = ∅.
(2) B = {x ∈ R||x| = −5} is an empty set, because there is no real
number whose absolute value is a negative number. That is, B = ∅.
Example
a) Let S = {a, b, c, 0, 1}. Then, |S| = 5.
b) Empty set does not have any member, and hence the cardinality of the
empty set is always 0. i.e., |∅| = 0.
c) If P = {∅} then |P| = 1, since P contains only one element, that is, ∅.
(AAU) Math 1012 (Chapter 1) April 24, 2021 95 / 119
Exercise
Definition
Given two sets A and B, if every element of A is an element of B, then we
say that A is a subset of B and we denote this relation by A ⊆ B. That is,
A ⊆ B ⇐⇒ (∀x)(x ∈ A =⇒ x ∈ B).
It follows that set B is not a subset of set A if at least one element of B is
not an element of A. i.e.B * A ⇐⇒ (∃x)(x ∈ B =⇒ x 6∈ A).
Definition
Given two sets A and B, if every element of A is an element of B, then we
say that A is a subset of B and we denote this relation by A ⊆ B. That is,
A ⊆ B ⇐⇒ (∀x)(x ∈ A =⇒ x ∈ B).
It follows that set B is not a subset of set A if at least one element of B is
not an element of A. i.e.B * A ⇐⇒ (∃x)(x ∈ B =⇒ x 6∈ A).
Remark
Example
We can consider the following relations between the set of natural numbers,
N, the set of integers, Z, the set of rational numbers, Q, and the set of real
numbers, R.
N ⊆ Z ⊆ Q ⊆ R.
Example
We can consider the following relations between the set of natural numbers,
N, the set of integers, Z, the set of rational numbers, Q, and the set of real
numbers, R.
N ⊆ Z ⊆ Q ⊆ R.
Example
a. If A = {a, b}, B = {a, b, c} and C = {a, b, d} then A ⊆ B and A ⊆ C
on the other hand it is clear that B * A, B * C and C * B.
b. If A = {a, {b}} then {a} ⊆ A and {{b}} ⊆ A. on the other hand
b 6∈ A, {b} * A and {a, b} * A
c. Let A = {a, b, {c}} Note that c and {c} are different objects.
{c} ∈ A {c} ⊆ A but c 6∈ A Moreover the subsets are
{}, {a}, {b}, {{c}}, {a, b}, {a, {c}}, {b, {c}} and A
(AAU) Math 1012 (Chapter 1) April 24, 2021 98 / 119
Power set
If A = {a, b}, then ∅, {a}, {b} and A are all the subsets of A. If we collect
these subsets in a set, then we get the set {∅, {a}, {b}, A}, which is the
set of all subsets of A and this set is called the power set of A. Observe
that the elements of this set are sets.
Definition
Given a set A, the set of all subsets of A, denoted by P(A) or 2A , is called
the power set of A. That is, P(A) = {B|B ⊆ A} = 2A .
Example
(a) If A = ∅, then P(A) = {∅} and number of subsets of A is 1 = 20 .
(b) If B = {4}, then P(B) = {∅, {4}} and n(P(B)) = 2 = 21
(c) If C = {1, {0}}, then P(C ) = {∅, {1}, {{0}}, C } This implies
n(P(C )) = 4 = 22 .
Definition
Given two sets A and B , A is said to be a proper subset of B, denoted by
A ⊂ B, if A is a subset of B and B contains at least one element that is not
in A. That is,
A ⊂ B ⇐⇒ [(∀x)(x ∈ A =⇒ x ∈ B) ∧ (∃y )(y ∈ B ∧ y ∈ / A)].
Definition
Given two sets A and B , A is said to be a proper subset of B, denoted by
A ⊂ B, if A is a subset of B and B contains at least one element that is not
in A. That is,
A ⊂ B ⇐⇒ [(∀x)(x ∈ A =⇒ x ∈ B) ∧ (∃y )(y ∈ B ∧ y ∈ / A)].
Example
Let A = {1, 2, a}. Find all the proper subsets of A.
Definition
Given two sets A and B , A is said to be a proper subset of B, denoted by
A ⊂ B, if A is a subset of B and B contains at least one element that is not
in A. That is,
A ⊂ B ⇐⇒ [(∀x)(x ∈ A =⇒ x ∈ B) ∧ (∃y )(y ∈ B ∧ y ∈ / A)].
Example
Let A = {1, 2, a}. Find all the proper subsets of A.
First let us list all the subsets of A:
∅, {1}, {2} , {a}, {1, 2}, {1, a}, {2, a} and A itself.
From this list, we can see that the proper subsets of A are ∅, {1}, {2} ,
{a, }, {1, 2}, {1, a} and {2, a} and they are seven in number.
Remark
(a) For two sets A and B, A ⊂ B if A ⊆ B and B * A.
(b) ∅ has no proper subset.
(c) If A has n elements, then the number of proper subsets of A is 2n − 1.
Since all the subsets of A are also proper subsets of A, except A itself.
Remark
(a) For two sets A and B, A ⊂ B if A ⊆ B and B * A.
(b) ∅ has no proper subset.
(c) If A has n elements, then the number of proper subsets of A is 2n − 1.
Since all the subsets of A are also proper subsets of A, except A itself.
Example
Consider the following three sets. A = {2, 4, 6, 8, 10}, B = {2, 4, 6} and
C = {2, 3, 4, 6}.
(a) B ⊆ A, since every element of B is an element of A. In addition, 8 ∈ A,
but 8 ∈
/ B. This implies B is a proper subset of A.
(b) As every element of B is contained in C, it is also true that B ⊆ C .
But, 3 ∈ C and 3 ∈
/ B. This implies B is a proper subset of C .
(AAU) Math 1012 (Chapter 1) April 24, 2021 101 / 119
Equal Sets
Definition
Given two sets A and B, we say that A and B are equal, written as A = B
if A ⊆ B and B ⊆ A. (i.e. A = B ⇐⇒ A ⊆ B ∧ B ⊆ A)
If A and B are not equal, then we write this as A 6= B.
Definition
Given two sets A and B, we say that A and B are equal, written as A = B
if A ⊆ B and B ⊆ A. (i.e. A = B ⇐⇒ A ⊆ B ∧ B ⊆ A)
If A and B are not equal, then we write this as A 6= B.
Example
(a) Let A = {1, 2, 3}, B = {3, 2, 1}. and C = {2, 1, 3}
Then A ⊆ B and B ⊆ A This implies A = B.
On the other hand, B ⊆ C and C ⊆ B This implies B = C .
Therefore, A = B = C .
(b) Let C = {a, c, e, g } and D = {c, a, g }
Then, since every element of D is an element of C, D ⊆ C . On the
other hand, e ∈ C and e ∈ / D. This implies, C 6= D.
Example
(c) Let E = {1, 2, 3, a, b} and F = {a, 1, b, 3, 2}.
Then every element of E is an element of F and every element of F is
an element of an element of E. That is, E ⊆ F and F ⊆ E and hence
E = F.
d) Let G = {x|x is a counting numbers } and H = {x|x is a positive
integer }Then every element of G is an element of H and every element
of H is an element of an element of G . That is, G ⊆ H and H ⊆ G
and hence G = H.
Definition
Two sets A and B are said to be equivalent, written as A ←→ B (or A ∼ B),
if there is a one to one correspondence between elements of the two sets.
Definition
Two sets A and B are said to be equivalent, written as A ←→ B (or A ∼ B),
if there is a one to one correspondence between elements of the two sets.
Example
(a) Let A = {1, 2, 3} and B = {a, b, c}. Then there is a 1-1 correspon-
dence between the elements of the two sets A and B. One of such
correspondences is 1 ←→ a, 2 ←→ b, 3 ←→ c. Therefore, A and B
are equivalent sets, that is, A ∼ B.
Definition
Two sets A and B are said to be equivalent, written as A ←→ B (or A ∼ B),
if there is a one to one correspondence between elements of the two sets.
Example
(a) Let A = {1, 2, 3} and B = {a, b, c}. Then there is a 1-1 correspon-
dence between the elements of the two sets A and B. One of such
correspondences is 1 ←→ a, 2 ←→ b, 3 ←→ c. Therefore, A and B
are equivalent sets, that is, A ∼ B.
Observe that, this correspondence is not the only one-to-one correspon-
dence between the elements of these two sets. For example 1 ←→ c,
2 ←→ a, 3 ←→ b. is another one-to-one correspondence between the
elements of the two sets.
(AAU) Math 1012 (Chapter 1) April 24, 2021 104 / 119
Equivalent Sets Examples
Example (cont)
(b) If C = {a, {b, c}} and D = {1, 2, 3}, there is no one-to-one correspon-
dence between the elements of the sets C and D. This is because, C
has two elements and D has three elements. Therefore,
the sets C and D are not equivalent.
Example (cont)
(b) If C = {a, {b, c}} and D = {1, 2, 3}, there is no one-to-one correspon-
dence between the elements of the sets C and D. This is because, C
has two elements and D has three elements. Therefore,
the sets C and D are not equivalent.
Remark
(a) If A and B are equal sets, then there is an obvious one-to-one cor-
respondence between the elements the two sets and hence they are
equivalent. That is, equal sets are equivalent.
(b) If A and B are finite sets, then A ∼ B if and only if n(A) = n(B).
Definition
Let A and B be sets.
(a) The union of A and B is a set that contains all the elements contained
in either set (or both sets) and it is denoted by A ∪ B. That is,
A ∪ B = {x|x ∈ A ∨ x ∈ B}.
(b) The intersection of A and B is the set that contains only the elements
that are in both sets and it is denoted by A ∩ B. That is,
A ∩ B = {x|x ∈ A ∧ x ∈ B}.
Definition
Let A and B be sets.
(a) The union of A and B is a set that contains all the elements contained
in either set (or both sets) and it is denoted by A ∪ B. That is,
A ∪ B = {x|x ∈ A ∨ x ∈ B}.
(b) The intersection of A and B is the set that contains only the elements
that are in both sets and it is denoted by A ∩ B. That is,
A ∩ B = {x|x ∈ A ∧ x ∈ B}.
Example
Consider the sets: A = {a, b, c} and B = {a, 1, 2}.
(a) The union of A and B, A ∪ B ={a, b, c, 1, 2}
(b) The intersection of A and B, A ∩ B ={a}.
Proof.
Let A and B be sets.
(a) The union of A and B is given by
A ∪ B = {x | x ∈ A ∨ x ∈ B} (Definition of ∪ ))
= {x | x ∈ B ∨ x ∈ A} (Commutativity Property of ∨)
= B ∪ A (Definition of ∪ )
Proof.
Let A and B be sets.
(a) The union of A and B is given by
A ∪ B = {x | x ∈ A ∨ x ∈ B} (Definition of ∪ ))
= {x | x ∈ B ∨ x ∈ A} (Commutativity Property of ∨)
= B ∪ A (Definition of ∪ )
This implies A ∪ B = B ∪ A.
(b) The intersection of A and B is given by
A ∩ B = {x | x ∈ A ∧ x ∈ B} (Definition of ∩ ))
= {x | x ∈ B ∧ x ∈ A} (Commutativity Property of ∧)
= B ∩ A (Definition of ∩ )
This implies A ∩ B = B ∩ A.
Example
Let A = {1, 2, 4}, B = {1, 3, 4} and C = {1, 4, a}.
(a) A ∪ B = {1, 2, 3, 4} and B ∪ C = {1, 3, 4, a}. Then
A ∪ (B ∪ C ) = {1, 2, 3, 4, a} = (A ∪ B) ∪ C = {1, 2, 3, 4, a}.
(b) A ∩ B = {1, 4} and B ∩ C = {1, 4}. Then A ∩ (B ∩ C ) = {1, 4} and
(A ∩ B) ∩ C = {1, 4}. This implies A ∩ (B ∩ C ) = (A ∩ B) ∩ C .
(AAU) Math 1012 (Chapter 1) April 24, 2021 108 / 119
Remark
For sets A and B;
(a) A ∪ ∅ = A. (The union of a set and an empty set is the set itself.)
(b) A ∪ A = A. (The union of a set with itself is the set itself.)
(c) If A ⊆ B, then A ∪ B = B.
(d) A ∩ A = A. (The intersection of a set with itself is the set itself.)
(e) A ∩ ∅ = ∅. (The intersection of a set with empty set is empty set.)
(f) If A ⊆ B, then A ∩ B = A.
Remark
If A and B are finite sets, then A ∪ B is a finite set which contains elements
that are either in A or in B or in both A and B. Thus, to determine the
cardinality of A ∪ B, we have to add n(A) and n(B), but from the sum we
have to subtract n(A ∩ B), as it was considered twice in the sum. That is,
Definition
Let A be a set and U be a universal set for A. The complement(or Absolute
complement) of A, denoted by A0 or Ac , is the set of elements in U that
are not in A. That is, A0 = {x ∈ U|x ∈ / A}.
Definition
Let A be a set and U be a universal set for A. The complement(or Absolute
complement) of A, denoted by A0 or Ac , is the set of elements in U that
are not in A. That is, A0 = {x ∈ U|x ∈ / A}.
Definition
Given two sets A and B, the relative complement of B with respect to A,
denoted by A \ B or A − B, is the set of all elements in A that are not in
B. That is:
A\B = {x|x ∈ A ∧ x ∈ / B}
and A\B is read as “A less B or A without B”.
(AAU) Math 1012 (Chapter 1) April 24, 2021 112 / 119
Definition
The sets A and B are said to be disjoint if there are no elements that are
in both A and B. That is, A and B are said to be disjoint, if A ∩ B = ∅.
Example
Let U = Z, the set of integers, E, the set of even integers and O, the set
of odd integers. Then
0 0
(a) E ∩ O = ∅, O = E and E = O.
0 0 0 0
(b) (O ∩ E) = ∅ = Z = O ∪ E .
0 0 0 0
(c) O ∪ E = Z and (O ∪ E) = Z = ∅ = O ∩ E .
(d) O0 = E and (O0 )0 = E0 = O.
Example
Let U = Z, the set of integers, E, the set of even integers and O, the set
of odd integers. Then
0 0
(a) E ∩ O = ∅, O = E and E = O.
0 0 0 0
(b) (O ∩ E) = ∅ = Z = O ∪ E .
0 0 0 0
(c) O ∪ E = Z and (O ∪ E) = Z = ∅ = O ∩ E .
(d) O0 = E and (O0 )0 = E0 = O.
Example
Let A = {1, {∅} a, b} and B = {∅, {a}, b}. Then A\B = {1, {∅}, a} and
B\A = {∅, {a}}. we can also see that A \ B 6= B \ A,
Definition
Given two sets A and B, the symmetric difference of A and B, denoted
by A4B, is the union of A\B and B\A. That is,
Definition
Given two sets A and B, the symmetric difference of A and B, denoted
by A4B, is the union of A\B and B\A. That is,
Example
Let U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} be universal set
A = {2, 4, 5, 8, 9} and
B = {3, 5, 7, 9} then
B − A = {3, 7} and A − B = {2, 4, 8} now
A4B = {2, 3, 4, 7, 8}
Remark
A ∩ B, A0 and A − B are illustrated using venn diagram