Characterizing Causal Action Theories and Their Implementations in Answer Set Programming: Action Languages B, C, and Beyond
Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence. Special Track on Knowledge Representation and Reasoning. Pages 3285-3290.
© 2015 International Joint Conferences on Artificial Intelligence
Abstract
We consider a simple language for writing causal action theories, and postulate several properties for the state transition models of these theories. We then consider some possible embeddings of these causal action theories in some other action formalisms, and their implementations in logic programs with answer set semantics. In particular, we propose to consider what we call permissible translations from these causal action theories to logic programs. We identify two sets of properties, and prove that for each set, there is only one permissible translation, under strong equivalence, that can satisfy all properties in the set. As it turns out, for one set, the unique permissible translation is essentially the same as Balduccini and Gelfond's translation from Gelfond and Lifschitz's action language B to logic programs. For the other, it is essentially the same as Lifschitz and Turner's translation from the action language C to logic programs. This work provides a new perspective on understanding, evaluating and comparing action languages by using sets of properties instead of examples. It will be interesting to see if other action languages can be similarly characterized, and whether new action formalisms can be defined using different sets of properties.
- [Baral, 1995] Chitta Baral. Reasoning about actions: nonde- terministic effects, constraints, and qualification. In Pro- ceedings of IJCAI-95, pages 2017-2023, 1995.
- [Ferraris et al., 2012] Paolo Ferraris, Joohyung Lee, Yuliya Lierler, Vladimir Lifschitz, and Fangkai Yang. Represent- ing first-order causal theories by logic programs. Theory and Practice of Logic Programming, 12:383-412, 5 2012.
- [Gelfond and Lifschitz, 1988] Michael Gelfond and Vladimir Lifschitz. The stable model semantics for logic programming. In Proceeding of Fifth International Conference and Symposium on Logic Programming (ICLP-88), pages 1070-1080, 1988.
- [Gelfond and Lifschitz, 1991] Michael Gelfond and Vladimir Lifschitz. Classical negation in logic pro- grams and disjunctive databases. New Generation Computing, 9:365-385, 1991.
- [Gelfond and Lifschitz, 1998] Michael Gelfond and Vladimir Lifschitz. Action languages. Electronic Transactions on Artificial Intelligence, 3:195-210, 1998.
- [Giunchiglia and Lifschitz, 1998] Enrico Giunchiglia and Vladimir Lifschitz. An action language based on causal explanation: preliminary report. In Proceedings of Na- tional Conference on Artificial Intelligence (AAAI), pages 623-630. AAAI Press, 1998.
- [Giunchiglia et al., 2004] Enrico Giunchiglia, Joohyung Lee, Vladimir Lifschitz, Norman McCain, and Hud- son Turner. Nonmonotonic causal theories. Artificial Intelligence, 153(1-2):49-104, 2004.
- [Herzig and Varzinczak, 2007] Andreas Herzig and Ivan Varzinczak. Metatheory of actions: Beyond consistency. Artificial Intelligence, 171(1617):951 -984, 2007.
- [Lee et al., 2013] Joohyung Lee, Vladimir Lifschitz, and Fangkai Yang. Action language BC: Preliminary report. In Proceedings of IJCAI-13, pages 983-989, 2013. IJCAI
- [Lee, 2012] Joohyung Lee. Reformulating action language C+ in answer set programming. In Esra Erdem, Joohyung Lee, Yuliya Lierler, and David Pearce, editors, Cor- rect Reasoning, volume 7265 of Lecture Notes in Com- puter Science, pages 405-421. Springer Berlin Heidelberg, 2012.
- [Lifschitz et al., 2001] Vladimir Lifschitz, David Pearce, and Agustin Valverde. Strongly equivalent logic programs. ACM Transactions on Computational Logic, 2(4):526- 541, 2001.
- [Lifschitz, 1987] Vladimir Lifschitz. Formal theories of ac- tion (preliminary report). In John P. McDermott, editor, Proceedings of IJCAI-87, pages 966-972. IJCAI
- Morgan Kauf- mann, 1987.
- [Lifschitz, 1997] Vladimir Lifschitz. On the logic of causal explanation (research note). Artif. Intell., 96(2):451-465, 1997.
- [Lin and Chen, 2007] Fangzhen Lin and Yin Chen. Discov- ering classes of strongly equivalent logic programs. Jour- nal of Artificial Intelligence Research, 28:431-451, 2007. IJCAI
- [Lin and Wang, 1999] Fangzhen Lin and Kewen Wang. From causal theories to logic programs (sometimes). In Proceedings of Fifth International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR- 99). El Paso, Texas, Dec 1999, 1999.
- [Lin, 1995] Fangzhen Lin. Embracing causality in speci- fying the indirect effects of actions. In Proceedings of IJCAI-95, pages 1985-1993, 1995. IJCAI
- [Lin, 2003] Fangzhen Lin. Compiling causal theories to suc- cessor state axioms and STRIPS-like systems. Journal of Artificial Intelligence Research, 19:279-314, 2003.
- [Lin, 2004] Fangzhen Lin. Discovering state invariants. In Proceedings of the Nineth International Conference on Principles of Knowledge Representation and Reasoning (KR2004), pages 536-544, 2004.
- [McCain and Turner, 1995] Norman McCain and Hudson Turner. A causal theory of ramifications and qualifications. In Proceedings of IJCAI-95, pages 1978-1984, 1995.
- [McCain, 1997] N. McCain. Causality in commonsense rea- soning about actions. PhD thesis, University of Texas at Austin, Austin, TX, 1997.
- [Sergot and Craven, 2005] Marek J. Sergot and Robert Craven. Some logical properties of nonmonotonic causal theories. In Chitta Baral, Gianluigi Greco, Nicola Leone, and Giorgio Terracina, editors, LPNMR, volume 3662 of Lecture Notes in Computer Science, pages 198-210. Springer, 2005.
- [Tang and Lin, 2011] Pingzhong Tang and Fangzhen Lin. Discovering theorems in game theory: Two-person games with unique pure nash equilibrium payoffs. Artificial In- telligence, 175(14-15):2010-2020, 2011.
- [Thielscher, 1997] M. Thielscher. Ramification and causal- ity. Artificial Intelligence, 89:317-364, 1997.
- [Thielscher, 2011] Michael Thielscher. A unifying action calculus. Artificial Intellegence, 175(1):120-141, 2011.
- [Turner, 1999] Hudson Turner. A logic of universal causa- tion. Artificial Intelligence, 113(1-2):87-123, 1999.
- [Zhang et al., 2002] Dongmo Zhang, Samir Chopra, and Norman Y. Foo. Consistency of action descriptions. In Mitsuru Ishizuka and Abdul Sattar, editors, PRICAI, vol- ume 2417 of Lecture Notes in Computer Science, pages 70-79. Springer, 2002.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
Formal reasoning about action has been a central topic in logic-based AI for a long time, and motivated much of the early work on nonmonotonic logics. The main difficulties have been the frame and the ramification problems. Current consensus in the community is that to solve the ramification problem, a notion of causality is needed. As a result, there has been much work on causal action theories (e.g. [Lifschitz, 1987; Lin, 1995; McCain and Turner, 1995; Baral, 1995; Thielscher, 1997; Lifschitz, 1997; Turner, 1999; Gelfond and Lifschitz, 1998; Lin, 2003; Herzig and Varzinczak, 2007; Lee et al., 2013]), and a variety of languages and semantics have been proposed. These different approaches basically all agree when the set of causal rules is stratified, and in this case yields a complete action theory that can be represented, for example, by a set of successor state axioms. However, when there are cycles in the rules, it is not always clear how these rules are going to be represented according to these different approaches, and what the correct results are supposed to be. For instance, do we allow cyclic rules to produce indeterminate effects on actions?
∗This work was supported in part by HK RGC under GRF 616013.
This motivated us to do a computer experiment that would systematically enumerate all possible causal theories in a small language, and look at their desirable models. As it turned out, what counts as a desirable model depends on what properties we want to have about causal theories. This led us to consider various properties of transition models of causal theories. We then consider how these various properties fit into some existing action languages that allow static causal rules. To make the comparisons systematic, and also for computational reasons, we consider what we call permissible translations of our causal action theories to logic programs under the answer set semantics [Gelfond and Lifschitz, 1988; 1991]. Specifically, given a set of properties on the transition models, we consider all possible permissible translations from our causal theories to logic programs so that the answer sets of these programs, when mapped back to the transition models of the causal theories, will satisfy all properties in the set. In this paper, we identify two such sets of properties. For both of them, our computer experiment shows that when there are at most three fluents in the language, the permissible translations are unique up to a notion of strong equivalence. The general case is proved by induction with the three fluent language as the base case.
Furthermore, for one set of properties, the translation is essentially the same as Balduccini and Gelfond's translation from Gelfond and Lifschitz's action language B to logic programs. For the other, the translation is essentially the same as Lifschitz and Turner's translation from the action language C to logic programs. These results are significant in that they provide a new perspective on understanding, evaluating and comparing action languages by using sets of properties instead of examples. It is possible that other action languages can be similarly characterized, and new action languages defined using different sets of properties.
The rest of the paper is organized as follows. In Section
2 we formally introduce the syntax of the causal action theories that we use in this work. Next we list some reasonable properties that we expect the semantics of the causal action theories to satisfy in Section 3. Then in Section 4 we consider some straightforward mappings of our theories to some existing formalisms such as the action languages B [Gelfond and Lifschitz, 1998] and C [Giunchiglia and Lifschitz, 1998], and the situation calculus. In Section 5 we consider the problem of mapping causal action theories to logic programs under the answer set semantics, define the notion of permissible translations, and give our main results. In Section 6 we discuss some related work, and finally in Section 7 we conclude the paper.
2 Simple causal action theories
We assume a finite set F of propositional atoms called fluents. We also assume two distinguished symbols "⊤" for tautology, and "⊥" for contradiction. A fluent literal is either f or ¬f where f ∈ F. So far in work on causal action theory, the focus is on the formalization of the effects of primitive actions, and how the causal rules are used in this formalization. The actions are assumed to be independent, in the sense that the effects of one action are independent of the effects of any other actions. So to make our formalism as simple and to the point as possible, we assume that there is just one unnamed action in our language, and when we talk about the effect of an action, we refer to the effect of this implicitly assumed, unnamed action.
Syntactically, a causal action theory is a pair (S, D), where S is a set of static causal rules, and D a set of dynamic causal rules. Both static and dynamic causal rules are pairs of the form (l,G), where l is a fluent literal, and G a set of fluent literals. As a static causal rule, (l,G) means that in every situation, whenever all fluent literals in G hold, l is caused to be true. As a dynamic causal rule, it means that in every situation where all fluent literals in G hold, if the action is successfully executed, then l will be true in the new situation. Thus our dynamic causal rules are essentially direct action effect axioms. Notice that in the dynamic causal rules, action argument is omitted here as we have assumed that there is just one action. In the following, we call l the head, and G the premise of the static or dynamic causal rule. We assume that G is consistent, i.e. it does not contain both f and ¬f, and does not contain ⊥. We define a premise G to be a set of fluent literals because the order of fluent literals in the premise does not matter. However, we often write G as a conjunction of fluent literals in it. For instance, both f1 ∧ f2 and f2 ∧ f1 denote the same premise {f1, f2}. In particular, the empty set ∅ is denoted by ⊤.
Semantically, a causal action theory specifies a set of transitions. A transition is a pair (s, s′ ), where both s and s′ are states, which are sets of fluents. A state s can be considered a truth assignment such that a fluent f is true in s iff f ∈ s. For a formula ϕ, we write s |= ϕ if ϕ is true in the truth assignment s. Similarly, for a set of fluent literals G, we write s |= G if all fluent literals in G hold in the truth assignment. In particular, s |= ∅ for any state s. Intuitively, a transition (s, s′ ) means that the action can be successfully executed in s to yield s′ .
Definition 1 A state is a set of fluent atoms, and a transition is a pair of states. A semantic function δ is a mapping from causal action theories to sets of transitions.
Thus a semantic function δ gives a semantics to each causal action theory. We say that two causal action theories T1 and T2 are equivalent under δ if they have the same transactions: δ(T1) = δ(T2). In the next section, we are going to discuss some properties about semantic functions.
3 Properties
We assume a fixed semantic function δ below. Thus when we say that (s, s′ ) is a transition of T, we mean that (s, s′ ) ∈ δ(T). We list below some interesting properties about δ.
When reasoning about, say whether a switch is open or closed, we can use fluent closed to mean that the switch is closed and represent the fact that the switch is open by ¬closed. Or we can do it the other way around, use open to mean that the switch is open and represent closed by ¬open. Our following property says that choosing which one to use as primitive is immaterial as long as one does this systematically.
Property 1 (Fluent literals are interchangeable) For any causal action theory T , any fluent f , and any pair of states s1 and s2, (s1, s2) is a transition of T , iff (sf1 , sf2 ) is a transition of T f , where for any state s,
and for any causal action theory T, T f is the causal action theory obtained from T by replacing every occurrence of f by ¬f .
Our next property is that the states in a transition must satisfy all static causal rules.
Property 2 (Static causal rules are state constraints) If (s, s′ ) is a transition of a causal action theory (S,D), then for every static causal rule (l, G) in S, we have that
and
Our next property says that if the premise of a static causal rule contains the negation of its head, then this rule is basically a constraint according to Property 2.
Property 3 (Immediate negative loops can be eliminated) For any causal action theory (S, D), any r = (l, {¬l}∪G) ∈ S, and any states s and s′ that satisfy all rules in S (i.e. Property 2 holds for S), we have that (s, s′ ) is a transition of (S,D) iff (s, s′ ) is a transition of (S \ {r},D).
Our next property says that if there are no possible interactions between the static and dynamic causal rules, then only the dynamic causal rules can be applied. In other words, there are no ramifications.
Property 4 (No ramification when static causal rules do not interact with dynamic causal rules) Let T = (S, D) be a causal action theory. If for every (l,G) ∈ D, there is no (l′ ,G′ ) ∈ S such that the fluent in l occurs in G′ , then (s, s′ ) is a transition of T iff for s- = {f | (¬f,G) ∈ D, s |= G} and s+ = {f | (f,G) ∈ D, s |= G} we have that
- s+ ∩ s- = ∅,
- s′ = (s \ s-) ∪ s+, and
- both s and s′ satisfy the static causal rules in S (Property 2).
In particular, if s+ ∩ s- ̸= ∅, then T has no transitions.
The next property is a weaker version of Property 4. Before giving it we first define the dependency graph of a causal action theory. Given a causal action theory T = (S,D), its dependency graph is the directed graph such that
- its vertices are arbitrary fluent literals, and
- it has an edge from l1 to l2 iff S contains a static causal rule (l1,G) such that l2 ∈ G.
Property 4′ (No ramification when static causal rules do not have cycle and do not interact with dynamic causal rules) Let T = (S,D) be a causal action theory whose dependency graph is acyclic. If for every (l, G) ∈ D, there is no (l′ ,G′ ) ∈ S such that the fluent in l occurs in G′ , then (s, s′ ) is a transition of T iff for s- = {f | (¬f,G) ∈ D, s |= G} and s+ = {f | (f,G) ∈ D, s |= G} we have that
- s+ ∩ s- = ∅,
- s′ = (s \ s-) ∪ s+, and
- both s and s′ satisfy the static causal rules in S (Property 2).
In particular, if s+ ∩ s- ̸= ∅, then T has no transitions.
Property 4′ is weaker than Property 4 as the former applies only to "stratified" causal action theories.
The next property concerns the redundancy in premises. If both q and ¬q will cause p, then p must be true regardless. Similarly, if both q ∧ r and ¬q ∧ r causes p, then we can conclude that q is immaterial and that r causes p.
Property 5 (Premises of static causal rules can be combined) Let T = (S,D) be a causal action theory. If both (f,G1) and (f,G2) are in S, and for some set G of fluent literals, formula
is logically equivalent to formula
then the set of transitions under T is the same as the set of transitions under T ′ = (S′ ,D), where S′ is
These properties may look arbitrary. As it turned out, certain combination of them can completely characterize a logic program implementation. Before we turn to this, we illustrate these properties by some examples.
The theory T = ({(f1, ¬f1 ∧ f2)}, {(f2, ⊤)}) has one dynamic rule which says that the action always makes f2 true, and one static rule which causes f1 given ¬f1 ∧ f2. If the given semantic function δ satisfies Property 3 and Property 4, then for any states s and s′ that satisfy f1 ∨ ¬f2: (s, s′ ) is a transition of T iff (by Property 3) it is a transition of (∅, {(f2, ⊤)}) iff (by Property 4) s′ = s ∪ {f2}.
The theory ({(f1, f2), (¬f1, ¬f2)}, {(f1, ⊤)}) has one dynamic rule which says that the action always makes f1 true, and two static rules: one says that f2 will cause f1 to be true, and the other that ¬f2 will cause f1 to be false. Property 4 applies to this theory, and by Properties 2 and 4, (s, s′ ) is a transition of the theory iff both of them satisfy f2 ⊃ f1 and ¬f2 ⊃ ¬f1, and s′ = s ∪ {f1}. This means that for (s, s′ ) to be a transition, f1 must be true in s already, and that s′ = s. One can interpret this as saying that if s does not satisfy f1, then the action cannot be executed. This is an instance of implicit qualification on action derived from static causal rules [Lin, 1995].
4 Embedding causal action theories in B, C, and others
Our causal action theories can be mapped to theories in action languages B, C, and others in a straightforward way. Notice that our language does not have terms for actions. Instead, there is an implicit action. Let's call this action A.
Given a causal action theory T = (S,D), it can be mapped to the following action description TB in language B as follows: if (l,G) is in S, then the static causal rule "l if G" is in TB, and if (l,G) is in D, then the action rule "A causes l if G" is in TB. This mapping induces a semantic function δ for our causal action theories: (s, s′ ) ∈ δ(T) iff (s,A, s′ ) is a transition of TB according to B. For this semantic function, it can be seen that Properties 2, 3 and 4 are satisfied (see Theorem 1 below).
A causal action theory T = (S,D) can also be translated to the following action description TC in action language C as follows: if (l,G) is in S, then the static causal rule "caused l if ∧li∈G li" is in TC, and if (l,G) is in D, then the action rule "caused l if ⊤ after A ∧ ∧li∈G li" is in TC. Again this mapping induces a semantic function: (s, s′ ) is a transition of T if (s,A, s) is a transition of TC according to C semantics. For this semantic function, we can see that Properties 1 2, 3 and 5 are satisfied, but not Property 4. For instance, consider the causal action theory T = ({(f2, f1), (f1, f2)}, ∅). If s = ∅, and s′ = {f1, f2}, then both s and s′ satisfies all static causal rules, and according to C semantics, s′ is a possible new state after the action A occurs in state s.
A causal action theory T = (S,D) can also be mapped to Lin's causal theory TL in the situation calculus as follows: if (f,G0) is in S, let G = ∧li∈G0 li, then the following causal rule is in TL:
if (¬f,G) is in S, then the following causal rule is in TL:
if (f,G) is in D, then the following direct effect axiom is in TL:∀s. (Poss(A, s) ⊃
and if (¬f, G) is in D, then the following direct effect axiom is in TL:
As in language C, under this mapping to Lin's causal theories, Property 4 is not satisfied.
One could do similar mappings for other formalisms. However, an obvious question is why the mappings have to be the way that we described above. For instance, could we map theories here to language C differently so that Properties 1 - 4 will be satisfied? If we do not have any restrictions on the mappings, then this is certainly possible as one can always compute the transitions first and then find a theory in C that have the same transitions. In this paper we consider this problem by choosing answer set logic programs as the target language. This is for two reasons. One is the availability of good ASP solvers for computing answer sets of a logic program. The other reason is that there are already wellstudied mappings from languages like B and C to answer set logic programs. In the next section, we look at all possible compositional mappings of our causal action theories to logic programs that use a "standard" way of encoding inertia.
5 From causal action theories to answer set programming
There has been much work using logic programs for implementing and/or formalizing causal action theories (e.g. [Baral, 1995; Lin and Wang, 1999; McCain, 1997; Lee, 2012; Ferraris et al., 2012]). In this paper we consider mapping our causal action theories to logic programs under answer set semantics.
Given a set F of fluents, and a causal action theory T in F, we consider mapping T to a normal logic program (with constraints and classical negation) ξ(T) in the language
where ¬F = {¬f | f ∈ F}, F ′ = {f ′ | f ∈ F}, and similarly for ¬F ′ . We assume here that for each f ∈ F, f ′ is a new atom. The transitions of T and the answer sets of ξ(T) will then be related by identifying s with the fluents in F, and s′ with those in F ′ : (s, s′ ) is a transition of T iff there is an answer set A of ξ(T) such that
Again, if we do not have any restrictions on what programs we can take as ξ(T), then we can have mappings that satisfy any consistent set of properties under the above correspondence between transitions and answer sets. However, from knowledge representation point of view, we would want the mapping to be compositional, in the sense that it can be composed from some mappings on the static and dynamic causal rules. As we mentioned, there has been much work on using logic programs for reasoning about action, and one of the key ideas has been to use the following rules to encode inertia:
Also we want the mapping to at least satisfy Property 2 so that both initial and successor states satisfy the static causal rules as constraints, and that a causal rule (l,G) should be translated to some logic program rules about l. Besides, we want the mapping to be uniformed in the sense that the fluent names are not material. More precisely, if σ is a permutation of fluent names, then applying the mapping to T after the fluent names are changed according to σ is the same as applying the mapping to T first, and then changing the fluent names in the logic program according to σ.
To summarize, we study the following class of mappings.
Definition 2 A mapping ξ from causal action theories to logic programs is said to be permissible if it is
- (Compositional) For each T = (S,D),
where
- ξ s (r) is the translation on static causal rules, and for a rule (l,G), ξ s (l,G) is a logic program consisting of the following constraints:
and some rules of form
where l is the complement of l: f = ¬f, and ¬f = f, W ′ = l′1 , ..., l′n if W = {l1, · · · , ln}, and F ′1 and F ′2 are sets of atoms in F ′G ∪ ¬F ′G, where FG are all fluents that appear in G, and not {l′1 , ..., l′k } is not l′1 , ..., not l′k ;
- ξ d (r) is the translation on dynamic causal rules, and for a rule (l, G), ξ d (l, G) is a set of rules of the form
where F is a set of fluent literals in F ∪ ¬F;
- B, the base, is the following set of rules that are independent of the given theory T : for each f ∈ F,
- (Uniform) Both ξ s and ξ d are homomorphic under any permutation σ on the set F of fluents: ξ s (rσ ) = (ξ s (r))σ , and ξ d (rσ ) = (ξ d (r))σ , where rσ is obtained from r by a fluent substitution according to σ, and for any logic program P, P σ is the program obtained from P by a fluent substitution according to σ.
Notice that for the translation ξ d (r) of a dynamic causal rule, no "negation-as-failure" operator is used. This is because we have the choice rules (8) and (9) in the base that generate all possible complete initial states. Under these choice rules, and given that there is no any other rule about f or ¬f in a permissible mapping, fluent literals "f" and "not ¬f" are interchangeable, and so are "¬f" and "not f". Of course, we could allow the negation-as-failure operator in the translation of dynamic causal rules.
As an example of requiring a mapping ξ to be uniformed, if ξ maps a dynamic causal rule (f1, f2) to logic program
then it must map the dynamic causal rule (f3, f4) to
Notice that a mapping ξ from causal action theories to logic programs yields a semantic function δ under (1) and (2): (s, s′ ) ∈ δ(T) iff there is an answer set A of ξ(T) such that (1) and (2) hold. So in the following, when we say that a mapping satisfies a property, we mean that the semantic function yielded by the mapping satisfies this property.
Our main results are about the uniqueness of admissible mappings that satisfies certain sets of properties. Understandably, this uniqueness needs to be modulo on strong equivalence [Lifschitz et al., 2001] as two mappings that always yield strongly equivalent logic programs are indistinguishable under the answer set semantics.
Our first result shows the correspondence between action language B and permissible mappings that satisfy Properties 2, 3 and 4.
In the last section, we described a translation from our causal action theories to causal theories in action language B. Given a causal action theory T , let TB denotes the causal theory in B according to this translation. We say that (s, s′ ) is a transition of T under action language B semantics if (s, A, s′ ) is a transition of TB according to the semantics of action language B.
In general, given a mapping ξ from causal action theories to logic programs, we say that (s, s′ ) is a transition of a causal action theory T under ξ if (s, s′ ) is a transition of T under the semantic function yielded by ξ.
As we mentioned, our results make use of a notion of strong equivalence. Two logic programs P1 and P2 are strongly equivalent [Lifschitz et al., 2001] (under the answer set semantics) if P1 ∪ P and P2 ∪ P have the same answer sets for every logic program P. In the following, Given three logic programs P1, P2 and Q, we say P1 and P2 are strongly equivalent under Q, if P1 ∪Q and P2 ∪Q are strongly equivalent.
Theorem 1 Let ξB be the following mapping from causal action theories to logic programs: for each T = (S,D),
where
- B is the base,
- for each static causal rule (l,G), ξ sB (l,G) is the set of rules consisting of constraints (6) and (7), and the following rule
- for each dynamic causal rule (l,G), ξ dB (l,G) is the singleton set consisting of the following rule
We have
- The mapping ξB is permissible and satisfies Properties 2, 3, 4. Furthermore, for any causal action theory T , (s, s′ ) is a transition of T under ξB iff it is a transition of T under the B semantics.
- If ξ is a permissible mapping that satisfies Properties 2, 3, 4, then ξ is strongly equivalent to ξB in the following sense: for any causal action theory, if (l,G) is a static causal rule, then ξ s (l,G) and ξ sB (l,G) are strongly equivalent under the base B as defined in (5); and if (l,G) is a dynamic causal rule, then ξ d (l,G) and ξ dB (l,G) are strongly equivalent under the base B as well.
The first part of the theorem says that ξB satisfies Properties 2, 3 and 4, and yields the same semantics as the action language B. The second part of theorem says that permissible mappings that satisfy Properties 2, 3 and 4 are unique up to strong equivalence.
We have a similar result for the action language C as well. In the following, given a causal action theory T, we say that (s, s′ ) is a transition of T under C semantics if (s,A, s′ ) is a transition of TC according to C, where TC is the action description in C translated from T given in the last section.
Theorem 2 Let ξC be the following mapping from causal action theories to logic programs: for each T = (S,D),
where
- B is the base,
- for each static causal rule (l,G), ξ sC (l,G) is the set of rules consisting of constraints (6) and (7), and the following rule
- for each dynamic causal rule (l,G), ξ d C (l,G) is the singleton set consisting of the following rule
We have
- Themapping ξC is permissible and satisfies Properties 1, 2, 3, 4′ and 5. Furthermore, for any causal action theory T , (s, s′ ) is a transition of T under ξC iff it is a transition of T under the C semantics.
- If ξ is a permissible mapping that satisfies Properties 1, 2, 3, 4′ and 5, then ξ is strongly equivalent to ξC in the following sense: for any causal action theory if (l,G) is a static causal rule, then ξ s (l,G) and ξ sC (l,G) are strongly equivalent under the base B as defined in (5); and if (l,G) is a dynamic causal rule, then ξ d (l,G) and ξ d C (l,G) are strongly equivalent under the base B as well.
The two theorems above are proved inductively 1 . The base case is the language with three fluents. For the base case, the results are verified by a computer program that for each representative dynamic or static causal rule, enumerates all of its possible permissible mappings, and for each possible mapping checks if the respective properties are satisfied. The inductive step is proved manually. While the proof of the inductive step is tedious and non-trivial, the base case is conceptually more important. In fact, the theorems and the properties were "discovered" using our computer program. This is similar to computer-aided theorem discovery that we used earlier for some other problems [Lin, 2004; Lin and Chen, 2007; Tang and Lin, 2011].
These two theorems provide interesting insights into the relationships between the two action languages B and C. First of all, they both satisfy Property 2, thus all states in their transition models must satisfy all static causal rules. They also satisfy Property 3, thus treat static causal rules with negative loops as constraints.
However, while B seems to treat causal theories with or without positive dependency loops uniformly, C assigns special meanings to static causal rules with positive loops. This can be seen from the fact that while B satisfies Property 4, C only satisfies a weaker version of that, Property 4′ , which applies only to stratified theories. As an example, consider T = ({(f1, f2), (f2, f1)}, ∅). The two causal rules cause a cycle between f1 and f2. Under B's semantics, for (∅, s) to be a transition, it must be the case that s = ∅. In other words, when both f1 and f2 are false initially, then they must both stay false in the successor state. However, under C's semantics, (∅, {f1, f2}) is also a transition of T. In fact, static causal rules with immediate positive cycles such as (f, f) (or caused f if f in C's language) have a special role: they are used to express the assumption that the fluent f is a default fluent.
Another difference between B and C can be seen from Property 5. The language C satisfies this property, thus allows premises from multiple static causal rules to be merged together and simplified by logical equivalence. However, this is in general not allowed in B. Consider the following causal action theories
1 Due to space restriction, we cannot include the proofs here. Interested readers can find the proofs at http://www.cs.ust.hk/faculty/ flin/papers/ijcai2015-full.pdf.
The premises of the first two static causal rules can be merged and simplified according to C: T is equivalent to T ′ below:
But under B's semantics, these two theories are not equivalent. It can be seen that (∅, {f1, f2, f3}) is a transition of T ′ but not T under B.
We inductively prove the two theorems, with causal action theories mentioning no more than three fluents as base case. Details of the inductive proof is given in appendix.
6 Some discussions and related work
As we mentioned, there has been much work on specifying the effects of actions using a notion of causality. We have used a language as simple as possible, with just one action implicitly assumed in the language. Instead of defining a semantics model theoretically or by a set of axioms, we postulate some intuitively desirable properties on the underlying transition models.
Similar properties have been studied by others. Property 2 is universally accepted in all work so far, and is built-in in our definition of permissible mappings. It was also stated as postulate PC in [Herzig and Varzinczak, 2007], postulate C3 in [Thielscher, 2011], and proved as Proposition 4 in [Sergot and Craven, 2005], for example.
Properties 4 and 4′ try to capture the obvious cases when there are no possible side effects. A similar postulate in the form of regional consistency is proposed in [Zhang et al., 2002]. And in [Herzig and Varzinczak, 2007], postulate PS is a combination of our Properties 4, with another property requiring that for any transition of a causal theory, the direct effect of the action should be in the successor state.
Property 5 defines an equivalence relation on sets of static causal rules. This is similar to Proposition 4 of [Giunchiglia et al., 2004] for nonmonotonic causal theories, and also Proposition 19 in [Sergot and Craven, 2005].
7 Concluding remarks
We have proposed a "minimalistic" language for causal action theories, and postulated some properties for them. We have considered possible embeddings of these causal action theories in some other action formalisms, and their implementations in logic programs with answer set semantics. In particular, we have proposed to consider what we call permissible mappings from causal action theories to logic programs. We prove that the only permissible translation under strong equivalence that satisfies Properties 2, 3 and 4 is Balduccini and Gelfond's translation from the action descriptions in Gelfond and Lifschitz's B language to logic programs; and the only permissible translation under strong equivalence that satisfies Properties 1, 2, 3, 4′ and 5 is Lifschitz and Turner's translation from the action language C to logic programs. These results suggest that the action languages B and C are characterized by the two sets of properties, respectively. More importantly, our approach can be applied to other action languages, and provides a new way to evaluate and compare action languages in a clear and uniform way.
For future work, it will be interesting to see whether similar properties and alternative notions of "permissible" translations can be identified for other action formalisms. It is also interesting to investigate some other properties and see how combinations of these properties can yield different action formalisms.
@inproceedings{ijcai2015p463,
title = {Characterizing Causal Action Theories and Their Implementations in Answer Set Programming: Action Languages B, C, and Beyond},
author = {Zhang, Haodi and Lin, Fangzhen},
booktitle = {Proceedings of the Twenty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-15}},
publisher = {International Joint Conferences on Artificial Intelligence},
editor = {Qiang Yang and Michael Wooldridge},
pages = {3285--3290},
year = {2015},
month = {7},
note = {Special Track on Knowledge Representation and Reasoning},
url = {https://ijcai.org/proceedings/2015/463},
}
TY - CPAPER TI - Characterizing Causal Action Theories and Their Implementations in Answer Set Programming: Action Languages B, C, and Beyond AU - Zhang, Haodi AU - Lin, Fangzhen T2 - Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-15 PB - International Joint Conferences on Artificial Intelligence PY - 2015 SP - 3285 EP - 3290 UR - https://ijcai.org/proceedings/2015/463 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: