0% found this document useful (0 votes)
23 views7 pages

1 Proplog Tutsol

Uploaded by

Jiawei WANG
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views7 pages

1 Proplog Tutsol

Uploaded by

Jiawei WANG
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Tutorial solutions for Chapter 1

Sometimes there are other correct answers.


1.1. All of these are true, except the proposition in (c), which is false.
Additional explanations.

(a) p∧q → r (b) p ↔ q ∨ ¬r (c) p ∧ q ∨ (¬ r → p)
F F T F F T F F T F
F F F ?
T F F
T

(d) Treating p, q, r as propositional variables,



q ∨ r ∨ (¬p ↔ q) ∧ (q ∨ r) ≡ q ∨ r

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,

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.

(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 ∧.

(iv) ¬C ≡ ¬¬T by (a)(iv);


≡T by the Double Negative Law.
Additional explanations. Let us provide a slightly more intuitive explanation of why
the Absorption Law p ∧ (p ∨ q) is true. The other Absorption Law can be explained in
a similar way.
Consider propositions p and q. By the definition of ∨, if p is true, then p ∨ q must be
true as well. So, for p and p ∨ q to be both true, it is sufficient to have p true. Of
course, this is also necessary. Therefore, we have p ∧ (p ∨ q) true if and only if p is true.

tutsol.2
1.4. Let us use a truth table:

p q p↔q p→q q→p (p → q) ∧ (q → p)


T T T T T T
T F F F T F
F T F T F F
F F T T T T

As the column for p ↔ q is exactly the same as the column for (p → q) ∧ (q → p), the
two compound expressions are equivalent.

Alternative solution. According to our definition of ↔ in Definition 1.3.11, under a


substitution of propositions into the propositional variables p and q, we know p ↔ q
evaluates to true if and only if p and q evaluate to the same truth value. As propositions
by definition have exactly one truth value amongst “true” and “false”, the latter in turn
is equivalent to p and q both evaluating to true or both evaluating to false. This means
the compound expression (p ∧ q) ∨ (¬p ∧ ¬q) evaluates to true under this substitution.
All these show that p ↔ q ≡ (p ∧ q) ∨ (¬p ∧ ¬q). Hence

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.

Here T denotes a tautology.

1.5. Let T be a tautology.

(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 ∨.

Alternatively, one can use the following truth table:

p q r p→q q→r (p → q) ∧ (q → r) p→r (p → q) ∧ (q → r) → (p → r)


T T T T T T T T
T T F T F F F T
T F T F T F T T
T F F F T F F T
F T T T T T T T
F T F T F F T T
F F T T T T T T
F F F T T T T T

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.

1.7. By the definition of tautologies, the compound expression P ↔ Q is a tautology means


P ↔ Q evaluates to true no matter what propositions we substitute into its proposi-
tional variables. According to the definition of ↔, this in turn means P and Q evaluate
to the same truth value no matter what propositions we substitute into their proposi-
tional variables. This is exactly what the definition of P ≡ Q says.
Alternative solution using Notation 3.1.19.

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.

Additional comment. Some students try to prove the proposition by comparing


(certain rows in) the truth table for P ↔ Q and the “truth table” for P ≡ Q, where P
and Q take different truth values. There is no such truth table for P ≡ Q. If we replace
P and Q by propositions, say 1 + 1 = 2 and 2 + 3 = 4, so that they get some truth
values, then the result looks like (1 + 1 = 2) ≡ (2 + 3 = 4). Our definition does not give
any meaning to this: it covers only the case when ≡ is used between two compound
expressions, not two propositions.

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 ∧,

where T is a tautology. On the other hand,

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).

Discussion. We saw that our convention of writing neither p → q → r nor p ↔ q ↔ r


is not mainly due to non-associativity, because ↔ is actually associative, as we showed.
The real reason is that we would like to avoid these being misinterpreted as (p →
q) ∧ (q → r) and (p ↔ q) ∧ (q ↔ r) respectively; cf. Notation 3.1.19.

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:

(¬p → C) → p ≡ ¬(p ∨ C) ∨ p by the logical identity on implication;


≡ ¬p ∨ p by the logical identities on negation and identities;
≡T by the logical identity on negation,

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

You might also like