MMW Module 6
MMW Module 6
Module 6
Chapter 6: Logic
Chapter Objectives:
Topic Objectives
Logic statements and 1. Identify statements and quantifiers.
quantifiers 2. Use mathematical logic to infer conclusions from given
propositions.
3. Judge situations accurately and act with equality.
Truth tables, equivalent 1. Show that a given logic statement is a tautology or a
statements, and contradiction.
Tautologies 2. Recognize different kinds of tautologies used.
The conditional and the 1. Write a conditional statement in if-then form.
biconditional 2. Write the negation, converse, inverse, and contrapositive of a
conditional statement and identify its truth value.
3. Write a biconditional statement.
The conditional and related 1. Write a conditional statement in if-then form.
statements 2. Write the negation, converse, inverse, and contrapositive of a
conditional statement and identify its truth value.
Symbolic Arguments 1. Write arguments in symbolic form.
2. Compare the form of the arguments with forms that are known
to be valid or invalid.
One of the first mathematicians to make a serious study of symbolic logic was Gottfried Wilhelm Leibniz
(1646-1716). Leibniz tried to advance the study of logic from a merely philosophical subject to a formal
mathematical subject. Leibniz never completely achieved this goal; however, several mathematicians,
such as Augustus De Morgan (1806-1871) and George Boole (1815-1864), contributed to the
advancement of symbolic logic as a mathematical discipline.
Logic Statements
Every language contains different types of sentences, such as statements, questions and commands. For
instance,
The symbolic logic that Boole was instrumental in creating applies only to sentences that are statements
which are defined below.
A statement is a declarative sentence that is either true or false, but not both true and false.
It may not be necessary to determine whether a sentence is true to determine whether it is a statement. For
instance, consider the following sentence.
You may not know if the sentence is true, but you do know that the sentence is either true or it is false,
and that it is not both true and false. Thus, you know that the sentence is a statement.
Examples
a. Florida is a state in the United States.
Florida is one of the 50 states in the United States, so this sentence is true and it is a statement.
b. How are you?
The sentence “How are you?” is a question; it is not a declarative sentence. Thus, it is not a
statement.
c. 99+2 is a prime number
You may not know whether 99+2 is a prime number, however, you do know that it is a whole
number larger than 1, so it is either a prime number or it is not a prime number. The sentence is
either true or it is false, and it is not both true and false, so it is a statement.
d. x+1=5.
x+1=5 is a statement. It is known as an open statement. It is true for x=4, and it is false for any
other values of x. For any given value of x, it is true or false but not both.
Connecting simple statements with words and phrases such as and, or if … then, and if and only if creates
a compound statement. For instance “I will attend the meeting or I will go to school.” is a compound
statement. It is composed of the two simple statements, “I will attend the meeting,” and “I will go to
school.” The word or is a connective for the two simple statements.
George Boole used symbols such as p, q, r and s to represent simple statements and symbols Λ, V, ~, →,
and ↔ to represent connectives.
Table A
The truth value of a simple statement is either true (T) or false (F).
The truth value of a compound statement depends on the truth values of its simple statements and its
connectives.
A truth table is a table that shows the truth value of a compound statement for all possible truth values of
its simple statements.
statements of the following. p: Ellie Goulding is an opera singer. q: The dog does not need to be fed. p →
q: If Ellie Goulding is an opera singer, then the dog does not need to be fed. q → p: If the dog does not
need to be fed, then Ellie Goulding is an opera singer.
Activity 2
A. Consider the following simple statements p: Today
is Friday.
q: It is raining.
r: I am going to a movie.
favored to win.
a. q Λ p
b. b. ~r Λ s
c. c. s ↔ ~p
a. e Λ ~t
b. a V ~t
c. e → t
d. t ↔ g
If a grouped statement is written as an English sentence, then a comma is used to indicate which simple
statements are grouped together. Statements on the same side of a comma are grouped together.
Table 3
English sentence The comma indicates that:
p, and q or not r. q and ~r are grouped together because they are both on the same side of the
comma.
p and q, or r. p and q are grouped together because they are both on the same side of the
comma.
If p and not q, then r p and ~q are grouped together because they are both to the left of the comma.
or s. r and s are grouped together because they are both to the right of the comma.
If a statement in symbolic form is written as an English sentence, then the simple statements that appear
together in the parentheses in the symbolic form will all be on the same side of the comma that appears in
the English sentence.
Examples
Let p, q and r represent the following.
Since the p and q statements both appear in parentheses in the symbolic form, they are placed to the left of
the comma in the English sentence.
b. Write “If you do not complete the training, then you will not get a promotion and you will not receive
a bonus” in symbolic form.
Since the not p and the not r statements are both to the right of the comma in the English sentence, they
are grouped together in parentheses in the symbolic form. Thus the translation is ~q → (~p Λ ~r)
Activity 3
Let p, q and r represent the following.
r: Kesha is a rapper.
In a statement, the words none, no, all and every are called universal quantifiers. The universal
quantifiers none and no deny the existence of something, whereas the universal quantifiers all and every
are used to assert that every element of a given set satisfies some condition.
Recall that the negation of a false statement is a true statement and the negation of a true statement is a
false statement. It is important to remember this fact when forming the negation of a quantified statement.
Example
For instance, what is the negation of the false statement, “All dogs are mean”? You may think that the
negation is “No dogs are mean” but this is also a false statement. Thus the negation of “All dogs are
mean” which is a false statement, is in fact “Some dogs are not mean” which is a true statement. The
statement “Some dogs are not mean” can also be stated as “At least one dog is not mean” or “There exists
a dog that is not mean”.
Table 4 illustrates how to write the negation of some quantified statements. Table 4
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.
Activity 4
Write the negation of each of the following quantified statements.
F T
F F F F F F
Example
Construct a table for ~(~p V q) V q.
1. Start with the standard truth table form and then include a ~p column.
p q ~p
T T F
T F F
F T T
F F T
2. Now use the truth values from the ~p and q columns to produce the truth values for ~p V q, as
shown in the rightmost column of the following table.
p q ~p ~p V q
T T F T
T F F F
F T T T
F F T T
4. As for our last step, we form the disjunction of ~p(~p V q) with q and place the results in the
rightmost column of the table. Hence, forming the truth table for ~(~pV q) V q.
p q ~p ~p V q ~(~p V q) ~(~p V q) V q
T T F T F T
T F F F T T
F T T T F T
F F T T F F
Activity 5
Construct a truth table for the following statement.
1. (p Λ ~q) V (~p V q)
2. (p V q) V q
3. ~(p → q) Λ q
If the given statement has n simple statements, then start with a standard form that has 2𝑛 rows. Enter the
truth values for each simple statement.
Example
Construct a truth table for (p Λ q) Λ (~r V q)
Compound statements that involve exactly three simple statements require a standard truth table form
with 23 =8 rows.
1. Start with the standard truth table form of the three simple statements and then include a p Λ q
column.
p q r pΛq
T T T T
T T F T
4. As for our last step, we form the conjunction of (p Λ q) with (~r V q) and place the results in the
rightmost column of the table. Hence, forming the truth table for (p Λ q) Λ (~r V q).
p q r pΛq ~r ~r V q (p Λ q) Λ (~r V q)
T T T T F T T
T T F T T T T
T F T F F F F
T F F F T T F
F T T F F T F
Activity 6
Construct a truth table for the following statement.
1. (p Λ ~r) V (~p V q)
2. (p V r) V q
3. ~(p → q) Λ r
4. (~p Λ r) V (q Λ ~r)
5. (~p Λ r) Λ (q V ~s)
p q r pΛq ~r ~r V q (p Λ q) Λ (~r V q)
T T T T F T T
T T F T T T T
T F T F F F F
T F F F T T F
F T T F F T F
F T F F T T F
F F T F F F F
F F F F T T F
Now that we have constructed the truth table of the statement (p Λ q) Λ (~r V q), we will now identify the
truth value of the given statement given that:
1. p V (~q V r)
2. r Λ ~(p V r)
3. (p Λ q) V ( ~p Λ ~q)
4. (~p Λ r) V (q Λ ~r)
5. ~(p → q) Λ r
Equivalent Statements
Two statements are equivalent if they both have the same truth value for all possible truth values of their
simple statements. Equivalent statements have identical truth values in the final columns of their truth
tables. The notation p ≡ q is used to indicate that the statements p and q are equivalent.
Example
Show that ~(p V ~q) and ~p Λ q are equivalents statements.
We would need to construct two truth tables and compare the results.
p q ~q p V ~q ~(p V ~q) p q ~p ~p Λ q
T T F T F T T F F
T F T T F T F F F
F T F F T F T T T
F F T T F F F T F
The truth tables below show that ~(p V ~q) and ~p Λ q have the same truth values for all possible truth
values of their simple statements. Thus the statements are equivalent.
Example
Show that p V (~p V q) is a tautology.
p q ~p ~p V q p V (~p V q)
T T F T T
The rightmost part of the table shows the truth value of the statement p V (~p V q). Since the truth value
of the statement shows that it is always true, then we could say that the statement p V (~p V q) is a
tautology.
Activity 8
A. Construct truth tables to prove if the two statements are equivalent or not.
1. p V (p Λ r) and p
2. q Λ (q V r) and q
3. p Λ (q V r) and (p Λ q) V (p Λ r)
B. Construct a truth table to prove if the statement is a tautology, a self-contradiction or none of the two.
1. p V ~p
2. p Λ (~p Λ q)
3. (p V q) V ( ~p V q)
4. ~r Λ r
5. (p Λ q) V ( ~p V ~q)
6. ~(p V ~p)
7. q V [ ~(q Λ r) Λ ~q]
Example
Write each of the following in “If p, then q” form.
The converse of p → q is q → p. The converse is formed by interchanging the antecedent p with the
consequent q.
The inverse of p → q is ~p → ~q. The inverse is formed by negating the antecedent p and negating the
consequent q.
The contrapositive of p → q is ~q → ~p. The contrapositive is formed by negating both the antecedent p
and the consequent q and interchanging these negated statements.
In Mathematics, it is often necessary to prove statements that are in “If p, then q” form. If a proof cannot
be readily produced, mathematicians often try to prove the contrapositive “If ~q then ~p” because a
conditional and its contrapositive are equivalent statements, a proof of either statement also establishes
the proof of the other statement.
Example
If I get the job, then I will rent the apartment.
Inverse: If I do not get the job, then I will not rent the apartment.
The table below shows that any conditional statement is equivalent to its contrapositive and that the
converse of a conditional statement is equivalent to the inverse of the conditional statement.
p q ~p ~q p→q q→p ~p → ~q ~q → ~p
T T F F T T T T
T F F T F T T F
F T T F T F F T
F F T T T T T T
Example
Determine whether the given statements are equivalent.
b. If two lines in a plane do not intersect, then the lines are parallel.
If two lines in a plane are not parallel, then the lines intersect.
Looking at the second statement, it is the contrapositive of the first statement. The statements are
equivalent because a conditional and a contrapositive statement both share the same truth values.
Activity 9
A. Write the converse, inverse, and contrapositive of the given statement.
1. If we will have a quiz today, then we will not have a quiz tomorrow.
2. If it is divisible by 2, then the number is an even number.
3. If today is Friday, then yesterday was Thursday.
4. Every odd prime number is greater than 2.
5. We can get a dog only if we install a fence around the backyard.
6. If 3 + x is an odd integer, then x is an even integer.
7. If two triangles are not similar triangles, then they are not congruent triangles.
8. If a geometric figure is not a rectangle, then it is not a square.
9. If a = b, then ac = bc
10. If I live in Nashville, then I live in Tennessee.
Symbolic Arguments
In this topic we consider methods of analyzing arguments to determine whether they are valid or invalid.
For instance, consider the following argument.
If Aristotle was human, then Aristotle was mortal. Aristotle was human. Therefore, Aristotle was mortal.
To determine whether the above argument is a valid argument, we must first define the terms argument
and valid argument.
An argument consists of a set of statements called premises and another statement called the conclusion.
An argument is valid if the conclusion is true whenever all the premises are assumed to be true. An
argument is invalid if it is not a valid argument.
In the argument about Aristotle, the two premises and the conclusion are shown below. It is customary to
place a horizontal line between the premises and the conclusion.
Arguments can be written in symbolic form. For instance, if we let h represent the statement “Aristotle
was human” and m represent the statement “Aristotle was mortal,” then the argument can be expressed as
h→m
The fish is fresh or I will not order it. The fish is fresh. Therefor I will order it.
Let f represent the statement “The fish is fresh.” Let o represent the statement “I will order it.” The
symbolic form of the argument is
fV~o
Activity 10
Write the following arguments in symbolic form.
1. If you can read this bumper sticker, you’re too close. You can read the bumper sticker. Therefore,
you’re too close.
2. If Lois Lane marries Clark Kent, then Superman will get a new uniform. Superman does not get a
uniform. Therefore, Lois Lane did not marry Clark Kent.
3. If the price of gold rises, the stock market will fall. The price of gold did not rise. Therefore, the
stock market did not fall.
4. I am going shopping or I am going to the museum. I went to the museum. Therefore, I did not go
shopping.
5. If we search the internet, we will find information on logic. We searched the internet. Therefore,
we found information on logic.
1. Once again we let h represent the statement “Aristotle was human” and m represent the statement
“Aristotle was mortal”. In symbolic form the argument is h → m
h
T F F T F
F T T F T
F F T F F
3. As shown, Row 1 is the only row in which all the premises are true, so it is the only row that we
will examine. The conclusion is true in row 1, the argument is valid.
If it rains, then the game will not be played. It is not raining. Therefore the game will be played.
1. If we let r represent “it rains” and g represent “the game will be played,” then the symbolic form
is r → ~g
~r
T F T F F
F T T T T
F F T T F
3. Since the conclusion in row 4 is false and the premises are both true, the argument is invalid.
t → ~m
T T T T F F
T T F T T T
T F T F T F
T F F F T T
3. The only rows in which both premises are true are rows 2, 6, 7, and 8. Since the conclusion is true
in each of these rows, the argument is valid.
Activity 11
Determine whether the following arguments are valid or invalid.
1. If you finish your homework, you may attend the reception. You did not finish your homework.
Therefore, you cannot go to the reception.
2. If I can’t buy the house, then at least I can dream about it. I can buy the house or at least I can
dream about it. Therefore, I can buy the house.
3. If the winds are far from the east, then we will not have a big surf. We do not have a big surf.
Therefore, the winds are from the east.
4. If I master college algebra, then I will be prepared for trigonometry. I am prepared for
trigonometry. Therefore, I mastered college algebra.
5. If it is a blot, then it is not a clot. If it is a zlot, then it is a clot. It is a blot. Therefore, it is not a
zlot.
6. If it is a dog then it has fleas. It has fleas. Therefore, it is a dog.
7. p V ~q 9. ~p Λ q
~q ~p
p q
8. (p → q) → (r → ~q) 10. p → ~q
p ~q
r p
Evaluation
A. Answer the following questions/problems. Describe your final answer in statements.
to Spain.
r: We go to Venice. s: We go
included.
1. Write p Λ ~q in a sentence and construct a truth table for the statement to determine the given
truth value if p is false and q is true.
2. Write r → ~s in a sentence and construct a truth table for the statement to determine the given
truth value if r and s are both true.
3. Write s ↔ ~r in a sentence and construct a truth table for the statement to determine the given
truth value if s is true and r is false.
4. Write r V s in a sentence and construct a truth table for the statement to determine the given truth
value if r and s are both false.
5. Write p → r in a sentence and construct a truth table for the statement to determine the given truth
value if p is true and r is false.
1. Write (p V r) Λ q in a sentence and construct a truth table for the statement to determine the given
truth value if all of the statements are true.
2. Write p → (q Λ ~r) in a sentence and construct a truth table for the statement to determine the
given truth value if p is false, q is true and r is false.
3. Write (r Λ p) ↔ q in a sentence and construct a truth table for the statement to determine the
given truth value if all of the statements are false.
4. Write t ↔ ( ~r Λ ~p) in a sentence and construct a truth table for the statement to determine the
given truth value if p is true, and both r and t are false.
Given p, q, r and s as defined below. Write the following sentences into its symbolic form. p: Stephen
1. Stephen Curry is a football player or a basketball player, and he is not a rock star,
2. Stephen Curry is a rock star, and he is not a basketball player or a football player.
3. If Stephen Curry is a basketball player and a rock star, then he is not a football player.
4. Stephen Curry is a basketball player, if and only if he is not a football player and not a rock star.
B. Construct two truth tables to prove if the two statements are equivalent or not.
1. m V (m Λ j) and m
2. t Λ (t V y) and t
3. s Λ (t V u) and (s Λ t) V (s Λ u)
C. Construct a truth table to prove if the statement is a tautology, a self-contradiction or none of the two.
1. q V ~q 5. (q Λ r) V ( ~q V ~r)
3. (q V r) V ( ~q V r) 7. r V [ ~(r Λ s) Λ ~r]
4. ~s Λ s
1. We will serve either fish or chicken for lunch. We did not serve fish for lunch. Therefore, we
served chicken for lunch.
2. If Mike is a CEO, then he will be able to afford to make a donation. If Mike can afford to make a
donation, then he loves to ski. Therefore, if Mike does not love to ski, he is not a CEO.
3. If we wish to win the lottery, we must buy a lottery ticket. We did not win the lottery. Therefore,
we did not buy a lottery ticket.
4. Robert can charge it on his Master Card or his Visa. Robert does not use his Master Card.
Therefore, Robert charged it to his Visa.
5. If we are going to have a Caesar salad, then we need to buy some eggs. We did not buy eggs.
Therefore, we are not going to have a Caesar salad.
6. If we serve lasagna, then Eva will not come to our dinner party. We did not serve lasagna.
Therefore, Eva came to our dinner party.
7. (p Λ ~q) Λ (~p → q) 9. p → ~q p q
~q ~p
8. p → ~r 10. (p V ~r) → (q Λ r)
~p → q rΛp
pΛq pVq
References
Cengage, (2018) Mathematics in the Modern World. pp. 163 – 225
Prepared by: