
Logic Programming and Artificial Intelligence
Practical Problem Sheet 9
1. The following axioms are all redundant with those that we already have in
the situation calculus representation of the blocks world:
(a) The table is never on anything.
(b) Nothing is ever on itself.
(c) The on relation is anti-transitive.
(d) If there are at least two blocks, then there is something on something.
State each of these as sentences of the situation calculus and argue
convincingly that each is a logical consequence of sentences that we
already have in the representation. In particular, identify the sentences
from which it follows.
2. To our dynamic blocks world representation it would be redundant to add
two frame axioms stating the non-effects of putdown on held and on clear.
State these two frame axioms both in English and in the situation calculus.
Argue convincingly that each is a logical consequence of sentences that
we already have in the representation. In particular, identify the sentences
from which it follows.
3. In this problem you are to formulate a situation calculus representation of
the coin world. The coin world consists of the following graph:
[A]----[B] [F]
|||
|||
|||
[C]----[D]----[E]
with a 5p piece on node C and a 10p piece on node B. A coin can be slid from
any node to any adjacent node that doesn't already have a coin on it. The
goal is to get the two coins onto adjacent nodes with the 5p piece on node E.
a) Specify the lexicon that you will use for your representation, and give
the intended interpretation of each symbol.
b) Specify a set of sentences to represent the initial situation. (Hint: Use a
constant symbol, say s0, to denote the initial situation, and say things
like “The 10p piece is on node B in situation s0.'')
c) Complete your representation of the coin world by specifying the
atemporal axioms, the intra-situational axioms, the causal axioms, and
the frame axioms. State each axiom in English and in first-order
predicate calculus.
d) Recall that we can represent a planning problem in the situation
calculus, and in doing so we represent the goal of the problem as a
logical sentence. Also recall that this sentence logically follows from
the representation iff the planning problem has a solution. Specify the