Professional Documents
Culture Documents
Prove: (pq) q pq
(pq) q
Left-Hand Statement
q (pq)
Commutative
(qp) (q q) Distributive
Why did we need this step?
Our logical equivalence specified that is distributive on the
right. This does not guarantee distribution on the left!
(pq) q
q (pq)
(qp) (q q)
(qp) T
qp
pq
Left-Hand Statement
Commutative
Distributive
Negation
Identity
Commutative
Prove: p q q p
pq
p q
q p
(q) p
q p
Contrapositive
Implication Equivalence
Commutative
Double Negation
Implication Equivalence
Prove: p p q is a tautology
Must show that the statement is true for any value of p and q.
ppq
p (p q)
Implication Equivalence
(p p) q
Associative
(p p) q
Commutative
Tq
Negation
qT
Commutative
T
Domination
This tautology is called the addition rule of inference.
Implication Equivalence
DeMorgans
Commutative
Associative
Commutative
Negation
Domination
Prove:p q p q
p q
(pq) (qp)
(pq) (qp)
(pq) (qp)
(qp) (pq)
(qp) (pq)
(qp) (pq)
p q
Biconditional Equivalence
Implication Equivalence (x2)
Double Negation
Commutative
Double Negation
Implication Equivalence (x2)
Biconditional Equivalence
Prove or Disprove
p q p q ???
To prove that something is not true it is
enough to provide one counter-example.
(Something that is true must be true in every
case.)
p q pq
pq
FT T
F
The statements are not logically equivalent
((pq)p) q
((pq) p) q
((pq) p) q
(pq) (pq)
(pq) (pq)
Implication Equivalence
DeMorgan
Double Negation
Associative
Commutative
Negation
Logical Operators
- Disjunction
- Conjunction
- Negation
- Implication
- Exclusive or
- Biconditional
pq = p q
(p q) (p q)
pq
(pq) (qp)
(p q) (q p)
Are (p(pq))
and (p q) equivalent?
(p(pq))
p (pq)
p (pq)
p (pq)
(pp)(p q)
(pp)(p q)
F (p q)
(p q) F
(p q)
DeMorgan
DeMorgan
Double Negation
Distribution
Commutative
Negation
Commutative
Identity
Functionally Complete
A set of logical operators is called
functionally complete if every compound
proposition is logically equivalent to a
compound proposition involving only these
logical operators.
, , and form a functionally complete
set of operators.
Are (p(pq))
and (p q) equivalent?
Even though both are expressed with only
, , and , it is still hard to tell without
doing a proof.
What we need is a unique representation of
a compound proposition that uses , , and
.
This unique representation is called the
Disjunctive Normal Form.
Example: DNF of pq is
(pq)(pq).
Truth Table
p
pq
(pq) (pq)
p q r
(p q)
r
(p q)r
T T T T
F
F
T T F T
T
T
T F T T
F
F
T F F T
T
T
F T T T
F
F
F T F T
T
T
F F T F
F
T
F F F F
T
T
From the truth table we can set up the DNF
(p q)r (pqr) (pqr)
(pqr) (pqr) (pqr)
pq
From Before
DeMorgan
Doub. Neg.
DeMorgan