Lecture Notes in Discrete Mathematics - Part 3
Lecture Notes in Discrete Mathematics - Part 3
Review Problems
Problem 2.1
Rewrite the following proposition in if-then form: ” This loop will repeat
exactly N times if it does not contain a stop or a go to.”
Problem 2.2
Construct the truth table for the proposition: ∼ p ∨ q → r.
Problem 2.3
Construct the truth table for the proposition: (p → r) ↔ (q → r).
Problem 2.4
Write negations for each of the following propositions. (Assume that all vari-
ables represent fixed quantities or entities, as appropriate.)
Problem 2.5
Write the contrapositives for the propositions of Exercise 40.
Problem 2.6
Write the converse and inverse for the propositions of Exercise 40.
Problem 2.7
Use the contrapositive to rewrite the proposition ” The Cubs will win the
penant only if they win tomorrow’s game” in if-then form in two ways.
Problem 2.8
Rewrite the proposition :” Catching the 8:05 bus is sufficient condition for
my being on time for work” in if-then form.
2 CONDITIONAL AND BICONDITIONAL PROPOSITIONS 23
Problem 2.9
Use the contrapositive to rewrite the proposition ” being divisible by 3 is a
necessary condition for this number to be divisible by 9” in if-then form in
two ways.
Problem 2.10
Rewrite the proposition ”A sufficient condition for Hal’s team to win the
championship is that it wins the rest of the games” in if-then form.
Problem 2.11
Rewrite the proposition ”A necessary condition for this computer program
to be correct is that it not produce error messages during translation” in
if-then form.
24 FUNDAMENTALS OF MATHEMATICAL LOGIC
Example 3.1
Show that the propositions ”The star is made of milk, and strawberries are
red. My dog has fleas.” do not form an argument.
Solution.
Indeed, the truth or falsity of each of the propositions has no bearing on that
of the others
Example 3.2
Show that the propositions:”Mark is a lawyer. So Mark went to law school
since all lawyers have gone to law school” form an argument.
Solution.
This is an argument. The truth of the conclusion, ”Mark went to law school,”
is inferred or deduced from its premises, ”Mark is a lawyer” and ”all lawyers
have gone to law school.”
Now, suppose that the premises of an argument are all true. Then the
3 RULES OF INFERENTIAL LOGIC 25
conclusion may be either true or false. When the conclusion is true then the
argument is said to be valid. When the conclusion is false then the argument
is said to be invalid.
To test an argument for validity one proceeds as follows:
(1) Identify the premises and the conclusion of the argument.
(2) Construct a truth table including the premises and the conclusion.
(3) Find rows in which all premises are true.
(4) In each row of Step (3), if the conclusion is true then the argument is
valid; otherwise the argument is invalid.
Example 3.3
Show that the argument
p → q
q → p
..˙ p ∨ q
is invalid
Solution.
We construct the truth table as follows.
p q p→q q→p p∨q
T T T T T
T F F T T
F T T F T
F F T T F
From the last row we see that the premises are true but the conclusion is
false. The argument is then invalid
Example 3.4 (Modus Ponens or the method of affirming)
a. Show that the argument
p → q
p
..˙ q
is valid.
b. Show that the argument
∼p∨q → r
∼p∨q
..˙ r
is valid.
26 FUNDAMENTALS OF MATHEMATICAL LOGIC
Solution.
a. The truth table is as follows.
p q p→q
T T T
T F F
F T T
F F T
Example 3.5
Show that the argument
p → q
q
..˙ p
is invalid.
Solution.
The truth table is as follows.
p q p→q
T T T
T F F
F T T
F F T
Because of the third row the argument is invalid. An argument of this form is
referred to as converse error because the conclusion of the argument would
follows from the premises if p → q is replaced by its converse q → p
Solution.
The truth table is as follows.
p q p→q ∼q ∼p
T T T F F
T F F T F
F T T F T
F F T T T
The last row shows that the argument is valid
Example 3.7
Show that the argument
p → q
∼p
..˙ ∼ q
is invalid.
Solution.
The truth table is as follows.
p q p→q ∼q ∼p
T T T F F
T F F T F
F T T F T
F F T T T
The third row shows that the argument is invalid. This is known as inverse
error because the conclusion of the argument would follow from the premises
if p → q is replaced by the inverse q → p
Solution.
a. The truth table is as follows.
p q p∨q
T T T
T F T
F T T
F F F
The first and second rows show that the argument is valid.
b. The first and third rows show that the argument is valid
Solution.
a. The truth table is as follows.
p q p∧q
T T T
T F F
F T F
F F F
is valid.
b. Show that the argument
p∨q
∼p
..˙ q
is valid.
Solution.
a. The truth table is as follows.
p q ∼p ∼q p∨q
T T F F T
T F F T T
F T T F T
F F T T F
The second row shows that the argument is valid.
b. The third row shows that the argument is valid
Solution.
The truth table is as follows.
p q r p→q q→r p→r
T T T T T T
T T F T F F
T F T F T T
T F F F T F
F T T T T T
F T F T F T
F F T T T T
F F F T T T
The first , fifth, seventh, and eighth rows show that the argument is valid
30 FUNDAMENTALS OF MATHEMATICAL LOGIC
Solution.
Constructing the truth table we find
c p ∼p→c
F T T
F F F
Review Problems
Problem 3.1
Use modus ponens or modus tollens to fill in the blanks in the argument
below so as to produce valid inferences.
√ √
If 2 is rational, then 2 = ab for some integers a and b.
√
It is not true that 2 = ab for some integers a and b.
..˙
Problem 3.2
Use modus ponens or modus tollens to fill in the blanks in the argument
below so as to produce valid inferences.