DHARM
122 MATHEMATICAL FOUNDATION OF COMPUTER SCIENCE
to solve the problem. Hence, we have another 10 rules. These rules are called rules of replace-
ment that are listed in Fig. 5.25.
II. Rules of Replacement
Rule 1. De Morgan’s (DeM) Rule 2. Commutation (Comm)
(i) ~ (P ∨ Q) ⇔ ~P ∧ ~ Q, (i) (P ∨ Q) ⇔ Q ∨ P
(ii) ~ (P ∧ Q) ⇔ ~P ∨ ~ Q (ii) (P ∧ Q) ⇔ Q ∧ P
Rule 3. Association (Assoc) Rule 4. Distribution (Dist)
(i) (P ∨ Q) ∨ R ⇔ P ∨ (Q ∨ R) (i)P ∧ (Q ∨ R) ⇔ (P ∧ Q) ∨ (P ∧ R)
(ii)(P∧ Q) ∧ R ⇔ P ∧ (Q ∧ R) (ii)P ∨ (Q ∧ R) ⇔ (P ∨ Q) ∧ (P ∨ R)
Rule 5. Double Negation (DN) Rule 6. Transportation (Trans)
~ ~ P ⇔ PP → Q ⇔ ~ Q → ~ P
Rule 7. Material Implication (Imp) Rule 8. Explanation (Exp)
P → Q ⇔ ~ P ∨ Q (P ∧ Q) → R ⇔ P → (Q → R)
Rule 9. Tautology (Taut) Rule 10. Equivalence (Equiv)
(i)P ⇔ P ∧ P (P → Q) ∧ (Q → P) ⇔ (P ∧ Q) ∨ (~P ∧ ~ Q)
(ii)P ⇔ P ∨ P
Fig. 5.25
The major difference between rules of inference and the rules of replacement is that, rules
are inference applies over full line but rules of replacement apply on part of line also.
Now attempt the problem of example 5.17 and solve.
- A ∧ B/∴ B
(Apply rules of inference and rules of
replacement whenever required and obtain
new premises until we reach to conclusion) - B ∧ A 1, Comm
- B 2, Simp
Thus, we obtain the required conclusion, hence deduction stop.
Example 5.18. Verify the argument
- (A ∨ B) → (C ∧ D)
- ~ C / ∴ ~ B
(Apply rules of inference and rules of replacement
whenever required and obtain new premises until
we reach to conclusion) - ~ C ∨ ~ D 2, Add
- ~ (C ∧ D) 3, DeM
- ~ (A ∨ B) 1 & 4, MT
- ~ A ∧ ~ B 5, DeM
- ~B ∧ ~ A 6, Comm
- ~ B 7, Simp