Create a file called R9.txt and write your solution in it to each of the following problems, one at a time. When everyone has had a chance to go through the problems, your TA will show you how to work each problem correctly.
p ∧ F is equivalent to F
(p ∧ q) → (p → q)
For problem 4, you are not allowed to use all the laws in the Logic Sheet. You are allowed only the laws of Identity, Domination and Negation (from the bottom section), and only DeMorgan's Laws, Distributive Laws, Double Negation (from the middle section). You are not allowed the "Rules of Inference."
Solution:
p ∨ (¬p ∧ q)
≡ (p ∨ ¬p) ∧ (p ∨ q) Distributive Law (1st version)
≡ (true) ∧ (p ∨ q) Negation Law
≡ (p ∨ q)
Identity Law
For problems 5 and 6, prove the following, but now using the Rules of Inference from the Logic Sheet. As before, State the specific rule for each step.
So we allow you to use the Logical Equivalences as well as the other laws. But even that has nothing about ⊕, so we also give you the following equivalence rule about the ⊕ operator: (Call it XOR Definition)
x ⊕ y ≡ (x ∧ ¬y) ∨ (¬x ∧ y)
There are two alternative answers.
Solution a:
1. | p ⊕ q | axiom |
2. | p ↔ r | axiom |
3. | ¬ r | axiom |
4. | p → r ∧ r → p | Biconditional Laws (1) |
5. | p → r | Simplification (4) |
6. | ¬p | Modus Tollens (3, 5) |
7. | (p ∧ ¬q) ∨ (¬p ∧ q) | XOR Definition (1) |
≡ | ((p ∧ ¬q) ∨ ¬p) ∧ ((p ∧ ¬q) ∨ q) | Distributive Law 1 (left-to-right) |
≡ | (p ∨ ¬p) ∧ (¬q ∨ ¬p) ∧ (p ∨ q) ∧ (¬q ∨ q) | Distributive Law 1, twice (left-to-right), and also commutative law four times) |
≡ | (¬q ∨ ¬p) ∧ (p ∨ q) | Negation Law 1 (twice) and Identity Law 1 (twice) |
8. | (p ∨ q) | Simplification (last version of 7) |
9. | q | Disjunctive Syllogism (6, 8) |
1. | p ↔ r | axiom |
2. | ¬ r | axiom |
3. | ¬ p | definition of double implication (1, 2) |
4. | p ⊕ q | axiom |
5. | q | disjunctive syllogism (3, 4) |
1. | r → p | axiom |
2. | r | axiom |
3. | p | modus ponens (1, 2) |
4. | p → q | axiom |
5. | q | modus ponens (3, 4) |
6. | q ∧ p | conjunction (3, 5) |