Lesson 5
Lesson 5
5.2 Propositions
A proposition is a declarative statement which is true or false, but not both. The lowercase
letters, such as p, q, r,. . . , are used to denote propositions. We use the notation
p : 2 + 3 = 5,
to define p is a proposition such that 2+3 = 5. The truth value of this proposition is true and it
is denoted by T . If the truth value of a given proposition is false it is denoted by F . Statements
that are not propositions include questions, exclamations, wishes, requests and commands.
Example 5.1
Which of the following are propositions? Give the truth value of the propositions.
(a) 2 + 1 = 5.
Solution.
(d) Not a proposition since no truth value can be assigned to this statement.
1
2 ITE 1812 - Mathematic for IT
5.4.1 Negation
Given any proposition p, another proposition, called the negation of p, can be formed by
inserting the word “not” before p or by writing “It is false that...” before p. The negation of p
denoted by ¬p and read as “not p”. For example, if
p : x is 5,
¬p : x is not 5.
If the truth value of p is true, then the truth value of ¬p is false and if the truth value of p is
false, then the truth value of ¬p is true. Table 5.1 shows the truth table for the negation of a
proposition p.
p ¬p
T F
F T
5.4.2 Conjunction
Two simple propositions can be combined using the English word “and” to form a compound
proposition. The resulting compound proposition is called the conjunction. It is symbolically
denoted as p ∧ q, where p and q are simple propositions. For example, consider the following
two propositions.
p : Today is Friday.
q : It is raining today.
2
Degree of Bachelor of Information Technology 3
p q p∧q
T T T
T F F
F T F
F F F
5.4.3 Disjunction
Two simple propositions can be combined using the English word “or” to form a compound
proposition. The resulting compound proposition is called the disjunction. It is symbolically
denoted as p ∨ q, where p and q are simple propositions. For example, consider the following
two propositions.
p : Today is Friday.
q : It is raining today.
p q p∨q
T T T
T F T
F T T
F F F
3
4 ITE 1812 - Mathematic for IT
Example 5.2
Construct the truth tables for the following compound propositions.
(a) ¬(p ∧ q)
(b) ¬(¬p)
Solution.
p : I eat breakfast.
q : I don0 t eat lunch.
Then the conditional proposition is
p q : If I eat breakfast then I don0 t eat lunch.
The truth value of conditional proposition p q is false when the truth value of p is true and
the truth value of q is false and true otherwise. Truth values for the conditional proposition
p q is shown in Table 5.4.
4
Degree of Bachelor of Information Technology 5
p q pq
T T T
T F F
F T T
F F T
p ↔ q.
p ↔ q : You can take the flight if and only if you buy a ticket.
The truth value of biconditional statement p ↔ q is true when the truth value of the propositions
p and q have the same truth values and is false otherwise. Truth values for the biconditional
proposition p ↔ q is shown in Table 5.5.
p q p↔q
T T T
T F F
F T F
F F T
5
6 ITE 1812 - Mathematic for IT
Example 5.3
Consider the following propositions:
p : Mathematicians are generous.
q : Spiders hate algebra.
Write the compound propositions symbolized by:
(a) p ∨ ¬q
(b) ¬(q ∧ p)
(c) ¬p → q
(d) ¬p ↔ ¬q
Solution.
(b) It is not the case that spiders hate algebra and mathematicians are generous.
(d) Mathematicians are not generous if and only if spiders don’t hate algebra.
1. Negation (¬)
2. Conjunction (∧)
3. Disjunction (∨)
6
Degree of Bachelor of Information Technology 7
Self-Assessment Exercises
1. Construct a truth table for each of these compound propositions.
(a) p ∧ ¬p
(b) ¬p ∧ (p ∨ ¬q)
(c) ¬q ∨ (¬p ∧ q)
p : It is below freezing.
q : It is snowing.
Suggested Reading
Chapter 1: Kenneth Rosen, (2011) Discrete Mathematics and Its Applications, 7th Edition,
McGraw-Hill Education.