Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!security!genrad!grkermit!masscomp!clyde!ihnp4!zehntel!hplabs!sri-unix!v.Bijan@UCLA-LOCUS From: v.Bijan@UCLA-LOCUS@sri-unix.UUCP Newsgroups: net.lang.prolog Subject: Help With Two Prolog Problems Message-ID: <12422@sri-arpa.UUCP> Date: Mon, 10-Oct-83 22:34:56 EDT Article-I.D.: sri-arpa.12422 Posted: Mon Oct 10 22:34:56 1983 Date-Received: Tue, 18-Oct-83 03:44:57 EDT Lines: 153 From: Bijan Arbab Please see if you have a solution, hint, reference, interest or etc. in the following two problems I am posting. The description of the first problem is rather long so please drag along (I am sorry for that). First Problem: 1. on planning and the 'frame problem' In the book 'Logic For Problem Solving' on p.133 Kowalski writes: "... The use of logic, in both the n-ary and binary representations, runs into the 'frame problem': how to deal with the fact that almost all statements which hold true of a given state continue to hold after an action has been preformed. It has aften been assumed that such facts cannot be expressed naturally in logic and cannot be used efficiently. The supposed inadequacies of logic have led to the development of special system, such as Strips and Planner. We shall argue that an equally satisfactory treatment of the frame problem can be obtained in logic: by using terms to name statements and by using the frame axiom, which describes the statement which continue to hold after an action has been preformed, top-down rather than bottom-up." He then continues to explain; on pp 135 he gives the following program: Initial state 0 (1) poss(0) (2) holds(on(a,b),0) (3) holds(on(b,p),0) A (4) holds(on(c,r),0) B C (5) holds(clear(a),0) ------------- (6) holds(clear(q),0) p q r (7) holds(clear(c),0) State-Independent Assertions (8) manip(a) (9) manip(b) (10) manip(c) Goal State (11) <- holds(on(a,b),W), holds(on(b,c),W), holds(on(c,r),W), poss(W). State Space and Preconditions (12) poss(result(trans(X,Y,Z),W) <- poss(W), manip(X), diff(X,Z), holds(clear(X),W), holds(clear(Z),W), holds(on(X,Y),W). Added Statements (13) holds(on(X,Z), result(trans(X,Y,Z),W)) (14) holds(clear(Y), result(trans(X,Y,Z),W)) Frame Axiom and Deleted Statements (15) holds(U,result(trans(X,Y