C376b201sem1 19
C376b201sem1 19
COS3761
Semester 1
School of Computing
Solutions to assignment 1
Bar code
SOLUTION TO ASSIGNMENT 1
6 4
7 3
8 2
9 1
10 4
11 2
12 3
13 5
14 1
15 2
16 4
17 4
18 3
19 5
20 1
2
COS3761/201/1/2019
QUESTION 1 option 2
QUESTION 2 option 1
Make sure that you understand how “only if” should be translated. Option 3 is not correct.
QUESTION 3 option 4
Note that option 1 is not correct. The following two translations would, however, also have been
correct:
(r s) ( r s)
(r s) (r s)
QUESTION 4 option 1
The connective is translated by the phrase “if and only if”. In question 1 above we
discussed “neither … nor”.
QUESTION 5 option 3
QUESTION 6 option 4
Note that option 2 is not correct. If you do not agree, look up “unless” and “only if” in your
Formal Logic 2 textbook.
Questions 7 – 11:
Dear Student
Please make sure that you understand formal proofs for propositional logic. It is important to
master these natural deduction proof rules before tackling the formal proofs of predicate and
modal logic.
3
QUESTION 7 option 3
1 qr premise
2 pq assumption
3 p assumption
4 q e 2, 3
5 r e 1, 4
6 pr i 3–5
7 (p q) (p r) i 2–6
QUESTION 8 option 2
Option 1 is incorrect because the i rule has to be cited outside the subproof starting with the
assumption of the left hand side of the connective and ending on the right hand side of the
connective. Option 3 is also incorrect because of this. One of the errors in option 4 is the
incorrect use of the e rule in line 3 – make sure that you understand this.
QUESTION 9 option 1
Option 2 is incorrect because the wrong rule is cited. The connective is not introduced in line
5.
Option 3 is incorrect because only one line should be cited for the e rule (in line 5) and,
furthermore, because line 7 is completely incorrect.
Option 4 is incorrect because the i rule requires two separate earlier lines to be cited and not
a range of statements (like 4 – 6).
4
COS3761/201/1/2019
QUESTION 10 option 4
If the answer is not clear, study the basic natural deduction rules again. They are summarised
on page 27 of your textbook. Pay special attention to the elimination rule:
two subproofs,
each subproof starts with one of the disjuncts,
the subproofs end on the same formula,
the same formula on which both subproofs end, is derived outside the subproofs, citing
the e rule and the ranges of the two subproofs.
QUESTION 11 option 2
If this is not clear, study the basic natural deduction rules again. They are summarised on page
27 of your textbook (and from page 557 of the textbook of Formal Logic 2). Note that the “¬ e”
rule was called the “ Intro” rule in the textbook of Formal Logic 2.
QUESTION 12 option 3
QUESTION 13 option 5
Make sure that you agree with this. A correct formula is:
¬ ((¬ q (p r)) (r q))
QUESTION 14 Option 1
QUESTION 15 Option 2
T (F T) ├ (T F) (T T)
Left side of the sequent is true and right of the sequent is false
5
QUESTION 16 option 4
The sequent is not valid. It would be valid only if the right hand side formula is true for all
valuations that make the left hand side formula true. In this case the valuation indicated by
option 4 makes the left hand side formula true but the right hand side formula false, thus we
have a counter-example. Option 3 is incorrect – the valuation given there is not a counter-
example because both the left hand side and the right hand side formulas are true for the given
valuation.
QUESTION 17 option 4
p q r p p r q ( p r)
T T T F T T
T T F F F T
T F T F T T
T F F F F F
F T T T T T
F T F T T T
F F T T T T
F F F T T T
p q r r q r (q r) p
T T T F F T
T T F T T T
T F T F F T
T F F T F T
F T T F F T
F T F T T F
F F T F F T
F F F T F T
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 F
F T T T T
F T F T T
F F T T T
F F F F T
See page 46 of your textbook for an explanation of semantic entailment for propositional logic.
(Note that option 1 does not involve the entailment relation╞.)
6
COS3761/201/1/2019
Option 1 is incorrect because the right hand side is not always true when the left hand side is
true (see line 6 of the first and second table above). Option 2 is incorrect because the final
columns of the two relevant tables are not identical (see lines 4 and 6 of the first and second
tables above). Option 3 is incorrect because not both q ( p r) and (q r) p are true
when p = T, q = F, r = F, i.e. this valuation is not a counter example. (The same applies to
when p = F, q = T, r = F.)
QUESTION 18 option 3
See page 46 of your textbook for an explanation of the semantic entailment relation ╞.
QUESTION 19 option 5
Thus
(p q s p) (q r p) (p s s) (T r)
QUESTION 20 option 1
©
UNISA 2019