Chapter 2
Chapter 2
Chapter 2
Chapter 2
Logical Statements
Objectives
After going through this module, you are expected to:
(1) Apply the principles of logic to tell sound from unsound reasoning
in everyday discourse.
(2) Construct truth tables for logical expressions; test statements for
logical equivalence and represent mathematical statements using
logical connectives
(3) Apply notions on logic in real world problems.
(4) Appreciate mathematics in its pure form.
Logic is used to establish the validity of arguments. It is not so much
concerned with what the argument is about but more with providing
rules so that the general form of the argument can be judged as sound or
unsound.
Negation
It has the effect of reversing the truth value of the proposition. We
state the negation of a proposition by prefixing it “It is not the case that
...”.
If p symbolizes a proposition, ∼ p symbolizes the negation of p.
The following truth table gives the truth values for ∼ p.
p ∼p
T F
F T
Example 2.2.1. Write the negation of each of the following statements.
(1) π is a rational number.
(2) 4 is an even integer.
(3) x = 2.
(4) 4 < 5.
Answer :
(1) π is not a rational number, or π is an irrational number.
(2) 4 is not an even integer, or 4 is an odd integer.
(3) x 6= 2.
(4) 4 6< 5, or 4 ≥ 5.
Quantifiers
In a statement, the word some and the phrases there exists and at
least one are called existential quantifiers. On one hand, the words,
all, none, no, and every are called universal quantifiers.
The table below presents the negation of a quantified statements
Statement Negation
All X are Y Some X are not Y
No X are Y Some X are Y
Some X are not Y All X are Y
Some X are Y No X are Y
Example 2.2.2. Write the negation of the proposition “All numbers are
even”.
Solution: The following are some examples of negation of the given
proposition.
p q p∧q
T T T
T F F
F T F
F F F
Example 2.2.5.
Definition 2.2.6. The word “or” when used to link two simple
propositions result a new compound proposition called disjunctive
proposition. The process in using this connective is called disjunction. A
disjunction is generally, inclusive in a sense that the compound
disjunctive proposition is true whenever atleast one of its simple
proposition is true. If p and q are two propositions, p ∨ q symbolizes the
inclusive disjunction of p and q. A disjunctive proposition is said to be
exclusive if exactly one of its simple propositions is true. The exclusive
disjunction of p and q is denoted by p∨¯ q.
The following truth table gives the truth values of p ∨ q.
p q p∨q
T T T
T F T
F T T
F F F
¯ q.
The following truth table gives the truth values of p∨
p q ¯q
p∨
T T F
T F T
F T T
F F F
p q p =⇒ q
T T T
T F F
F T T
F F T
p : I eat breakfast.
q : I don’t eat lunch.
p =⇒ q : If I eat breakfast, then I don’t eat lunch.
p q p ⇐⇒ q
T T T
T F F
F T F
F F T
Example 2.2.11.
p : I eat breakfast.
q : I don’t eat lunch.
p ⇐⇒ q : I eat breakfast of and only if I don’t eat lunch
(or alternatively, If and only if I eat breakfast,
then I don’t eat lunch) .
p q ∼p ∼p∨q
T T F T
T F F F
F T T T
F F T T
The next step is to negate the fourth column of the latter table:
p q ∼p ∼p∨q ∼ (∼ p ∨ q)
T T F T F
T F F F T
F T T T F
F F T T F
Finally, combine via disjunction fifth and first column of the table
above:
p q ∼p ∼p∨q ∼ (∼ p ∨ q) ∼ (∼ p ∨ q) ∨ p
T T F T F T
T F F F T T
F T T T F F
F F T T F F
p q ∼p
T T F
T F F
F T T
F F T
p q ∼p ∼q
T T F F
T F F T
F T T F
F F T T
p q ∼p ∼q p∨∼q
T T F F T
T F F T T
F T T F F
F F T T T
p q ∼p ∼q p∨∼q ∼p∨q
T T F F T T
T F F T T F
F T T F F T
F F T T T T
p q ∼p ∼q p∨∼q ∼p∨q ∼ (p ∨ ∼ q)
T T F F T T F
T F F T T F F
F T T F F T T
F F T T T T F
∼ (p ∼ (p ∨ ∼ q)
p q ∼p ∼q p∨∼q ∼p∨q
∨ ∼ q) ∧(∼ p ∨ q)
T T F F T T F F
T F F T T F F F
F T T F F T T T
F F T T T T F F
p q r q∨r ∼ (q ∨ r)
T T T T F
T T F T F
T F T T F
F T T T F
T F F F T
F T F T F
F F T T F
F F F F T
p =⇒ ∼ (p =⇒
p q r q∨r ∼ (q ∨ r)
∼ (q ∨ r) ∼ (q ∨ r))
T T T T F F T
T T F T F F T
T F T T F F T
F T T T F T F
T F F F T T F
F T F T F T F
F F T T F T F
F F F F T T F
p q p =⇒ q
T T T
T F F
F T T
F F T
p q ∼p ∼p∨q p =⇒ q
T T F T T
T F F F F
F T T T T
F F T T T
and
p q ∼p ∼q p∨q ∼ (p ∨ q) ∼p∧∼q
T T F F T F F
T F F T T F F
F T T F T F F
F F T T F T T
p ∼p ∼ (∼ p)
T F T
T F T
F T F
F T F
p q p =⇒ q q =⇒ p
T T T T
T F F T
F T T F
F F T T
p : 2 is a prime number.
q : 3 is a factor of 6.
Answer Key
(1) Write the negation of each of the following statements.
(a) All classes in CMU should be online.
Some classes in CMU should not be done online.
(b) Some students in CMU are kind.
All students in CMU are not kind. or alternatively, No students
in CMU are kind.
(c) No one in the students in GEC 14 fails in their final exam.
Some students in GEC 14 fails in their exam.
(2) Consider the following propositions:
p : 2 is a prime number.
q : 3 is a factor of 6.
p q ∼p ∼p∨q
T T F T
T F F F
F T T T
F F T T
(b) ∼ p ∧ ∼ q
p q ∼p ∼q ∼ p∧ ∼ q
T T F F F
T F F T F
F T T F F
F F T T T
(c) ∼ q =⇒ p
p q ∼q ∼ q =⇒ p
T T F T
T F T T
F T F T
F F T F
(d) ∼ p ⇐⇒ ∼ q
p q ∼p ∼q ∼ p ⇐⇒ ∼ q
T T F F T
T F F T F
F T T F F
F F T T T
(6) Construct truth tables for
(a) p =⇒ (q ∧ r)
p q r q∧r p =⇒ (q ∧ r)
T T T T T
T T F F F
T F T F F
T F F F F
F T T T T
F T F F T
F F T F T
F F F F T
(b) (∼ p ∨ q) ⇐⇒ ∼ r
p q r ∼p ∼p∨q ∼r (∼ p ∨ q) ⇐⇒ ∼ r
T T T F T F F
T T F F T T T
T F T F F F T
T F F F F T F
F T T T T F F
F T F T T T T
F F T T T F F
F F F T T T T
References
[1] Baltazar, Ragasa, & Evangelista, Mathematics in the Modern World,
C&E Publishing, 2018.
[2] Garnier, Rowan, Discrete Mathematics: for New Technology, IOP
Publishing Ltd 2002.