<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Actual Causality in Contextual Abduction?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Degoldie Sonny</string-name>
          <email>degoldiesonny98@gmail.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ari Saptawijaya</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Raja Oktovin Parhasian Damanik</string-name>
          <email>rajaoktoving@cs.ui.ac.id</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Faculty of Computer Science</institution>
          ,
          <addr-line>Universitas</addr-line>
          <country country="ID">Indonesia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Shopee</institution>
          ,
          <country country="SG">Singapore</country>
        </aff>
      </contrib-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>In daily life, causality is often employed to understand of why particular things
happen. Di erent from general causality that captures the general laws that
describe the cause-and-e ect relationships, actual causality aims at explaining
why a certain event happened using observations of what have happened prior
to the event.</p>
      <p>
        One of the well-known approaches to deal with actual causality has been
developed by Halpern and Pearl (HP) [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. HP causal model is based on structural
models [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], where structural equations are introduced to capture the causal
in uence of some variables to another. The variables are distinguished according
to how their values are determined: those whose values are determined by factors
outside of the model are called exogenous variables, whereas endogenous variables
have their values determined by other variables within the model. A signature
S is a triple (U ; V; R), where U is the set of exogenous variabels, V is the set of
endogenous variables, and R is a function such that for each X 2 U [ V, R(X) is
the set of possible values that X can take. In this extended abstract, we assume
that the variable is binary or boolean. A causal model is then a tuple M = (S; F )
where S = (U ; V; R) is a signature and F = fFX : X 2 Vg is a set of causal
functions FX , called structural equations, one for each endogenous variables X.
      </p>
      <p>
        Bochman and Lifschitz (BL) shows that structural equations can be
represented in causal calculus [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. In boolean causal model, function FX corresponds
to boolean structural equations of the form X = F , where X is an endogenous
variable and F is a propositional formula in U [ (V n fXg). An interpretation of
propositions satisfying biconditional A , F for every boolean structural
equation A = F in a boolean causal model M gives a causal world for M . Given a
boolean causal model M , a (propositional) causal theory M can be de ned as
the set of the rules F ) A and :F ) :A for each structural equation A = F
in M and all rules A ) A and :A ) :A for every exogenous atoms A in M .
      </p>
      <p>
        As actual causality amounts to explaining a speci c event, abduction seems
to be a natural approach in nding such explanations. In abduction, one chooses
from available hypotheses those that would best explain the observed evidence
? Copyright c 2020 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).
[
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Abduction has already been well studied in logic programming with
various applications [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Abductive logic programming is realized by extending logic
programs with hypotheses, called abducibles. An abducible is an atom Ab or its
negation not Ab (syntactically an atom, but denoting not Ab) whose truth value
are initially not assumed. Typically, abduction may be restricted by integrity
constraints, but they are not needed for the purpose of this extended abstract
and therefore are omitted.
      </p>
      <p>
        The goal of this ongoing research is therefore to further examine the notion
of actual causation in abductive logic programming. In particular, we look into
contextual abduction with its implementation Tabdual [
        <xref ref-type="bibr" rid="ref16 ref17">17, 16</xref>
        ] to model actual
causality. Contextual abductions allows an observation to be explained with
respect to a given context. This context can be viewed as a constraint in nding
plausible explanations. In the rst contribution, we propose a causal abductive
framework to represent causal model of Halpern and Pearl [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] by translating their
structural equations into abductive logic programs. In the second contribution,
we provide a practical procedure, on top of Tabdual, to enact actual causality
directly from an abductive logic program by contextual abduction. Therein, the
given actual causal world is treated as the context of abduction and actual causes
are then computed by nding consistent abductive solutions with respect to that
given context.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Technical Means</title>
      <p>The rules in BL causal theory that correspond to structural equations in HP
boolean causal model cannot immediately be represented as a logic program.
This is because rules with a negative head, :F ) :A, do not qualify as logic
program's rules by de nition. Nevertheless, abduction in logic programming lends
itself to capturing boolean structural equations. Recall that exogenous variables
di er from endogenous ones, in that the values of the former are determined by
factors outside of the model. That is, in contrast to endogenous variables, they
are not causally explained by variables in the model. In abductive logic
programming, this notion of exogenous variables can suitably be mapped into abducibles,
thus BL's rule A ) A for an exogenous variable A needs no corresponding logic
program's rule.</p>
      <p>De nition 1 (Abducibles wrt. Boolean Causal Model). Let M be a boolean
causal model. The set of abducibles with respect to model M , denoted by AM , is
the set of exogenous atoms U in M .</p>
      <p>De nition 2 (Logic Program wrt. Boolean Causal Model). Let M be a
boolean causal model. The logic program with respect to model M , denoted by
PM , is the set of rules, A F , obtained from the structural equation A = F in
model M for each endogenous atom A.</p>
      <p>Note that the logic program PM corresponds only to a subset of rules in the
causal theory M for the reason explained in the beginning of this section.
Next, we state the correspondence between an abductive framework and HP
boolean causal model.</p>
      <p>De nition 3 (Causal Abductive Framework). Let M be a boolean causal
model. A causal abductive framework FM = hPM ; AM i is an abductive framework
that corresponds to M , where PM and AM are the logic program and the set of
abducibles wrt. model M , respectively.</p>
      <p>
        We adopt NESS (Necessary Element of a Su cient Set) test [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] for de ning
actual causality as post factum attribution of causal responsibility for actual
outcome: \a particular condition c was a cause of event e". That is, in addition
to a causal abductive framework F , the de nition of actual causality also assumes
that an actual world (an exact causal world) of F is observed.
      </p>
      <p>
        NESS test has also been used recently by Bochman [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] to de ne actual
causality albeit using BL causal theory as its logical setting. We now refer to our causal
abductive framework and de ne actual cause by formalizing the following NESS
test: \a particular condition was a cause of (condition contributing to) a speci c
consequence if and only if it was a necessary element of a set of antecedent actual
conditions that was su cient for the occurrence of the consequence".
De nition 4 (Actual Cause via NESS Test). Let F be a causal abductive
framework and be an actual world wrt. F . A literal L 2 is an actual cause
of a literal G 2 wrt. F if S is a minimal abductive solution to query G wrt.
F , S is consistent wrt. , and L 2 S.
      </p>
      <p>The consistency requirement for a minimal abductive solution wrt. an actual
world can be achieved in contextual abduction by imposing the given actual
world as the abductive context of the query.</p>
      <p>De nition 5 (Abductive solution wrt. actual world). Let FM be a causal
abductive framework corresponds to boolean causal model M . Given a query G
wrt. FM , the abductive solution S wrt. an actual world is obtained by having
the abductive context I for G, where I is formed from literals in whose atoms
are exogenous variables in M .</p>
      <p>
        We now set up a procedure for determining, in a particular actual world ,
actual causes of an event l 2 wrt. a causal abductive framework F . The
procedure relies on Tabdual to carry out contextual abduction and to automatically
compute the set of dual rules dual(P ) of the abductive logic program P [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ].
In Tabdual, a set of dual rules are introduced, by means of the dual program
transformation [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], to deal with abduction under negative goals. The idea of the
dual transformation is to de ne, for each atom A and its set of rules R in a logic
program P , a set of dual rules whose head not A is true if and only if A is false
by R in the employed semantics of P . Note that, instead of having a negative
goal not A as the rules' head, its corresponding `positive' literal not A is used,
thus conforming the syntax of rules in a logic program.
      </p>
      <p>In the following procedure, complA(A) denotes the negation complement
of an abducible A, where the complement of a positive abducible Ab and its
negation not Ab is de ned as complA(Ab) = not Ab and complA(not Ab) = Ab,
respectively.</p>
      <p>Algorithm
Tabdual</p>
      <p>Input : F = hP; Ai, actual world , literal l 2
Output: actual cause of l wrt. F and causal world</p>
      <p>1: Finding actual causes via contextual abduction in
1. Compute dual(P ). Let P + = P [ dual(P ).
2. Compute minimal abductive solution S of query l with empty context
under P +. Let W be the set of all such minimal abductive solutions.
3. Compute the abductive solution S of query l w.r.t. the given actual world
under P +.
4. Construct set W that consists of only abductive solution S 2 W satisfying
for every t 2 S , complA(t) 2= S.
5. Every literal c 2 S where S 2 W is an actual cause of l in .</p>
      <p>
        The experiment in modeling examples from the literature (including Loader
[
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], Window [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], Backup [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], Bottle [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], Bogus Prevention [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], Push [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ],
Inevitable Shock [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], Purple Flame [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]) shows that the returned actual causes
mostly agree with those delivered by Bochman's approach [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], albeit restricted
to abducibles only.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Conclusions</title>
      <p>
        In this extended abstract, we have tried to examine the notion of actual causation
in a causal abductive framework, i.e., by translating the structural equations
in the causal model of Halpern and Pearl [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] into abductive logic programs.
Employing this framework, a procedure has been proposed that makes use of
the tabled abduction system Tabdual, to enact actual causality directly from
an abductive logic program by contextual abduction.
      </p>
      <p>
        Our approach is similar to the causal theory of Bochman and Lifschitz (BL)
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] in that situations are modeled using a set of rules. Di erent from Bochman's
approach in computing actual causes [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], we focus on abduction in de ning
and computing actual causality. Moreover, our framework consists of normal
logic programs, whereas BL causal theory allows rules with a negative head.
But thanks to the dual program transformation of Tabdual, such rules with
negative head (dual rules) are automatically computed.
      </p>
      <p>
        This research is an ongoing work. An important next step will be to
evaluate further the obtained results and conduct a comparative analysis with other
approaches that de ne actual causality in logic programming, e.g., [
        <xref ref-type="bibr" rid="ref12 ref18 ref2">12, 18, 2</xref>
        ]. It
is also part of future work to explore the application of the present approach to
machine ethics, extending our previous counterfactual approach [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]|also built
from abduction in logic programming|for distinguishing causes and side e ects
in justifying morally permissible actions.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Alferes</surname>
            ,
            <given-names>J.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pereira</surname>
            ,
            <given-names>L.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Swift</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Abduction in well-founded semantics and generalized stable models via tabled dual programs</article-title>
          .
          <source>Theory and Practice of Logic Programming</source>
          <volume>4</volume>
          (
          <issue>4</issue>
          ),
          <volume>383</volume>
          {
          <fpage>428</fpage>
          (
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Beckers</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vennekens</surname>
          </string-name>
          , J.:
          <article-title>A general framework for de ning and extending actual causation using CP-logic</article-title>
          .
          <source>International Journal of Approximate Reasoning</source>
          <volume>77</volume>
          ,
          <issue>105</issue>
          {
          <fpage>126</fpage>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Bochman</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Actual causality in a logical setting</article-title>
          .
          <source>In: IJCAI</source>
          . pp.
          <volume>1730</volume>
          {
          <issue>1736</issue>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Bochman</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lifschitz</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Pearl's causality in a logical setting</article-title>
          .
          <source>In: AAAI</source>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Denecker</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kakas</surname>
            ,
            <given-names>A.C.</given-names>
          </string-name>
          :
          <article-title>Abduction in logic programming</article-title>
          . In: Computational Logic:
          <article-title>Logic Programming and Beyond, Essays in Honour of Robert A</article-title>
          .
          <string-name>
            <surname>Kowalski</surname>
          </string-name>
          , Part I. p.
          <volume>402</volume>
          {
          <fpage>436</fpage>
          . Springer-Verlag, Berlin, Heidelberg (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Ehring</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Causal relata</article-title>
          . Synthese pp.
          <volume>319</volume>
          {
          <issue>328</issue>
          (
          <year>1987</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Halpern</surname>
            ,
            <given-names>J.Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pearl</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          :
          <article-title>Causes and explanations: A structural-model approach. Part I: Causes</article-title>
          .
          <source>British Journal for the Philosophy of Science</source>
          <volume>56</volume>
          (
          <issue>4</issue>
          ),
          <volume>843</volume>
          {
          <fpage>887</fpage>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Hiddleston</surname>
          </string-name>
          , E.:
          <article-title>Causal powers</article-title>
          .
          <source>British Journal for the Philosophy of Science</source>
          <volume>56</volume>
          (
          <issue>1</issue>
          ),
          <volume>27</volume>
          {
          <fpage>59</fpage>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Hitchcock</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Prevention, preemption, and the principle of su cient reason</article-title>
          .
          <source>The Philosophical Review</source>
          <volume>116</volume>
          (
          <issue>4</issue>
          ),
          <volume>495</volume>
          {
          <fpage>532</fpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Hopkins</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pearl</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          :
          <article-title>Clarifying the usage of structural models for commonsense causal reasoning</article-title>
          .
          <source>In: Proc. AAAI Spring Symposium on Logical Formalizations of Commonsense Reasoning</source>
          . pp.
          <volume>83</volume>
          {
          <issue>89</issue>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Josephson</surname>
            ,
            <given-names>J.R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Josephson</surname>
            ,
            <given-names>S.G.</given-names>
          </string-name>
          : Abductive Inference: Computation, Philosophy, Technology. Cambridge U. P. (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>LeBlanc</surname>
          </string-name>
          , E.,
          <string-name>
            <surname>Balduccini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vennekens</surname>
          </string-name>
          , J.:
          <article-title>Explaining actual causation via reasoning about actions and change</article-title>
          .
          <source>In: JELIA</source>
          . Springer (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>McDermott</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Redundant causation</article-title>
          .
          <source>British Journal for the Philosophy of Science</source>
          pp.
          <volume>523</volume>
          {
          <issue>544</issue>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Pearl</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          :
          <source>Causality: Models, Reasoning and Inference</source>
          . Cambridge University Press (
          <year>2000</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Pereira</surname>
            ,
            <given-names>L.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Saptawijaya</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Counterfactuals, logic programming and agent morality</article-title>
          . In: Urbaniak,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Payette</surname>
          </string-name>
          ,
          <string-name>
            <surname>G</surname>
          </string-name>
          . (eds.) Applications of Formal Philosophy, vol.
          <volume>14</volume>
          . Springer (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Perkasa</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Saptawijaya</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pereira</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Tabling in contextual abduction with answer subsumption</article-title>
          .
          <source>In: ICACSIS</source>
          . pp.
          <volume>459</volume>
          {
          <fpage>464</fpage>
          .
          <string-name>
            <surname>IEEE</surname>
          </string-name>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Saptawijaya</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pereira</surname>
            ,
            <given-names>L.M.:</given-names>
          </string-name>
          <article-title>Tabdual: a tabled abduction system for logic programs</article-title>
          .
          <source>IfCoLog Journal of Logics and their Applications</source>
          <volume>2</volume>
          (
          <issue>1</issue>
          ),
          <volume>69</volume>
          {
          <fpage>124</fpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Vennekens</surname>
          </string-name>
          , J.:
          <article-title>Actual causation in CP-logic</article-title>
          .
          <source>Theory and Practice of Logic Programming</source>
          <volume>11</volume>
          (
          <issue>4-5</issue>
          ),
          <volume>647</volume>
          {
          <fpage>662</fpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Wright</surname>
          </string-name>
          , R.:
          <article-title>Causation in tort law</article-title>
          .
          <source>California Law Review</source>
          <volume>73</volume>
          ,
          <issue>1735</issue>
          (
          <year>1985</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>