Propositional Equivalences: Presenter Yukun Wang Computer Science and Technology
Propositional Equivalences: Presenter Yukun Wang Computer Science and Technology
E q u i v a l e n c e s
P r e s e n t e r : Yu k u n Wa n g
C o m p u t e r s c i e n c e a n d Te c h n o l o g y
1
Introduction
Introduction
An important type of step used in a mathematical argument is the replacement of a
statement with another statement with the same truth value. Because of this,
methods that produce propositions with the same truth value as a given compound
proposition are used extensively in the construction of mathematical arguments.
p ¬p p ∨ ¬p p ∧ ¬p
T F T F
F T T F
Basic equivalence
Definition 2
•The compound propositions p and q are called logically equivalent if p q is a
tautology.
¬(p q) ≡ ¬p ¬q
¬(p q) ≡ ¬p ¬q
De Morgan laws
Solution:
•The truth tables for these compound propositions are displayed in Table 3
Solution:
•We construct the truth table for these compound propositions in Table 4. Because
the truth values of ¬p q and p → q agree, they are logically equivalent.
Logical Equivalences
We will now establish a logical equivalence of two compound propositions involving
three different propositional variables p, q, and r.
Solution:
•We construct the truth table for these compound propositions in Table 5.
Logical Equivalences
We also display some useful equivalences for compound propositions involving
conditional statements and biconditional statements in Tables 7 and 8, respectively.
Logical Equivalences
TABLE 7 Logical Equivalences Involving Conditional
Statements.
p → q ≡ ¬p q
p → q ≡ ¬q → ¬p
p q ≡ ¬p → q
p q ≡ ¬(p → ¬q)
¬(p → q) ≡ p ¬q
(p → q) (p → r) ≡ p → (q r)
(p → r) (q → r) ≡ (p q) → r
(p → q) (p → r) ≡ p → (q r)
(p → r) (q → r) ≡ (p q) → r
Equivalence caculus
(p → r) (q → r) ≡ (p q) → r
Open Question Points: 10
(p → r) (q → r) ≡ (p q) → r
Answer
Logical Equivalences
p q ≡ ¬p ¬q
p q ≡ (p q) (¬p ¬q)
¬(p q) ≡ p ¬q
Logical Equivalences
Furthermore, note that De Morgan’s laws extend to
A truth table with 2n rows is needed to prove the equivalence of two compound
propositions in n variables.Because 2n grows extremely rapidly as n increases, the
use of truth tables to establishe quivalences becomes impractical as the number of
variables grows.
Using De Morgan’s Laws
Solution:
•Let r be “Heather will go to the concert” and s be “Steve will go to the concert.”
Then “Heather will go to the concert or Steve will go to the concert” can be
represented by r s. By the second of De Morgan’s laws, ¬(r s) is equivalent to ¬r
¬s. Consequently, we can express the negation of our original statement as
“Heather will not go to the concert and Steve will not go to the concert.”
3
New Logical Equivalences
Constructing New Logical Equivalences
The logical equivalences in Table 6, as well as any others that have been established
(such as those shown in Tables 7 and 8), can be used to construct additional logical
equivalences.
The reason for this is that a proposition in a compound proposition can be replaced
by a compound proposition that is logically equivalent to it without changing the
truth value of the original compound proposition.
Constructing New Logical Equivalences
Example 6: Show that ¬(p (¬p q)) and ¬p ¬q are logically equivalent by
developing a series of logical equivalences.
Solution:
•We will use one of the equivalences in Table 6 at a time, starting with ¬(p (¬p
q)) and ending with ¬p ¬q. (Note: we could also easily establish this equivalence
using a truth table.) We have the following equivalences:
Constructing New Logical Equivalences
Exersice 1: Show that ¬(p (¬p q)) and ¬p ¬q are logically equivalent by
developing a series of logicalequivalences.
Solution:
Constructing New Logical Equivalences
Definition:
Suppose that a truth table in n propositional variables is specified. Show that a
compound proposition with this truth table can be formed by taking the disjunction
of conjunctions of the variables or their negations, with one conjunction included
for each combination of values for which the compound proposition is true. The
resulting
compound proposition is said to be in disjunctive normal form.
Theorem:
Each compound proposition has a disjunctive normal form.
Example 1:
The normal form of (pq)q
(pq)q
(pq)q
pqq
0 disjunctive normal form
Normal form
Theorem:
Each compound proposition has a disjunctive normal form.
Example 2:
The normal form of (pq)p
(pq)p
(pq)p
p(pq)
(pT)(pq)
(p(qq))(pq)
(pq)(pq)(pq) (pq)(pq)
m0 m1
Normal form
Theorem:
Each compound proposition has a disjunctive normal form.
Example 3:
The normal form of (pq)(qp)
(pq)(qp)
(pq)(qp)
(pq)(qp)
(pq)(pq)(pq)(pq)
m2 m1 m3 m0
m0 m1 m2 m3
Normal form
Theorem:
Each compound proposition has a disjunctive normal form.
Exercises 1:
The normal form of (pq)r conjunctions of the variables or their negations
form truth code
assignment
(pq)r p q r 0 0 0 m0
(pq)r p q r 0 0 1 m1
p q r 0 1 0 m2
(pq(rr))((pp)r) p q r 0 1 1 m3
(pqr)(pqr)(p(qq)r) p q r 1 0 0 m4
(p(qq)r) p q r 1 0 1 m5
p q r 1 1 0 m6
(pqr)(pqr)(pqr)(pq p q r 1 1 1 m7
r)(pqr) (pqr)
m0m1m3 m5m7
Normal form
Theorem:
Each compound proposition has a disjunctive normal form.
reason:
Definition:
Suppose that a truth table in n propositional variables is specified. Show that a
compound proposition with this truth table can be formed by taking the conjunction
of disjunctions of the variables or their negations, with one disjunction included for
each combination of values for which the compound proposition is false. The
resulting
compound proposition is said to be in conjunctive normal form.
x
y x y
4
Satisfiability
Satisfiability
Solution:
•Instead of using a truth table to solve this problem, we will reason about truth
values.
•Note that (p ¬q) (q ¬r) (r ¬p) is true when the three variables p, q, and r
have the same truth value. Hence, it is satisfiable as there is at least one assignment
of truth values for p, q, and r that makes it true.The second empathy.
•Finally, note that for (p ¬q) (q ¬r) (r ¬p) (p q r) (¬p ¬q ¬r) to
be true, (p ¬q) (q ¬r) (r ¬p) and (p q r) (¬p ¬q ¬r) must both be
true. For the first to be true, the three variables must have the same truth values, and
for the sec_x0002_ond to be true, at least one of the three variables must be true and
at least one must be false. However, these conditions are contradictory.
Applications of Satisfiability
Although most applications are quite complex and beyond the scope of our class.In
this section, two puzzles are chosen: the n-queens problem and Sudoku. If you are
interested, please read Section 1.3.6 of the book Discrete Mathematics and Its
Applications.
Solving Satisfiability Problems
For instance, there are 220 = 1,048,576 rows in the truth table for a compound
proposition with 20 variables. Thus, you need a computer to help you determine, in
this way, whether a compound proposition in 20 variables is satisfiable.
5
Exercises
Homwork 四