1992-Concurrent Actions in the Situation Calculus

Total Page:16

File Type:pdf, Size:1020Kb

1992-Concurrent Actions in the Situation Calculus From: AAAI-92 Proceedings. Copyright ©1992, AAAI (www.aaai.org). All rights reserved. Concurrent Actions in t Fang&en Lin and Uoav Shoharn Department of Computer Science Stanford University Stanford, CA 94305 Abstract tions, and In expresses the membership relation be- tween global actions and primitive actions. When a We propose a representation of concurrent actions; global action is performed in a situation, all of the rather than invent a new formalism, we model primitive actions in it are performed simultaneously. them within the standard situation calculus by in- Formally, the extended situation calculus is a multi- troducing the notions of global actions and prim- sorted first-order logic with four domain-independent itive actions, whose relationship is analogous to sorts: situation sort (s), propositional fluent sort (p), that between situations and fluents. The result global action sort (g), and primitive action sort (a). is a framework in which situations and actions We have a binary function Result with the intuitive play quite symmetric roles. The rich structure meaning that ResuZt(g, s) is the resulting situation of of actions gives rise to a new problem, which, performing the global action g in the situation s. We due to this symmetry between actions and situ- have two binary predicates, H and In. Intuitively, ations, is analogous to the traditional frame prob- H(p, s) means that the fluent p is true in the situation lem. In [Lin and Shoham 19911 we provided a so- s, and In(a, g) means that the primitive action a is one lution to the frame problem based on a formal ad- of the actions in g. equacy criterion called “epistemological complete- For any finite set of primitive actions, Al, . An, we ness.” Here we show how to solve the new problem assume that {Al, . An} is a global action satisfying based on the same adequacy criterion, the following properties: Va.(In(a, {Al, . An}) E (a = Al V . V a = An)), Introduction (1) In [Lin and Shoham 19911 we proposed a methodology and for formalizing the effects of actions in the situation Vg(Va.(In(a, g) E (a = A1 V . V a = An)) 3 calculus. In this paper we extend this methodology to a framework which allows concurrent actions. g = {AI, . An}). (2) Recall that traditional situation calculus [McCarthy If A is a primitive action, then we shall write (A} and Hayes 19691 is a many-sorted first-order logic with as A. Most often, whether A is a primitive action the following domain independent sorts: situation sort or the corresponding global action {A} will be clear (s), propositional fluent sort (p), and action sort (a). from the context. For example, A is a global action in There is a domain independent function ResuZt(a, s), ResuZt(A, s), but a primitive action in In(A,g). We which represents the resulting situation when a is shall make it clear whenever there is a possibility of performed in s, and a domain independent predicate confusion. H(p, s), which asserts that p holds in s. To be sure, there are other proposals in the litera- It is clear that there is an asymmetry between ac- ture for extending the situation calculus to allow ex- tions and situations in this picture. While situations pressions for concurrent actions. Most introduce new are ‘rich’ objects, as manifested by the various fluents operators on actions [cf. Gelfond et al. 1991, Shubert that are true and false in them, actions are ‘poor,’ 19901. For example, in [Celfond et al. 19911 a new op- primitive objects. In this paper, we propose to model erator “+” is introduced, with the intuitive meaning concurrent actions in the situation calculus by correct- that a + b is the action of executing a and b simul- ing this asymmetry. We introduce the notions of global taneously. This approach is common also in the pro- actions, primitive actions, and the binary predicate In, gramming languages community. The relationships be- whose roles will be completely analogous to those of tween our formalism and those with new operators for situations, fluents, and the predicate H, respectively. concurrent actions are delicate. It seems that our for- Intuitively, a global action is a set of primitive ac- malism is more convenient in expressing complicated 590 Representation and Reasoning: Action and Change actions such as the global action where every agent if, given a complete description of the initial situation, makes a move. the theory enables us to predict a complete description Another way to extend the situation calculus is to of the resulting situation when the action is performed. think of Result as a relation, rather than a function. In order to formalize this intuition, we first introduce For example, we can introduce RES(a, sr, sz) with the notion of states, which are complete descriptions the intuitive meaning that s2 is one of the situations of situations with respect to the set of the fluents we resulted from executing a, along with possibly some are interested in. other actions, in sr. This is essentially the approach In the following, let P be a fixed set of ground fluent taken in [Georgeff 1986, Peleg 1987, and others]. The terms in which we are interested. This fixed set of flu- drawback of this approach is that it does not explic- ents plays a role similar to that of the Frame predicate itly list the additional actions that cause the transition in [Lifschitz 19901. from sr to ~2. Thus Georgeff (1986) had difficulty in Definition 1 A set SS is a state of the situation S formalizing the effect of a single action when performed (with respect to P) ij th ere is a subset P’ of P such exclusively. that A more radically different approach to concurrency is via temporal logic [Allen 1984, McDermott 19821. SS = (H(P, S) 1 P E P’) u (yH(P, S) 1 P E P -7”). For a comparison between the situation calculus ap- proach to reasoning about action and that of temporal Therefore, if SS is a state of S, then for any P E P, logic, see [Pelavin and Allen 1987, Shoham 19891. either H(P, S) E SS or lH(P, S) E SS. The rest of the paper is organized as follows. In Thus we can say that a first-order theory T is episte- section 2 we introduce a formal criterion, called epis- mologically complete about the global action G (with temological completeness, to evaluate theories of ac- respect to P) if it is consistent, and for any ground tions. This criterion was first introduced in [Lin and situation term S, any state SS of S, and any flu- Shoham 19911 in the context of traditional situation ent P E P, either T U SS b H(P, ResuZt(G, S)) or calculus with respect to primitive actions; the exten- T U SS j= lH(P, ResuZt(G,S)), where b is classical sion to global actions is straightforward. In section 3, first-order entailment. we show that this criterion not only help us clarify However, as is well-known, classical entailment is not the traditional (fluent-oriented) frame problem, as we the only choice, we may also interpret our language have done in [Lin and Shoham 19911, it also clarifies nonmonotonically according to a nonmonotonic entail- the new action-oriented frame problem. In section 4, ment. Indeed, the notion of epistemological complete- we illustrate our solution to these problems using the ness is not limited to monotonic first-order theories. In well-known Stolen Car Problem. The solution is ex- general, for any given monotonic or nonmonotonic en- tended to a class of causal theories in section 5, and tailment j=c, we can define epistemological complete- compared to others in the context of conflicting sub- ness as follows: actions in section 6. Finally, we conclude in section Definition 2 A theory T is epistemologically com- 7. plete about the action G (with respect to P, and ac- cording to kc) if T &tc FaZse, and for any ground Epistemologically complete theories of situation term S, any state SS of S, and any jZu- action end P E Q, there is a finite subset SS’ of SS such In the situation calculus we formalize the effects of ac- that either T /=c /\SS > H(P, ResuZt(G, S)) or tions using first-order logic. However, as is well-known, T /=c ASS’ I lH(P, ResuZt(G, S)). adopting classical semantics leads to problems such as We note that for any sets T, SS, and formula (p, TU the frame problem, the ramification problem, et cetera. SS b cp if there is a finite subset SS’ of SS such that In [Lin and Shoham 19911 we argued that the ultimate T b A SS’ > p. Thus if we replace k= in Definition 2 criterion against which to evaluate theories of (prim- by classical entailment b, we get the same definition itive) actions is what we called epistemological com- we have earlier for monotonic first-order theories. pleteness. The various problems amount to achieving this completeness in a precise and concise fashion. We The frame problems shall see that, when we introduce concurrency, new problems arise. However, the notion of epistemolog- There are a number of well-known problems in formal- ical completeness is relevant also to their definition izing the effects of actions. The most famous one is and solution. This section therefore repeats some key the frame problem [McCarthy and Hayes 19691, which definitions from [Lin and Shoham 19911, appropriately is best illustrated by an example.
Recommended publications
  • Mccarthy Variations in a Modal Key ∗ Johan Van Benthem A,B
    CORE Metadata, citation and similar papers at core.ac.uk Provided by Elsevier - Publisher Connector Artificial Intelligence 175 (2011) 428–439 Contents lists available at ScienceDirect Artificial Intelligence www.elsevier.com/locate/artint McCarthy variations in a modal key ∗ Johan van Benthem a,b, a University of Amsterdam, Institute for Logic, Language and Computation (ILLC), P.O. Box 94242, Amsterdam, GE, Netherlands b Stanford, United States article info abstract Article history: We take a fresh look at some major strands in John McCarthy’s work from a logician’s Available online 3 April 2010 perspective. First, we re-analyze circumscription in dynamic logics of belief change under hard and soft information. Next, we re-analyze the regression method in the Situation Keywords: Calculus in terms of update axioms for dynamic–epistemic temporal logics. Finally, we Circumscription draw some general methodological comparisons between ‘Logical AI’ and practices in Fixed-point logic Structural rules modal logic, pointing at some creative tensions. Belief change © 2010 Elsevier B.V. All rights reserved. Situation Calculus Temporal logic Regression method Dynamic epistemic logic 1. Introduction John McCarthy is a colleague whom I have long respected and admired. He is a truly free spirit who always commu- nicates about issues in an open-minded way, away from beaten academic tracks and entrenched academic ranks. Each encounter has been a pleasure, from being involved with his creative Ph.D. students in Logical AI (each a remarkable char- acter) to his lively presence at our CSLI workshop series on Logic, Language and Computation – and most recently, his participation in the Handbook of the Philosophy of Information [1].
    [Show full text]
  • John Mccarthy – Father of Artificial Intelligence
    Asia Pacific Mathematics Newsletter John McCarthy – Father of Artificial Intelligence V Rajaraman Introduction I first met John McCarthy when he visited IIT, Kanpur, in 1968. During his visit he saw that our computer centre, which I was heading, had two batch processing second generation computers — an IBM 7044/1401 and an IBM 1620, both of them were being used for “production jobs”. IBM 1620 was used primarily to teach programming to all students of IIT and IBM 7044/1401 was used by research students and faculty besides a large number of guest users from several neighbouring universities and research laboratories. There was no interactive computer available for computer science and electrical engineering students to do hardware and software research. McCarthy was a great believer in the power of time-sharing computers. John McCarthy In fact one of his first important contributions was a memo he wrote in 1957 urging the Director of the MIT In this article we summarise the contributions of Computer Centre to modify the IBM 704 into a time- John McCarthy to Computer Science. Among his sharing machine [1]. He later persuaded Digital Equip- contributions are: suggesting that the best method ment Corporation (who made the first mini computers of using computers is in an interactive mode, a mode and the PDP series of computers) to design a mini in which computers become partners of users computer with a time-sharing operating system. enabling them to solve problems. This logically led to the idea of time-sharing of large computers by many users and computing becoming a utility — much like a power utility.
    [Show full text]
  • A Logic-Based Calculus of Events
    10 A Logic-based Calculus of Events ROBERT KOWALSKI and MAREK SERGOT 1 introduction Formal Logic can be used to represent knowledge of many kinds for many purposes. It can be used to formalize programs, program specifications, databases, legislation, and natural language in general. For many such applications of logic a representation of time is necessary. Although there have been several attempts to formalize the notion of time in classical first-order logic, it is still widely believed that classical logic is not adequate for the representation of time and that some form of non-classical Temporal Logic is needed. In this paper, we shall outline a treatment of time, based on the notion of event, formalized in the Horn clause subset of classical logic augmented with negation as failure. The resulting formalization is executable as a logic program. We use the term ‘‘event calculus’’ to relate it to the well-known ‘‘situation calculus’’ (McCarthy and Hayes 1969). The main difference between the two is conceptual: the situation calculus deals with global states whereas the event calculus deals with local events and time periods. Like the event calculus, the situation calculus can be formalized by means of Horn clauses augmented with negation by failure (Kowalski 1979). The main intended applications investigated in this paper are the updating of data- bases and narrative understanding. In order to treat both cases uniformly we have taken the view that an update consists of the addition of new knowledge to a knowledge base. The effect of explicit deletion of information in conventional databases is obtained without deletion by adding new knowledge about the end of the period of time for which the information holds.
    [Show full text]
  • Reconciling Situation Calculus and Fluent Calculus
    Reconciling Situation Calculus and Fluent Calculus Stephan Schiffel and Michael Thielscher Department of Computer Science Dresden University of Technology stephan.schiffel,mit @inf.tu-dresden.de { } Abstract between domain descriptions in both calculi. Another ben- efit of a formal relation between the SC and the FC is the The Situation Calculus and the Fluent Calculus are successful possibility to compare extensions made separately for the action formalisms that share many concepts. But until now two calculi, such as concurrency. Furthermore it might even there is no formal relation between the two calculi that would allow to formally analyze the relationship between the two allow to translate current or future extensions made only for approaches as well as between the programming languages one of the calculi to the other. based on them, Golog and FLUX. Furthermore, such a formal Golog is a programming language for intelligent agents relation would allow to combine Golog and FLUX and to ana- that combines elements from classical programming (condi- lyze which of the underlying computation principles is better tionals, loops, etc.) with reasoning about actions. Primitive suited for different classes of programs. We develop a for- statements in Golog programs are actions to be performed mal translation between domain axiomatizations of the Situ- by the agent. Conditional statements in Golog are composed ation Calculus and the Fluent Calculus and present a Fluent of fluents. The execution of a Golog program requires to Calculus semantics for Golog programs. For domains with reason about the effects of the actions the agent performs, deterministic actions our approach allows an automatic trans- lation of Golog domain descriptions and execution of Golog in order to determine the values of fluents when evaluating programs with FLUX.
    [Show full text]
  • Reconciling the Event Calculus with the Situation Calculus
    1 In The Journal of Logic Programming, Special Issue: reasoning about action and change, 31(1-3), Pages 39-58, 1997. Reconciling the Event Calculus with the Situation Calculus Robert Kowalski and Fariba Sadri Department of Computing, Imperial College, 180 Queen's Gate, London SW7 2BZ Emails: [email protected] [email protected] Abstract In this paper, to compare the situation calculus and event calculus we formulate both as logic programs and prove properties of these by reasoning with their completions augmented with induction. We thus show that the situation calculus and event calculus imply one another. Whereas our derivation of the event calculus from the situation calculus requires the use of induction, our derivation of the situation calculus from the event calculus does not. We also show that in certain concrete applications, such as the missing car example, conclusions that seem to require the use of induction in the situation calculus can be derived without induction in the event calculus. To compare the two calculi, we need to make a number of small modifications to both. As a by-product of these modifications, the resulting calculi can be used to reason about both actual and hypothetical states of affairs, including counterfactual ones. We further show how the core axioms of both calculi can be extended to deal with domain or state constraints and certain types of ramifications. We illustrate this by examples from legislation and the blocks world. Keywords: temporal reasoning, event calculus, situation calculus, actual and hypothetical events 1 Introduction In this paper we revisit our earlier comparison of the situation calculus and event calculus [11] using a more general approach to the representations of situations, in the spirit of Van Belleghem, Denecker and De Schreye [20, 21].
    [Show full text]
  • Actions and Other Events in Situation Calculus
    ACTIONS AND OTHER EVENTS IN SITUATION CALCULUS John McCarthy Computer Science Department Stanford University Stanford, CA 94305 [email protected] http://www-formal.stanford.edu/jmc/ Abstract vention one situation at a time. Then we offer a general viewpoint on the sit- This article presents a situation calculus for- uation calculus and its applications to real malism featuring events as primary and the world problems. It relates the formalism of usual actions as a special case. Events that [MH69] which regards a situation as a snap- are not actions are called internal events and shot of the world to situation calculus theo- actions are called external events. The effects ries involving only a few fluents. of both kinds of events are given by effect axioms of the usual kind. The actions are assumed to be performed by an agent as is 1 Introduction: Actions and other usual in situation calculus. An internal event events e occurs in situations satisfying an occurrence assertion for that event. This article emphasizes the idea that an action by an A formalism involving actions and internal agent is a particular kind of event. The idea of event events describes what happens in the world is primary and an action is a special case. The treat- more naturally than the usual formulations ment is simpler than those regarding events as natural involving only actions supplemented by state actions. constraints. Ours uses only ordinary logic without special causal implications. It also The main features of our treatment are as follows. seems to be more elaboration tolerant.
    [Show full text]
  • Situation Calculus
    Institute for Software Technology Situation Calculus Gerald Steinbauer Institute for Software Technology Gerald Steinbauer Situation Calculus - Introduction 1 Institute for Software Technology Organizational Issues • Dates – 05.10.2017 8:45-11:00 (HS i12) lecture and first assignment – 12.10.2017 8:45-11:00 (HS i12) lecture and programming assignment – 11.10.2017 18:00-18:45 (HS i11) practice – 18.10.2017 18:00-18:45 (HS i11) practice and solution for first assignment – 16.10.2017 12:00 (office IST) submission first assignment – 09.11.2016 23:59 (group SVN) submission programming assignment Gerald Steinbauer Situation Calculus - Introduction 2 Institute for Software Technology Agenda • Organizational Issues • Motivation • Introduction – Brief Recap of First Order Logic (if needed) • Situation Calculus (today) – Introduction – Formal Definition – Usage • Programming with Situation Calculus (next week) – Implementation – Domain Modeling Gerald Steinbauer Situation Calculus - Introduction 3 Institute for Software Technology Literature “Knowledge in Action” “Artificial Intelligence: A by Raymond Reiter Modern Approach” MIT Press by Stuart Russel amd Peter Norvig Prentice Hall Gerald Steinbauer Situation Calculus - Introduction 4 Institute for Software Technology Motivation What is Situation Calculus good for? Gerald Steinbauer Situation Calculus - Introduction 5 Institute for Software Technology There is nothing permanent except change. Heraclitus of Ephesus, 535–c. 475 BC Gerald Steinbauer Situation Calculus - Introduction 6 Institute for
    [Show full text]
  • HUMAN-TYPE COMMON SENSE NEEDS EXTENSIONS to LOGIC John Mccarthy, Stanford University
    HUMAN-TYPE COMMON SENSE NEEDS EXTENSIONS TO LOGIC John McCarthy, Stanford University • Logical AI (artificial intelligence) is based on programs that represent facts about the world in languages of mathematical logic and decide what actions will achieve goals by logical rea- soning. A lot has been accomplished with logic as is. • This was Leibniz’s goal, and I think we’ll eventually achieve it. When he wrote Let us calculate, maybe he imagined that the AI prob- lem would be solved and not just that of a logical language for expressing common sense facts. We can have a language adequate for expressing common sense facts and reasoning before we have the ideas needed for human- level AI. 1 • It’s a disgrace that logicians have forgotten Leibniz’s goal, but there’s an excuse. Non- monotonic reasoning is needed for common sense, but it can yield conclusions that aren’t true in all models of the premises—just the preferred models. • Almost 50 years work has gone into logical AI and its rival, AI based on imitating neuro- physiology. Both have achieved some success, but neither is close to human-level intelligence. • The common sense informatic situation, in contrast to bounded informatic situations, is key to human-level AI. • First order languages will do, especially if a heavy duty axiomatic set theory is included, e.g. A × B, AB, list operations, and recur- sive definition are directly included. To make reasoning as concise as human informal set- theoretic reasoning, many theorems of set the- ory need to be taken as axioms.
    [Show full text]
  • Beyond Minimizing Change
    From: AAAI-97 Proceedings. Copyright © 1997, AAAI (www.aaai.org). All rights reserved. eyond imizing C Tom Costello Dept of Computer Science, Stanford, CA 94305 costelloQcs.Stanford.EDU Abstract Problem, the Stanford Murder Mystery, the Ferry Boat Problem, and many other problems were posed as counter examples to proposed solutions. This led researchers to look for ways to validate their theories. One of the first ways was proposed by Lin and Shoham (1995), where they proposed reducing a non-monotonic theory to a monotonic theory to show correctness. Lifschitz and Gelfond suggested reducing reasoning about action to well understood models like automata, and developed a language A well suited to describing automata as they arise in action. This work has been greatly extended, and many solutions have been shown equivalent under certain assumptions. Kartha studied the relationship between various dif- ferent proposals, and showed that under certain syn- tactic assumptions, that many solutions were equiva- lent to those solutions based on A. Lifschitz has considered certain properties, like stability under definitional extension, and restricted monotonicity, that he claims all approaches to the frame problem should obey. Sandewall (Sandewall 1994) proposed justifying non-monotonic treatments by reducing them to dynamical systems. We propose another way of studying non-monotonic treatments of actions, though the methodology is not restricted to actions. We consider what elaborations, Hntroduetion or changes, the treatment allows, in terms of conjoining information. Reasoning about action has been one of the favorite In this paper we shall keep to as simple a language domains for non-monotonic reasoning. One of the as possible.
    [Show full text]
  • A Formal Model of Opportunism Based on Situation Calculus
    A Formal Model of Opportunism Based on Situation Calculus Jieting Luo1,*, Frank Dignum2, and John-Jules Meyer3 1,2,3Utrecht University, PO Box 80089, 3508 TB, Utrecht, The Netherlands {J.Luo,F.P.M.Dignum,J.J.C.Meyer}@uu.nl Abstract. In social interactions, it is common for one party to possess more or better knowledge about a specific transaction than others. In this situation, par- ties who are more knowledgeable might perform opportunistic behavior to oth- ers, which is against others’ interest thus leading to relationship deterioration. In this study, we propose a formal model of opportunism based on situation calcu- lus. Specifically, knowledge asymmetry and intention are modeled by adapting the standard possible-world model semantics, and value opposition is specified through defining a value evaluation function on situation based on the perspec- tive of agents. We illustrate how to use our formal model through a simple ex- ample. By this model, we show that the judgment of opportunism is subjective since it depends on from which perspective agents evaluate the situation over their value, and it is not the intention, but the knowledge, of opportunistic agents to cause harm to others. Further study on its emergence and constraint mechanism can be carried out based on the formal model. Keywords: Opportunism, Value, Situation Calculus, Formalization 1 Introduction Consider a common social interaction. A seller is trying to sell a cup to a buyer. Since it is known by the seller beforehand that the cup is actually broken (e.g. there is a crack at the bottom of the cup), he makes a rule that the cup cannot be returned in any situations.
    [Show full text]
  • Chapter 2 & 3 from Kelly, Ryan, Asynchronous Multi-Agent
    Chapter 2 Background This chapter covers general background material for the thesis and provides a brief overview of the related literature. We defer more specific technical details and discussion of related work to the individual chapters that follow, where it can be presented in the appropriate context. Readers familiar with the situation calculus are encouraged to briefly review this chapter. While it does not present any new results, it does introduce some novel notation and definitions which will be needed later in the thesis. They are introduced here to maintain consistency of the presentation. The introductory material on the Mozart programming platform may also be helpful. We begin by introducing the base language of the situation calculus in Sec- tion 2.1, illustrated using examples from the \cooking agents" domain. Section 2.2 introduces the Golog family of programming languages, which are the standard for- malism for representing complex tasks in the situation calculus. Reasoning about the knowledge of an agent, or epistemic reasoning, is covered in Section 2.3. Related formalisms for reasoning about action and change are briefly discussed in Section 2.4. Finally, Section 2.5 introduces the Mozart programming system, which will be used to implement our multi-agent Golog variant. Basic familiarity with formal logic is assumed throughout; readers requiring background on such material may find a gentle introduction in [43] and a more detailed treatment in [31]. 2.1 The Situation Calculus The situation calculus is a powerful formalism for describing and reasoning about dynamic worlds. It was first introduced by McCarthy and Hayes [70] and has since been significantly expanded and formalised [85, 92].
    [Show full text]
  • A Situation Calculus Perspective?
    Logic, Probability and Action: A Situation Calculus Perspective? Vaishak Belle University of Edinburgh, UK & Alan Turing Institute, UK [email protected] Abstract. The unification of logic and probability is a long-standing concern in AI, and more generally, in the philosophy of science. In essence, logic provides an easy way to specify properties that must hold in every possible world, and probability allows us to further quantify the weight and ratio of the worlds that must satisfy a property. To that end, numerous developments have been under- taken, culminating in proposals such as probabilistic relational models. While this progress has been notable, a general-purpose first-order knowledge represen- tation language to reason about probabilities and dynamics, including in contin- uous settings, is still to emerge. In this paper, we survey recent results pertaining to the integration of logic, probability and actions in the situation calculus, which is arguably one of the oldest and most well-known formalisms. We then explore reduction theorems and programming interfaces for the language. These results are motivated in the context of cognitive robotics (as envisioned by Reiter and his colleagues) for the sake of concreteness. Overall, the advantage of proving results for such a general language is that it becomes possible to adapt them to any special-purpose fragment, including but not limited to popular probabilistic relational models. 1 Introduction The unification of logic and probability is a long-standing concern in AI [72], and more generally, in the philosophy of science [31]. The motivation stems from the observation that (human and agent) knowledge is almost always incomplete.
    [Show full text]