Tutorial 1 - Logic Answers
Tutorial 1 - Logic Answers
1. Construct a truth table to prove that the following statements are logically
equivalent:
𝑝 → (𝑞 → 𝑟) ≡ (𝑝 ∧ 𝑞) → 𝑟
Answer:
p q r 𝒒 →𝒓 𝒑 → (𝒒 → 𝒓) (𝒑 ∧ 𝒒) 𝒑 → (𝒒 → 𝒓) ≡ (𝒑 ∧ 𝒒) → 𝒓
0 0 0 1 1 0 1
0 0 1 1 1 0 1
0 1 0 0 1 0 1
0 1 1 1 1 0 1
1 0 0 1 1 0 1
1 0 1 1 1 0 1
1 1 0 0 0 1 0
1 1 1 1 1 1 1
∴ 𝑝 → (𝑞 → 𝑟) is logically equivalent to (𝑝 ∧ 𝑞) → 𝑟
p q r ¬𝒒 ¬𝒓 (𝒓 → ¬ 𝒒) ¬ (𝒓 → ¬ 𝒒) (𝒑 ∧ ¬ 𝒓) ∨
T T T F F F T F T
T T F F T T F T T
T F T T F T F F F
T F F T T T F T T
F T T F F F T F T
F T F F T T F F F
F F T T F T F F F
F F F T T T F F F
Answer:
¬ (𝑝 ∨ ¬𝑞)
≡ ¬𝑝 ∧ ¬¬𝑞 De Morgan’s law
≡ ¬𝑝 ∧ 𝑞 Double negation law
≡ 𝑞 ∧ ¬𝑝 Commutative law
a) ¬(𝑝 ∨ 𝑞) ∨ (¬𝑝 ∧ 𝑞)
b) ¬(¬𝑝 → ¬𝑞)
Answer (a)
¬(𝑝 ∨ 𝑞) ∨ (¬𝑝 ∧ 𝑞)
= (¬𝑝 ∧ ¬𝑞) ∨ (¬𝑝 ∧ 𝑞) De Morgan’s Law
= ¬𝑝 ∧ (¬𝑞 ∨ 𝑞) Distributive Law
= ¬𝑝 ∧ 𝑇 Negation Law
= ¬𝑝 Identity Law
Answer (b)
¬(¬𝑝 → ¬𝑞)
= ¬(¬¬𝑝 ∨ ¬𝑞) from table
= ¬(𝑝 ∨ ¬𝑞) Double negation
= ¬𝑝 ∧ ¬¬𝑞 De Morgan
= ¬𝑝 ∧ 𝑞 Double negation
7. Using the truth table method, determine whether a given propositional logic is
a tautology, a contradiction or a contingency. Provide a precise justification for
your answer.