Logical Form and Logical Equivalence
Logical Form and Logical Equivalence
THE LOGIC OF
COMPOUND
STATEMENTS
5
Statements
In logic, the words sentence, true, and false are the initial
undefined terms.
8
Compound Statements
9
Compound Statements
We now introduce three symbols that are used to build more
complicated logical expressions out of simpler ones.
Given a statement p,
the sentence “~p” is read “not p” or “It is not the case that p”
and is called the negation of p.
In some computer languages the symbol is used in place of
~.
10
Compound Statements
Given another statement q,
the sentence “p q” is read “p and q” and is called
the conjunction of p and q.
11
Compound Statements
In logical expressions, as in ordinary algebraic expressions,
the order of operations can be overridden through the use
of parentheses.
Solution:
a. The given sentence is equivalent to “It is not hot and it is
sunny,” which can be written symbolically as ~h s.
14
Truth Values
The negation of a statement is a statement that exactly
expresses what it would mean for the statement to be false.
16
Truth Values
18
Evaluating the Truth of More General Compound
Statements
19
Evaluating the Truth of More General Compound Statements
21
Example 4 – Truth Table for Exclusive Or
22
Example 4 – Solution
Set up columns labeled p, q, p q, p q, ~(p q), and
(p q) ~(p q).
26
Logical Equivalence
The statements
28
Logical Equivalence
The table shows that for each combination of truth values
for p and q, p q is true when, and only when, q p is
true.
29
Logical Equivalence
30
Logical Equivalence
2. Check each combination of truth values of the statement
variables to see whether the truth value of P is the same
as the truth value of Q.
31
Example 6 – Double Negative Property: ∼(∼p) ≡
p
Construct a truth table to show that the negation of the
negation of a statement is logically equivalent to the
statement, annotating the table with a sentence of
explanation.
Solution:
32
Logical Equivalence
There are two ways to show that statement forms P and Q
are not logically equivalent. As indicated previously, one is
to use a truth table to find rows for which their truth values
differ.
33
Example 7 – Showing Nonequivalence
Show that the statement forms ~(p q) and ~p ~q are not
logically equivalent.
Solution:
a. This method uses a truth table annotated with a sentence
of explanation.
34
Example 7 – Solution cont’d
Then
which is true.
which is false. 35
Example 7 – Solution cont’d
36
Logical Equivalence
The two logical equivalences are known as De Morgan’s
laws of logic in honor of Augustus De Morgan, who was
the first to state them in formal mathematical terms.
37
Logical Equivalence
Symbolically we can represent the two logic equivalences
as:
and
38
Example 9 – Applying De Morgan’s Laws
Solution:
a. John is not 6 feet tall or he weighs less than 200 pounds.
b. The bus was not late and Tom’s watch was not slow.
40
Example 11 – A Cautionary Example cont’d
When it is so written, another way to negate it is
~(p): Jim is not tall and thin.
41
Example 11 – A Cautionary Example cont’d
One lesson to be learned from this example is that when
you apply De Morgan’s laws, you must have complete
statements on either side of each and and on either side of
each or.
42
Tautologies and Contradictions
43
Tautologies and Contradictions
44
Example 13 – Logical Equivalence Involving Tautologies and Contradictions
Solution:
45
Summary of Logical Equivalences
46
Summary of Logical Equivalences
Knowledge of logically equivalent statements is very useful
for constructing arguments.
47
Summary of Logical Equivalences
A number of logical equivalences are summarized in
Theorem 2.1.1 for future reference.
48
Example 14 – Simplifying Statement Forms
Solution:
Use the laws of Theorem 2.1.1 to replace sections of the
statement form on the left by logically equivalent
expressions.
49
Example 14 – Solution cont’d
50