Lecture Notes in Discrete Mathematics Part 1
Lecture Notes in Discrete Mathematics Part 1
Marcel B. Finan
Arkansas Tech University
All
c Rights Reserved
2
Preface
Marcel B. Finan
May 2001
3
4 PREFACE
Contents
Preface 3
5
6 CONTENTS
7
8 FUNDAMENTALS OF MATHEMATICAL LOGIC
p:1+1=3
Example 1.1
Which of the following are propositions? Give the truth value of the propo-
sitions.
a. 2 + 3 = 7.
b. Julius Ceasar was president of the United States.
c. What time is it?
d. Be quiet !
Solution.
a. A proposition with truth value (F).
b. A proposition wiht truth value (F).
c. Not a proposition since no truth value can be assigned to this statement.
d. Not a proposition
Example 1.2
Which of the following are propositions? Give the truth value of the propo-
sitions.
a. The difference of two primes.
b. 2 + 2 = 4.
c. Washington D.C. is the capital of New York.
d. How are you?
Solution.
a. Not a proposition.
b. A proposition with truth value (T).
c. A proposition with truth value (F).
1 PROPOSITIONS AND RELATED CONCEPTS 9
d. Not a proposition
Example 1.3
Let
p: 5<9
q : 9 < 7.
Solution.
The conjunction of the propositions p and q is the proposition
p ∨ q : 5 < 9 or 9 < 7
Example 1.4
Consider the following propositions
p: It is Friday
q: It is raining.
Solution.
The conjunction of the propositions p and q is the proposition
p ∨ q : It is F riday or It is raining
A truth table displays the relationships between the truth values of propo-
sitions. Next, we display the truth tables of p ∧ q and p ∨ q.
p q p∧q
T T T
T F F
F T F
F F F
p q p∨q
T T T
T F T
F T T
F F F
Example 1.5
a. Construct a truth table for (p ⊕ q) ⊕ r.
b. Construct a truth table for p ⊕ p.
Solution.
a.
1 PROPOSITIONS AND RELATED CONCEPTS 11
p q r p⊕q (p ⊕ q) ⊕ r
T T T F T
T T F F F
T F T T F
T F F T T
F T T T F
F T F T T
F F T F T
F F F F F
b.
p p⊕p
T F
F F
Example 1.6
Consider the following propositions:
p: Today is Thursday.
q: 2 + 1 = 3.
r: There is no pollution in New Jersey.
Solution.
p q r p ∧q ∼ (p ∧ q) [∼ (p ∧ q)] ∨ r
T T T T F T
T T F T F F
F T T F T T
F T F F T T
12 FUNDAMENTALS OF MATHEMATICAL LOGIC
Example 1.7
Find the negation of the proposition p : −5 < x ≤ 0.
Solution.
The negation of p is the proposition ∼ p : x > 0 or x ≤ −5
Example 1.8
a. Construct the truth table of the proposition (p∧q)∨(∼ p∨ ∼ q). Determine
if this proposition is a tautology.
b. Show that p∨ ∼ p is a tautology.
Solution.
a.
p q ∼p ∼q ∼ p∨ ∼ q p∧q (p ∧ q) ∨ (∼ p∧ ∼ q)
T T F F F T T
T F F T T F T
F T T F T F T
F F T T T F T
Two propositions are equivalent if they have exactly the same truth values
under all circumstances. We write p ≡ q.
Example 1.9
a. Show that ∼ (p ∨ q) ≡∼ p∧ ∼ q.
b. Show that ∼ (p ∧ q) ≡∼ p∨ ∼ q.
c. Show that ∼ (∼ p) ≡ p.
a. and b. are known as DeMorgan’s laws.
1 PROPOSITIONS AND RELATED CONCEPTS 13
Solution.
a.
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
b.
p q ∼p ∼q p∧q ∼ (p ∧ q) ∼ p∨ ∼ q
T T F F T F F
T F F T F T T
F T T F F T T
F F T T F T T
c.
p ∼p ∼ (∼ p)
T F T
F T F
Example 1.10
a. Show that p ∧ q ≡ q ∧ p and p ∨ q ≡ q ∨ p.
b. Show that (p ∨ q) ∨ r ≡ p ∨ (q ∨ r) and (p ∧ q) ∧ r ≡ p ∧ (q ∧ r).
c. Show that (p ∧ q) ∨ r ≡ (p ∨ r) ∧ (q ∨ r) and (p ∨ q) ∧ r ≡ (p ∧ r) ∨ (q ∧ r).
Solution.
a.
p q p∧q q∧p
T T T T
T F F F
F T F F
F F F F
p q p∨q q∨p
T T T T
T F T T
F T T T
F F F F
14 FUNDAMENTALS OF MATHEMATICAL LOGIC
b.
p q r p∨q q∨r (p ∨ q) ∨ r p ∨ (q ∨ r)
T T T T T T T
T T F T T T T
T F T T T T T
T F F T F T T
F T T T T T T
F T F T T T T
F F T F T T T
F F F F F F F
p q r p∧q q∧r (p ∧ q) ∧ r p ∧ (q ∧ r)
T T T T T T T
T T F T F F F
T F T F F F F
T F F F F F F
F T T F T F F
F T F F F F F
F F T F F F F
F F F F F F F
c.
Example 1.11
Show that ∼ (p ∧ q) 6≡∼ p∧ ∼ q
Solution.
We will use truth tables to prove the claim.
p q ∼p ∼q p∧q ∼ (p ∧ q) ∼ p∧ ∼ q
T T F F T F F
T F F T F T 6 = F
F T T F F T 6 = F
F F T T F T T
A compound proposition that has the value F for all possible values of the
propositions in it is called a contradiction.
Example 1.12
Show that the proposition p∧ ∼ p is a contradiction.
Solution.
p ∼p p∧ ∼ p
T F F
F T F
Review Problems
Problem 1.1
Indicate which of the following sentences are propositions.
a. 1,024 is the smallest four-digit number that is perfect square.
b. She is a mathematics major.
c. 128 = 26
d. x = 26 .
Problem 1.2
Consider the propositions:
p: Juan is a math major.
q: Juan is a computer science major.
Problem 1.3
In the following sentence is the word ”or” used in its inclusive or exclusive
sense? ”A team wins the playoffs if it wins two games in a row or a total of
three games.”
Problem 1.4
Write the truth table for the proposition: (p ∨ (∼ p ∨ q))∧ ∼ (q∧ ∼ r).
Problem 1.5
Let t be a tautology. Show that p ∨ t ≡ t.
Problem 1.6
Let c be a contradiction. Show that p ∨ c ≡ p.
Problem 1.7
Show that (r ∨ p) ∧ [(∼ r ∨ (p ∧ q)) ∧ (r ∨ q)] ≡ p ∧ q.
Problem 1.8
Use De Morgan’s laws to write the negation for the proposition:”This com-
puter program has a logical error in the first ten lines or it is being run with
an incomplete data set.”
1 PROPOSITIONS AND RELATED CONCEPTS 17
Problem 1.9
Use De Morgan’s laws to write the negation for the proposition:”The dollar
is at an all-time high and the stock market is at a record low.”
Problem 1.10
Assume x ∈ IR. Use De Morgan’s laws to write the negation for the proposition:0 ≥
x > −5.
Problem 1.11
Show that the proposition s = (p ∧ q) ∨ (∼ p ∨ (p∧ ∼ q)) is a tautology.
Problem 1.12
Show that the proposition s = (p∧ ∼ q) ∧ (∼ p ∨ q) is a contradiction.
Problem 1.13
a. Find simpler proposition forms that are logically equivalent to p ⊕ p and
p ⊕ (p ⊕ p).
b. Is (p ⊕ q) ⊕ r ≡ p ⊕ (q ⊕ r)? Justify your answer.
c. Is (p ⊕ q) ∧ r ≡ (p ∧ r) ⊕ (q ∧ r)? Justify your answer.
Problem 1.14
Show the following:
a. p ∧ t ≡ p, where t is a tautology.
b. p ∧ c ≡ c, where c is a contradiction.
c. ∼ t ≡ c and ∼ c ≡ t.
d. p ∨ p ≡ p and p ∧ p ≡ p.