Propositional Equivalence
Propositional Equivalence
Propositional Equivalence
• A compound proposition that is always true, no matter what the truth values of the
propositional variables that occur in it, is called a tautology.
p ∨ ¬p is a tautology.
p ¬p p ∨ ¬p
T F T
F T T
p ∧ ¬p is a contradiction.
P ¬p p ∧ ¬p
T F F
F T F
p ∨ q is a contingency.
p q p∨q
T T T
T F T
F T T
F F F
p q p∨q ¬(p ∨ q) ¬p ¬q ¬p ∧ ¬q
T T T F F F F
T F T F F T F
F T T F T F F
F F F T T T T
• The truth values of the compound propositions ¬(p ∨ q) and ¬p ∧ ¬q agree for all
possible combinations.
• They are logically equivalent.
University of Khartoum | Faculty of Mathematical Sciences and Informatics | C2023 5
Logical Equivalence
p q ¬p p∨q ¬p ∨ q p→q
T T F T T T
T F F T F F
F T T T T T
F F T F T T
• The truth values of the compound propositions ¬p ∨ q and p → q agree for all possible
combinations.
• They are logically equivalent.
University of Khartoum | Faculty of Mathematical Sciences and Informatics | C2023 6
Logical Equivalence Laws
Equivalence Name (p ∨ q) ∨ r ≡ p ∨ (q ∨ r)
Associative
p∧T≡p (p ∧ q) ∧ r ≡ p ∧ (q ∧ r)
Identity
p∨F≡p
p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
p∨T≡T Distributive
Domination p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
p∧F≡F
p∨p≡p ¬(p ∧ q) ≡ ¬p ∨ ¬q
Idempotent De Morgan
p∧p≡p ¬(p ∨ q) ≡ ¬p ∧ ¬q
¬(¬p) ≡ p Double negation p ∨ (p ∧ q) ≡ p
Absorption
p ∧ (p ∨ q) ≡ p
p∨q≡q∨p
Commutative p ∨ ¬p ≡ T
p∧q≡q∧p Negation
p ∧ ¬p ≡ F
Implications Equivalences
p → q ≡ ¬p ∨ q
p → q ≡ ¬q → ¬p
p ↔ q ≡ (p → q) ∧ (q → p)
Solution:
Example 5: Show that ¬(p ∨ (¬p ∧ q)) and ¬p ∧ ¬q are logically equivalent
Solution:
¬(p ∨ (¬p ∧ q)) ≡ ¬p ∧ ¬(¬p ∧ q) by the second De Morgan law
≡ ¬p ∧ [¬(¬p) ∨ ¬q] by the first De Morgan law
≡ ¬p ∧ (p ∨ ¬q) by the double negation law
≡ (¬p ∧ p) ∨ (¬p ∧ ¬q) by the second distributive law
≡ F ∨ (¬p ∧ ¬q) because ¬p ∧ p ≡ F
≡ (¬p ∧ ¬q) ∨ F by the commutative law for disjunction
≡ ¬p ∧ ¬q by the identity law for F
Solution:
(p ∧ q) → p ≡ ¬(p ∧ q) ∨ p by the conditional-disjunction equivalence
Example 7:
Define the proposition p NOR q denoted by p ↓ q to be true when both p and q are
false, and false otherwise.
Solution:
• Construct a truth table for p ↓ q
p q p↓q
T T F
T F F
F T F
F F T
(p ↓ p) ≡ ¬(p ∨ p) by definition of ↓
≡ ¬p by idempotent law
Example 8:
• Show that (p ↓ q) ↓ (p ↓ q) is logically equivalent to p ∨ q.
• Find a compound proposition logically equivalent to p → q using only the logical
operator ↓.
Solution:
≡ ¬ ( ¬p ↓ q) by the definition of ↓
• When no such assignments exists, that is, when the compound proposition is false
for all assignments of truth values to its variables, the compound proposition is
unsatisfiable.
• When we find a particular assignment of truth values that makes a compound
proposition true, we have shown that it is satisfiable; such an assignment is called a
solution of this particular satisfiability problem.
Solution:
The implication is true when the premise is false, so when p is false, the implication
p →(p ∨ q) is true, so the compound proposition is satisfiable.
Solution:
Since ¬ p → ¬ q is the contrapositive of q → p, the compound proposition is
equivalent to (q → p) ↔ (q → p) , which is a tautology because the two parts of the
bi-conditional implication are identical and have the same truth value.
• We’ll look at two such normal forms, called conjunctive normal form (CNF) and
disjunctive normal form (DNF).
• “Normal form” means that the formula is formatted according to a certain rule or
“norm.”
( □ ∧ □ ∧ … ∧ □ ) ∨ ( □ ∧ □ ∧ … ∧ □) ∨ … ∨ (□ ∧ □ ∧ … ∧ □ )
• Each □ is a literal.
• It’s an ORs of ANDs
Example 11:
• The proposition (p ∧ q) ∨ (¬p ∧ ¬q) is in the disjunctive normal form.
• While proposition (¬p ∧ (q ∨ r) ) ∨ (p ∧ ¬q) is not in the conjunctive normal form.
Example 12:
• Give a proposition in disjunctive normal form equivalent to (¬p ∧ q) → ¬p
Solution:
(¬p ∧ q ) → ¬p ≡ ¬( ¬p ∧ q ) ∨ ¬p by the conditional-disjunction equivalence
≡ (¬ ¬ p ∨ ¬ q) ∨ ¬ p by De Morgan’s law
≡ ( p ∨ ¬ q) ∨ ¬ p by the double negation law
≡ p∨¬q∨¬p by the associative law
The proposition p ∨ ¬ q ∨ ¬ p is in DNF.
Example:
Convert p → (q ∧ r) to DNF.
Solution: p q r q∧r p → (q ∧ r)
• We first start by constructing a truth table T T T T T p∧q∧r
for the compound proposition. T T F F F
• We then identify the rows wherein the T F T F F
compound proposition is true. T F F F F
• We conjunct the propositional variables F T T T T ¬p ∧ q ∧ r
in each true row. F T F F T ¬p ∧ q ∧ ¬r
• We disjunct all the conjuncts we formed F F T F T ¬p ∧ ¬q ∧ r
( □ ∨ □ ∨ … ∨ □ ) ∧ (□ ∨ □ ∨ … ∨ □ ) ∧ … ∧ (□∨□ ∨ …∨□)
• Each □ is a literal.
• It’s an ANDs of ORs!
Example:
Give a proposition in conjunctive normal form that is logically equivalent to
p↔q
Solution:
p ↔ q ≡ (p → q) ∧ (q → p)
≡ (¬p ∨ q) ∧ (¬q ∨ p)
Example: