Docsity

Analyzing Redundant Axioms & Building Situation Calculus and STRIPS for Coin World, Study notes of Computer Numerical Control

Toggle sidebar
bg1
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
pf2

Partial preview of the text

Download Analyzing Redundant Axioms & Building Situation Calculus and STRIPS for Coin World and more Study notes Computer Numerical Control in PDF only on Docsity!

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 s 0 , to denote the initial situation, and say things like “The 10p piece is on node B in situation s 0 .'') 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

logical sentence that represents the goal of this coins-world planning problem. e) Recall that in proving that the logical sentence representing the goal logically follows from the situation calculus representation, we can extract an answer, which is a term encoding a plan for achieving the goal. What answer could be extracted in this case? What plan is encoded in this answer?

  1. The aim of this problem is to build a STRIPS representation of the coin world. a) Specify the STRIPS action. b) Recall that the STRIPS termination condition is specified as a sentence of first-order predicate calculus. For this problem, what sentence should be used? c) Now consider a progressive planner that starts at the initial state and applies possible operators. Show the entire search space confronted by this planner to depth two. Indicate the initial state in the search space. Label the arcs of the search space to indicate which operator is being applied. Indicate all goal states in the search space. That is, show the initial state and all states that can be reached by applying two operators. d) Show the trace of a regression planner for the goal where the 5p piece should be on node E and the 10p piece on node D. Does the order of the goal predicates matter? 5. Consider the sock and shoe example presented in the lectures. a) Modify it to include operators for putting on a hat and coat. b) Give a diagrammatic representation of the partial order plan. c) Give one linearisation.