Solutions To Exercises: Solution 1: Symbolic Connectives
Solutions To Exercises: Solution 1: Symbolic Connectives
Solution 3: Conjunction
217
218 A Solutions to Exercises
Solution 4: Negation
Solution 5: Disjunction
5. ¬((p ∨ q) ∧ r )
1. q ∧ (p ∧ r )
2. ¬¬(p ∧ q)
1. (a) ¬(¬p)
(b) (¬p) ∧ q
(c) q ∧ (¬r )
(d) (¬p) ∨ q
(e) (p ∧ q) ∧ (¬r )
(f) (p ∨ q) ∨ (¬r )
(g) (q ∧ (¬p)) ∨ q
(h) (p1 ∨ p2 ) ∨ (¬p3 )
(i) 3 > 0 ∨ ((¬ 1 + 1 = 2) ∧ 2 + 3 = 5)
(j) (¬‘Fido has three legs’) ∨ ‘Rex has four legs’
(k) (p ∧ q) ∨ ((¬r ) ∧ p)
(l) (¬p) ∧ ((¬q) ∨ (p ∧ r ))
(m) ¬(¬((¬p2 ) ∧ (¬p1 )))
A Solutions to Exercises 221
(a) ¬(p1 ∧ p2 ) ∨ p3
(b) ‘Rex has four legs’ ∨ ‘Fido has three legs’ ∨ ¬‘Rover has a wet nose’
(c) ¬ ¬q
(d) ¬ 1 + 1 = 2 ∨ (1 + 1)2 = 22
(e) ¬(p ∨ q ∧ r ∨ ¬s)
(f) ¬(¬(¬p1 ∨ p2 ∧ p3 ) ∨ ¬p4 ) ∧ ¬(p5 ∧ p6 ∨ ¬¬p7 )
1. ¬p ∨ q
2. p1 ∨ ¬p2 ∨ p3
3. p ∧ ¬q ∨ ¬r
4. ¬q1 ∧ (q1 ∨ q2 ) ∨ q1 ∧ q2 ,
though perhaps ¬q1 ∧ (q1 ∨ q2 ) ∨ (q1 ∧ q2 ) is easier to read
5. r ∧ (¬p ∨ q)
1. ¬(¬T ) =T ¬F =T T
2. ¬T ∨ F =T F ∨ F =T F
3. (F ∨ F ) ∨ F =T F ∨ F =T F
4. ¬¬(T ∨ ¬F ) ∧ ¬(F ∨ F )
=T ¬¬(T ∨ T ) ∧ ¬F
=T ¬¬T ∧ T
=T ¬F ∧ T
=T T ∧ T
=T T
5. ¬F ∨ T =T T ∨ T =T T
6. ¬F ∧ (T ∨ ¬T ) =T T ∧ (T ∨ F ) =T T ∧ T =T T
1. ‘Rex has four legs and either Fido has three legs or Rover does not have a
wet nose.’
2. P ¬P P ∨ ¬P
T F T
F T T
A Solutions to Exercises 223
3. Q ¬Q ¬¬Q ¬¬¬Q
T F T F
F T F T
4. P Q ¬Q P ∨ ¬Q ¬(P ∨ ¬Q)
T T F T F
T F T T F
F T F F T
F F T T F
5. P Q ¬Q P ∧ ¬Q
T T F F
T F T T
F T F F
F F T F
6. P1 P2 P3 P1 ∧ P2 (P1 ∧ P2 ) ∧ P3
T T T T T
T T F T F
T F T F F
T F F F F
F T T F F
F T F F F
F F T F F
F F F F F
7. P Q R P∧R Q ∧ (P ∧ R)
T T T T T
T T F F F
T F T T F
T F F F F
F T T F F
F T F F F
F F T F F
F F F F F
224 A Solutions to Exercises
8. P Q R P∨Q (P ∨ Q) ∨ R
T T T T T
T T F T T
T F T T T
T F F T T
F T T T T
F T F T T
F F T F T
F F F F F
9. P Q R Q∨R P ∨ (Q ∨ R)
T T T T T
T T F T T
T F T T T
T F F F T
F T T T T
F T F T T
F F T T T
F F F F F
10. P Q R P∨Q (P ∨ Q) ∧ R
T T T T T
T T F T F
T F T T T
T F F T F
F T T T T
F T F T F
F F T F F
F F F F F
12. Q1 Q2 Q3 Q2 ∧ Q3 Q1 ∨ (Q2 ∧ Q3 )
T T T T T
T T F F T
T F T F T
T F F F T
F T T T T
F T F F F
F F T F F
F F F F F
19. P Q R ¬P ¬Q ¬Q ∧ R ¬P ∨ (¬Q ∧ R)
T T T F F F F
T T F F F F F
T F T F T T T
T F F F T F F
F T T T F F T
F T F T F F T
F F T T T T T
F F F T T F T
A Solutions to Exercises
20.
1. b, c, d, h, i, k, l, n, p, q
2. a, c
A Solutions to Exercises 229
1. ¬P ∧ P
=T P ∧ ¬P A ∧ B =T B ∧ A
=T F A ∧ ¬A =T F
3. (P ∧ Q) ∨ P
=T P ∨ (P ∧ Q) A ∨ B =T B ∨ A
=T P A ∨ A =T A
4. (P ∧ Q) ∧ P
=T P ∧ (P ∧ Q) A ∧ B =T B ∧ A
=T (P ∧ P) ∧ Q A ∧ (B ∧ C) =T (A ∧ B) ∧ C
=T P ∧ Q A ∧ A =T A
6. ¬T
=T ¬(P ∨ ¬P) A ∨ ¬A =T T
=T ¬P ∧ ¬¬P ¬(A ∨ B) =T ¬A ∧ B
=T ¬P ∧ P ¬¬A =T A
=T P ∧ ¬P A ∧ B =T B ∧ A
=T F A ∧ ¬A =T F
7. F
=T ¬¬T Qu. 6
=T T ¬¬A =T A
Note that an earlier proof has been quoted in order to avoid repeating the
steps used in that proof – the earlier proof can be viewed as a ‘subprogram’
called by the later proof.
230 A Solutions to Exercises
(c) P Q P ∨ ¬Q ¬P ¬Q
T T T F F
T F T F T
F T F T F
F F T T T
(d) P Q R P∧Q P ∧ (Q ∨ R)
T T T T T
T T F T T
T F T F T
T F F F F
F T T F F
F T F F F
F F T F F
F F F F F
1. P ∨ Q ∴ P ∧ Q (not valid).
2. P ∧ Q ∴ P ∨ Q (valid).
3. P ∧ Q ∴ P ∨ R (valid).
4. P ∧ Q ∴ P (valid).
5. P, Q ∴ P ∧ Q (valid).
6. P, Q ∴ P ∨ Q (valid).
7. P ∴ P ∨ Q (valid).
8. P ∴ Q ∨ P (valid).
9. P ∴ Q ∨ R (not valid).
10. ¬¬(P ∧ ¬Q) ∴ P ∧ ¬Q (valid). Note that it is also possible to use the fact
that ¬¬P ∴ P is a valid argument form to show that the argument itself
is valid.
1. In each case the instances of P and Q are given together with the corres-
ponding inference form.
(a) P : p, Q : q ∨ r , P, Q P ∧ Q .
(b) P : p, Q : q ∨ r , P ∧ Q P .
(c) P : p, Q : q ∨ r , P ∧ Q Q .
(d) P : ¬¬¬q, Q : p ∨ ¬¬q, P ∧ Q Q .
(e) P : ¬¬¬q, Q : p ∨ ¬¬q, P ∧ Q P .
(f) P : p, Q : q ∧ r , P P ∨ Q .
(g) P : ¬q ∨ r , Q : ¬p ∨ s, Q P ∨ Q .
(h) P : ¬p, ¬¬P P .
(i) P : ¬¬p, ¬¬P P .
(j) P : (p ∧ (r ∨ q)), ¬¬P P .
(k) P : ¬¬p, P ¬¬P .
(l) P : ¬p, P ¬¬P .
(m) P : (p ∨ (r ∧ q)), P ¬¬P .
2. For each question, the appropriate rule of deduction is given followed by
the necessary instantiations and then the inference form which constitutes
that rule of deduction.
(a) ∧I , P : ‘The sky is blue’, Q : ‘Grass is green’, P, Q P ∧ Q .
(b) ∨I1 , P : p1 , Q : p2 , P P ∨ Q .
(c) ¬¬E , P : ‘Fido has three legs’, ¬¬P P .
(d) ∧E2 , P : ‘73 is prime’, Q : ‘73 is odd’, P ∧ Q Q .
A Solutions to Exercises 233
1. 1 P∧Q P ∧ E1
2 P ¬¬P ¬¬I
3 P∧Q ¬¬P 1, 2
2. 1 ¬¬P P ¬¬E
2 P, Q P∧Q ∧I
3 ¬¬P, Q P∧Q 1, 2
4. 1 ¬¬A A ¬¬E
2 A, B A∧B ∧I
3 ¬¬A, B A∧B 1, 2
4 ¬¬B B ¬¬E
5 ¬¬A, ¬¬B A∧B 4, 3
1. (a)
P∧Q
∧E1
P
¬¬I
¬¬P
(b)
¬¬¬Q ∧ (P ∨ ¬¬Q)
∧E1
¬¬¬Q
¬¬E
¬Q
(c)
P∧Q
∧E1
P
∨I1
P∨Q
234 A Solutions to Exercises
(d)
¬¬(P ∨ Q) ∧ (¬Q ∧ R)
∧E1
¬¬(P ∨ Q)
¬¬E
P∨Q
∨I1
(P ∨ Q) ∨ (R ∧ S)
(e)
P
¬¬I
¬¬P Q∨R
∧I
¬¬P ∧ (Q ∨ R)
(f)
Q∧R
∧E1
Q S
∧I
Q∧S
(g)
P∧Q P∧Q
∧E2 ∧E1
Q P
∧I
Q∧P
(h)
R
∨I1
R ∨ (Q ∧ ¬P) P∨Q
∧I
(R ∨ (Q ∧ ¬P)) ∧ (P ∨ Q)
2. (a)
Q R
∧I
Q∧R
∨I2
P ∨ (Q ∧ R)
(b)
(P ∧ Q) ∧ R (P ∧ Q) ∧ R
∧E1 ∧E1
P∧Q P∧Q
∧E2 ∧E1
(P ∧ Q) ∧ R Q P
∧E2 ∧I
R Q∧P
∧I
R ∧ (Q ∧ P)
(c)
P∧Q
∧E2
Q
∨I2
¬P ∨ Q
A Solutions to Exercises 235
(d)
¬¬P ∧ Q
∧E1
¬¬P ¬¬P ∧ Q
¬¬E ∧E2
P Q
∧I
P∧Q
(e)
¬¬P ∧ ¬¬Q ¬¬P ∧ ¬¬Q
∧E1 ∧E2
¬¬P ¬¬Q
¬¬E ¬¬E
P Q
∧I
P∧Q
(f)
¬¬(P ∧ Q)
¬¬E
P∧Q
∧E2
Q
∨I2
P∨Q
¬¬I
¬¬(P ∨ Q)
or, alternatively,
¬¬(P ∧ Q)
¬¬E
P∧Q
∧E1
P
∨I1
P∨Q
¬¬I
¬¬(P ∨ Q)
(g)
¬¬(P ∧ Q)
¬¬E
P∧Q
∧E1
P
¬¬I
¬¬P
∨I1
¬¬P ∨ ¬¬Q
or, alternatively,
¬¬(P ∧ Q)
¬¬E
P∧Q
∧E2
Q
¬¬I
¬¬Q
∨I2
¬¬P ∨ ¬¬Q
236 A Solutions to Exercises
(h)
¬¬(P ∧ Q) ¬¬(P ∧ Q)
¬¬E ¬¬E
P∧Q P∧Q
∧E1 ∧E2
P Q
¬¬I ¬¬I
¬¬P ¬¬Q
∧I
¬¬P ∧ ¬¬Q
(i)
¬¬P ∧ ¬¬Q ¬¬P ∧ ¬¬Q
∧E1 ∧E2
¬¬P ¬¬Q
¬¬E ¬¬E
P Q
∧I
P∧Q
¬¬I
¬¬(P ∧ Q)
3. (a)
P∧Q
∧E1
P
∨I2
Q∧P
(b)
P ∧ ¬Q P ∧ ¬Q
∧E2 ∧E1
¬Q P
∧I
¬Q ∧ P
(c)
P Q
∧I
P∧Q
∨I2
R∨P∧Q
3.
P ∧ ¬P P ∧ ¬P
∧E1 ∗ ∧E2 ∗
P ¬Q ¬P ¬Q
∧I ∧I
P ∧ ¬Q ¬P ∧ ¬Q
∧E1 ∧E1
P ¬P
∧I
P ∧ ¬P
∗¬I
¬¬Q
¬¬E
Q
4.
∗
Q
∗ ∨I1
P Q∨R
∨I1 ∨I2
P∨Q P ∨ (Q ∨ R) P ∨ (Q ∨ R)
∗∨E
P ∨ (Q ∨ R)
1.
¬(¬P ∧ P)
∨I1
¬(¬P ∧ P) ∨ Q
2. This follows from the theorem proved in Example 4.71, both directly, and
also from its generalization: ¬(¬A ∧ A) .
3.
∗
P ∧ (Q ∧ ¬P)
∗ ∧E2
P ∧ (Q ∧ ¬P) Q ∧ ¬P
∧E1 ∧E2
P ¬P
∧I
P ∧ ¬P
∗¬I
¬(P ∧ (Q ∧ ¬P))
238 A Solutions to Exercises
†∨I
∗¬I
∧I
∧E1
∧I
∗
P
¬Q ∧ P
¬Q
Q ∧ ¬Q
¬P
¬Q
†
Q
¬P
∧E1
∧I
¬Q
¬P ∧ ¬Q
¬P
†
¬P
¬P ∨ Q
∗ †
¬P Q
∧I
¬P ∧ Q ¬P ∧ ¬Q
∧E2 ∧E2
Q ¬Q
∧I
Q ∧ ¬Q
∗¬I
¬P ∧ ¬Q ¬¬P ¬P ∧ ¬Q
† ∧E1 ¬¬E ∧E1
¬P P ¬P
P
‡ ∧I ∧I
P∨Q P ∧ ¬P P ∧ ¬P
†∨I
P ∧ ¬P
‡¬I
¬(P ∨ Q)
2. P∧Q P∧Q
∧E2 ∧E1
Q P
∧I
Q∧P
Q∧P Q∧P
∧E2 ∧E1
P Q
∧I
P∧Q
3. ∗ ∗
P Q
∨I2 ∨I1
P∨Q Q∨P Q∨P
∗∨E
Q∨P
∗ ∗
Q P
∨I2 ∨I1
Q∨P P∨Q P∨Q
∗∨E
P∨Q
† ∨I2
P ∨ (Q ∨ R) P ∨ (Q ∨ R) Q∨R
P∨Q
∗∨E ∨I2
(P ∨ Q) ∨ R P ∨ (Q ∨ R) P ∨ (Q ∨ R)
†∨E
P ∨ (Q ∨ R)
∗
Q
† ∨I2 ∗
P P∨Q R
∨I1 ∨I1 ∨I2
† (P ∨ Q) ∨ R (P ∨ Q) ∨ R
P∨Q Q
∨I1 ∗∨E
P ∨ (Q ∨ R) (P ∨ Q) ∨ R (P ∨ Q) ∨ R
1. (a) P Q ¬P ¬Q ¬P ⇒ ¬Q
T T F F T
T F F T T
F T T F F
F F T T T
(b) P Q R ¬P ¬Q ¬Q ∨ R P ⇒ (¬Q ∨ R)
T T T F F T T
T T F F F F F
T F T F T T T
T F F F T T T
F T T T F T T
F T F T F F T
F F T T T T T
F F F T T T T
(c) P Q ¬P Q∧P ¬P ⇒ (Q ∧ P) (¬P ⇒ (Q ∧ P)) ⇒ Q
T T F T T T
T F F F T F
F T T F F T
F F T F F T
2. (a) Neither
(b) Contradiction
P ¬P ¬P ⇒ P P ⇒ ¬P (P ⇒ ¬P) ∧ (¬P ⇒ P)
T F T F F
F T F T F
(c) Tautology
(d) Neither
P Q P∧Q (P ∧ Q) ⇒ P P ⇒ (P ∧ Q)
T T T T T
T F F T F
F T F T T
F F F T T
(e) Neither
(f) Tautology
P Q P∨Q (P ∨ Q) ⇒ P P ⇒ (P ∨ Q)
T T T T T
T F T T T
F T T F T
F F F T T
A Solutions to Exercises 243
(g) Contradiction
P ¬P P ∨ ¬P P ∧ ¬P (P ∨ ¬P) ⇒ (P ∧ ¬P)
T F T F F
F T T F F
(h) Tautology
P Q P⇒Q (P ⇒ Q) ∨ P
T T T T
T F F T
F T T T
F F T T
(i) Tautology
(j) Neither (See Figure A.5)
(k) Neither
P P⇒P ¬P P ⇒ ¬P (P ⇒ P) ⇒ (P ⇒ ¬P)
T T F F F
F T T T T
(l) Tautology (See Figure A.6)
3. (a) P ¬P P ⇒ ¬P
T F F
F T T
(b) P Q ¬Q P ∧ ¬Q ¬(P ∧ ¬Q) P⇒Q
T T F F T T
T F T T F F
F T F F T T
F F T F T T
(c) P Q ¬Q P⇒Q P ∧ ¬Q ¬(P ⇒ Q)
T T F T F F
T F T F T T
F T F T F F
F F T T F F
P⇒ (P ⇒ Q)∧
(d) P Q R Q∧R P⇒Q P⇒R (Q ∧ R) (P ⇒ R)
T T T T T T T T
T T F F T F F F
T F T F F T F F
T F F F F F F F
F T T T T T T T
F T F F T T T T
F F T F T T T T
F F F F T T T T
244
4. Either the conclusion is true when all the premisses are true, or at least one
premiss is false when the conclusion is false. If there are no premisses,
then the conclusion form must be a tautology.
(a) P P⇒P
T T
F T
(b) P Q P⇒Q ¬Q ¬P
T T T F F
T F F T F
F T T F T
F F T T T
(c) P Q Q⇒P
T T T
T F T
F T F
F F T
(f) P1 P2 P3 P1 ⇒ P2 P2 ⇒ P3 P1 ⇒ P3
T T T T T T
T T F T F F
T F T F T T
T F F F T F
F T T T T T
F T F T F T
F F T T T T
F F F T T T
1. (a) P ⇒ (Q ⇒ ¬P)
=T ¬P ∨ (¬Q ∨ ¬P) A ⇒ B =T ¬A ∨ B
=T ¬P ∨ (¬P ∨ ¬Q) A ∨ B =T B ∨ A
=T (¬P ∨ ¬P) ∨ ¬Q A ∨ (B ∨ C) =T (A ∨ B) ∨ C
=T ¬P ∨ ¬Q A ∨ A =T A
(b) (P ⇒ Q) ∧ (P ⇒ ¬Q)
=T P ⇒ (Q ∧ ¬Q) A ⇒ (B ∧ C) =T (A ⇒ B) ∧ (A ⇒ C)
=T P⇒F A ∧ ¬A =T F
=T ¬P A ⇒ F =T ¬A
(c) P ⇒ (P ⇒ Q)
=T (P ∧ P) ⇒ Q A ⇒ (B ⇒ C) =T (A ∧ B) ⇒ C
=T P⇒Q A ∧ A =T A
248
F F T F T T T T F T
F F F T T F F F F T
(d) P ⇒ (Q ⇒ P)
=T P ⇒ (¬P ⇒ ¬Q) A ⇒ B =T ¬B ⇒ ¬A
=T (P ∧ ¬P) ⇒ Q A ⇒ (B ⇒ C) =T (A ∧ B) ⇒ C
=T F ⇒ ¬Q A ∧ ¬A =T F
=T T F ⇒ A =T T
(e) (P ⇒ Q) ∨ (¬P ⇒ Q)
=T (¬Q ⇒ ¬P) ∨ (¬Q ⇒ ¬¬P) A ⇒ B =T ¬B ⇒ ¬A
=T ¬Q ⇒ (¬P ∨ ¬¬P)
A ⇒ (B ∨ C) =T (A ⇒ B) ∨ (A ⇒ C)
=T ¬Q ⇒ T A ∨ ¬A =T T
=T T A ⇒ T =T T
(f) (P ⇒ (Q ∨ ¬P)) ⇒ Q
=T (P ⇒ (¬P ∨ Q)) ⇒ Q A ∨ B =T B ∨ A
=T (P ⇒ (P ⇒ Q)) ⇒ Q A ⇒ B =T ¬A ∨ B
=T ((P ∧ P) ⇒ Q) ⇒ Q A ⇒ (B ⇒ C) =T (A ∧ B) ⇒ C
=T (P ⇒ Q) ⇒ Q A ∧ A =T A
=T T (A ⇒ B) ⇒ B =T T
(g) (P ⇒ (Q ∧ P)) ⇒ ¬Q
=T ((P ⇒ Q) ∧ (P ⇒ P)) ⇒ ¬Q
A ⇒ (B ∧ C) =T (A ⇒ B) ∧ (A ⇒ C)
=T ((P ⇒ Q) ∧ T ) ⇒ ¬Q A ⇒ A =T T
=T (P ⇒ Q) ⇒ ¬Q A ∧ T =T A
=T (¬Q ⇒ ¬P) ⇒ ¬Q A ⇒ B =T ¬B ⇒ ¬A
=T ¬Q (A ⇒ B) ⇒ A =T A
2. (a) P ⇒ (P ∨ Q)
=T (P ⇒ P) ∨ (P ⇒ Q) A ⇒ (B ∨ C) =T (A ⇒ B) ∨ (A ⇒ C)
=T T ∨ (P ⇒ Q) A ⇒ A =T T
=T (P ⇒ Q) ∨ T A ∨ B =T B ∨ A
=T T A ∨ T =T T
(c) (P ∧ Q) ⇒ (P ⇒ Q)
=T ((P ∧ Q) ∧ P) ⇒ Q A ⇒ (B ⇒ C) =T (A ∧ B) ⇒ C
=T (P ∧ (P ∧ Q)) ⇒ Q A ∧ B =T B ∧ A
=T ((P ∧ P) ∧ Q) ⇒ Q A ∧ (B ∧ C) =T (A ∧ B) ∧ C
=T (P ∧ Q) ⇒ Q A ∧ A =T A
=T P ⇒ (Q ⇒ Q) A ⇒ (B ⇒ C) =T (A ∧ B) ⇒ C
=T P⇒T A ⇒ A =T T
=T T A ⇒ T =T T
250 A Solutions to Exercises
(d) ¬(¬P ∨ Q) ⇒ P
=T ¬¬(¬P ∨ Q) ∨ P A ⇒ B =T ¬A ∨ B
=T (¬P ∨ Q) ∨ P ¬¬A =T A
=T P ∨ (¬P ∨ Q) A ∨ B =T B ∨ A
=T (P ∨ ¬P) ∨ Q A ∨ (B ∨ C) =T (A ∨ B) ∨ C
=T T ∨Q A ∨ ¬A =T T
=T Q∨T A ∨ B =T B ∨ A
=T T A ∨ T =T T
(e) ((P ∨ Q) ⇒ Q) ⇒ (P ⇒ Q)
=T ((P ⇒ Q) ∧ (Q ⇒ Q)) ⇒ (P ⇒ Q)
(A ∨ B) ⇒ C =T (A ⇒ C) ∧ (B ⇒ C)
=T ((P ⇒ Q) ∧ T ) ⇒ (P ⇒ Q) A ⇒ A =T T
=T (P ⇒ Q) ⇒ (P ⇒ Q) A ∧ T =T A
=T T A ⇒ A =T T
1. ¬¬(P ⇒ (R ∨ Q))
¬¬E
P ⇒ (R ∨ Q)
¬¬¬Q ∧ (P ⇒ ¬¬Q)
2. ∧E2
P ⇒ ¬¬Q
P
3. ∨I1
P ∨ (Q ⇒ R)
¬P ∨ S
4. ∨I2
(Q ⇒ R) ∨ (¬P ∨ S)
A Solutions to Exercises 251
5. ¬¬¬Q ∧ (P ⇒ ¬¬Q)
∧E1
¬¬¬Q
¬¬E
¬Q
6. ¬¬(P ⇒ Q) ∧ (¬Q ⇒ R)
∧E1
¬¬(P ⇒ Q)
¬¬E
P⇒Q
∨I1
(P ⇒ Q) ∨ (R ∧ S)
1.
¬P ¬P ⇒ Q
⇒E
Q
2.
¬¬P
¬¬E
P P⇒Q
⇒E
Q
3.
P P ⇒ (P ∧ Q)
⇒E
P∧Q
∧E2
Q
4.
P P ⇒ (P ⇒ Q)
⇒E
P⇒Q P
⇒E
Q
5.
P∧Q
∧E2
Q Q⇒R
⇒E
R
6. ∗
P ∧ ¬Q
∧E1 ∗
P P⇒Q P ∧ ¬Q
⇒E ∧E2
Q ¬Q
∧I
Q ∧ ¬Q
∗¬I
¬(P ∧ ¬Q)
252 A Solutions to Exercises
7. The deduction tree is very similar to that of the previous example except
that the ¬I rule is applied to yield ¬(P ⇒ Q) rather than ¬(P ∧ ¬Q)
P ∧ ¬Q
∧E1 ∗
P P⇒Q P ∧ ¬Q
⇒E ∧E2
Q ¬Q
∧I
Q ∧ ¬Q
∗¬I
¬(P ⇒ Q)
8. ∗ ∗
P P⇒R Q Q⇒R
⇒E ⇒E
P∨Q R R
∗∨E
R
1. ∗
¬¬P
¬¬E
P
∗⇒I
¬¬P ⇒ P
2. ∗
P∧R
∧E2
R
∨I1
R∨Q
∗⇒I
(P ∧ R) ⇒ (R ∨ Q)
3. ∗
P P⇒Q
⇒E
Q
∗⇒I
(P ⇒ Q) ⇒ Q
4. ∗
P P⇒Q
⇒E
Q Q⇒R
⇒E
R
∗⇒I
P⇒R
A Solutions to Exercises
∗ †
P ∧ ¬R ¬Q ¬Q ⇒ R
∧E2 ⇒E
¬R R
∧I
P ∧ ¬R R ∧ ¬R
∧E1 † ∗¬I
P P⇒Q ¬¬Q
⇒E ¬¬E
(P ⇒ Q) ∨ (¬Q ⇒ R) Q Q
†∨E
Q
1. (a) P ⇒ ¬Q ¬¬Q
MT
¬P
(b) Q
¬¬I
P ⇒ ¬Q ¬¬Q
MT
¬P
(c) ¬P ⇒ Q ¬Q
MT
¬¬P
¬¬E
P
(d) P⇒Q ¬Q
MT
¬P
∨I1
¬P ∨ Q
(e) P ⇒ (Q ∧ R) ¬(Q ∧ R)
MT
¬P
∨I2
¬P ∨ S
(b) ¬P ⇒ ¬Q ¬Q ⇒ R
HS
¬P ⇒ R ¬R
MT
¬¬P
¬¬E
P
1. ‘ . . . is red’, flowers. The predicate represents the property that the sub-
ject is red.
2. ‘ . . . is a perfect square’, integers (‘integer’ is another name for ‘whole
number’). The property represents the property that the subject is a per-
fect square, that is it is equal to the square of an integer.Note that although
numbers would also be a possibility, the concept of a perfect square usu-
ally arises when we are are talking about integers, or, even more specific-
ally, non-negative integers.
A Solutions to Exercises 255
3. ‘ . . . has brown hair ’, people. Again, there are other possibilities; dogs for
example. In a textbook question such as this, we are working in the ab-
stract somewhat; in a real situation, an appropriate universe of discourse
would be much clearer to identify.
4. ‘ . . . are yellow ’, species of flowers. Care needs to be taken in choosing
an appropriate universe of discourse. The subject ‘Daffodils’ refers to the
collection of all daffodils, not just one particular daffodil. The predicate
represents the property that each member of the subject is yellow.
1. (a) 3 > 2.
(b) 1 > 2.
(c) 6 = 6.
(d) ‘Sydney is the capital of Australia’.
(e) ‘Canberra is the capital of Australia’.
(f) ‘Queen Elizabeth II is the Duke of Normandy ’.
2. The universes of discourse are suggestions only. Other appropriate letters
may be used for the free variables.
(a) ‘x is a prime number.’ positive integers
(b) ‘y is very cold.’ continents
(c) ‘z is blue.’ doors
(d) It might seem that this is derived from the predicate ‘w is blue’, but it is
difficult to decide upon an appropriate universe of discourse! Perhaps
natural sights is appropriate, though this is not entirely unambigu-
ous.
(e) Possibilities include x ≥ 7, 7 ≥ x or even x ≥ x. real numbers
1. (a) 3 > y.
(b) x > 7.
(c) ‘Canberra is the capital of y’.
(d) ‘x is the capital of the United Kingdom’.
2. (a) 3 > 2.
(b) 5 > 7.
(c) ‘Canberra is the capital of Australia’.
(d) ‘Westminster is the capital of the United Kingdom’.
3. (a) ‘x is higher than y’. For both free variables an appropriate universe
of discourse is mountains.
(b) ‘x flows through y’. An appropriate universe of discourse for x is
rivers and for y is countries.
(c) x + y = 6. An appropriate universe of discourse for both x and y is
integers.
256 A Solutions to Exercises
1. p(x) ∨ q(y) where p(x) is ‘x is late’ and q(y) is ‘y is fast ’. Note that in
English, the adjective ‘fast ’ has other meanings. However, the predicate
q(y) refers to one specific property, namely that of showing a time ahead
of the correct time; thus timepieces would be an appropriate universe of
discourse, while animals would not.
2. p(x) ∧ p(y) where p(x) is ‘x is a capital city ’. In this case the same
predicate is used twice but with different free variables.
3. One possibility is x>y ⇒ x 2 >y 2 . The atomic predicates are x>y and
x 2 >y 2 .
4. One possibility is x1 >x2 ∧ x3 +x4 =x5 . The atomic predicates are x1 >x2
and x3 +x4 =x5 .
(a) p1 (f (a))
(b) p1 (f (a)) ∧ p2 (a)
(c) p3 (f (a) , a)
(d) ∀x (p4 (f (x) , x))
where
• p1 (x) is the predicate ‘x has four legs’;
• p2 (x) is the predicate ‘x has three legs’;
• p3 (x, y) is the predicate ‘x is older than y’;
• p4 (x, y) is the predicate ‘x was born before y’;
• f (x) is the function ‘the mother of x’;
• a is the constant ‘Fido’.
1. (a) Q Yes; a schematic letter on its own can represent any proposition.
(b) P(x) No; only predicates with the single free variable x are possible.
(c) P(x, y) Yes.
(d) P(x, y, z\2) Yes; x z = y could be an instance of P(x, y, z) and sub-
stituting 2 for z would then give the required predicate. The predicate
form P(x, y, z\2) has two free variables, x and y.
(e) P[x] Yes.
A Solutions to Exercises 257
(f) Q[y, x] Yes. The order in which free variables are listed does not have
to be the same as the order in which they occur in the predicate.
(g) P[x, y, z] No. The free variable z does not occur in x 2 = y.
(h) P[x, y, z\2] Yes.
(i) P[x, y\2, z] No. The free variable z does not occur in x 2 = y.
2. (a) P(x, y, z) Yes; P does not necessarily refer to an atomic predicate.
(b) P(v\1, w\2, x, y, z) Yes; the free variables are x, y and z, as required.
(c) Q(x, y) ⇒ P(x, z) Yes.
(d) Q(x, z) ⇒ P(x, y) No.
(e) P[x] ⇒ Q[x] Yes.
(f) P[x, y, z] ⇒ Q[x, y, z] No.
(g) P[x, y, z\1] ⇒ Q[x, y\2, z] Yes.
(h) P[x, y, z\1] ⇒ P[x, y\2, z] No.
Notice that in these last two questions, not only are the interpretations
different but also the truth values may be different.
258 A Solutions to Exercises
2. (a) ‘At least one integer is positive and equal to its square’ More suc-
cinctly we can write, ‘There exists a positive integer which is equal
to its square’
(b) ‘Some animals are three legged dogs’
(c) ‘Some capital cities have hosted the Olympic games’
3. (a) ‘There exists a positive integer and there exists an integer which is
equal to its square’
(b) ‘Some animals are dogs and some animals have three legs’
(c) ‘Some towns and cities are capital cities and some towns and cities
have hosted the Olympic games’
4. (a) ‘At least one integer is either positive or equal to its square’
(b) ‘Some animals are either dogs or have three legs’
(c) ‘Some towns and cities are either capital cities or have hosted the
Olympic games’
5. (a) ‘Either some integers are positive or some are equal to their squares’
(b) ‘Either some animals are dogs or some animals have three legs’
(c) ‘Either some towns and cities are either capital cities or some town and
cities have hosted the Olympic games’
Notice that the expressions in these last two questions have different inter-
pretations and may even have different truth values, yet the English sen-
tences sound very similar. Frequently in English, a statement like ‘Either
some animals are dogs or some animals have three legs’ is shortened to
‘Some animals are dogs or have three legs’, which is not an equivalent
sentence.
∀x (P(x) ∧ Q(x))
∀E
P(a) ∧ Q(a)
∧E1
P(a)
∃I
∃x (P(x) ∨ R(x))
∀x (P(x) ⇒ Q(x))
∀E
P(a) ⇒ Q(a) ¬Q(a)
MT
¬P(a)
∃I
∃x (¬P(x))
∀x (¬P(x))
∀E
¬P(a)
∃I
∃x (¬P(x))
∀x (¬¬P(x))
∀E
¬¬P(a)
¬¬E
P(a)
∃I
∃x (P(x))
260 A Solutions to Exercises
(c) ‘Canberra is the capital city of Australia’ ‘Australia has a capital city ’
Take towns and cities as the universe of discourse, and let p(x) be
the predicate ‘x is a capital city of Australia’. Then we can write the
premiss as p(‘Canberra’) and the conclusion as ∃x (px). The proof
follows immediately as an instance of the ∃I rule.
P(‘Canberra’)
∃I
∃x P(x)
∀x Q(x)
∀E
Q(a)
∨I2
¬P(a) ∨ Q(a)
∀I
∀x ¬P(x) ∨ Q(x)
∀x ∀y P(x, y)
∀E
∀y P(a, y)
∀E
P(a, b)
∀I
∀x P(x, b)
∀I
∀y ∀x P(x, y)
∀x P(x)
∀E
P(a) ∗
P(a) ⇒ Q(a)
⇒E
Q(a)
∃I
∃x Q(x) ∃x (P(x) ⇒ Q(x))
∗∃E
∃x Q(x)
A Solutions to Exercises 261
∗
P(a, b)
∃I
∃x P(x, b)
∃I
∃y ∃x P(x, y) †
∃y P(a, y)
∗∃E
∃y ∃x P(x, y) ∃x ∃y P(x, y)
†∃E
∃y ∃x P(x, y)
∀x P(x, f (x))
∀E ∗
P(b, f (b)) b = g(a)
=E
P(g(a) , f (b)) ∀x ∃y (x = g y )
∃I ∀E
∃y P(g y , f (b)) ∃y (b = g y )
∃E
∃y P(g y , f (b))
∀I
∀x ∃y P(g y , f (x))
2.
∀x P(x)
∀E ∗
P(a) a = f (b)
=E
P(f (b))
∃I †
∃y P(f y ) ∃y (a = f y )
∗∃E
∃y P(f y ) ∃x ∃y (x = f y )
†∃E
∃y P(f y )
∀x P(f (f (f (x))))
∀E
P(f (f (f (b)))) ∗
b = f (f (b)) ∗
=E
∀x (x = f (f (x))) ∨ x = a P(f (b)) b=a
∀E ∨I1 ∨I2
b = f (f (b)) ∨ b = a P(f (b)) ∨ x = a P(f (b)) ∨ b = a
∗∨E
P(f (b)) ∨ b = a
∀I
∀x (P(f (x)) ∨ x = a)
A
(b)
Df + Cm |
t1 + t2 = t1 |t2 t1 |t2 = t2 |t1
Df + =E
t2 + t1 = t2 |t1 t1 + t2 = t2 |t1
=E
t1 + t2 = t2 + t1
1. (a) a+a
= a1+a1 B12
= a (1 + 1) B5
= a1 B10
= a B12
(b) (a + b) (a + c)
= (a + b) a + (a + b) c B5
= a (a + b) + c (a + b) B1
= (a a + a b) + (c a + c b) B5
= (a + a b) + (c a + c b) B14
= (a + a b) + (a c + b c) B1
= a + (a b + (a c + b c)) B3
= a + ((a b + a c) + b c) B3
= a + (a (b + c) + b c) B5
= a 1 + (a (b + c) + b c) B12
= (a 1 + a (b + c)) + b c B3
= (a (1 + (b + c))) + b c B5
= a1+bc B10
= a+bc B12
2. ab
= ab B16
= a+b B18
= a+b B16
264
Df + DN
t1 + t2 = t1 |t2 t1 = t1
=E DN
t1 + t2 = t1 |t2 t2 = t2
=E DN
t1 + t2 = t1 |t2 t1 |t2 = t1 |t2
=E Df
t1 + t2 = t1 |t2 t1 t2 = t1 |t2
=E
t1 + t2 = t1 t2
A
3. Using only axioms B1–B15, the proof is very long and complicated; this is
why it is useful to treat B18 as an additional axiom.
ab
= (a b) 1 B12
= (a b) ((a + b) + a + b) B8
= (a b) (a + b) + (a b) a + b B5
= ((a b) a + (a b) b) + (a b) a + b B5
= (a (a b) + (a b) b) + (a b) a + b B1
= ((a a) b + a (b b)) + (a b) a + b B3
= ((a a) b + a (b b)) + (a b) a + b B1
= (0 b + a 0) + (a b) a + b B9
= (b 0 + a 0) + (a b) a + b B1
= (0 + 0) + (a b) a + b B11
= 0 + (a b) a + b B14
= (a + b) a + b + (a b) a + b B9
= a + b (a + b) + a + b (a b) B1
= a + b ((a + b) + a b) B5
= a + b ((a 1 + b 1) + a b) B12
= a + b ((a (b + b) + b (a + a)) + a b) B8
= a + b (((a b + a b) + (b a + b a)) + a b) B5
= a + b (((a b + a b) + (a b + a b)) + a b) B1
= a + b ((a b + (a b + (a b + a b))) + a b) B3
= a + b ((a b + ((a b + a b) + a b)) + a b) B2
= a + b (((a b + (a b + a b)) + a b) + a b) B3
= a + b ((((a b + a b) + a b) + a b) + a b) B3
= a + b (((a b + a b) + a b) + a b) B15
= a + b ((a b + a b) + (a b + a b)) B3
= a + b ((b a + b a) + (b a + b a)) B1
= a + b (b (a + a) + b (a + a)) B5
= a + b (b 1 + b 1) B8
= a + b (b + b) B12
= a+b1 B8
= a+b B12
266 A Solutions to Exercises
2. (a)
a b a + (b a)
0 0 0
0 1 0
1 0 1
1 1 1
(b)
a b a (b + a)
0 0 0
0 1 0
1 0 1
1 1 1
(c)
a b a + (b a)
0 0 1
0 1 1
1 0 0
1 1 0
(d)
a b a (b + a)
0 0 1
0 1 1
1 0 0
1 1 0
(e)
a b (a b) + (a b)
0 0 1
0 1 1
1 0 1
1 1 0
(f)
a b a + (b a)
0 0 1
0 1 1
1 0 0
1 1 0
A Solutions to Exercises 267
(g)
a b a (b + a)
0 0 1
0 1 1
1 0 0
1 1 0
(h)
a b c a + (b c)
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
(i)
a b c a (b + c)
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
(j)
a b c a + (b c)
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 0
268 A Solutions to Exercises
(k)
a b c a (b + c)
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 0
(l)
a b c a + (b c)
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 0
(m)
a b c a (b + c)
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 0
(n)
a b c abc+abc+abc
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0
A Solutions to Exercises 269
(o)
a b c (a + b + c) (a + b + c) (a + b + c)
0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
(p)
a b c d ab+cd+abcd+a
0 0 0 0 1
0 0 0 1 1
0 0 1 0 1
0 0 1 1 0
0 1 0 0 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 0
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 0
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 0
(q)
a b c a+bc +ab+c
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
270 A Solutions to Exercises
3. • a & b;
• c, d, f & g;
• k & l;
• j & m.
4. (a) a + (b a) = a
(b) a (b + a) = a
(c) a + (b a) = a
(d) a (b + a) = a
(e) (a b) + (a b) = (a b)
(f) a + (b a) = a
(g) a (b + a) = a
(h) a + (b c) is already in simplest form
(i) a (b + c) is already in simplest form
(j) a + (b c) is already in simplest form
(k) a (b + c) is already in simplest form
(l) a + (b c) = a (b + c)
(m) a (b + c) = a + (b c)
(n) a b c + a b c + a b c is already in simplest form
(o) (a + b + c) (a + b + c) (a + b + c) = a b + a c + b c + a + b + c
(p) a b + c d + a b c d + a = a b + c d
(q) a + b c + a b + c = a b + a c + b c
1. P ∨ (Q ∨ R)
2. (P ∨ Q) ∨ R)
3. P ∧ (Q ∧ R)
4. (P ∧ Q) ∧ R)
5. (P ∨ Q) ∧ R)
6. (P ∧ R) ∨ (Q ∧ R))
7. P ∨ (Q ∧ R)
8. (P ∨ Q) ∧ (P ∨ R)
9. ¬(P ∨ (Q ∧ R))
10. ¬P ∧ (¬Q ∨ ¬R)
11. ¬(P ∧ (Q ∨ R))
12. ¬P ∨ (¬Q ∧ ¬R)
13. ¬((P ∧ Q) ∨ (R ∧ s))
14. ¬(¬(P ∨ (Q ∧ R)) ∨ (P ∧ ¬(Q ∨ R)))
A Solutions to Exercises 271
1. (a) F
=T T ∧ ¬T Cpt ∧
=T ¬T ∧ T Cm ∧
=T ¬T Unit ∧
(b) ¬F
=T ¬¬T Qu.1a
=T T DN
(c) (P ∧ Q) ∧ P
=T P ∧ (Q ∧ P) Ass ∧
=T P ∧ (P ∧ Q) Cm ∧
=T (P ∧ P) ∧ Q Ass ∧
=T P∧Q Idempt ∧
(d) P ⇒ (P ∧ Q)
=T ¬P ∨ (P ∧ Q) Df ⇒
=T (¬P ∨ P) ∧ (¬P ∨ Q) Dist
=T T ∧ (¬P ∨ Q) Cpt ∨
=T ¬P ∨ Q Unit ∧
=T P⇒Q Df ⇒
(e) P⇒Q
=T ¬P ∨ Q Df ⇒
=T ¬¬¬P ∨ ¬¬Q DN
=T ¬(¬¬P ∧ ¬Q) de Morgan
=T ¬(P ∧ ¬Q) DN
(f) P ⇒ (Q ⇒ R)
=T ¬P ∨ (¬Q ∨ R) Df ⇒
=T (¬P ∨ ¬Q) ∨ R Ass ∨
=T ¬(P ∧ Q) ∨ R de Morgan
=T (P ∧ Q) ⇒ R Df ⇒
(g) P ¬Q
=T (P ∧ ¬Q) ∨ (¬P ∧ ¬¬Q) Df
=T (P ∧ ¬Q) ∨ (¬P ∧ Q) DN
=T ((P ∧ ¬Q) ∨ ¬P) ∧ ((P ∧ ¬Q) ∨ Q) Dist
=T (¬P ∨ (P ∧ ¬Q)) ∧ (Q ∨ (P ∧ ¬Q)) Cm ∨
=T ((¬P ∨ P) ∧ (¬P ∨ ¬Q)) ∧ ((Q ∨ P) ∧ (Q ∨ ¬Q)) Dist
=T ((P ∨ ¬P) ∧ (¬P ∨ ¬Q)) ∧ ((P ∨ Q) ∧ (Q ∨ ¬Q)) Cm ∨
=T (T ∧ (¬P ∨ ¬Q)) ∧ ((P ∨ Q) ∧ T ) Cpt ∨
=T (¬P ∨ ¬Q) ∧ (P ∨ Q) Unit ∧
=T (P ∨ Q) ∧ (¬P ∨ ¬Q) Cm ∧
272 A Solutions to Exercises
(h) ¬(P Q)
=T ¬((P ∧ Q) ∨ (¬P ∧ ¬Q)) Df
=T ¬(P ∧ Q) ∧ ¬(¬P ∧ ¬Q) de Morgan
=T (¬P ∨ ¬Q) ∧ (¬¬P ∨ ¬¬Q) de Morgan
=T (¬P ∨ ¬Q) ∧ (P ∨ Q) DN
=T (P ∨ Q) ∧ (¬P ∨ ¬Q) Cm ∧
(i) ¬(P Q)
=T (P ∨ Q) ∧ (¬P ∨ ¬Q) Qu.1h
=T P ¬Q Qu.1g
2. P ⇒ (Q ⇒ P)
=T ¬P ∨ (¬Q ∨ P) Df ⇒
=T ¬P ∨ (P ∨ ¬Q) Cm ∨
=T (¬P ∨ P) ∨ ¬Q Ass ∨
=T T ∨ ¬Q Cpt ∨
=T T Zero ∨
1. ∀x (¬P)
=T ¬¬∀x (¬P) DN
=T ¬∃x P Df ∃
2. ∃x (P ∨ Q)
=T ¬¬∃x (P ∨ Q) DN
=T ¬∀x ¬(P ∨ Q) Df ∃
=T ¬∀x (¬P ∧ ¬Q)) de Morgan
=T ¬∀x ¬P ∧ ¬∀x ¬Q Dist
=T ¬(∀x ¬P ∨ ∀x ¬Q) de Morgan
=T ∃x P ∨ ∃x Q Df ∃
3. ∃x ∃y P
=T ¬∀x (¬∃y P) Df ∃
=T ¬∀x (¬¬∀y (¬P)) Df ∃
=T ¬∀x (∀y (¬P)) double negation
=T ¬∀y (∀x (¬P)) Cm ∀
=T ¬∀y (¬¬∀x (¬P)) double negation
=T ¬∀y (¬∃x P) Df ∃
=T ∃y ∃x P Df ∃
A Solutions to Exercises 273
4. ∃x T
=T ¬∀x ¬T Df ∃
=T ¬∀x F Ex55 Qu1a
=T ¬F ∀F
=T T Ex55 Qu1b
5. ∃x F
=T ¬∀¬F Df ∃
=T ¬∀T Ex55 Qu1b
=T ¬T ∀T
=T F Ex55 Qu1a
1. (a) (P ∧ Q) ∨ (P ∧ ¬Q) =T P
(b) (P ∧ Q) ∨ (P ∧ ¬Q) ∨ (¬P ∧ ¬Q) =T P ∨ ¬Q
(c) (P ∧ Q ∧ R) ∨ (P ∧ Q ∧ ¬R) ∨ (¬P ∧ Q ∧ R) =T Q ∧ (P ∨ R)
(d) (P ∧ Q ∧ R) ∨ (P ∧ Q ∧ ¬R) ∨ (P ∧ ¬Q ∧ R) ∨ (¬P ∧ Q ∧ R)
=T Q ∧ (P ∨ R) ∨ (P ∧ R)
(e) (P ∧ Q ∧ ¬R ∧ S) ∨ (P ∧ ¬Q ∧ R ∧ S)
∨ (P ∧ ¬Q ∧ ¬R ∧ S) ∨ (¬P ∧ Q ∧ R ∧ ¬S)
=T (P ∧ (¬Q ∨ ¬R) ∧ S) ∨ (¬P ∧ Q ∧ R ∧ ¬S)
2. (a) 1 p
2 ¬p, ¬q, r
3 ¬q, r Res. 1, 2
(b) 1 p, q
2 ¬p, r
3 ¬q, r
4 q, r Res. 1, 2
5 r Res. 3, 4
274 A Solutions to Exercises
(c) 1 ¬p, q, r
2 p
3 ¬r
4 q, r Res. 1, 2
5 q Res. 3, 4
1. 1 p
2 ¬p, ¬q, r
3 q
4 ¬r
5 ¬q, r Res. 1, 2
6 r Res. 3, 5
7 {} Res. 4, 6
2. 1 p, q
2 ¬p, q
3 ¬q, r
4 ¬r
5 ¬q Res. 3, 4
6 q Res. 1, 2
7 {} Res. 5, 6
3. 1 ¬p, q, r
2 p
3 ¬r
4 ¬q
5 ¬p, q Res. 1, 3
6 q Res. 2, 5
7 {} Res. 4, 6
1. 1 q :- p
2 r :- s, t, u
3 s :- p, v
4 t :- q
5 w :- r , s
6 p
7 s
8 :-t negation of query
9 :-q Res. 4, 8
10 :-p Res. 1, 9
11 :- Res. 6, 10
Hence we conclude that t follows from the program.
2. 1 p
2 q
3 r :- p
4 s :- q
5 :-r , s negation of query
6 :-p, s Res. 3, 5
7 :-s Res. 1, 6
8 :-q Res. 4, 7
9 :- Res. 2, 8
Summary of notation B
B.1 Letters
p, q, r , s, p1 , p2 , . . ., q1 , q2 , . . . represent (constant) propositions.
A, B, C and other capital letters from near the beginning of the alphabet refer
to propositional forms (possibly unspecified); in print, a blackletter font is
used.
f , f1 , f2 , . . ., g, g1 , g2 , h, h1 , h2 , . . . represent functions.
t, t1 , t2 , . . . represent terms.
B.2 Connectives
∧ represents conjunction (‘and’).
277
278 B Summary of notation
B.3 Quantifiers
=T indicates that two logical expressions have the same truth value.
Γ
rule-name
B
Γ1
A Γ2
B
Glossary C
antecedent
See conditional
arbitrary constant
A label which refers to an unspecified item.
argument
If p1 , p2 , . . . , pn , q are propositions, then p1 , p2 , . . . , pn ∴ q is an argument.
The propositions p1 , p2 , . . . , pn are the premisses, and the proposition q is the
conclusion.
argument form
If A1 , A2 , . . . , An , B are propositional forms, then A1 , A2 , . . . , An ∴ B is an
argument form. The propositional forms A1 , A2 , . . . , An are the premiss forms
and B is the conclusion form. Any instance of an argument form is an argu-
ment.
atomic proposition
A proposition which is not a compound proposition; that is, one which
contains no connective.
biconditional
The connective schema P Q for the biconditional is defined as being
equivalent to the propositional form (P ∧ Q) ∨ (¬P ∧ ¬Q) .
binary predicate
A predicate with two free variables is known as a binary predicate. A
binary predicate represents a relation between two items.
bound variable
See quantifier.
characteristic form of a proposition
For any given proposition, a characteristic form is a maximal form hav-
ing the fewest possible schematic letters. The proposition is an instance of
the characteristic form in which different schematic letters are instantiated to
different atomic propositions.
279
280 C Glossary
clause
A clause is either a literal on its own, or the disjunction of two or more
literals.
compound proposition
A proposition with one or more connectives.
conclusion
See argument.
conditional
The connective schema P ⇒ Q for the conditional is defined by the truth
table:
P Q P⇒Q
T T T
T F F
F T T
F F T
conjunct
See conjunction.
conjunction
P ∧ Q is the conjunction of P and Q and has the truth table:
P Q P∧Q
T T T
T F F
F T F
F F F
connective
A symbol (or word) which combined with a proposition gives a more com-
plex proposition.
C Glossary 281
connective priority
In a propositional form, connective priority determines the order in which
different connectives apply:
consequent
See conditional.
constant
See arbitrary constant and proper constant.
contradiction
A contradiction is a propositional form for which the truth value is equal
to F for all instances.
corresponding instances
Corresponding instances of two propositional forms A and B are such that
any schematic letter common to A and B is instantiated to the same proposi-
tion.
disjunct
See disjunction.
disjunction
P ∨ Q is the disjunction of P and Q and has the truth table:
P Q P∨Q
T T T
T F T
F T T
F F F
elimination rule
An elimination rule for a symbol, such as a connective, quantifier or iden-
tity symbol, is a rule of deduction in which the conclusion of the resulting
inference or inference form contains that symbol in all cases.
equivalence of propositions
Two propositions p and q are equivalent if they are corresponding in-
stances of equivalent propositional forms A and B. See semantic equivalence
and syntactic equivalence.
282 C Glossary
existential quantifier
In ∃x P(x), the existential quantifier is ∃. The proposition ∃x P(x) is true
if and only if there is at least one value of x for which P(x) is true.
free variable
See predicate.
function
A function associates a single value called the result with another value
called the argument. We say that the function is applied to the argument to
give the result.
Horn clause
A clause in which there is at most one positive literal is called a Horn
clause.
inconsistency
A set of propositional forms is inconsistent if there is no instance of this
set in which all the propositions are true. A set of propositions is inconsistent
if it is an instance of an inconsistent set of propositional forms.
inference
If p1 , p2 , . . . , pn , q are propositions, then p1 , p2 , . . . , pn q is an inference.
Inferences are obtained by application of rules of deduction. The propositions
p1 , p2 , . . . , pn are the premisses, and the proposition q is the conclusion.
inference form
If A1 , A2 , . . . , An , B are propositional forms, then A1 , A2 , . . . , An B is an
inference form. Inference forms are obtained by application of rules of deduc-
tion. The propositional forms A1 , A2 , . . . , An are the premiss forms and B is the
conclusion form. Any instance of an inference form is an inference.
instance
See schema.
instantiation
See schema.
introduction rule
An introduction rule for a symbol, such as a connective, quantifier or iden-
tity symbol, is a rule of deduction in which there is always a premiss containing
that symbol in the resulting inference or inference form.
invalid argument
An argument is invalid if its characteristic form is invalid.
literal
A positive literal is a letter, such as p, which represents an atomic propos-
ition. A negative literal is the negation of a positive literal; for example ¬p. A
literal is either a positive literal or a negative literal.
C Glossary 283
logic program
A logic program is a set of Horn clauses.
maximal form
A maximal form for any proposition is a propositional form which has
the greatest number of connectives and of which the given proposition is an
instance. The given proposition can be obtained from the maximal form by
instantiating each schematic letter to an atomic proposition.
methods of deduction
A method of deduction is a rule by means of which we can write down a
new inference form given one or more other inference forms.
negation
¬P is the negation of P and has the truth table:
P ¬P
T F
F T
parse tree
A diagram to show how a compound proposition or propositional form is
built up from simpler propositions or forms.
predicate
A predicate contains one or more free variables such that replacing each
free variable with a term gives a proposition. For each free variable there is
associated a set of possible values known as the universe of discourse.
predicate form
A schema whose instances are predicates.
premise
An alternative spelling for premiss.
premiss
See argument.
priority
See connective priority.
proper constant
A label which refers to a specific item; the name of an item.
proposition
A statement with which it is meaningful to associate a truth value.
propositional form
A schema whose instances are propositions.
284 C Glossary
quantifier
If p(x1 , x2 , . . . , xn ) is a predicate with free variables x1 , x2 , . . . , xn and Q
is a quantifier, then the quantified expression Qx1 p(x1 , x2 , . . . , xn ) is a predic-
ate with free variables x2 , . . . , xn . In the quantified expression, x1 is a bound
variable. See also existential quantifier and universal quantifier.
resolution
A rule of deduction for clauses: if C1 and C2 are clauses, and if P is a
positive literal, then applying resolution to the clauses C1 ∨ P and C2 ∨ ¬P
yields the resolvent clause C1 ∨ C2 .
resolvent
See resolution.
schema
A schema contains one or more schematic letters such as P, Q and R. A
schematic letter can be replaced by a proposition or a predicate; this act of
replacement is called instantiation. Replacing all schematic letters by propos-
itions (or predicates) creates a proposition (or predicate) which is referred to
as an instance of the schema.
schematic letter
See schema.
semantic entailment
Suppose that for every false instance of the propositional form A there
is at least one false corresponding instance of a propositional form in the
set Γ . Then Γ is said to semantically entail A. Furthermore, whenever all the
corresponding instances of Γ are true, then the corresponding instance of A is
also true
semantic equivalence
Two propositional forms A and B are semantically equivalent if corres-
ponding instances always have the same truth values. If A
B and B
A then
A and B are semantically equivalent.
syntactic equivalence
Two propositional forms A and B are syntactically equivalent if both A B
and B A.
tautology
A tautology is a propositional form for which the truth value is equal to T
for all instances. If
A then A is a tautology.
term
A term refers to an item. A term can either be a simple label, such as a
proper constant or arbitrary constant, or a function applied to another term.
theorem
Suppose we have an inference form whose premiss set is empty, A. Then
the conclusion, A, is said to be a theorem.
C Glossary 285
truth table
A table showing the truth value of a propositional form for each possible
combination of truth values for the schematic letters of the form.
unary predicate
A predicate with one free variable is known as a unary predicate. A unary
predicate represents a property.
uniform replacement
In any context, the uniform replacement of a schematic letter by a propos-
itional form means that every occurrence of that schematic letter is replaced
by the same form enclosed in parentheses.
universal quantifier
In ∀x P(x), the universal quantifier is ∀. The proposition ∀x P(x) is true
if and only if P(x) is true for every value of x.
universe of discourse
See predicate.
valid argument
An argument is valid if it is an instance of a valid argument form.
variable
See free variable and bound variable.
Summary of deduction rules D
¬¬I : A ¬¬A
¬¬E : ¬¬A A
∧I : A, B A ∧ B
∧E1 : A∧BA
∧E2 : A∧BB
∨I1 : AA∨B
∨I2 : BA∨B
⇒E : A, A ⇒ B B
∀E : ∀x A(x) A(t)
∃I : A(t) ∃x A(x)
¬I : If Γ , A B ∧ ¬B then Γ ¬A.
∨E : If Γ , A C and Γ , B C then Γ , A ∨ B C.
⇒I : If Γ , A B then Γ A ⇒ B.
∀I : If Γ A(t) then Γ ∀x A(x)
provided no constant in t occurs in A(x) nor in any expression of Γ .
∃E : If Γ , A(a) B then Γ , ∃x A(x) B
provided no constant in t occurs in A(x), B(x) nor in any expression of Γ .
D.3 Identity
=I : t=t
=E : t1 = t2 , A(t1 ) A(t2 )
287
288 D Summary of deduction rules
MT : A ⇒ B, ¬B ¬A
HS : A ⇒ B, B ⇒ C A ⇒ C
Summary of equivalences E
Tautology
Prop1 A ∨ ¬A =T T
Contradiction
Prop2 A ∧ ¬A =T F
Unit
Prop3 A ∨ F =T A
Prop4 A ∧ T =T A
Zero
Prop5 A ∨ T =T T
Prop6 A ∧ F =T F
Idempotent
Prop7 A ∨ A =T A
Prop8 A ∧ A =T A
Double negation
Prop9 ¬¬A =T A
Commutative
Prop10 A ∨ B =T B ∨ A
Prop11 A ∧ B =T B ∧ A
Associative
Prop12 A ∨ (B ∨ C) =T (A ∨ B) ∨ C
Prop13 A ∧ (B ∧ C) =T (A ∧ B) ∧ C
289
290 E Summary of equivalences
Distributive
Prop14 A ∨ (B ∧ C) =T (A ∨ B) ∧ (A ∨ C)
Prop15 A ∧ (B ∨ C) =T (A ∧ B) ∨ (A ∧ C)
Absorption
Prop16 A ∨ (A ∧ B) =T A
Prop17 A ∧ (A ∨ B) =T A
de Morgan
Prop18 ¬(A ∨ B) =T ¬A ∧ ¬B
Prop19 ¬(A ∧ B) =T ¬A ∨ ¬B
Definition
Prop25 A ⇒ B =T ¬A ∨ B
Modus ponens
Prop26 A, A ⇒ B B
Tautology
Prop 28 A ⇒ A =T T
......
Prop 29 A ⇒ ¬A =T ¬A
......
Prop 30 A ⇒ T =T T
......
Prop 31 T ⇒ A =T A
......
Prop 32 A ⇒ F =T ¬A
......
Prop 33 F ⇒ A =T T
Prop 34 ¬(A ⇒ B) =T A ∧ ¬B
Contrapositive
Prop 35 ¬B ⇒ ¬A =T A ⇒ B
Exportation
Prop 36 A ⇒ (B ⇒ C) =T (A ∧ B) ⇒ C
E.2 Quantifiers 291
Prop 37 A ⇒ (B ∧ C) =T (A ⇒ B) ∧ (A ⇒ C)
Prop 38 A ⇒ (B ∨ C) =T (A ⇒ B) ∨ (A ⇒ C)
......
Prop 39 (A ∨ B) ⇒ C =T (A ⇒ C) ∧ (B ⇒ C)
......
Prop 41 (A ⇒ B) ⇒ A =T A
......
Prop 42 (A ⇒ B) ⇒ B =T T
......
A B =T (A ⇒ B) ∧ (B ⇒ A)
......
¬(A B) =T ¬A B =T A ¬B
E.2 Quantifiers
Definition of ∃
∃x A =T ¬∀x ¬A
Commutative
∀x ∀y (A) =T ∀y ∀x (A)
∃x ∃y (A) =T ∃y ∃x (A)
Distributive
∀x A ∧ B =T ∀x A ∧ ∀x B
∃x (A ∨ B) =T ∃x A ∨ ∃x B
Constants
∀x T =T T
∀x F =T F
∃x T =T T
∃x F =T F
Double quantification
∀x ∀x A =T ∀x A
∃x ∃x A =T ∃x A
Miscellaneous
∀x A ∨ ∃x A =T ∃x A
∀x A ∧ ∃x A =T ∀x A
∀x A ⇒ ∃x A =T T
Bibliography F
293
294 F Bibliography
Luce (1973) provides a useful summary; sadly this book is now out of print.
Quine (1986) gives a stimulating discussion of the philosophy of logic.
Note that not all the following books are currently in print, but should be
available in libraries.
295
296 Index