Propositional Logic and Set Theory Basics
Propositional Logic and Set Theory Basics
Social/Natural
Course Code: Math1011/1071
Credit hour: 3
Inst name: Dagnachew .G
Chapter 1:
Propositional Logic and set Theory
Propositional Logic
•Section objectives:
•After completing this section, students will be able to:-
Identify the difference between proposition and sentence.
Describe the five logical connectives.
Determine the truth values of propositions using the rules of logical connectives.
Construct compound propositions using the five logical connectives.
Determine the truth values of compound propositions.
Distinguish a given compound proposition is whether tautology or contradiction.
[Link] and examples of propositions
Definition1.1:
A proposition (or statement) is a sentence which has a truth value (either
True or False but not both).
•Remark: Every proposition has a truth value, namely true (denoted by T
) or false (denoted by F).
Example:Identify whether the following sentences are proposition or not.
a.2 is an even number.
b.A triangle has four sides.
[Link] Menelik ate chicken soup the night after the battle of Adwa.
[Link] God bless you!
[Link] me that book.
[Link] is your name
1.1.2. Logical connectives
•In mathematical discourse and elsewhere one constantly encounters
declarative sentences which have been formed by modifying a
sentence with the word “not” or by connecting sentences with the
words “and”, “or”, “if . . . then (or implies)”, and “if and only if”. These
five words or combinations of words are called propositional
connectives.
•Note: Letters such as p,q,r,s,etc. are usually used to denote actual
propositions.
[Link](Ʌ)
• When two propositions are joined with the connective “and,” the
proposition formed is a logical conjunction,“and” is denoted by “Ʌ ”.
So, the logical conjunction of two propositions, p and q , is written: p
Ʌq, read as “ p and q ,” or “ p conjunction q ”.
• p and q are called the components of the conjunction.
Note: p Ʌq is True if and only if both p and q have truth value
True;otherwise it is False.
The truth table for conjunction is given as follows:
p q p Ʌq
T T T
T F F
F T F
F F F
Example 1.1:
•Consider the following propositions:
p: 3 is an odd number. (True)
q: 27 is a prime number. (False)
r: Addis Ababa is the capital city of Ethiopia. (True)
a. pɅq: 3 is an odd number and 27 is a prime number. (False)
b. pɅr : 3 is an odd number and Addis Ababa is the capital city of Ethiopia.
(True)
[Link] ()
•When two propositions are joined with the connective “or,” the
proposition formed is called a logical disjunction.“or” is denoted by “ V ”.
So, the logical disjunction of two propositions,p and q,is written as: pvq’
and read as “p or q” or “ p disjunction q ”
Note: p v q is False if and only if both p and q have truth value
False;otherwise it is True. The truth table for disjunction is given as
follows: p q pVq
T T T
T F T
F T T
F F F
Example 1.2:
•Consider the following propositions:
p: 3 is an odd number. (True)
q: 27 is a prime number. (False)
s: Nairobi is the capital city of Ethiopia. (False)
a. pvq : 3 is an odd number or 27 is a prime number. (True)
[Link] : 27 is a prime number or Nairobi is the capital city of Ethiopia. (False)
[Link]()
•When two propositions are joined with the connective “implies,” the proposition
formed is called a logical implication. “implies” is denoted by “. ” The logical
implication of two propositions,p and q, is written as: “pread as follows:
“ p implies q .”
“ q if p”
“If p… then q”
“ p only if q”
“ P is sufficient for q”
“ q is necessary for p ”
Cont….
Note: pis false if and only if p is True and q is False;otherwise it is True.
This form of a proposition is common in mathematics.
The proposition p is called the hypothesis or the antecedent of the
conditional proposition p while is called its conclusion or the
consequent.
The following is the truth table for implication.
p q p
T T T
T F F
F T T
F F T
• Given any proposition p , we can form the proposition ¬p called the negation of
p .
• The truth value of ¬p is False if p is True and ¬p is True if p isFalse.
We can describe the relation between and as fol ows.
p ¬p
T F
F T
example, the expression p⟹q∧r will be meaningless unless we know which connective should apply
Note: We must be careful to insert the brackets in proper places, just as we do in arithmetic. For
first. It could mean (p⟹q)∧r or p⟹(q∧r), which are very different propositions.
The possible truth values of a proposition are often listed in a table, called a truth table. If and are propositions,
then there are four possible combinations of truth values for and . That is, , , and . If a third proposition is involved,
then there are eight possible combinations of truth values for , and . In general, a truth table involving “”
propositions ,,…, contains possible combinations of truth values for these propositions and a truth table showing
these combinations would have columns and rows. So, we use truth tables to determine the truth value of a
compound proposition based on the truth value of its constituent component propositions.
Examples 1.7:
[Link] p and r are true and q and s are false. What is the truth value of
p∧q⟹(r∨s)?
[Link] p is true and q is false, p∧q is false. iii. Since r is true and s is false, r∨s
F F
T T
T T
T T
Then, , since columns 5 and 6; columns 7 and 8 of the above table are identical.
Continued…
• Given the conditional , we give the related conditional propositions:-
: Converse of
: Inverse of
: Contrapositive of
• Propositions, under the relation of logical equivalence, satisfy various laws
or identities, which are listed below.
[Link] Laws [Link] Laws
a.. a.
b.. b..
Cont…
[Link] Laws:
.
b..
[Link] of Contrapositive:
[Link] Law: .
6. Commutative Laws 7. De Morgan’s Laws
a. . a. .
b. .
1.1.4 Tautology and contradiction
Definition: A compound proposition is a tautology if it is always true regardless of the truth values of its component propositions. If, on the other hand, a
compound proposition is always false regardless of its component propositions, we say that such a proposition is a contradiction.
[Link] p is any proposition. Consider the compound propositions p∨p and p∧p.
Examples 1.9:
We have exhibited all the possibilities and we see that for all truth values of the constituent propositions, the proposition
is always true. Thus, is a tautology, while is a contradiction.
Cont…
• Remark: Two compounds propositions and are equivalent if and only if “” is a
tautology.
Exercises 1.2
[Link] statements and , use a truth table to show that each of the following pairs of
statements is logically equivalent or not.
a. and . d. and .
b. and . e. and .
c. and .
[Link] statements , and , show that the following compound statements are tautology.
a. b. c. .
Cont…..
[Link] statements p and q, show that p∧q∧(p∧q) is a contradiction.
[Link] the contrapositive and the converse of the following conditional statements.
[Link] it is cold, then the lake is frozen. c. If it rains, Tigist does not take a walk.
[Link] Solomon is healthy, then he is happy.
[Link] p and q be statements. Which of the following implies that p∨q is false?
is false c. is true is true.
is true d. is false.
[Link] that the statements p,q,r, and s are assigned the truth values T,F,F, and T,
Remark: The collection of all allowable values for the variable in an open sentence is called
the universal set (the universe of discourse) and denoted by .
Definition 1.5: Two open proposition and are said to be equivalent if and only if
for all individual . Note that if the universe is specified, then and are equivalent if and
only if for all .
Cont…
Definition 1.6: Let be the universal set. An open
proposition is a tautology if and only if is always true for
all values of .
Definition 1.8: An argument form is said to be valid if is true whenever all the
premises are true; otherwise it is invalid.
p q, q p
If it rains, crops will be good. It did not rain. Therefore, crops were not good.
p q, q r p
Solution:
• First we construct a truth table for the statements appearing in the
argument forms:
a.
The premises and are true simultaneously in row 4 only. Since in this
case is also true, the argument is valid.
Contd…
The 1st, 2nd, 5th, 6th and 7th rows are those in which all the
premises take value . In the 5th, 6th and 7th rows however the
conclusion takes value . Hence, the argument form is invalid.
Contd….
• Let : It rains, : Crops are good, : It did not rain, : Crops were not
good.
The argument form is
• Now we can use truth table to test validity as follows:
The premises and are true simultaneously in rows 3rd and 4th
. In the 3rd row however the conclusion takes value . Hence,
the argument form is invalid.
Remark:
[Link] of Adjunction
[Link] of Syllogism a.
b.
[Link] of Detachment [Link] Tollendo Ponens
[Link] Dilemma
[Link] Ponendo Tollens
[Link] of Conditionalization
[Link] of Equivalence
Formal proof of validity of an argument
If the elements of a set can all be listed, we list them all between a pair of braces without
repetition separating by commas, and without concern about the order of their
appearance
Examples 1.22:
[Link] set of vowels in English alphabet may also be described as .
b. The set of positive factors of 24 is also described as .
[Link] Listing Method
In this method we describe the set by partially listing the elements.
we list these few elements followed (or preceded) by exactly three dotes and
possibly by one last element.
Example 1.24:
[Link] set of all counting numbers is .
[Link] set of non-positive integers is .
Contd…
[Link] set of multiples of 5 is .
[Link] set of odd integers less than 100 is
3. Set-builder Method
When all the elements satisfy a common property , we express the situation as an open
proposition and describe the set using a method called the Set-builder Method as
follows:
Example 1.28:
a. The sets are all equal.
Definition 1.13: Set is said to be a proper subset of set if every element of is also
an element of , but has at least one element that is not in . In this case, we write .
We also say is a proper super set of A, and write . It is clear that
.
Definition 1.14: Let be a set. The power set of , dented by , is the set whose
elements are all subsets of . That is, .
Contd…
Example 1.29: Let . As noted before, and are subset of . Moreover, and are
also subsets of . Therefore,
.
Frequently it is necessary to limit the topic of discussion to elements of a
certain fixed set and regard all sets under consideration as a subset of this
fixed set. We call this set the universal set or the universe and denoted by .
Do the following Exercise 1.5
1. Which of the following are sets?
a. 1,2,3 b. {1,2},3 c. {{1},2},3 d. {1,{2},3} e. {1,2,a, b}
2. Which of the following sets can be described in complete listing, partial listing and/or set-builder
methods? Describe each set by at least one of the three methods.
a. The set of the first 10 letters in the English alphabet. d. The set of all countries in the world.
b. The set of students of Addis Ababa University in the 2018/2019 academic year.
c. The set of positive multiples of 5. e. The set of all horses with six legs.
b. 𝐷 = ሼ 𝑥 ∈ℝ: 𝑥2 − 𝑥 = 0ሽ d. 𝐸= {𝑥 ∈ ℝ: 𝑥2 + 1 = 0}.
4. Let 𝐴be the set of positive even integers less than 15. Find the truth value of each of the following.
a. 15 ∈ 𝐴 c. −16 ∈ 𝐴 e. 𝜙 ∈ 𝐴 g. 12 ⊂ 𝐴 i. {2,8,14}𝐴
b. {2,3,4} ⊆ 𝐴 d. {2,4} ∈ 𝐴 f. 𝜙 ⊂ 𝐴 h. {2,4,6} ⊆ 𝐴
How many subsets and proper subsets do the sets that contain exactl y 1, 2,3, 4,8, 10 and 20 elements have?
If 𝑛 is a whole number, use your observation in Problems 6 and 7 to discover a formula for the number of
7.
subsets of a set with 𝑛 elements. How many of these are proper subsets of the set?
8.
a. 𝜙 ∈𝑃(𝜙) b. 𝐹𝑜𝑟 𝑎𝑛𝑦 𝑠𝑒𝑡 𝐴,𝜙 ⊆ 𝑃(𝐴) c. 𝐹𝑜𝑟 𝑎𝑛𝑦 𝑠𝑒𝑡 𝐴,𝐴∈ 𝑃(𝐴) d. 𝐹𝑜𝑟 𝑎𝑛𝑦 𝑠𝑒𝑡 𝐴,𝐴⊂ 𝑃(𝐴)
11. Find the truth value of each of the following.
Definition 1.16: The intersection of two sets and , denoted by , is the set of all elements
that are in and . That is,
.
Definition 1.17: The difference between two sets and , denoted by , is the of all elements
in and not in ; this set is also called the relative complement of with respect to .
Symbolically, .
Example 1.31:
If , , then and .
• Note: In general, are disjoint.
Definition 1.18: Let be a subset of a universal set . The absolute complement (or simply
complement) of , denoted by (or or , is defined to be the set of all elements of that are
not in . That is, or .
Notice that taking the absolute complement of is the same as finding the relative
complement of with respect to the universal set . That is, .
Example 1.32:
a. If 𝑈= {0,1,2,3,4}, and if 𝐴= {3,4}, then 𝐴′ = {3,4}.
b. Let 𝑈 = {1,2,3,…,12}, 𝐴= {𝑥| 𝑥𝑖𝑠 𝑎 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒 𝑓𝑎𝑐𝑡𝑜𝑟 𝑜𝑓 12} & 𝐵 = {𝑥| 𝑥 𝑖𝑠 𝑎𝑛 𝑜𝑑𝑑 𝑖𝑛𝑡𝑒𝑔𝑒𝑟 𝑖𝑛 𝑈}.
Then, 𝐴 = {5,7,8,9,10,11}, 𝐵 = {2,4,6,8,10,12},
(𝐴∪𝐵) = (8,10}, 𝐴∪𝐵 = {2,4,5,6,…,12},
𝐴∩𝐵 = {8,10}, and (𝐴\𝐵) = {1,3,5,7,8,9,10,11}.
c. Let 𝑈 = {𝑎,𝑏,𝑐,𝑑,𝑒,𝑓,𝑔,ℎ},𝐴 = {𝑎,𝑒,𝑔,ℎ} and
𝐵 = {𝑏,𝑐,𝑒,𝑓,ℎ}. Then
𝐴 = {𝑏,𝑐,𝑑,𝑓}, 𝐵 = {𝑎,𝑑,𝑔}, 𝐵– 𝐴 = {𝑏,𝑐,𝑓},
𝐴– 𝐵 = {𝑎,𝑔}, and ሺ 𝐴∪𝐵ሻ ′ = {𝑑}.
Find (𝐴∩𝐵)′, 𝐴 ∩𝐵′, 𝐴 ∪𝐵′. Which of these are equal?
Theorem 1.1:
For any two sets and , each of the following holds.
1.. 3. . 5. .
2.. 4. . 6. .
Definition 1.19: The symmetric difference of two sets and , denoted by , is the set ,.
Theorem 1.2: For any three sets 𝐴, 𝐵 and 𝐶, each of the following holds.
•c
a. 𝐴∪𝐵 = 𝐵∪𝐴.
b. 𝐴∩𝐵 = 𝐵∩𝐴.
( is commutative)
c. (𝐴∪𝐵) ∪𝐶 = 𝐴∪(𝐵∪𝐶).
( is commutative)
d. (𝐴∩𝐵) ∩𝐶 = 𝐴∩(𝐵∩𝐶).
( is associative)
A B U
0 4 3 1
2
6 8 5 9
7
Contd..
Shaded is 𝐴∪ 𝐵 Shaded 𝐴∩ 𝐵
Now we illustrate intersections and unions of sets by Venn diagram.
Cases
Only some A B A B
common elements
𝐴⊆ 𝐵
B B
A A
A B A B
No common
element
A B =
If 𝐵 ⊆ 𝐴 , 𝐴∩ 𝐵′ = {1,4,5} and 𝐴∪ 𝐵 = {1,2,3,4,5,6}, find 𝐵.
Exercise 1.6
𝐴∪ 𝐵. b. Is ሺ 𝐴∪ 𝐵ሻ ∪ 𝐶 = 𝐴∪ (𝐵 ∪ 𝐶)?
2.
𝐴′ b. 𝐴∩ 𝐴 ′ c. 𝐴∪ 𝐴 ′ d. (𝐴 ′)′ e. 𝜙 − 𝑈 f. 𝜙′ g. 𝑈′
Describe each of the sets by complete list ing method:
a.
4. Use Venn dia gram to illustrate the following statements:
a. ሺ 𝐴∪ 𝐵ሻ ′ = 𝐴 ′ ∩ 𝐵′ 𝑏. ሺ 𝐴∩ 𝐵ሻ ′ = 𝐴′ ∪ 𝐵′ c. If 𝐴⊈ 𝐵, the n 𝐴\ 𝐵 ≠ 𝜙 𝑑. 𝐴∪ 𝐴 ′ = 𝑈
5. Let 𝐴= ሼ5,7,8,9ሽ, 𝐵 = ሼ5,6,9ሽ and 𝐶 = {6,7,8}. Then show that ሺ 𝐴 \ 𝐵ሻ \𝑐 ≠ 𝐴 \ (𝐵\ 𝐶).
a. (𝐴∪ 𝐵) ∪ 𝐶 = 𝐴∪ (𝐵 ∪ 𝐶 ). d. 𝐶 – 𝐷 = 𝐶∩ 𝐷
b. 𝐴∩ (𝐵 ∪ 𝐶∪ 𝐷) = (𝐴∩ 𝐵) ∪ (𝐴∩ 𝐶 ) ∪ (𝐴∩ 𝐷)
c. (𝐴∩ 𝐵 ∩ 𝐶∩ 𝐷) = 𝐴 ∪ 𝐵 ∪ 𝐶 ∪ 𝐷 e. 𝐴∩ (𝐵∩ 𝐶 ) = (𝐴– 𝐵) ∪ (𝐴– 𝐶)
11. For any two subsets 𝐴and 𝐵 of a universal set 𝑈, prove that:
a.