1 Proplog Tutsol
1 Proplog Tutsol
by the absorption logical identities. Since r is a true proposition, the given propo-
sition is also true.
1.2. (a) t ↔ c ∧ a.
(b) t → a.
(c) t → c.
1.3. (a) (i) p q r q∨r p ∧ (q ∨ r) p∧q p∧r (p ∧ q) ∨ (p ∧ r)
T T T T T T T T
T T F T T T F T
T F T T T F T T
T F F F F F F F
F T T T F F F F
F T F T F F F F
F F T T F F F F
F F F F F F F F
(ii) p p∧p
T T
F F
(iii) p q p∨q p ∧ (p ∨ q)
T T T T
T F T T
F T T F
F F F F
(iv) T C ¬T
T F F
tutsol.1
(b) (i) p ∨ (q ∧ r) ≡ ¬¬p ∨ (¬¬q ∧ ¬¬r) by the Double Negative Law;
≡ ¬¬p ∨ ¬(¬q ∨ ¬r) by De Morgan’s Laws;
≡ ¬ ¬p ∧ (¬q ∨ ¬r) by De Morgan’s Laws;
≡ ¬ (¬p ∧ ¬q) ∨ (¬p ∧ ¬r) by (a)(i);
≡ ¬ ¬(p ∨ q) ∨ ¬(p ∨ r) by De Morgan’s Laws;
≡ ¬¬ (p ∨ q) ∧ (p ∨ r) by De Morgan’s Laws;
≡ (p ∨ q) ∧ (p ∨ r) by the Double Negative Law.
Alternatively,
¬ p ∨ (q ∧ r) ≡ ¬p ∧ ¬(q ∧ r) by De Morgan’s Laws;
≡ ¬p ∧ (¬q ∨ ¬r) by De Morgan’s Laws;
≡ (¬p ∧ ¬q) ∨ (¬p ∧ ¬r) by (a)(i);
≡ ¬(p ∨ q) ∨ ¬(p ∨ r) by De Morgan’s Laws;
≡ ¬ (p ∨ q) ∧ (p ∨ r) by De Morgan’s Laws.
Thus p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r).
(ii) p ∨ p ≡ ¬¬p ∨ ¬¬p by the Double Negative Law;
≡ ¬(¬p ∧ ¬p) by De Morgan’s Laws;
𠪪p by (a)(ii);
≡p by the Double Negative Law.
Alternatively,
(iii) p ∨ (p ∧ q) ≡ (p ∨ p) ∧ (p ∨ q) by (b)(i);
≡ p ∧ (p ∨ q) by (b)(ii);
≡p by (a)(iii).
One can alternatively proceed as follows:
p ∨ (p ∧ q) ≡ (p ∧ T ) ∨ (p ∧ q) as T is an identity for ∧;
≡ p ∧ (T ∨ q) by the Distributive Laws;
≡p∧T as T is annihilating with respect to ∨;
≡p as T is an identity for ∧.
tutsol.2
1.4. Let us use a truth table:
As the column for p ↔ q is exactly the same as the column for (p → q) ∧ (q → p), the
two compound expressions are equivalent.
p↔q
≡ (p ∧ q) ∨ (¬p ∧ ¬q) by the above;
≡ (p ∧ q) ∨ ¬p) ∧ (p ∧ q) ∨ ¬q) by the Distributive Laws;
≡ (p ∨ ¬p) ∧ (q ∨ ¬p) ∧ (p ∨ ¬q) ∧ (q ∨ ¬q) by the Distributive Laws;
≡ T ∧ (q ∨ ¬p) ∧ (p ∨ ¬q) ∧ T by the logical identities on negation;
≡ (q ∨ ¬p) ∧ (p ∨ ¬q) as T is an identity for ∧;
≡ (p → q) ∧ (q → p) by the logical identity on the implication.
(p → q) ∧ (q → r) → (p → r)
≡ ¬ (¬p ∨ q) ∧ (¬q ∨ r) ∨ (¬p ∨ r) by the logical identity on the implication;
≡ ¬(¬p ∨ q) ∨ ¬(¬q ∨ r) ∨ ¬p ∨ r by De Morgan’s Laws;
≡ (p ∧ ¬q) ∨ ¬p ∨ (q ∧ ¬r) ∨ r by De Morgan’s Laws;
≡ (p ∨ ¬p) ∧ (¬q ∨ ¬p) ∨ (q ∨ r) ∧ (¬r ∨ r) by the Distributive Laws;
≡ T ∧ (¬q ∨ ¬p) ∨ (q ∨ r) ∧ T by the logical identities on negation;
≡ ¬q ∨ ¬p ∨ q ∨ r as T is the identity for ∧;
≡ T ∨ ¬p ∨ r by the logical identities on negation;
≡T as T is annihilating with respect to ∨.
tutsol.3
1.6. No. Let us substitute a false proposition into p and a true proposition into q. Then
p → q evaluates to T, while q → p evaluates to F. So (p → q) → (q → p) evaluates
to F. This shows the compound expression given is not a tautology.
Additional comment 1. There is no other substitution under which this expression
evaluates to F.
Additional comments 2. To determine whether the given expression is a tautology,
one may want to draw a complete truth table. However, to prove that this expression
is not a tautology, it suffices to identify one row of the truth table in which it evaluates
to F. This is essentially what the solution above is doing.
One may use the logical identities to show that the expression given is equivalent to
p ∨ ¬q. While p ∨ ¬q does not look like a tautology, this does not logically imply it is
not a tautology: we need to demonstrate a way to substitute propositions into p and q
which makes p ∨ ¬q evaluate to F; cf. Note 1.4.28. One may find it easier to come
up with such a substitution for the equivalent expression p ∨ ¬q than for the original
expression.
P ↔ Q is a tautology
⇔ P ↔ Q evaluates to T no matter by the definition of tautologies;
what propositions we substitute into
its propositional variables
⇔ P and Q evaluate to the same truth value by the definition of ↔;
no matter what propositions we substitute
into their propositional variables
⇔ P ≡Q by the definition of P ≡ Q.
Further exercises
1.8. (Note that, since we are given two compound expressions, we are referring to equivalence
in the sense of Definition 1.4.7 here.)
(a) These are not equivalent.
Let us substitute a false proposition into p, q and r. On the one hand, we know
p → q evaluates to T, and so (p → q) → r evaluates to F. On the other hand,
we know q → r evaluates to T, and so p → (q → r) evaluates to T. So the two
compound expressions are not equivalent.
Additional comment. One can also substitute a false proposition into p and r,
and a true proposition into q. No other substitution works.
tutsol.4
(b) These are equivalent.
Let us use a truth table:
p q r p↔q (p ↔ q) ↔ r q↔r p ↔ (q ↔ r)
T T T T T T T
T T F T F F F
T F T F F F F
T F F F T T T
F T T F F T F
F T F F T F T
F F T T T F T
F F F T F T F
As the column for (p ↔ q) ↔ r is exactly the same as the column for p ↔ (q ↔ r),
the two compound expressions are equivalent.
Alternative solution. On the one hand,
(p ↔ q) ↔ r
≡ (p → q) ∧ (q → p) → r
∧ r → (p → q) ∧ (q → p) by Tutorial Exercise 1.4;
≡ ¬ (¬p ∨ q) ∧ (¬q ∨ p) ∨ r
∧ ¬r ∨ (¬p ∨ q) ∧ (¬q ∨ p) by Theorem 1.4.14;
≡ (p ∧ ¬q) ∨ (q ∧ ¬p) ∨ r
∧ ¬r ∨ (¬p ∨ q) ∧ (¬q ∨ p) by De Morgan’s Laws;
≡ (p ∨ q ∨ r) ∧ (p ∨ ¬p ∨ r) ∧ (¬q ∨ q ∨ r) ∧ (¬q ∨ ¬p ∨ r)
∧ (¬r ∨ ¬p ∨ q) ∧ (¬r ∨ ¬q ∨ p) by the Distributive Laws;
≡ (p ∨ q ∨ r) ∧ (T ∨ r) ∧ (T ∨ r) ∧ (¬q ∨ ¬p ∨ r)
∧ (¬r ∨ ¬p ∨ q) ∧ (¬r ∨ ¬q ∨ p) by Example 1.4.19;
≡ (p ∨ q ∨ r) ∧ T ∧ T ∧ (¬q ∨ ¬p ∨ r)
∧ (¬r ∨ ¬p ∨ q) ∧ (¬r ∨ ¬q ∨ p) as T is annihilating with respect to ∨;
≡ (p ∨ q ∨ r) ∧ (¬q ∨ ¬p ∨ r)
∧ (¬r ∨ ¬p ∨ q) ∧ (¬r ∨ ¬q ∨ p) as T is an identity with respect to ∧,
p ↔ (q ↔ r)
≡ p → (q ↔ r) ∧ (q ↔ r) → p by Tutorial Exercise 1.4;
≡ (q ↔ r) → p ∧ p → (q ↔ r) as ∧ is commutative;
≡ (q ↔ r) ↔ p by Tutorial Exercise 1.4;
≡ (q ∨ r ∨ p) ∧ (¬r ∨ ¬q ∨ p)
∧ (¬p ∨ ¬q ∨ r) ∧ (¬p ∨ ¬r ∨ q) by an argument similar to the one above.
Therefore, in view of the Associative Laws and the Commutative Laws for ∧ and ∨,
we know (p ↔ q) ↔ r ≡ p ↔ (q ↔ r).
tutsol.5
1.9. (a) p q r p ∨ q p → r q → r (p ∨ q) ∧ (p → r) ∧ (q → r) (p ∨ q) ∧ (p → r) ∧ (q → r) → r
T T T T T T T T
T T F T F F F T
T F T T T T T T
T F F T F T F T
F T T T T T T T
F T F T T F F T
F F T F T T F T
F F F F T T F T
Since the column for (p ∨ q) ∧ (p → r) ∧ (q → r) → r consists entirely of T’s, we
see that (p ∨ q) ∧ (p → r) ∧ (q → r) → r is a tautology.
Alternatively, one can use the logical identities as follows.
(p ∨ q) ∧ (p → r) ∧ (q → r) → r
≡ (p ∨ q) ∧ (¬p ∨ r) ∧ (¬q ∨ r) → r by the logical identity on implication;
≡ (p ∨ q) ∧ (¬p ∧ ¬q) ∨ r) → r by the Distributive Law;
≡ (p ∨ q) ∧ ¬(p ∨ q) ∨ r) → r by De Morgan’s Laws;
≡ (p ∨ q) ∧ ¬(p ∨ q) ∨ (p ∨ q) ∧ r → r by the Distributive Law;
≡ (p ∨ q) ∧ r → r by the logical identities on negation and identities;
≡ ¬ (p ∨ q) ∧ r ∨ r by the logical identity on implication;
≡ ¬(p ∨ q) ∨ ¬r ∨ r by De Morgan’s Laws;
≡ ¬(p ∨ q) ∨ (¬r ∨ r) by the Associative Laws;
≡T by the logical identities on negation and identities,
where T is a tautology.
(b) p C ¬p ¬p → C (¬p → C) → p
T F F T T
F F T F T
Since the column for (¬p → C) → p consists entirely of T’s, we see that (¬p →
C) → p is a tautology.
Alternatively, we may use the logical identities as follows:
where T is a tautology.
1.10. Suppose P ≡ Q.
Consider any substitution of propositions into the propositional variables in P and Q.
We split into two cases.
• Suppose P evaluates to T under this substitution. Then Q evaluates to T too
because P ≡ Q. So both ¬P and ¬Q evaluate to F according to the definition
of ¬.
• Suppose P evaluates to F under this substitution. Then Q evaluates to F too
because P ≡ Q. So both ¬P and ¬Q evaluate to T according to the definition
of ¬.
Thus ¬P and ¬Q evaluate to the same truth value in all cases.
Since this is true regardless of which substitution we pick, we conclude that ¬P ≡
¬Q.
tutsol.6
Alternative solution. Assume P ≡ Q.
Consider any substitution of propositions into the propositional variables in P and Q.
We know P and Q evaluate to the same truth value because P ≡ Q by assumption. It
then follows from the definition of ¬ that ¬P and ¬Q evaluate to the same truth value.
Since this is true regardless of which substitution we pick, we conclude that ¬P ≡
¬Q.
tutsol.7