Discrete Maths
Discrete Maths
Discrete Mathematics
MATH-161
Lecture # 6
2
Logical Equivalence
Definition
Two proposition form are called logically equivalent if
and only if they have identical truth values for each
possible substitution of propositions for their
proposition variable.
3
Equivalence of Two Compound
Propositions p and q
4
Equivalence Check
5
Example
Solution
p ¬p ¬ (¬p)
T F T
F T F
6
Example
Show that the proposition forms ¬(pq) and ¬p ¬q are
NOT logically equivalent.
7
De Morgan’s laws
De Morgan’s laws state that:
The negation of an and proposition is
logically equivalent to the or proposition in
which each component is negated.
8
De Morgan’s laws
De Morgan’s laws state that:
The negation of an and proposition is
logically equivalent to the or proposition in
which each component is negated.
9
Symbolically (De Morgan’s Laws)
1. ¬(pq) ≡ ¬p¬q
2. ¬(pq) ≡ ¬p¬q
10
Applying De-Morgan’s Law
Question: Negate the following compound Propositions
11
Inequalities and De Morgan’s Laws
-1< x 4
Solution: The given proposition is equivalent to
-1 < x and x 4,
By De Morgan’s laws, the negation is
-1 ≥ x or x > 4. 12
Laws of Logic
1. Commutative laws
pq ≡ qp ; pq ≡ qp
2. Associative laws
p (q r) ≡ (p q) r ; p(q r) ≡ (pq)r
3. Distributive laws
p (q r ) ≡ (p q) (p r)
p (q r) ≡ (p q) (p r)
13
Laws of Logic
4. Identity laws
p t ≡ p ; pc ≡ p
5. Negation laws
p¬p ≡ t ; p ¬p ≡ c
7. Idempotent laws
p p ≡ p ; pp ≡ p
14
Laws of Logic
9. Absorption laws
p (pq) ≡ p ; p (p q) ≡ p
15
Logical Equivalences involving →
• 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
16
Logical Equivalences involving ↔
• p ↔ q ≡ (p → q) ∧ (q → p)
• p ↔ q ≡ ¬p ↔ ¬q
• p ↔ q ≡ (p ∧ q) ∨ (¬p ∧ ¬q)
• ¬(p ↔ q) ≡ p ↔ ¬q
17
Exercise
19
Try as much as you can from…