Mathematical Foundation of Computer Science

(Chris Devlin) #1
DHARM

PROPOSITIONAL LOGIC 127

Sol.
Assume, S : Stephen loves Joyce
M : Matrye is happy
P : parents are happy
L : Shalezi will be happy
J : Stephen marries with Joyce
Then, symbolic representations of the statements are,


  1. S ∧ (~ M ∧ P)

  2. J → (L ∧ M)

  3. S → J

  4. S → (L ∧ M) 3 & 2, HS

  5. ~ S ∨ (L ∧ M) 4, Imp

  6. (~ S ∨ L) ∧ (~ S ∨ M) 5, Dist

  7. (~ S ∨ M) ∧ (~ S ∨ L) 6, Comm

  8. (~ S ∨ M) 7, Simp

  9. ~ (S ∧ ~ M) 8, DeM

  10. (S ∧ ~ M) ∧ P 1, Assoc

  11. (S ∧ ~ M) 10, Simp

  12. (S ∧ ~ M) ∧ ~ (S ∧ ~ M) 11 & 9, Add
    Since we obtain a contradiction therefore given statements are inconsistent.
    Example 5.25. Prove that the formula B ∨ (B → C) is a tautology.
    Sol. Apply method of contradiction and assume that negation of formula is true. Thus,
    We have
    /∴ B ∨ (B → C)

  13. ~ (B ∨ (B → C)) IP (Indirect proof)

  14. ~ B ∧ ~ (B → C) 1, DeM

  15. ~ B 2, Simp

  16. ~ (B → C) ∧ ~ B 2, Comm

  17. ~ (B → C) 4, Simp

  18. ~ ( ~ B ∨ C) 5, Imp

  19. ~ ~ B ∧ ~ C 6, DeM

  20. ~ ~ B 7, Simp

  21. ~ ~ B ∧ ~ B 9 & 3, Conj/Add
    Since, we get a contradiction hence deduction process stops. Hence the assumption ne-
    gation of conclusion is false. Therefore, Formula is true or tautology.
    Example 5.26. Prove that
    /∴ ((A → B) ∧ (B → C)) → (A → C) is a tautology.
    Sol. Since formula is of implication form, hence we use method of conditional proof. So
    we shall include antecedent part as an additional premise and (A → C) is the only conclusion.
    Still we have the conclusion is of implicative type so apply again method of conditional proof.

Free download pdf