MMW Logic
MMW Logic
MMW Logic
negation
All X are Y. Some X are not Y.
negation
No X are Y. Some X are Y.
Logic Statements
and Quantifiers
Write the negation of each of the following
statements.
a. Some airports are open.
b. All movies are worth the price of admission.
c. No odd numbers are divisible by 2.
Solution
a. No airports are open.
b. Some movies are not worth the price of
admission.
c. Some odd numbers are divisible by 2.
Construction of Truth Tables
1. 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 and their negations.
2. Use the truth values for each simple statement and their
Truth
negations to enter the truth values under each connective
within a pair of grouping symbols– parenthesis ( ), brackets
[ ], braces { }. If some grouping symbols are nested inside
Tables
other grouping symbols, then work from the inside out. In
any situation in which grouping symbols have not been used,
then we use the following order of precedence agreement.
First assign truth values to negations from left to right,
followed by conjunctions from left to right, followed by
disjunctions from left to right, followed by conditionals from left
to right, and finally by biconditionals from left to right.
3. The truth values that are entered into the column under the
connective for which truth values are assigned last from the
truth table for the given statement.
Construct a truth table for p ∨ [∼(p ∧ ∼q)].
Step 1: the given statement p ∨ [∼(p ∧ ∼q)] has the two simple
statements p and q. Thus we start with a standard form that has
22 = 4 rows. In each column, enter the truth values for the
Tables
Step 2: Use the truth values in columns 2 and 3 to determine the
truth values to enter under the “and” connective. See column 4
in the following truth table. Now negate the truth values in
Truth
column 4 to produce the truth values in column 5.
Tables
Step 3: Use the truth values in the columns 1 and 5 to determine
the truth values to enter under the “or” connective. See column
6 in the following table. Shaded column 6 is the truth table for p
Truth
∨ [∼(p ∧ ∼q)].
Tables
Two statements are equivalent if they both
Example
Statements Solution
Let p represent the statement “I graduated.” Let q
represent the statement “I got a job.” In symbolic form,
the original sentence is ∼(p ∨ q). One of De Morgan’s
laws states that this is equivalent to ∼p ∧ ∼q. Thus a
sentence that is equivalent to the original sentence is “I
did not graduate and I did not get a job.
A tautology is a statement that is always
Tautologies
true. A self-contradiction is a statement
that is always false.
and Self-
Contradictions Example
Show that p ∨ (∼p ∨∼q) is a tautology.
Solution
Enter the truth values for each simple statement and its
negation as shown in the columns numbered 1, 2, and 3. use
the truth values in columns 2 and 3 to determine the truth
Tautologies
values to enter in column 4, under the “or” connective. Use
the truth values in columns 1 and 4 to determine the truth
values to enter in column 5, under the “or” connective.
and Self-
Contradictions
The Conditional and the Biconditional
The Negation of p → q
∼(p → q) ≡ p∧ ∼ q
Write the negation of each conditional statement.
a. If they pay me the money, I will sign the contract.
b. If the lines are parallel, then they do not intersect.
Solution
In each case, we write the conjunction of the
antecedent and the negation of the consequent.
a. They paid me the money and I did not sign the
contract.
b. The lines are parallel and they intersect.
The Conditional and the Biconditional
The Biconditional of p ↔ q
p ↔ q ≡ [(p → q)] ∧ (q → p)]
The biconditional p ↔ q is true only when p and q have the same
truth value.
The Conditional and the Biconditional
The Biconditional of p ↔ q
Let p, q, and r represent the following:
p: She will go on vacation.
q: She cannot take the train.
r: She cannot get a loan.
Write the following symbolic statements in words:
a. p ↔ ∼q
b. ∼p↔ ∼q
Solution
a. She will go on vacation if and only if she
can take the train.
b. She can get a loan if and only if she does
not go on vacation.
The Conditional and
Related Statements
Equivalent Forms of the Conditional
The conditional “if p, then q” can be stated,
in English, in several equivalent forms. For
example, p only if q; p implies that q; and q
provided that p are all equivalent forms of if
p, then q.
The Conditional and
Related Statements
Equivalent Forms of the Conditional
Write each of the following in "If p, then q" form.
a. The number is an even number provided that it is
divisible by 2.
b. Today is Friday, only if yesterday was Thursday.
Solution
a. The statement, "The number is an even number provided that it
is divisible by 2," is in "q provided that p" form. The antecedent is
"it is divisible by 2," and the consequent is "the number is an even
number." Thus its "If p, then q" form is
If it is divisible by 2, then the number is an even number.
b. The statement, "Today is Friday, only if yesterday was
Thursday," is in "p only if q" form. The antecedent is "today is
Friday." The consequent is "yesterday was Thursday." Its "If p,
then q" form is
If today is Friday, then yesterday was Thursday.
The Conditional and
Related Statements
Statements Related to the Conditional Statement
• The converse of p → q is q → p.
• The inverse of p → q is ∼p → ∼q.
• The contrapositive of p → q is ∼q → ∼p.
Example
Write the converse, inverse, and contrapositive of
If I get the job, then I will rent the apartment.
Solution
Converse: If I rent the apartment, then I got the job.
Inverse: If I do not get the job, then I will not rent
the apartment.
Contrapositive: If I do not rent the apartment, then I
did not get the job.
The Conditional and
Related Statements
Determine whether the given statements are equivalent.
a. If a number ends with a 5, then the number is divisible by
5.
If a number is divisible by 5, then the number ends with a
5.
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.
Solution
a. The second statement is the converse of the first.
The statements are not equivalent.
b. The second statement is the contrapositive of the
first. The statements are equivalent.
The Conditional and
Related Statements
Solution
∴g
The truth table for this argument follows.
Symbolic Arguments
Determine whether the ff. argument is valid or
invalid.
If I am going to run the marathon, then I am going
to buy new shoes.
If I buy new shoes, then I will not buy a television.
_______________________________________________________
∴ If I buy a television, I will not run the marathon.
Label each simple statement.
m: I am going to run the marathon.
s: I will buy new shoes.
t: I will buy a television.
Solution
The symbolic form of the argument is
m→s
s→∼t
______
∴ t → ∼m
The truth table for this argument follows.
Solution
Symbolic Forms of Arguments
Standard Forms of Four Valid Arguments
Symbolic Forms of Arguments
Standard Forms of Two Invalid Arguments
Symbolic Forms
of Arguments
Example
Use a standard form from Table 5.15 to determine a valid conclusion for
each argument.
a. If Kim is a lawyer (p), then she will be able to help us (q).
Kim is not able to help us. (∼q).
_______________________________________________
∴?
b. If they had a good time (g), they will return (r).
If they return (r), we will make more money (m).
________________________________________
∴?
a. The symbolic form of the premises is:
p→q
~q
This matches the standard form known as contrapositive
Solution
reasoning. Thus a valid conclusion is ~p: “Kim is not a lawyer.”
b. The symbolic form of the premises is:
g→r
r→m
This matches the standard form known as transitive reasoning.
Thus a valid conclusion is g → m: “If they had a good time, then
we will make more money.”
Symbolic Forms
of Arguments
Example
Use a standard form from Table 5.15 to determine a valid conclusion for
each argument.
a. If Kim is a lawyer (p), then she will be able to help us (q).
Kim is not able to help us. (∼q).
_______________________________________________
∴?
b. If they had a good time (g), they will return (r).
If they return (r), we will make more money (m).
________________________________________
∴?
Solution
Symbolic Forms
of Arguments
Determine whether the following argument is valid.
If the movie was directed by Steven Spielberg (s),
then I want to see it (w). The movie's production
costs must exceed $50 million (c) or I do not want
to see it. The movie's production costs were less
than $50 million. Therefore, the movie was not
directed by Steven Spielberg.
Solution
Arguments
and Euler
Diagrams
Euler Diagrams
Example
Use a Euler diagram to determine whether
the ff. argument is valid or invalid.
All college courses are fun.
This course is a college course.
_________________________
∴ This course is fun.
Solution
Example
Use a Euler diagram to determine whether the ff.
argument is valid or invalid.
Some Impressionist paintings are Renoirs.
Dance at Bougival is an Impressionist
painting.
______________________________________
∴ Dance at Bougival is a Renoir.
Solution