Professional Documents
Culture Documents
Formal Logic
COS3761
Semesters 1 and 2
BARCODE
CONTENTS
Page
1 INTRODUCTION .......................................................................................................................... 3
2 PURPOSE AND OUTCOMES ...................................................................................................... 3
2.1 Purpose ........................................................................................................................................ 3
2.2 Outcomes ..................................................................................................................................... 3
3 LECTURER(S) AND CONTACT DETAILS................................................................................... 3
3.1 Lecturer(s) .................................................................................................................................... 3
3.2 Department ................................................................................................................................... 3
3.3 University ...................................................................................................................................... 4
4 RESOURCES ............................................................................................................................... 4
4.1 Prescribed book(s) ........................................................................................................................ 4
4.2 Recommended book(s) ................................................................................................................. 4
4.3 Electronic reserves (e-reserves) ................................................................................................... 4
4.4 Library services and resources ..................................................................................................... 4
5 STUDENT SUPPORT SERVICES ................................................................................................ 5
6 STUDY PLAN ............................................................................................................................... 5
7 PRACTICAL WORK ..................................................................................................................... 5
8 ASSESSMENT ............................................................................................................................. 5
8.1 Assessment criteria....................................................................................................................... 5
8.2 Assessment plan .......................................................................................................................... 7
8.3 Assignment numbers .................................................................................................................... 8
8.3.1 General assignment numbers ....................................................................................................... 8
8.3.2 Unique assignment numbers ........................................................................................................ 8
8.4 Assignment due dates .................................................................................................................. 8
8.5 Submission of assignments .......................................................................................................... 8
8.6 The assignments ........................................................................................................................ 10
8.7 Other assessment methods ........................................................................................................ 74
8.8 The examination ......................................................................................................................... 74
9 FREQUENTLY ASKED QUESTIONS ........................................................................................ 74
10 SOURCES CONSULTED ........................................................................................................... 74
11 IN CLOSING ............................................................................................................................... 74
12 ADDENDUM ............................................................................................................................... 74
2
COS3761/101/3/2019
Dear Student
1 INTRODUCTION
Dear Student
Welcome to Formal Logic 3 (COS3761). We hope that you will find the module interesting and
stimulating. You are most welcome to contact your lecturers for any academic queries
regarding the module – see sections 3.1 and 3.2 below. (See section 3.3 for information
regarding other kinds of queries.)
This tutorial letter contains general information about COS3761: we discuss the tutorial matter,
student support, the syllabus, the requirements for examination admission, the semester mark
and how to submit assignments. In addition, this tut letter contains Assignments 1, 2 and 3,
first for the first semester and then for the second semester as well.
Some quick facts about the three assignments:
3
Students may make appointments to see a lecturer, but this has to be done well in advance.
Students should mention their student numbers in all communications with the lecturers
3.2 Department
If you have not yet received the contact details of your lecturer and would like to speak to him
or her, you may contact the secretary of the School of Computing. Remember to mention your
student number.
This is for academic queries only. Please do not contact the School about missing tutorial
matter, cancellation of a module, payments, enquiries about the registration of assignments,
and so on, but rather the relevant department as indicated in the brochure my Studies @
Unisa
3.3 University
The brochure my Studies @ Unisa (that you should have received with your tutorial
matter) contains information about computer laboratories, the library, myUnisa,
assistance with study skills and so on. It also contains contact details of several Unisa
departments, for example Examinations, Assignments, Despatch, Finances and
Student Administration. Remember to mention your student number when contacting
the University
4 RESOURCES
4.1 Prescribed book(s)
Huth, M & Ryan, M. 2005. Logic in computer science: modelling and reasoning about systems.
2nd edition. United Kingdom: Cambridge University Press.
4.2 Recommended book(s)
NO
4.3 Electronic reserves (e-reserves)
E-reserves can be downloaded from the Library catalogue. More information is available at:
http://libguides.unisa.ac.za/request/request
4.4 Library services and resources
The Unisa Library offers a range of information services and resources:
http://libguides.unisa.ac.za/request/request
Postgraduate information services:
http://libguides.unisa.ac.za/request/postgrad
Finding and using library resources and tools:
http://libguides.unisa.ac.za/Research_skills
Frequently asked questions about the Library:
http://libguides.unisa.ac.za/ask
Services to students living with disabilities:
http://libguides.unisa.ac.za/disability
Type here
6 STUDY PLAN
Use the brochure my Studies @ Unisa for general time management and
planning skills.
The due dates for assignments are given in section 7.3 below. The learning
units for COS3761 on myUnisa give directions for working though the
relevant sections of the prescribed book and the other resources, and what
to do in preparation for the assignments and the exam.
7 PRACTICAL WORK
NO
8 ASSESSMENT
8.1 Assessment criteria
A range of tasks (tutorial letters, assignments and examinations) will show that students have
achieved the following outcomes, namely to:
Range:
The context of this module is a subfield of the domain of Logic using tools of propositional,
predicate and basic modal logic, with an increased complexity of a number of sentences (or
“worlds”), with greater complexity, with mathematical reasoning, with assumptions chosen for
unknown contexts to define a mode of truth (a belief, knowledge, necessity, future). Arguments
start from one or more assumptions (premises) and leading to some conclusion.
5
Specific outcome 1:
Assessment criteria:
1. Logical connectives are used to combine given names and predicates correctly to translate
given English sentences into sentences of propositional or predicate logic;
2. Logical connectives and symbols are interpreted correctly to translate given propositional or
predicate logic sentences into English sentences;
3. The parse tree of a given predicate logic formula is constructed and all its subformulas are
listed correctly;
4. Correct substitution of variables of a predicate logic formula is done.
Specific outcome 2:
Assessment criteria:
1. A model where a given propositional logic, predicate logic or basic modal logic sentence is
true or false is constructed;
2. A propositional, predicate or basic modal logic sentence that is true or false in a given
model is constructed;
3. A propositional, predicate or basic modal logic model where an entailment relation does not
hold is constructed;
4. A propositional, predicate or basic modal logic model showing that a given sequent is not
provable is constructed.
Specific outcome 3:
Give formal proofs of “sequents” in propositional logic, predicate logic or basic modal
logic.
Assessment criteria:
1. A proof by mathematical induction of some theorem is given;
2. The rules of Natural Deduction are used to construct formal proofs of sequents in
propositional logic or predicate logic where every line of the proofs consists of a First-order
Logic sentence following on the previous line(s) while citing the applicable rule;
3. Formal proofs of sequents in modal logic K or modal logic KT45 are constructed
using the rules of Natural Deduction.
Specific outcome 4:
Demonstrate understanding of concepts like “satisfiability”, validity, soundness and
completeness in propositional logic, predicate logic and basic modal logic.
6
COS3761/101/3/2019
Assessment criteria:
1. A sentence that is true in a given model but that is not valid is given;
2. An algorithm is used to show that a given formula is satisfiable or not;
3. The correspondence between a provable sequent and semantic entailment is
explained.
Specific outcome 5:
Interpret and apply various modes of truth, within a context where a modal logic is
constructed that is capable of expressing and formalizing a given mode of truth involving
one or more agent.
Assessment criteria:
1. Given English sentences involving one or more agent and dealing with a specific mode of
truth, are translated correctly into basic modal logic sentences using logical connectives to
combine given propositional symbols;
2. Given basic modal logic sentences involving one or more agent and dealing with
a specific mode of truth are translated into English sentences interpreting the
logical connectives and symbols correctly
8.2 Assessment plan
The marks that you obtain for Assignments 1 and 2 form the semester mark for COS3761. The
semester mark forms 20% and the examination 80% of the final mark for the module.
The weights of the COS3761 assignments are indicated in the table below.
Assignment Weight
1 30%
2 40%
3 30%
An example follows:
Total 6.6
In this example the student has a semester mark of 6.6. The semester mark will not form part
of the final mark of a supplementary examination.
7
8.3 Assignment numbers
8.3.1 General assignment numbers
Semester 1 Assignment 1
Assignment 2
Assignment 3
Semester 2 Assignment 1
Assignment 2
Assignment 3
Assignment 2 839876
Assignment 3 848420
Assignment 2 838540
Assignment 3 838299
8
COS3761/101/3/2019
Letter COSALLF/301/4/2019 and in the brochure my Studies @ Unisa when submitting your
assignments.
9
8.6 The Assignments
(MULTIPLE CHOICE)
If you want to submit the assignment electronically and myUnisa is off-line during that time,
you need not contact us, because we will be aware of it. Simply submit it as soon as
myUnisa is available again.
Extension No extension
30%
Questions 20
We recommend
• that you write out a formal proof for (at least) questions 7 to 11 before choosing an
option and
• if you have access to a computer, that you use the Fitch software (supplied with the
textbook of the second-level Formal Logic module COS2661) to help you to choose the
correct option in questions dealing with formal proofs.
10
COS3761/101/3/2019
p It is windy
q It is cloudy
Table 1
QUESTION 1
Using the symbols and their intended meaning given in Table 1, which of the options below is
a correct propositional logic translation of the following English sentence?
If the temperature is above 35°C, it will neither be cloudy nor will there be a hail storm.
Option 1: t (q s)
Option 2: t (q s)
Option 3: t q s
Option 4: t ( q s)
QUESTION 2
Using the symbols and their intended meaning given in Table 1, which of the options below is
a correct propositional logic translation of the following English sentence?
There will be a hail storm only if it is cloudy and not windy and the temperature is 35°C or
less.
Option 1: s (q p t)
Option 2: s (q p t)
Option 3: (q p t) s
Option 4: (q p t) s
11
QUESTION 3
Using the symbols and their intended meaning given in Table 1, which of the options below is
a correct propositional logic translation of the following English sentence?
Option 1: (r s) r s
Option 2: (r s) ( r s)
Option 3: (r s) (r s)
Option 4: (r s) (r s)
QUESTION 4
Using the symbols and their intended meaning given in Table 1, which of the options below is
a correct English translation of the following propositional logic sentence?
(q t p) (r s)
Option 1: It is cloudy but not windy and the temperature is above 35°C if and only if there is
neither a dust nor a hail storm.
Option 2: It is cloudy but not windy and the temperature is above 35°C only if there
is neither a dust nor a hail storm.
Option 3: If it is cloudy but not windy and the temperature is above 35°C, there is
neither a dust nor a hail storm.
Option 4: It is cloudy but not windy and the temperature is above 35°C if and only if there is
either a dust or a hail storm.
QUESTION 5
Using the symbols and their intended meaning given in Table 1, which of the options below is
a correct English translation of the following propositional logic sentence?
(r s t)
Option 1: There is either no dust or no hail storm or the temperature is not above 35°C.
Option 2: There is no dust and no hail storm or the temperature is not above 35°C.
Option 3: There is neither a dust nor a hail storm and the temperature is not above 35°C.
12
COS3761/101/3/2019
Option 4: There is neither a dust nor a hail storm or the temperature is not above 35°C.
QUESTION 6
Using the symbols and their intended meaning given in Table 1, which of the options below is
a correct English translation of the following propositional logic sentence?
t p q
Option 2: Only if the temperature is not above 35°C, it is windy and cloudy.
Option 3: It is windy and cloudy if and only if the temperature is not above 35°C.
QUESTION 7
Suppose you have to formally prove the validity of the following sequent using the basic
natural deduction rules:
q r ├ (p q) (p r)
Write out a proof on some rough paper and then choose the option below that gives a correct
strategy.
Option 1:
Inside the subsubproof, first derive q (using the e rule) and then r (using the e rule
again).
Option 2:
13
Have a subproof starting with the assumption of p.
Assume p q.
First derive q (using the e rule) and then r (using the e rule again).
Option 3:
Inside the subsubproof, first derive q (using the e rule) and then r (using the e rule
again).
Option 4:
Assume p.
Now derive q (using the e rule) and then r (using the e rule again).
QUESTION 8
Suppose you have to formally prove the validity of the following sequent using the basic
natural deduction rules:
14
COS3761/101/3/2019
Option 1:
1 pq premise
2 pq assumption
3 p e1 2
4 (p q) p i 2–3
5 p assumption
6 q e 1, 5
7 pq i 5, 6
8 p (p q) i 5–7
Option 2:
1 pq premise
2 pq assumption
3 p e1 2
4 (p q) p i 2–3
5 p assumption
6 q e 1, 5
7 pq i 5, 6
8 p (p q) i 5–7
15
Option 3:
1 pq premise
2 pq assumption
3 p e1 2
4 (p q) p i 2–3
5 q e 1, 3
6 pq i 3, 5
7 p (p q) i 3–6
Option 4:
1 pq premise
2 q assumption
3 p e 1, 2
4 pq i 2, 3
5 p copy 3
6 (p q) p i 4–5
7 p (p q) i 3–4
QUESTION 9
We have to prove the validity of the following sequent using the rules of natural deduction:
(p q) (p r) ├ p q r
The following proof is given but two lines are omitted. Which of the options below gives the
correct propositional logic sentence and the associated correct rule in both lines?
16
COS3761/101/3/2019
1 (p q) (p r) premise
2 p assumption
3 pq e1 1
4 q e 2, 3
6 r e 2, 5
8 p qr i 2-7
Option 1:
5 pr e2 1
7 qr i 4, 6
Option 2:
5 pr i 2
7 qr i 4, 6
Option 3:
5 pr e2 1, 3
7 qr i 4-6
Option 4:
5 pr e2 1
7 qr i 4-6
Option 5: None of the options above gives the correct propositional logic sentence and
associated rule for both lines.
QUESTION 10
We have to prove the following sequent using the basic natural deduction rules:
(p (q p)) q ├ p
In the proof below the rules that are used in three of the lines are omitted. Which option below
gives the correct rule in each line?
17
1 (p (q p)) q premise
2 p (q p)
3 q e2 1
4 p assumption
5 p copy 4
6 qp assumption
7 p
8 p
Option 1:
2 i 1
7 e 3, 6
8 e 1, 4 - 5, 6 – 7
Option 2:
2 e1 1
7 e 1, 4 - 5, 6
8 copy 5, 7
Option 3:
2 assumption
7 copy 4
8 copy 5, 7
Option 4:
2 e1 1
7 e 3, 6
8 e 2, 4 - 5, 6 - 7
Option 5: None of the options above gives correct rules for all three lines.
18
COS3761/101/3/2019
QUESTION 11
We have to prove the following sequent using the basic natural deduction rules:
In the proof below the sentences in three of the lines are omitted. Which option below gives
the correct sentence in each line?
1 pq premise
2 ¬pr premise
3 ¬q¬r premise
4 ¬q assumption
5 ¬r e 3, 4
6 assumption
7 r e 2, 6
8 ¬ e 5, 7
9 ¬i 6-8
10 p ¬¬e 9
11 q e 1, 10
12 ¬ e 4, 11
13 ¬¬q ¬ i 4 - 12
14 q ¬ ¬ e 13
Option 1:
6 ¬¬p
9
12
Option 2:
6 ¬p
9 ¬¬p
12
19
Option 3:
6 ¬p
9
12
Option 4:
6 ¬p
9 ¬¬p
12 ¬ q q
Option 5: None of the options above gives the correct sentence in every line.
QUESTION 12
Given the following propositional logic sentence, which of the options below is the
corresponding parse tree?
(p q r) (¬ r (q r))
Option 1:
p
¬
q r r q r
20
COS3761/101/3/2019
Option 2:
p
¬r
q q r
r
Option 3:
r ¬
q
p
r q r
Option 4:
¬r
r
q r
p q
Option 5: None of the options above gives the correct parse tree for the given sentence.
21
QUESTION 13
Given the following parse tree, which option below gives the associated propositional logic
sentence?
¬
¬ q
r
p r
q
Option 2: ¬ (¬ q (p r)) (r q)
Option 4: ¬ ((¬ q p) r) (r q)
Option 5: None of the options above gives the correct associated sentence.
Question 14
Which of the following sequents are valid:
Option 1: (p q r, q ├ r
Option2: p q, ¬ p ├ ¬ q
Option 3: (p q r, ¬ q ├ p
Option 4 : q, p ↔ q ├ p
Option 5 : Option 2 and option 4 are valid sequents.
QUESTION 15
Consider the following sequent and then choose the correct option below.
p (q r) ├ (p q) (p r)
Option 1: The sequent is valid and can be formally proved using natural deduction rules.
22
COS3761/101/3/2019
QUESTION 16
Consider the following sequent and then choose the correct option below.
p (q r) ├ (p q) (p r)
Option 1: The sequent is valid and can be formally proved using natural deduction rules.
QUESTION 17
Draw the truth tables of the following three propositional logic sentences and then choose the
correct option below.
q ( p r)
(q r) p
p (q r)
Option 1: q ( p r) ├ (q r) p.
23
QUESTION 18
A, B ╞ C
where A, B and C are propositional logic sentences. Choose the correct option below.
QUESTION 19
Suppose the HORN algorithm is used to determine whether the following propositional logic
sentence is satisfiable or not:
(p q s p) (q r p) (p s s) (T r)
After the first step has been executed, we have the following (underlining is used to
indicate marking):
(p q s p) (q r p) (p s s) (T r)
Which of the options below gives the situation after the next step has been completed?
Option 1: (p q s p) (q r p) (p s s) (T r)
Option 2: (p q s p) (q r p) (p s s) (T r)
Option 3: (p q s p) (q r p) (p s s) (T r)
Option 4: (p q s p) (q r p) (p s s) (T r)
QUESTION 20
24
COS3761/101/3/2019
Option 2: A sequent is valid if and only if the conclusion is true for all valuations.
25
ASSIGNMENT 02 FIRST SEMESTER
It will be to your own advantage to check whether the assignment has been
registered on the system after a few days.
If you want to submit the assignment electronically and myUnisa is off-line during
that time, you need not contact us, because we will be aware of it. Simply submit it
as soon as myUnisa is available again.
Extension No extension
Hint: Read carefully through the Tutorial letter 102 chapters 1 and 2
sections on models in Tutorial letter
102. (See Tutorial letter 102 about material that
need not be studied.)
40%
Weight of contribution to semester
mark 839876
Unique number
26
COS3761/101/3/2019
Predicate symbols
T(x) x is a teenager
W(x) x wins
Constants
E Eric
G Gail
R Radebe
H Harlequins
I Injas
Function symbol
Table 2
QUESTION 1 [18]
Use the predicate, function and constant symbols and their intended meanings given in Table
2 to translate the English sentences given below into predicate logic:
Question 1.1
Injas do not win any match except when Eric plays for them or when they play against
Harlequins.
Question 1.2
Every teenager is a soccer or a rugby player but no teenager plays both soccer and rugby.
27
Question 1.3
When Harlequins play against any club they win only if at least one player’s brother also plays
for Harlequins.
Question 1.4
There is a teenager that is a soccer player but does not play for any club.
Question 1.5
Radebe's brother and Gail play for Injas but Radebe plays for a different club.
Question 1.6
There is a rugby player that plays for Injas only if Eric does not play for Injas.
QUESTION 2 [10]
Use the predicate, function and constant symbols and their intended meanings given in Table
2 and translate the following sentences of predicate logic into English:
Question 2.1
Question 2.2
Question 2.3
Question 2.4
Question 2.5
QUESTION 3 [7]
Let
28
COS3761/101/3/2019
For each of the following, state whether it is a term or a well-formed formula (wff) or neither. If
it is not a term or a wff, state the reason.
3.1 P(f(c), x)
3.4 y
3.7 f(x)
QUESTION 4 [10]
where P is a predicate symbol with two arguments and Q is a predicate symbol with three
arguments.
Draw the parse tree of the formula and indicate the free and bound variables.
Suppose f is a function symbol with one argument. For each of the following substitutions,
state whether it will create a problem. If there is no problem, write down the substituted
formula. If there will be a problem, state how you would solve it and then write down the
substituted formula.
QUESTION 5 [4]
Show that the following set of formulas is consistent by constructing a model where both
formulas are true. Take A, the universe of concrete values, as the set of all integers n > 3.
(Note that the formula does not involve any function symbols.)
QUESTION 6 [6]
where R is a predicate with two arguments, construct two models: one model where the
sentence is true and another model where the sentence is false.
QUESTION 7 [4]
A = {a, b, c, d}
RM = {(a, a), (a, b), (a, c), (b, a), (b, b), (b, c), (b, d)}
QUESTION 8 [6]
Show that the validity of the following sequents cannot be proved by finding for each of them a
model where all formulas to the left of ├ evaluate to T but the formula to the right of ├
evaluates to F. Give two models in each case: one should be a mathematical model and the
other should be a non-mathematical model.
Question 8.1
x y S(x, y) ├ y x S(x, y)
Question 8.2
QUESTION 9 [35]
Using the rules of natural deduction, prove the validity of the following sequents in predicate
logic. In all cases, number your steps, indicate which rule you are using and indicate subproofs
clearly.
30
COS3761/101/3/2019
¬ x ¬ P(x) ├ x P(x)
31
ASSIGNMENT 03 FIRST SEMESTER
No unique number
848420
x2
q
x1
x3
p
p, q
x4
32
COS3761/101/3/2019
QUESTION 1
In which world of the Kripke model in Figure 2 is the formula □ ◊ ¬ q true?
Option 1: x1
Option 2: x2
Option 3: x3
Option 4: x4
Option 5: The formula is not true in any world of the Kripke model.
QUESTION 2
Which of the following holds in the Kripke model in Figure 2?
Option 1: x1 ╟ □ p
Option 2: x2 ╟ □ (p q)
Option 3: x3 ╟ ◊ p □ q
Option 4: x3 ╟ □ □ ¬ q
Option 5: x4 ╟ □ p □ ¬ q
QUESTION 3
Which of the following does not hold in the Kripke model given in Figure 2?
Option 1: x1 ╟ □ □ q
Option 2: x2 ╟ □ p q
Option 3: x2 ╟ ◊ p □ ¬ q
Option 4: x3 ╟ □ (p ¬ q)
Option 5: x4 ╟ p q
33
QUESTION 4
Which of the following formulas is true in the Kripke model given in Figure 2?
Option 1: ◊□q
Option 2: □ (p q)
Option 3: □◊q
Option 4: □p◊¬q
Option 5: qp
QUESTION 5
Which of the following formulas is false in the Kripke model given in Figure 2?
Option 1: ◊◊¬p
Option 2: ◊ (p q)
Option 3: □ ◊ (p q)
Option 4: p◊p
Option 5: □p◊¬p
QUESTION 6
If we interpret □ as "It ought to be that ", which of the following formulas correctly
expresses the English sentence
I ought to be happy and I'm allowed to be unhappy.
where p stands for the declarative sentence "I am happy"?
Option 1: □p◊p
Option 2: ¬◊¬p◊p
Option 3: □p◊¬p
Option 4: □p¬□p
Option 5: It is impossible to translate this sentence into a formula of modal logic with the
required interpretation.
34
COS3761/101/3/2019
QUESTION 7
If we interpret □ as "It is necessarily true that ", why should the formula scheme □ □ ¬
not hold in this modality?
Option 1: Because it is not the case that for all formulas , it is necessarily true that is
either true or false.
Option 3: Because for some formulas , is neither necessarily true nor necessarily false.
Option 4: Because for no formula , is either necessarily true or not possibly true.
QUESTION 8
If we interpret □ as "After any execution of program P, holds", why should the formula
scheme □ ◊ not hold in this modality?
Option 1: Because it is not the case that if holds after every execution P, then does not
hold after some execution of P.
Option 2: Because for a program P that never executes correctly, there is no execution of
P after which holds.
Option 3: Because even if there is some execution of P after which does not hold, it
doesn't mean that does not hold after any execution of P.
Option 4: Because there may be a program P such that even though holds after every
execution P, does not hold after some execution.
Option 5: □ ◊ should hold in this modality, because if holds after every execution
of P, it should hold after at least one execution of P.
QUESTION 9
If we interpret □ as "Always in the future (where the future does not include the present) it will
be true that ", which of the following formulas should not be valid?
Option 1: □pp
Option 2: □p□□q
Option 3: ◊¬p◊p
35
Option 4: ◊p¬◊◊¬p
Option 5: ◊¬p□□p
QUESTION 10
If we interpret □ as "Agent A believes ", what is the English translation of the formula □ p
◊ ¬ q?
Option 2: Agent A believes p and he believes that Agent B does not believe q.
QUESTION 11
If we interpret □ as "Agent A believes ", what formula will be correctly translated to English
as
If agent A believes p then he doesn't believe q.
Option 1: □p□¬q
Option 2: □ (p ¬ q)
Option 3: □p◊q
Option 4: □p◊¬q
Option 5: ◊ (¬ p ¬ q)
36
COS3761/101/3/2019
QUESTION 12
Consider the following Kripke frame:
x1 x2 x3
Which of the following modal logics does this frame conform to?
Option 1: KT
Option 2: KB
Option 3: KD
Option 4: K4
Option 5: KT45
The following natural deduction proof (without reasons) is referred to in Questions 13, 14 and
15:
1 ¬□
2 □p
3 □¬p
4 p
5 ¬p
6
7 □
8
9 ¬□¬p
10 □p¬□¬p
QUESTION 13
How many times are □ elimination and introduction rules used in the above proof?
37
Option 1: None
Option 2: □ elimination and □ introduction once are both used only once.
QUESTION 14
What is the correct reason for steps 1, 2 and 3 of the above proof?
Option 1: 1 premise
2 assumption
3 assumption
Option 2: 1 premise
2 ¬e 1
3 ¬i 2
Option 3: 1 assumption
2 ¬e 1
3 □e 4
Option 4: 1 assumption
2 □i 2
3 assumption
Option 5: 1 premise
2 □i 1
3 ¬i 2
QUESTION 15
What sequent is proved by the above proof?
38
COS3761/101/3/2019
Option 1: ◊ □p◊p
Option 2: □p◊p
Option 3: ¬□ ¬ □ (□ p ◊ p)
Option 4: ¬ □ (□ p ¬ □ ¬ p)
The following incomplete natural deduction proof is referred to in Questions 16 and 17:
1 □p assumption
2 p axiom T 1
3
4
5 ¬e 2,4
6 ¬□¬p ¬i 3-5
7 □p¬□¬p i 1-6
QUESTION 16
What formulas and their reasons are missing in steps 3 and 4 of the above proof?
Option 1: 3 □p copy 1
4 ¬□p ¬i 3
Option 4: 3 □p □i 2
4 ¬□p ¬i 3
39
QUESTION 17
In what modal logics is the above proof (with the correct formulas for steps 3 and 4) valid?
Option 1: K
Option 2: KD
Option 3: K4
Option 4: K5
Option 5: KT45
QUESTION 18
What proof strategy would you use to prove the following sequent:
□ (p q) KT4 □□p□□q
Open a dashed box and use elimination twice to obtain the separate atomic
formulas
.Use axiom 4 twice, i.e. once on each atomic formula, to add a □ to each.
Close the dashed box and use □ introduction twice, i.e. once on □ p and once
on □ q, to get □ □ p and □ □ q.
40
COS3761/101/3/2019
QUESTION 19
If we interpret Ki as "Agent i knows ", what is the English translation of the formula K 1 ¬ K2
p q?
QUESTION 20
If we interpret Ki as "Agent i knows ", what formula of modal logic is correctly translated to
English as
If agent 1 knows p then agent 2 doesn't know q.
41
Option 1: K1 p K2 ¬ q
Option 2: ¬ (K1 p K2 q)
Option 3: K1 (p ¬ K2 q)
Option 4: K1 ¬ K2 (p q)
Option 5: K1 ¬ p ¬ K 2 q
42
COS3761/101/3/2019
(MULTIPLE CHOICE)
If you want to submit the assignment electronically and myUnisa is off-line during
that time, you need not contact us, because we will be aware of it. Simply submit it
as soon as myUnisa is available again.
Extension No extension
Unique number
740847
Questions
20 questions, 5 options each. Choose one
option in every question.
We recommend
• that you write out a formal proof for (at least) questions 7 to 11 before choosing an option
and
• if you have access to a computer, that you use the Fitch software (supplied with the
textbook of the second-level Formal Logic module COS2661) to help you to choose the correct
option in questions dealing with formal proofs.
43
Propositional logic Declarative sentence associated with the
symbol symbol
p It is windy
q It is cloudy
Table 3
QUESTION 1
Using the symbols and their intended meaning given in Table 3, which of the options below is
a correct propositional logic translation of the following English sentence?
Option 1: p q r
Option 2: (p q) r
Option 3: r (p q)
Option 4: r (p q)
QUESTION 2
Using the symbols and their intended meaning given in Table 3, which of the options below is
a correct propositional logic translation of the following English sentence?
If there is hail storm, there is neither a dust storm nor is the temperature above 35°C.
Option 1: s ( r t)
Option 2: s (r t)
Option 3: s (r t)
Option 4: s r t
44
COS3761/101/3/2019
QUESTION 3
Using the symbols and their intended meaning given in Table 3, which of the options below is
a correct propositional logic translation of the following English sentence?
It is windy or not cloudy or the temperature is above 35°C unless there is a hail storm.
Option 1: s (p q t)
Option 2: s (p q t)
Option 3: s (p q t)
Option 4: s p q t
QUESTION 4
Using the symbols and their intended meaning given in Table 3, which of the options below is
a correct English translation of the following propositional logic sentence?
(r s)
Option 1: There is not a hail storm and there is not a dust storm.
Option 4: A hail storm and a dust storm do not occur at the same time.
QUESTION 5
Using the symbols and their intended meaning given in Table 3, which of the options below is
a correct English translation of the following propositional logic sentence?
s (q t)
Option 1: If it is cloudy and the temperature is not above 35°C, there is a hail storm.
Option 2: If it is cloudy or the temperature is not above 35°C, there is a hail storm.
Option 3: There is a hail storm only if it is cloudy and the temperature is not above 35°C.
Option 4: There is a hail storm only if it is cloudy or the temperature is not above 35°C.
45
QUESTION 6
Using the symbols and their intended meaning given in Table 3, which of the options below is
a correct English translation of the following propositional logic sentence?
( p q) (p q)
Option 1: It is either windy and not cloudy or it is cloudy and not windy.
QUESTION 7
Suppose you have to formally prove the validity of the following sequent using the basic
natural deduction rules:
p (q r), p q ├ p r
Write out a proof on some rough paper and then choose the option below that gives a correct
strategy.
Option 1:
Use the elimination rule three times, deriving q r, q and r one after the other.
Option 2:
Assume p.
Use the elimination rule three times, deriving q r, q and r one after the other.
Option 3:
46
COS3761/101/3/2019
Use the elimination rule three times, deriving q r, q and r one after the other.
Option 4:
Use the elimination rule three times, deriving q r, q and r one after the other.
Derive p r by using the introduction rule and then exit the subproof..
QUESTION 8
Suppose you have to formally prove the validity of the following sequent using the basic
natural deduction rules:
p q ├ r ((p s) (q s)) r
Option 1:
1 p q premise
2 r assumption
3 s assumption
4 sr i 2, 3
5 (p q) (s r) i 1, 4
47
Option 2:
1 p q premise
2 r assumption
3 s assumption
4 (p q) s i 1, 3
5 (p s) (q s) distributive 4
6 ((p s) (q s)) r i 2, 5
Option 3:
1 p q premise
2 r assumption
3 p assumption
4 (p s) (q s) i1 3
5 ((p s) (q s)) r i 2, 4
6 q assumption
7 (p s) (q s) i2 6
8 ((p s) (q s)) r i 2, 7
9 ((p s) (q s)) r e 1, 3 – 5, 6 - 8
48
COS3761/101/3/2019
Option 4:
1 p q premise
2 r assumption
3 p assumption
4 ps i1 3
5 (p s) (q s) i1 4
6 ((p s) (q s)) r i 2, 5
7 q assumption
8 qs i1 7
9 (p s) (q s) i2 8
10 ((p s) (q s)) r i 2, 9
11 ((p s) (q s)) r e 1, 3 – 6, 7 - 10
12 r ((p s) (q s)) r i 2 - 11
QUESTION 9
We have to prove the validity of the following sequent using the rules of natural deduction:
r, p (r q) ├ p (q r)
The following proof is given but two lines are omitted. Which of the options below gives the
correct propositional logic sentence and the associated correct rule in both lines?
1 r premise
2 p (r q) premise
4 rq e 2, 3
5 q e 1, 4
6 q r i 1, 5
7
49
Option 1:
3 q r assumption
7 p (q r) i 3-6
Option 2:
3 p assumption
7 p (q r) i 3-6
Option 3:
3 ¬ (p (q r)) assumption
7 ¬e 3–6
Option 4:
3 p assumption
Option 5: None of the options above gives the correct propositional logic sentence and
associated rule for both lines.
QUESTION 10
We have to prove the following sequent using the basic natural deduction rules:
├ ¬ p (p (p q))
In the proof below the rules that are used in three of the lines are omitted. Which option below
gives the correct rule in each line?
1 ¬p assumption
2 p
3
4 p q
5 p (p q) i 2-4
6 ¬ p (p (p q)) i 1-5
Option 1:
2 premise
3 ¬e 1
50
COS3761/101/3/2019
4 e 3
Option 2:
2 assumption
3 ¬ e 1, 2
4 e 3
Option 3:
2 assumption
3 ¬e 1
4 i 2-3
Option 4:
2 assumption
3 ¬ e 1, 2
4 e 2-3
Option 5: None of the options above gives correct rules for all three lines.
QUESTION 11
We have to prove the following sequent using the basic natural deduction rules:
p (q r), ¬ q, ¬ r ├ ¬ p
In the proof below the sentences in three of the lines are omitted. Which option below gives
the correct sentence in each line?
51
1 p (q r) premise
2 ¬q premise
3 ¬r premise
4 assumption
5 qr e 1, 4
6 q assumption
7 ¬ e 2, 6
8 r assumption
9 ¬ e 3, 8
10 e 5, 6 – 7, 8 - 9
11 ¬p ¬ i 4 - 10
Option 1:
4 p
7
10
Option 2:
4 p
7 ¬p
10
Option 3:
4 ¬p
7
10 ¬p
Option 4:
4 ¬p
7
52
COS3761/101/3/2019
10
Option 5: None of the options above gives the correct sentence in every line.
QUESTION 12
Given the following propositional logic sentence, which of the options below is the
corresponding parse tree?
(¬ p q) (¬ r (q (p r)))
Option 1:
¬ q
¬ q r p r
53
Option 2:
¬
p q
¬
r q
p r
Option 3:
¬ q
p ¬ q p r
54
COS3761/101/3/2019
Option 4:
q ¬
¬
p q
r
rp r
Option 5: None of the options above gives the correct parse tree for the given sentence.
QUESTION 13
Given the following parse tree, which option below gives the associated propositional logic
sentence?
r
¬
s r ¬ r
q p s
55
Option 1: (s r) ((¬ q r) (¬ (p s) r))
Option 2: (s r) (¬ q r) ((¬ p s) r)
Option 3: (s r) (¬ (q r)) (¬ (p s) r)
Option 4: (s r) (¬ q r) ¬ (p (s r))
Option 5: None of the options above gives the correct associated sentence.
QUESTION 14
Given the following parse tree, which option below gives the associated propositional logic
sentence?
¬
¬
¬ q
r
p r
q
56
COS3761/101/3/2019
QUESTION 15
Consider the following sequent and then choose the correct option below.
(p q) s, s ├ p ¬ q
Option 1: The sequent is valid because the relation (p q) s, s ├ p ¬ q
holds as shown by the following valuation:p=T, q=T, s = False
QUESTION 16
Consider the following sequent and then choose the correct option below.
p q, s t ├ (p s) (q t)
Option 1: The sequent is valid and can be formally proved using natural deduction rules.
p = F, q = F, s = F, t = T
p = F, q = T, s = T, t = F
p = F, q = F, s = T, t = T
QUESTION 17
Draw the truth tables of the following three propositional logic sentences and then choose the
correct option below.
p r
(r q)
57
(p r) q
Option 1: p r, (r q) ├ (p r) q
QUESTION 18
A, B ╞ C
where A, B and C are propositional logic sentences. Choose the correct option below.
Option 4: A, B ╞ C means that C will only be true if both A and B are true.
QUESTION 19
Suppose the HORN algorithm is used to determine whether the following propositional logic
sentence is satisfiable or not:
(p q s ) (q r p) (T s) (s q)
After the first step has been executed, we have the following (underlining is used to indicate
marking):
(p q s ) (q r p) (T s) (s q)
Which of the options below gives the situation after the next step has been completed?
58
COS3761/101/3/2019
Option 1: (p q s ) (q r p) (T s) (s q)
Option 2: (p q s ) (q r p) (T s) (s q)
Option 3: (p q s ) (q r p) (T s) (s q)
Option 4: (p q s ) (q r p) (T s) (s q)
QUESTION 20
Option 2: A sequent can be proved to be valid if there is at least one valuation that makes
the premises and the conclusion true.
Option 3: A formula is semantically entailed by other formulas if there is at least one
valuation that makes all the formulas true.
59
ASSIGNMENT 02 SECOND SEMESTER
It will be to your own advantage to check whether the assignment has been
registered on the system after a few days.
If you want to submit the assignment electronically and myUnisa is off-line during
that time, you need not contact us, because we will be aware of it. Simply submit it
as soon as myUnisa is available again.
Extension No extension
Unique number
838540
60
COS3761/101/3/2019
Predicate symbols
T(x) x is a teenager
W(x) x wins
Constants
e Eric
g Gail
r Radebe
h Harlequins
i Injas
Function symbol
Table 4
QUESTION 1 [18]
Use the predicate, function and constant symbols and their intended meanings given in Table
4 to translate the English sentences given below into predicate logic:
Question 1.1
If Gail’s brother plays for some club, all rugby players play for Harlequins.
Question 1.2
A club will only win against Injas if Radebe and his brother play for that club.
Question 1.3
There is a soccer player who will play for Harlequins if and only if no teenager plays for them.
61
Question 1.4
Question 1.5
If two brothers play for Injas, Injas will win at least one match.
Question 1.6
QUESTION 2 [10]
Use the predicate, function and constant symbols and their intended meanings given in Table
4 and translate the following sentences of predicate logic into English:
Question 2.1
Question 2.2
Question 2.3
Question 2.4
Question 2.5
QUESTION 3 [7]
Let
For each of the following, state whether it is a term or a well-formed formula (wff) or neither. If
it is not a term or a wff, state the reason.
62
COS3761/101/3/2019
3.2 f(f(f(c)))
3.3 (x y) c
3.7 y Q(y, c)
QUESTION 4 [10]
where P is a predicate symbol with two arguments and Q is a predicate symbol with three
arguments.
Draw the parse tree of the formula and indicate the free and bound variables.
Suppose f is a function symbol with one argument. For each of the following substitutions,
state whether it will create a problem. If there is no problem, write down the substituted
formula. If there will be a problem, state how you would solve it and then write down the
substituted formula.
QUESTION 5 [4]
Show that the following set of formulas is consistent by constructing a model where both
formulas are true. Take A, the universe of concrete values, as the set of all integers n > 0.
(Note that the formula does not involve any function symbols.)
63
QUESTION 6 [6]
¬ x y R(x, y) x R(x, x)
where R is a predicate with two arguments, construct two models: one model where the
sentence is true and another model where the sentence is false.
QUESTION 7 [4]
A = {a, b, c}
RM = {(a, a), (b, b), (c, c), (a, b), (b, a), (b, c)}
QUESTION 8 [6]
Show that the validity of the following sequents cannot be proved by finding for each of them a
model where all formulas to the left of ├ evaluate to T but the formula to the right of ├
evaluates to F. Give two models in each case: one should be a mathematical model and the
other should be a non-mathematical model.
Question 8.1
Question 8.2
QUESTION 9 [35]
Using the rules of natural deduction, prove the validity of the following sequents in predicate
logic. In all cases, number your steps, indicate which rule you are using and indicate subproofs
clearly.
64
COS3761/101/3/2019
x ¬ P(x) ├ ¬ x P(x)
x ((P(x) Q(x)) (R(x) S(x))), x ((T(x) R(x)) Q(x)), x T(x)├ x (T(x) R(x))
65
ASSIGNMENT 03 SECOND SEMESTER
unique number
838299
Questions
20
x3
x2 qqx
3
x1 p pp x4
66
COS3761/101/3/2019
QUESTION 1
QUESTION 2
Which of the following holds in the Kripke model given in Figure 1?
Option 1: x1 ╟ □ p
Option 2: x2 ╟ □ (p q)
Option 3: x3 ╟ □ p ◊ q
Option 4: None of the above
QUESTION 3
Which of the following does not hold in the Kripke model given in Figure 1?
Option 1: x1 ╟ ◊ q
Option 2: x1 ╟ □ (p q)
Option 3: x2 ╟ □ ◊ p
Option 4: All of the above
QUESTION 4
Which of the following options is true in the Kripke model given in Figure 1?
Option 1: ◊p
Option 2: □q
Option 3: qp
Option 4: None of the above
QUESTION 5
Which of the following formulas is false in the Kripke model given in Figure 1?
Option 1: x1 ╟ p q
Option 2: x2 ╟ □□p
Option 3: x3 ╟ □ (p q)
Option 4: None of the above
67
QUESTION 6
If we interpret □ as "It ought to be that ", which of the following formulas correctly
expresses the English sentence
It ought to be that if I am happy, I'm allowed to be unhappy.
where p stands for the declarative sentence "I am happy"?
Option 1: □p◊¬p
Option 2: ◊¬p¬□p
Option 3: □ (p □ ¬ p)
Option 4: □ (p ¬ ◊ p)
.
QUESTION 7
If we interpret □ as "It is necessarily true that ", why should the formula scheme □
hold in this modality?
Option 1: Because for all formulas , it is necessarily true that if then .
Option 2: Because for all formulas , if is necessarily true, then it is true.
Option 3: Because for all formulas , if is not possibly true, then it is true.
Option 4: Because for all formulas , is necessarily true if it is true.
QUESTION 8
If we interpret □ as "After any execution of program P, holds", why should the formula
scheme □ not hold in this modality?
Option 1: Just because holds after every execution of P doesn't necessarily mean that
holds before execution of P.
Option 2: Because it is not that case that after any execution of P, if holds then holds.
Option 3: Because if does not hold before execution of P, it doesn't necessarily mean
that holds after any execution of P.
Option 4: Because if does not hold after every execution of P, it doesn't necessarily
mean that holds before any execution of P.
QUESTION 9
If we interpret □ as "Always in the future (where the future does not include the present) it
will be true that ", which of the following formulas should not be valid?
Option 1: □ p □ □ p
68
COS3761/101/3/2019
Option 2: ¬ □ p ¬ ◊ ◊ ¬ p
Option 3 : ¬ ◊ ¬ p □ p
QUESTION 10
If we interpret □ as "Agent A believes ", what is the English translation of the formula □ p
¬ ◊ q?
Option 1: If Agent A believes p, then Agent B does not believe q.
Option 2: Agent A believes that if p, then q is not consistent with Agent A's beliefs.
Option 3: Agent A believes that if p, then Agent B does not believe q.
Option 4: If Agent A believes p, then Agent A believes not q.
QUESTION 11
If we interpret □ as "Agent A believes ", what formula will be correctly translated to English
as
Agent A does not believe p or q.
Option 1: ◊ ¬ (p q)
Option 2: □ ¬ (p q)
Option 3: ¬□pq
Option 4: ◊¬pq
QUESTION 12
x1 x2 x3 x4
Which of the following modal logics does this frame conform to?
Option 1: KT
Option 2: KB
Option 3: KD
Option 4: K4
The following natural deduction proof (without reasons) is referred to in Questions 13, 14 and
15:
69
1 □ (p q)
2 pq
3 p
4 q
5 □p
6 □q
7
8 □p□q
9 □ (p q) (□ p □ q)
QUESTION 13
How many times are □ elimination and introduction rules used in the above proof?
Option 1: None
Option 2: □ elimination and □ introduction are both only used once.
Option 3: □ elimination is used only once but □ introduction twice.
Option 4: □ elimination is used twice but □ introduction only once.
QUESTION 14
What is the correct reason for steps 1, 2 and 3 of the above proof?
Option 1: 1 assumption
2 axiom T in line 1
3 e 2
Option 2: 1 premise
2 □i 1
3 □e 2
Option 3: 1 premise
2 assumption
3 i 2
Option 4: 1 assumption
2 □e 1
3 e 2
QUESTION 15
70
COS3761/101/3/2019
Option 1: □ (p q) □ (p q) (□ p □ q)
Option 2: □ (p q) □p□q
Option 3: □ (p q) (□ p □ q)
Option 4: □p□q
The following incomplete natural deduction proof is referred to in Questions 16 and 17:
1 □¬□¬□p assumption
2
3 ¬□p assumption
4
5 ¬e 2,4
6 □p PBC 3-5
7
8 □¬□¬□p□□p i 1-7
QUESTION 16
Rules T, 4 and 5 are used in the missing lines of the above proof. Which rule is used in which
line?
Option 1: Rule T is used in line 2, rule 4 is used in line 4 and rule 5 is used in line 7.
Option 2: Rule 4 is used in line 2, rule 5 is used in line 4 and rule T is used in line 7.
Option 3: Rule T is used in line 2, rule 5 is used in line 4 and rule 4 is used in line 7.
Option 4: Rule 5 is used in line 2, rule T is used in line 4 and rule 4 is used in line 7.
QUESTION 17
QUESTION 18
What proof strategy would you use to prove the following sequent:
├ KT4 □ □ (p q) (□ p □ q)
Option 1:
71
• Open a solid box and start with □ □ (p q) as an assumption.
• Use axiom T to remove one □.
• Open a dashed box and use □ elimination to get p q.
• Use elimination twice to obtain the separate atomic formulas.
• Close the dashed box and use □ introduction twice, i.e. once on each of the atomic
formulas.
• Combine □ p and □ q using introduction.
• Close the solid box and use introduction on the first and last formulas to get the result.
Option 2:
• Start with □ □ (p q) as a premise.
• Use axiom T twice to remove both □ to get p q.
• Use elimination once to obtain the separate atomic formulas.
• Use axiom 4 twice, i.e. once on each atomic formula to add a □.
• Combine □ p and □ q using introduction.
• Use introduction on the first and last formulas to get the result.
Option 3:
• Start with □ □ (p q) as a premise.
• Open a dashed box and use □ elimination to get □ (p q).
• Open another dashed box and use □ elimination to get p q.
• Use elimination twice to obtain the separate atomic formulas.
• Close the first dashed box and use □ introduction on the first atomic formula.
• Close the second dashed box and use □ introduction on the second atomic formula.
• Combine □ p and □ q using introduction.
• Use introduction on the first and last formulas to get the result.
Option 4:
• Open a solid box and start with □ □ (p q) as an assumption.
• Open a dashed box and use □ elimination to get □ (p q).
• Use axiom T to remove one □ to get p q.
• Use elimination twice to obtain the separate atomic formulas.
• Use axiom 4 twice, i.e. once on each atomic formula to add a □.
• Close the dashed box and combine □ p and □ q using introduction.
• Close the solid box and use introduction on the first and last formulas to get the result.
QUESTION 19
If we interpret Ki as "Agent i knows ", what is the English translation of the formula K1 K2 ¬
p q?
Option 1: Agent 1 knows that agent 2 doesn't know p implies q.
Option 2: Agent 1 knows that agent 2 knows that not p implies q.
Option 3: Agent 1 knows that if agent 2 doesn't know p, then q.
Option 4: If agent 1 knows that agent 2 knows not p, then q.
72
COS3761/101/3/2019
QUESTION 20
If we interpret Ki as "Agent i knows ", what formula of modal logic is correctly translated to
English as
Agent 1 knows p but he doesn't know that agent 2 knows q.
Option 1: K1 (p ¬ K2 q)
Option 2: K1 (p K2 ¬ q)
Option 3: K1 p ¬ K 1 K 2 q
Option 4: K1 p K1 ¬ K 2 q
73
8.7 Other assessment methods
There are no assessment methods for this module.
8.8 The examination
Use the brochure my Studies @ Unisa for general examination guidelines and examination
preparation guidelines.
Make a note of your examination dates and arrange with your employer for leave in good time.
The COS3761 examination will be in May or June if you are registered for the first semester
and in October or November if you are registered for the second semester. Check for clashes
on the examination timetable and should there be any between your modules, discuss them
with the Student Administration department.
• To gain admission to the examination, you have to submit at least one assignment by its due
date.
10 SOURCES CONSULTED
Prescribed book
• COS3761 Study guide
11 IN CLOSING
Submit all three assignments. In your studies this year you will acquire skills in reasoning and
evaluating arguments. If you study hard and purposefully, you are on your way to success.
We hope that you will enjoy your studies at Unisa. Everything of the best with your studies
this year.
12 ADDENDUM
None
UNISA 2019
74