Professional Documents
Culture Documents
1
Prove: (p∧q) → p is a tautology Prove or Disprove
p → q ⇔ p ∧ ¬q ???
(p∧q) → p
⇔ ¬(p∧q) ∨ p Implication Equivalence
To prove that something is not true it is
⇔ (¬p∨¬q) ∨ p DeMorgan’s
enough to provide one counter-example.
(Something that is true must be true in every
⇔ (¬q∨¬p) ∨ p Commutative
case.)
⇔ ¬q∨ (¬p ∨ p) Associative
⇔ ¬q∨ (p ∨ ¬p) Commutative
p q p→q p∧¬q
⇔ ¬q∨ T Negation FT T F
⇔ T Domination The statements are not logically equivalent
2
Logical Operators Functionally Complete
∨ - Disjunction Do we need all these? • A set of logical operators is called
∧ - Conjunction functionally complete if every compound
¬ - Negation proposition is logically equivalent to a
→ - Implication p→q = ¬p ∨ q compound proposition involving only these
⊕ - Exclusive or (p ∧ ¬q) ∨ (¬p ∧ q) logical operators.
↔ - Biconditional p↔q⇔ • ∧, ∨, and ¬ form a functionally complete
(p→q) ∧ (q→p) ⇔ set of operators.
(¬p ∨ q) ∧ (¬q ∨ p)
Are ¬(p∨(¬p∧q))
Are ¬(p∨(¬p∧q))
and (¬p ∧ ¬q) equivalent?
¬(p∨(¬p∧q))
and (¬p ∧ ¬q) equivalent?
⇔ ¬p ∧ ¬(¬p∧q) DeMorgan • Even though both are expressed with only
⇔ ¬p ∧ (¬¬p∨¬q) DeMorgan ∧, ∨, and ¬, it is still hard to tell without
⇔ ¬p ∧ (p∨¬q) Double Negation doing a proof.
⇔ (¬p∧p)∨(¬p ∧¬q) Distribution • What we need is a unique representation of
⇔ (p∧¬p)∨(¬p ∧¬q) Commutative a compound proposition that uses ∧, ∨, and
⇔ F ∨(¬p ∧¬q) Negation ¬.
⇔ (¬p ∧¬q) ∨ F Commutative
• This unique representation is called the
⇔ (¬p ∧¬q) Identity
Disjunctive Normal Form.
3
How to find the DNF of (p ∨ q)→¬r
Method to construct DNF p q r (p ∨ q)
¬r (p ∨ q)→¬r
• Construct a truth table for the proposition. T T T T F F
T T F T T T
• Use the rows of the truth table where the
T F T T F F
proposition is True to construct minterms T F F T T T
– If a variable is false, use the negation of the F T T T F F
variable in the minterm F T F T T T
– If the variable is true, use the propositional F F T F F T
variable in the minterm F F F F T T
• Connect the minterms with ∨’s. There are five sets of input that make the statement
true. Therefore there are five minterms.
p q r (p ∨ q)
¬r (p ∨ q)→¬r
T T T T F F
Can we show that just ¬ and ∧ form a set
T T F T T T of functionally complete operands?
T F T T F F
Use DeMorgan’s Laws on the DNF.
T F F T T T
Example:
F T T T F F
(p ∨ q)→¬r
F T F T T T
⇔ (p∧q∧¬r) ∨ (p∧¬q∧¬r) ∨ (¬p∧q∧¬r) ∨
F F T F F T (¬p∧¬q∧r) ∨ (¬p∧¬q∧¬r) DNF
F F F F T T ⇔ ¬ ¬[ (p∧q∧¬r) ∨ (p∧¬q∧¬r) ∨ (¬p∧q∧¬r) ∨
From the truth table we can set up the DNF (¬p∧¬q∧r) ∨ (¬p∧¬q∧¬r)] Double Neg
(p ∨ q)→¬r ⇔ (p∧q∧¬r) ∨ (p∧¬q∧¬r) ∨ ⇔ ¬[¬(p∧q∧¬r) ∧ ¬(p∧¬q∧¬r) ∧ ¬(¬p∧q∧¬r) ∧
(¬p∧q∧¬r) ∨ (¬p∧¬q∧r) ∨ (¬p∧¬q∧¬r) ¬(¬p∧¬q∧r) ∧ ¬(¬p∧¬q∧¬r)] DeMorgan