CSCE 222 Lecture 6

From Notes
Jump to navigation Jump to search

« previous | Monday, January 31, 2011 | next »


Tautology

A proposition p is called a tautology iff v[[p]] = T for all evalaluations

Example

Show that (a → b) ↔ (¬a ∨ b) is a tautology:

a b a → b ¬a ∨ b (a → b) ↔ (¬a ∨ b)
F F T T T
F T T T T
T F F F T
T T T T T

Since all cells under (a → b) &harr (¬a ∨ b) are true, it is a tautology


Satisfiability

Satisfiable
at least one valuation is true
Unsatisfiable
not satisfiable; none evaluate to true'

Example

We claim that (a ⊕ b) → ¬(a ∨ b) is satisfiable:

(a ⊕ b) is false when both are the same, and when the left side of a conditional is false, it evaluates to true


Logical Equivalence

Two formulas are logically equivalent iff they return the same value for all input valuations

We write p≡q iff the propositions are logically equivalent

Study Tables 6-8:

Table 6: Logical Equivalences
Equivalence Name
p∧𝐓≡p
p∨𝐅≡p
Identity laws
p∨𝐓≡𝐓
p∧𝐅≡𝐅
Domination laws
p∨p≡p
p∧p≡p
Idempotent laws
¬(¬p)≡p Double negation laws
p∨q≡q∨p
p∧q≡q∧p
Commutative laws
(p∨q)∨r≡p∨(q∨r)
(p∧q)∧r≡p∧(q∧r)
Associative laws
p∨(q∧r)≡(p∨q)∧(p∨r)
p∧(q∨r)≡(p∧q)∨(p∧r)
Distributive laws
¬(p∧q)≡¬p∨¬q
¬(p∨q)≡¬p∧¬q
De Morgan's laws
p∨(p∧q)≡p
p∧(p∨q)≡p
Absorption laws
p∨¬p≡𝐓
p∧¬p≡𝐅
Negation laws
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→r)∧(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
Table 8: Logical Equivalences Involving Biconditionals
p↔q≡(p→q)∧(q→p)
p↔q≡¬p↔¬q
p↔q≡(p∧q)∨(¬p∧¬q)
¬(p↔q)≡p↔¬q