=Paper=
{{Paper
|id=Vol-3193/paper6ASPOCP
|storemode=property
|title=Assumable Answer Set Programming
|pdfUrl=https://ceur-ws.org/Vol-3193/paper6ASPOCP.pdf
|volume=Vol-3193
|authors=Zhizheng Zhang
|dblpUrl=https://dblp.org/rec/conf/iclp/Zhang22
}}
==Assumable Answer Set Programming==
Assumable Answer Set Programming
Zhizheng Zhang
School of Computer Science and Engineering, Southeast University, No.2 Dongnandaxue Rd, Nanjing, 211198, China
Abstract
For modeling the assumption-based intelligent agents who make assumptions and use them to construct their
belief sets, this paper proposes a logic programming language AASP (Assumable Answer Set Programming)
by extending ASP (Answer Set Programming). Rational principles of assumption-based reasoning are given
to define the semantics of the AASP program. The relation of AASP to some existing default formalism and
extensions of ASP implies that AASP can be used to model and solve some interesting problems with incomplete
information in the framework of assumption-based reasoning.
Keywords
assumption based reasoning, answer set, logic programming
1. Introduction
In the case of incomplete information, one framework of the mental behavior for an intelligent agent
is to make assumptions, and use them to construct belief set through deductive reasoning [1]. Var-
ious approaches for assumption-based or hypothetical reasoning have been proposed in the past.
Examples include Assumption-Based Truth Maintenance System introduced in [2], [3], [4], and [5],
Probabilistic Assumption-Based Model and language proposed in [6] and [7], Pooleβs Default Theory
in [8] and [9] etc.. Some efforts are made to explore the way of identifying assumptions in reasoning,
in which assumptions are not given explicitly. For example, [10] explores the derivation of assump-
tions to explain observed events, [11] and [12] present an approach to hypothetical planning involves
generating assumptions about actions that can not be derived from the knowledge-base etc.. Besides,
many studies show that assumption-based reasoning is closely related to the topics like argumenta-
tion [13], action reasoning [14], planning [15], contextual reasoning [1], defeasible reasoning [16],
logic programming [17], default reasoning [18] [19] etc..
Presently, Answer Set Programming (ASP) has become an increasingly popular tool for declarative
programming, knowledge representation, and nonmonotonic reasoning [20] [21] [22] [23]. Answer
sets are widely accepted as a rational reasonerβs views in an environment described by a logic program
that may contain incomplete information. The increasing success of the answer-set based reasoning
inspires us to explore how to use it in both assumption making and belief building of the framework
of the assumption-based reasoning.
This paper presents a new logic programming formalism for assumption-based reasoning by com-
bining the idea of ASP and the framework of assumption-based reasoning. Specifically, we propose
Assumable Answer Set Programming (AASP) language, an extension of ASP, that can be used to de-
sign the assumption-based intelligent agent whose mental behaviors of assumption making and belief
building are defined on the answer-set based reasoning.
ICLP Workshops 2022, July 31, 2022, Haifa, Israel
" seu_zzz@seu.edu.cn (Z. Zhang)
0000-0001-9851-6184 (Z. Zhang)
Β© 2022 Copyright for this paper by its authors.
Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
CEUR
Workshop
Proceedings
http://ceur-ws.org
ISSN 1613-0073 CEUR Workshop Proceedings (CEUR-WS.org)
The rest of the paper will introduce AASP formally and is organized as follows. In the next sec-
tion, ASP, two extensions of ASP, and constrained default logic are briefly introduced as background
knowledge for the self-contained requirement and as objects compared with AASP. In section 3, we
introduce syntax, semantics, and some properties of the AASP program. In section 4, the relation
between AASP and some other formalism is given. We conclude in section 5 with some further dis-
cussion.
We will restrict our discussion in this paper to propositional programs. However, as usual in answer
set programming, we admit rule schemata containing variables bearing in mind that these schemata
are just convenient representations for the set of their ground instances.
2. Preliminaries
2.1. Answer Set Program
Follow the description of ASP from [22]. A regular ASP program is a collection of rules of the form
π1 ππ ... ππ ππ β ππ+1 , ..., ππ , πππ‘ ππ+1 , ..., πππ‘ ππ
where the πs are literals, πππ‘ denotes negation as failure, ππ is epistemic disjunction. The left-hand
side of a rule is called the head and the right-hand side is called the body. A rule is called a fact if its
body is empty (equivalent to containing only a literal β€) and its head contains only one literal, and a
rule is called a denial if its head is empty (equivalent to containing only a literal β₯). An answer set
π of a program Ξ if it is the minimal set (in the sense of set inclusion) that satisfies Ξ π , where Ξ π is
G-L reduct of Ξ with respect to π achieved by two rules:
β’ delete all rules whose bodies are not satisfied by π .
β’ delete πππ‘ π in the bodies of the remaining rules.
π΄π(Ξ ) is used to denote the set of all answer sets of an ASP program Ξ .
2.1.1. CR-Prolog
CR-Prolog extends the regular ASP with a purpose of representing indirect exceptions to defaults
([22]). Follow the description of CR-Prolog from [24] and [22], a CR-Prolog program is a collection of
regular ASP rules or consistency-restoring rules (CR-rule) of the form
+
π1 ππ ... ππ ππ β ππ+1 , ..., ππ , πππ‘ ππ+1 , ..., πππ‘ ππ
where the πs are literals, πππ‘ denotes negation as failure, ππ is epistemic disjunction. And, β€ is a partial
order defined on sets of CR-rules in the program. This partial order is often referred to as a preference
relation based on the set-theoretic inclusion (π
1 β€ π
2 iff π
1 β π
2 ) or defined by the cardinality of the
corresponding sets (π
1 β€ π
2 iff |π
1 | β |π
2 |).
The set of regular ASP rules of a CR-Prolog program Ξ© is denoted by Ξ©π ; By πΌ(π) we denote a regular
+
rule obtained from a consistency-restoring rule π by replacing β by β, and πΌ can be expanded in a
standard way to a set π
of CR-rules, i.e., πΌ(π
) = {πΌ(π)|π β π
}.
A minimal (with respect to the preference relation of the program) collection π
of CR-rules of Ξ©
such that Ξ©π βͺ π
is consistent (i.e., has an answer set) is called an abductive support of Ξ©. Then, a set
π is called an answer set of Ξ© if it is an answer set of a regular program Ξ© βͺ πΌ(π
) for some abductive
support π
of Ξ©. We use π΄πβ (Ξ©) and π΄πβ― (Ξ©) to denote the collection of answer sets of Ξ© w.r.t. the
preference relation on set-theoretic inclusion and the cardinality respectively.
2.1.2. Abductive ASP
We consider two versions of the abductive answer set programs. In [25], an abductive logic program
(ALP93) Ξ is defined as a pair < π, ξ > where π is a regular ASP program and ξ is a set of literals
from the language of π called abducibles. πΊ a ground literal represents a positive observation. A set
π is a belief set of Ξ with respect to πΈ if π is an answer set of π βͺ πΈ where πΈ β ξ. π is called ξ minimal
if there is no belief set π of Ξ such that π β© ξ β π β© ξ. A set πΈ is an explanation of πΊ with respect
to Ξ if πΊ is true in a belief set π of Ξ such that πΈ = π β© π΄. An explanation πΈ of πΊ is minimal if no
πΈ β² β πΈ is an explanation of πΊ. πΈ is a minimal explanation of πΊ iff π is an ξ minimal belief set of
< π βͺ {β πππ‘ πΊ}, ξ >.
In [26], an abductive logic program (ALP95) Ξ is defined as a pair < π, ξ > where both π and ξ
are regular ASP programs. πΊ a ground literal represents a positive observation. A pair (πΈ, πΉ ) is a
explanation of πΊ with respect to Ξ if
1. πΊ β π for βπ β π΄π((π β πΉ ) βͺ πΈ)
2. (π β πΉ ) βͺ πΈ) is consistent
3. πΈ β (ξ β π) and πΉ β ξ β© π
On the other hand, a pair (πΈ, πΉ ) is an anti-explanation of πΊ with respect to Ξ if
1. πΊ β π for βπ β π΄π((π β πΉ ) βͺ πΈ)
2. (π β πΉ ) βͺ πΈ) is consistent
3. πΈ β (ξ β π) and πΉ β ξ β© π
An (anti-)explanation (πΈ, πΉ ) of πΊ is called minimal if for any (anti-)explanation (πΈ β² , πΉ β² ) of πΊ, πΈ β² β πΈ
and πΉ β² β πΉ imply πΈ β² = πΈ and πΉ β² = πΉ .
2.2. Constrained Default Logic
As defined by Reiter in [27], a default theory Ξ is a pair (π·, π ) where π is a set of first-order formulas
and π· is a set of defaults of the form
πΌ βΆ Mπ½
πΎ
where πΌ, π½, and πΎ are quantifier-free first order formulas. πΌ is called the prerequisite, π½ the justifi-
cations, and πΎ the consequent. Formally, For any set π of first order logic formulas, Let Ξ(π) be the
smallest set of formulas such that
β’ π β Ξ(π)
β’ Ξ(π) = π β(Ξ(π))
πΌ βΆ Mπ½
β’ if β π· and πΌ β Ξ(π) and Β¬π½ β π then πΎ β Ξ(π)
πΎ
A set of formulas πΈ is an extension of Ξ iff πΈ = Ξ(πΈ)
[28] proposes a variant of the extension of Reiterβs default logic, for any set π of first order logic
formulas, let Ξ₯(π ) be the pair of smallest sets (π β² , π β² ) of formulas such that
β’ π β πβ² β π β²
β’ π β² = π β(π β² ) and π β² = π β(π β² )
πΌ βΆ Mπ½
β’ For any β π·, if πΌ β π β² and π βͺ {π½, πΎ } β¬ β₯ then πΎ β π β² and π½ β§ πΎ β π β² .
πΎ
A pair of sets of formulas (πΈ, πΆ) is an constrained extension of Ξ iff Ξ₯(πΆ) = (πΈ, πΆ).
3. Assumable Answer Set Program
3.1. Syntax
An AASP rule π is written as
π1 ππ ... ππ ππ β π1 , ..., ππ βΆ ππ+1 , ..., ππ .
where the πs are literals in propositional logic language and πs are literals possibly preceded by nega-
tion as failure πππ‘, : is called assumption operator. βπππ(π) is used to denote the left-hand side of
π where ππ is an epistemic disjunction, and βππππππ‘(π) is used to denote the set {π1 , ..., ππ } of literals
in the head of π. ππππ¦(π) is used to denote the right-hand side of π, and ππππ¦πππ‘(π) is used to de-
note the set {π1 , ..., ππ , ππ+1 , ..., ππ } of literals in the body of π. π1 , ..., ππ is called the precondition of π
and denoted by πππππ¦(π). Let πππππ¦πππ‘(π) denote the set {π1 , ..., ππ } of literals in the precondition of
π. ππ+1 , ..., ππ is called the assumption of π and denoted by πππππ¦(π). Let πππππ¦πππ‘(π) denote the set
{ππ+1 , ..., ππ } of literals in the assumption of π. As in usual logic programming, a rule is called a fact if
its body is empty (equival to containing only a literal β€) and its head contains only one literal, and
a rule is called a constraint if its head is empty (equival to containing only a literal β₯). An AASP
rule is called assumption-free if its assumption is empty, otherwise it is called an assumption rule.
Sometimes, we use βπππ(π) β ππππ¦(π) or βπππ(π) β πππππ¦(π) βΆ πππππ¦(π) to denote π. πππ‘(π) is used
to denote the set of propositional logic literals appearing in π. π can be read as On the assumption of
πππππ¦(π), βπππ(π) is believed if πππππ¦(π) is believed or βπππ(π) is believed if πππππ¦(π) is believed and
it is consistent to assume πππππ¦(π).
An AASP program is a collection of AASP rules. πππ‘(Ξ ) is used to denote the set of propositional
logic literals appearing in Ξ . For convenient description, sometimes an AASP program Ξ is written
as a pair (Ξ π· , Ξ π ) in which Ξ π is the set of assumption-free AASP rules in Ξ and Ξ π· is the set of
assumption rules in Ξ .
It is clear that an assumption-free AASP rule is a regular ASP rule, and an assumption-free AASP
program is an ASP program that can be dealt with by ASP solvers like DLV ([29]), CLASP ([30]).
3.2. Semantics
3.2.1. Satisfiability
Let π be a collection of literals, π be an AASP rule, the notion of satisfiability denoted by β§AASP is
defined below.
β’ π β§AASP π if π β π
β’ π β§AASP πππ‘ π if π β π
β’ π β§AASP βπππ(π) if βπ β βππππππ‘(π), π β§AASP π
β’ π β§AASP πππππ¦(π) if βπ β πππππ¦πππ‘(π), π β§AASP π
β’ π β§AASP πππππ¦(π) if βπ β πππππ¦πππ‘(π), π β§AASP π
β’ π β§AASP ππππ¦(π) if π β§AASP πππππ¦(π) and π β§AASP πππππ¦(π).
β’ π β§AASP π if whenever π β§AASP ππππ¦(π), π β§AASP βπππ(π).
We say π is a model of an AASP program Ξ , denoted by π β§AASP Ξ , if we have π β§AASP π for
βπ β Ξ . A set π of literals is inconsistent if it contains a literal π and its contrary πΜ .
3.2.2. Assumable Answer Set
We first introduce the notion of Assumption Set of an AASP program that is viewed as the result of
assumption making in the framework of assumption-based reasoning.
Definition 1. Given an AASP program Ξ , an arbitrary set π΄ β πππ‘(Ξ ), π΄ is an assumption set of Ξ if
and only if
β
π΄ β π΄π (Ξ (π΄) βͺ π΄ )
where Ξ (π΄) is a regular ASP program obtained by
Ξ (π΄) = {βπππ(π) β πππππ¦(π)|π β Ξ and π΄ β§AASP πππππ¦(π)}
β
and π΄ is used to denote the rules set {π β |π β π΄}.
π΄ππ(Ξ ) is used to denote the collection of all assumption sets of an AASP program Ξ .
Example 1. Consider Ξ 1 :
π ββΆ π
π΄1 = β
, π΄2 = {π}, π΄3 = {π}, and π΄4 = {π, π}. We have
Ξ 1(π΄1 ) = β
Ξ (π΄
1
2)
=β
Ξ (π΄
1
3)
= {π β} Ξ (π΄
1
4)
= {π β}
Therefore,
β β
Ξ (π΄
1
1)
βͺ π΄1 = β
Ξ (π΄
1
2)
βͺ π΄2 = {π β}
β β
both Ξ (π΄
1
3)
βͺ π΄3 and Ξ (π΄
1
4)
βͺ π΄4 are:
πβ
πβ
Then,
β β
π΄π (Ξ (π΄
1
1)
βͺ π΄1 ) = {β
} π΄π (Ξ 1(π΄2 ) βͺ π΄2 ) = {{π}}
β β
π΄π (Ξ (π΄
1
3)
βͺ π΄3 ) = {{π, π}} π΄π (Ξ (π΄
1
4)
βͺ π΄4 ) = {{π, π}}
Thus, we have
β β
π΄1 β π΄π (Ξ (π΄
1
1)
βͺ π΄1 ) π΄2 β π΄π (Ξ (π΄
1
2)
βͺ π΄2 )
β β
π΄3 β π΄π (Ξ (π΄
1
3)
βͺ π΄3 ) π΄4 β π΄π (Ξ (π΄
1
4)
βͺ π΄4 )
Hence, β
, {π}, and {π, π} are assumption sets of Ξ 1 , {π} is not.
Definition 2. Given an AASP program Ξ , an arbitrary set π β πππ‘(Ξ ), π is an assumable answer set of
Ξ if and only if there exists an assumption set π΄ of Ξ such that
1. π β π΄π(Ξ (π΄) ), and
2. π β π΄
We say that π is an assumable answer set of Ξ on the assumption set π΄, and that (π, π΄) is a view of Ξ .
π΄π΄π(Ξ ) is used to denote the collection of all assumable answer sets of an AASP program Ξ .
π πΌ πΈπ (Ξ ) is used to denote the collection of all views of an AASP program Ξ .
Example 2. Continue Ξ 1 mentioned in the above example. Consider π1 = β
and π2 = {π}, obviously,
we have
π΄π(Ξ (π΄1)
1 ) = {β
} π΄π(Ξ (π΄ 2)
1 ) = {β
} π΄π(Ξ (π΄ 4)
1 ) = {π}
Then,
π1 β π΄π(Ξ 1(π΄1 ) ) and π1 β π΄1
π1 β π΄π(Ξ 1(π΄2 ) ) and π1 β π΄2
π2 β π΄π(Ξ 1(π΄4 ) ) and π2 β π΄4
Hence, β
is an assumable answer set of Ξ 1 on π΄1 , β
is also an assumable answer set of Ξ 1 on π΄2 , and {π}
is an assumable answer set of Ξ 1 on π΄4 .
The intuitions implied in the definitions are as the following principles based on the ASP-based rea-
soning:
1. Rationality of Assumption Making. This principle tells that, in assuming a formula, the agent
reasons and behaves as if it is a fact.
2. Rationality of Belief Building on Assumptions. This principle tells that the agentβs beliefs are
obtained by reasoning within the scope of assumptions.
3. Consistency between Assumptions and Beliefs. This principle tells that an agentβs assumptions
and beliefs must be consistent.
The notion of Assumption Set is defined by the first principle. By the second and the third principles,
the notion of Assumable Answer Set is defined.
In the scenario of incomplete information, different assumption sets may be generated by a different
set of assumption rules in the program. Some of them are from more assumption rules and some of
them from less. Just as the example above shows, the assumption set β
satisfies no assumption of
the rule in the program Ξ 1 , and {π, π} satisfies the assumption of one rule in the program. Based
on this observation, we define several strategies of assumption making while keeping the principles
unchanged.
Definition 3. Given an AASP program Ξ , π΄ is an assumption set of Ξ ,
1. π΄ is a maxβ assumption set of Ξ if there is no assumption set π΄β² of Ξ such that Ξ (π΄) β Ξ (π΄ ) .
β²
2. π΄ is a minβ assumption set of Ξ if there is no assumption set π΄β² of Ξ such that Ξ (π΄) β Ξ (π΄ ) .
β²
3. π΄ is a maxβ― assumption set of Ξ if there is no assumption set π΄β² of Ξ such that |Ξ (π΄) | < |Ξ (π΄ ) |.
β²
4. π΄ is a minβ― assumption set of Ξ if there is no assumption set π΄β² of Ξ such that |Ξ (π΄) | > |Ξ (π΄ ) |.
β²
Definition 4. Given an AASP program Ξ , π is called maxβ (minβ or maxβ― or minβ― ) assumable answer set
of Ξ if (π, π΄) is a view of Ξ and π΄ is a maxβ (minβ or maxβ― or minβ― ) assumption set of Ξ . Correspondingly,
the pair (π, π΄) is called a maxβ (minβ or maxβ― or minβ― ) view of Ξ .
maxβ (minβ or maxβ― or minβ― )-π΄π΄π(Ξ ) is used to denote the collection of all maxβ (minβ or maxβ― or
minβ― ) assumable answer sets of an AASP program Ξ . maxβ (minβ or maxβ― or minβ― )-π πΌ πΈπ (Ξ ) is used
to denote the collection of all maxβ (minβ or maxβ― or minβ― ) views of an AASP program Ξ .
Example 3. Continue Ξ 1 mentioned in the above examples. Obviously, both β
and {π} are not only
minβ but also minβ― assumption sets, while {π, π} is both maxβ and maxβ― assumption set. Thus, β
is a
minβ assumable answer set and also a minβ― assumable answer set of Ξ 1 . {π} is a maxβ assumable answer
set and also a maxβ― assumable answer set of Ξ 1 .
The intuitions of πππ₯ and πππ strategies of assumption making are direct: πππ₯ means that the
reasoner is positive/optimistic/ credulous in making assumptions. πππ is just the opposite. Let us
consider a common advice βWork hard and you will succeedβ that can be represented by an AASP
program with one rule
π π’πππππ ββΆ π€πππβπππ
Then, a positive reasonerβs view is the πππ₯β (πππ₯β― ) view ({π π’πππππ}, {π€πππβπππ, π π’πππππ}) of the
program, a passive reasonerβs view is the πππβ (πππβ― ) view (β
, β
) of the program.
3.3. Properties
In this subsection, some properties of AASP are given.
Theorem 1. For a assumption-free AASP program Ξ :
π΄π΄π(Ξ ) = Xβ β π΄π΄π(Ξ ) = π΄π(Ξ )
where π β {πππ₯, πππ} and β β {β, β―}.
Theorem 2. For an AASP program Ξ , an assumption set of Ξ is a model of Ξ .
Theorem 3. For an AASP program Ξ and a literal subset π΄ β πππ‘(Ξ )
β β
π΄ β π΄π(Ξ (π΄) βͺ π΄) if and only if π΄ β π΄π(Ξ βπ΄ βͺ π΄)
where
Ξ βπ΄ = {βπππ(π) β πππππ¦(π), πππππ¦(π)|π β Ξ and π΄ β§AASP πππππ¦(π)}
Theorem 3 tells that an alternative definition of the notion of Assumption Set is: π΄ is an assumption set
β
of Ξ if π΄ β π΄π(Ξ βπ΄ βͺ π΄), that can be viewed as another way of formalizing the principle of Rationality
of Assumption Making.
Theorem 4. For an AASP program Ξ = (Ξ π· , Ξ π ), let π΄ be an assumption set of Ξ
Ξ π β Ξ (π΄)
Theorem 5. For an AASP program Ξ = (Ξ π· , Ξ π ), let π be an assumable answer set of Ξ
π β§AASP Ξ π
Theorem 5 tells that an assumable answer set of an AASP program always satisfies the assumption-
free rules in the program.
Theorem 6. AASP is constraint monotonic under the assumable answer set semantics.
Theorem 7. AASP is not constraint monotonic under the Xβ assumable answer set semantics, where
π β {πππ₯, πππ} and β β {β, β―}.
Theorem 7 can be demonstrated by the following example.
Example 4. Ξ 2 is an AASP program containing one rule:
π ββΆ π
Ξ 2 has only one maxβ (also maxβ― ) assumable answer set {π} and only one minβ (also minβ― ) assumable
answer set β
. Consider Ξ β²2 :
π ββΆ π
βπ
Clearly, Ξ β²2 has only one maxβ (maxβ― ) assumable answer set β
that is not a maxβ (or maxβ― ) assumable
answer set of Ξ 2 . Consider Ξ β²β²
2:
π ββΆ π
β πππ‘ π
2 has only one minβ (or minβ― ) assumable answer set {π} that is not a minβ (or minβ― ) as-
Obviously, Ξ β²β²
sumable answer set of Ξ 2 .
4. Relations
For exploring the power of AASP in commonsense reasoning, this section presents the relationship
between AASP and several well-known knowledge representation languages, including constrained
default logic [28], CR-Prolog [31], and abductive logic programming [25] [26]. First of all, we compare
AASP and ASP in representing assumptions.
4.1. Comparison of AASP and ASP in Representing Assumptions
It seems that the assumption rule On the assumption of πΌ, π½ is believed if πΎ is believed can also be coded
into an ASP rule π½ β πΎ , πππ‘ Β¬πΌ where πππ‘ Β¬πΌ is used to express πΌ is assumable or it is consistent to
assume πΌ. However, the following cases demonstrate the difference between ASP encodings and AASP
encodings of the assumptions.
Firstly, let us consider a case containing:
β’ An assumption: π if it is consistent to assume π.
β’ A constraint: p is impossible.
Intuitively, the constraint is a denial of π such that the assumption is blocked, thus the result is β
. If
the case is modeled by an ASP program
π β πππ‘ Β¬π
βπ
there is no solution because the ASP program is unsatisfiable. If the case is represented by an AASP
program
π ββΆ π
βπ
there is an assumable answer set β
as expected.
Now, let us consider another case with two assumptions:
β’ p if it is consistent to assume r, and
β’ q if it is consistent to assume Β¬π.
If they are represented as an ASP program
π β πππ‘ Β¬π
π β πππ‘ π
The result is its answer set {π, π}. Meanwhile, if they are represented as an AASP program
π ββΆ π
π ββΆ Β¬π
There are three assumable answer sets {π}, {π}, and β
. Among them, both {π} and {π} are πππ₯β
(and πππ₯β― ) assumable answer sets, and β
is a πππβ (and πππβ― ) assumable answer set. Consider that
π and its contrary Β¬π cannot appear in one world, the results given by the AASP program should be
more praised than that of the ASP program.
Another seeming ASP-based encoding of it is consistent to assume πΌ is πππ‘ πππ‘ πΌ. But, it is easy to
verify that the encoding of the second case in this way
π β πππ‘ πππ‘ π
π β πππ‘ πππ‘ Β¬π
has only one answer set β
.
The above two examples demonstrate that it is hard to represent assumptions using the regular
ASP language, and that AASP provides an easy approach to handling assumptions by extending ASP
with a new operator :.
4.2. Relation to Constrained Default Logic
Constrained default logic meets some properties that are in line with human intuition in common-
sense reasoning. The following theorem shows that AASP is closely related to the constrained default
logic.
Define a mapping π from a disjunction-free and NAF-free program of AASP to default theories,
identifies an AASP rule π:
π0 β π1 , ..., ππ βΆ ππ+1 , ..., ππ (1)
with the default π(π):
π1 β§ ... β§ ππ βΆ Mππ+1 β§ ... β§ ππ
(2)
π0
Then we have
Theorem 8. For any disjunction-free and NAF-free AASP program Ξ , if (π, π΄) is a maxβ view of Ξ , then
(π β(π), π β(π΄)) is a constrained extension of π(Ξ ).
Example 5. Consider Ξ 3 :
π ββΆ π
π ββΆ Β¬π
has two maxβ views: ({π}, {π, π}), and ({π}, {π, Β¬π}). {π, π} is not an assumable answer set of Ξ 3 be-
cause {π, Β¬π, π, π} is not an assumption set of the program. Correspondingly, π(Ξ 3 ) is a default theory
containing two defaults:
βΆ Mπ βΆ MΒ¬π
π π
that has two extensions:
(π β(π), π β(π, π))
and
(π β(π), π β(Β¬π, π))
4.3. Relation to CR-Prolog
CR-Prolog is an ASP extension that greatly extends the expression ability of ASP language. The
following theorem provides an approach to converting a CR-Prolog program into an AASP program.
Define a mapping π from a CR-prolog to AASP, identifies a CR-rule π:
+
π1 ππ ... ππ ππ β ππ+1 , ..., ππ , πππ‘ ππ+1 , ..., πππ‘ ππ (3)
with an AASP rule π(π):
π1 ππ ... ππ ππ β ππ+1 , ..., ππ , πππ‘ ππ+1 , ..., πππ‘ ππ βΆ πππππ¦π (4)
where πππππ¦π is used to denote the fresh atom obtained from a CR-rule π. Besides, π identifies a regular
ASP rule in the CR-prolog program with itself.
Theorem 9. For any CR-Prolog program Ξ©
π΄πβ (Ξ©) = minβ β π΄π΄π(π(Ξ©))
where β β {β, β―}.
Example 6. Consider a simple CR-Prolog program Ξ© that contains only one CR-rule π:
+
πβ
It is easy to see Ξ© has only one answer set β
. Then, an AASP program π(Ξ©) is
π ββΆ πππππ¦π
whose minβ― and minβ assumable answer set is also β
.
4.4. Relation to Abductive ASP
Define a mapping π, for an ALP93 program Ξ =< π, ξ >, π(Ξ) is an AASP program:
π βͺ {π ββΆ π|π β ξ}
We have
Theorem 10. For the ALP93 program Ξ =< π, ξ >, π is a minβ assumable answer set of π(Ξ) if and only
if π is a ξ-minimal belief set of Ξ.
Example 7. Consider an abductive logic program Ξ1 =< π, ξ > in [32]:
β’ π: π β πππ‘ π
β’ ξ: π
The program has one ξ-minimal belief set {π}. π(Ξ1 ) is an AASP
π β πππ‘ π
π ββΆ π
Both {π} and {π} are its assumable answer sets, only {π} is its minβ assumable answer set as expected.
Theorem 11. For the ALP93 program Ξ =< π, ξ > and a positive observation πΊ.
1. If π is a minβ assumable answer set of the AASP program π(Ξ) βͺ {β πππ‘ πΊ}, then π β© ξ is a
credulous explanation of πΊ with respect to Ξ.
2. If πΈ is a credulous explanation of πΊ with respect to Ξ, then there exists a minβ assumable answer
set π of the AASP program π(Ξ) βͺ {β πππ‘ πΊ} such that πΈ = π β© ξ.
Example 8. Continue to consider Ξ1 mentioned in Example 7, given a positive observation πΊ = π.
Clearly, β
is a credulous explanation of π with respect to Ξ1 . Now, we have π(Ξ1 ) βͺ {β πππ‘ πΊ}:
π β πππ‘ π
π ββΆ π
β πππ‘ π
that has a minβ assumable answer set β
such that πΈ = β
.
Define a mapping π β² , for the ALP95 program Ξ =< π, ξ >, π β² (Ξ) is an AASP program:
(π β ξ) βͺ {βπππ(π) β ππππ¦(π), πππππ¦π |π β (ξ β π)}βͺ
{πππππ¦π ββΆ πππππ¦π |π β (ξ β π)}βͺ
{βπππ(π) β ππππ¦(π), πππ‘ ππππππ |π β (ξ β© π)}βͺ
{ππππππ ββΆ ππππππ |π β (ξ β© π)}
where both πππππ¦π and ππππππ are used to denote the fresh atoms obtained from π β ξ. We have
Theorem 12. For the ALP95 program Ξ =< π, ξ > and a positive observation πΊ.
1. If π is a minβ assumable answer set of the AASP program π β² (Ξ) βͺ {β πππ‘ πΊ}, then there exists a
minimal explanation of πΊ with respect to Ξ is
({π|πππππ¦π β π}, {π|ππππππ β π})
2. If (πΈ, πΉ ) is a minimal explanation of πΊ with respect to Ξ, then there exists a minβ assumable answer
set π of the AASP program π β² (Ξ) βͺ {β πππ‘ πΊ} such that
πΈ = {π|πππππ¦π β π}
πΉ = {π|ππππππ β π}
Example 9. Consider an abductive logic program Ξ2 =< π, ξ > and a positive observation πΊ:
β’ π:
π ππ¦ β ππππ
ππππ β πππππ’ππ
ππππ’ππ β
β’ ξ:
(1). π ππ¦ β ππππ
(2). Β¬π ππ¦ β πππππ’ππ
β’ πΊ: Β¬π ππ¦
Thus, π β² (Ξ2 ) is:
ππππ β πππππ’ππ
ππππ’ππ β
π ππ¦ β ππππ, πππ‘ πππππ1
Β¬π ππ¦ β πππππ’ππ, πππππ¦2
πππππ1 ββΆ πππππ1
πππππ¦2 ββΆ πππππ¦2
Then, π β² (Ξ2 ) βͺ {β πππ‘ Β¬π ππ¦} has a minβ assumable answer set
{πππππ¦2 , πππππ1 , Β¬π ππ¦, πππππ’ππ, ππππ}
by which
πΈ = {Β¬π ππ¦ β πππππ’ππ}
πΉ = {π ππ¦ β ππππ}
such that (πΈ, πΉ ) is a minimal explanation of Β¬π ππ¦ with respect to Ξ2 .
Theorem 13. For the ALP95 program Ξ =< π, ξ > and a positive observation πΊ.
1. If π is a minβ assumable answer set of π β² (Ξ)βͺ{β πΊ}, then there exists a minimal anti-explanation
of πΊ with respect to Ξ is
({π|πππππ¦π β π}, {π|ππππππ β π})
2. If (πΈ, πΉ ) is a minimal anti-explanation of πΊ with respect to Ξ, then there exists a minβ assumable
answer set π of π β² (Ξ) βͺ {β πΊ} such that
πΈ = {π|πππππ¦π β π}, πΉ = {π|ππππππ β π}
Example 10. Continue to consider the abductive logic program Ξ2 used in the Example 9. By the The-
orem 13, the anti-explanation of π ππ¦ with respect to Ξ2 is the minβ assumable answer set of the AASP
program
π β² (Ξ2 ) βͺ {β π ππ¦}
Obviously, a minβ assumable answer set of the program is {πππππ’ππ, ππππ} that tells neither (1) nor (2)
is used, and the corresponding minimal anti-explanation (πΈ, πΉ ) of π ππ¦ is
πΈ=β
πΉ = {π ππ¦ β ππππ}
.
5. Conclusion
This paper introduce AASP that extends ASP with an operator : to express the notion of assump-
tion in logic programming. AASP can be viewed as a tool to design the intelligent agent capable of
assumption-based reasoning that is a framework of many intelligent behaviors in the case of incom-
plete information. AASP provides a rational approach to assumption-based reasoning by using the
answer set-based reasoning in both assumption making and belief building, which makes the exit-
ing ASP solvers can be used to facilitate the implementment of the AASP solver: ASP solvers can be
directly used to generate assumption sets and then the assumable answer set of an AASP program.
Several strategies of assumption making are given in the definition of the semantics of AASP. Those
strategies depicts the attitude of agents to assumptions. The preliminary exploration results on the
relationship between AASP and other existing knowledge representations show that AASP provides
a more general way to model the problems with defaults, exceptions, and to solve the explanation
problems. Especially, the close relationship between AASP and constrained default logic implies that
AASP is able to address several limitations of the original ASP in representing defaults 1 .
Future work includes more properties of the AASP languages, implementation, and applications.
The first next step is to investigate the properties of the assumption set of the AASP programs, and the
algorithm and its complexity in solving AASP programs. Besides, it is still needed to explore the rela-
tion of AASP to ASP and its extensions, and the relation of AASP to other knowledge representation
languages more deeply.
Acknowledgments
We are grateful to the anonymous referees for their useful comments on the earlier version of this
paper. The work was supported by the Pre-research Key Laboratory Fund for Equipment (Grant No.
6142101190304).
1
The limitations of Reiterβs default logic are extensively studied in [28]. Because of the close relationship between ASP
and Reiterβs default logic shown in [33] and [22], ASP cannot meet some properties, such as the property of joint consistency
of the justifications of applying default rules
References
[1] M. Jago, Modelling assumption-based reasoning using contexts, in: Proceedings of workshop
on Context Representation and Reasoning (CRRβ05), 2005.
[2] J. de Kleer, An assumption-based tms, Artificial Intelligence 28 (1986) 127β162.
[3] J. de Kleer, Extending the atms, Artificial Intelligence 28 (1986) 163β196.
[4] R. Reiter, J. de Kleer, Foundations of assumption-based truth maintenance systems: Preliminary
report, in: Proceedings of AAAI-87, 1987.
[5] J. de Kleer, A general labeling algorithm for assumption-based truth maintenance, in: Proceed-
ings of AAAI-88, 1988, pp. 188β192.
[6] J. Kohlas, P.-A. Monney, Probabilistic assumption-based reasoning, in: Uncertainty in Artificial
Intelligence, 1993, pp. 485β491.
[7] B. Anrig, R. Haenni, J. Kohlas, N. Lehmann, Assumption-based modeling using abel, in: Pro-
ceedings of ECSQARU-FAPR, 1997, pp. 171β182.
[8] D. L. Poole, A logical framework for default reasoning, Artif. Intell. 36 (1988) 27β47.
[9] D. L. Poole, Who chooses the assumptions, in: Abductive Reasoning, MIT Press, 1997.
[10] P. T. Cox, T. Pietrzykowski, Causes for events: their computation and applications, in: Interna-
tional Conference on Automated Deduction, Springer, 1986, pp. 608β621.
[11] H. Reichgelt, N. Shadbolt, Planning as theory extension, in: Proceedings of AISB-89, 1989, pp.
191β199.
[12] H. Reichgelt, N. Shadbolt, A specification tool for planning systems, in: ECAI-1990, 1990, pp.
541β546.
[13] A. Bondarenko, F. Toni, R. A. Kowalski, An assumption-based framework for non-monotonic
reasoning, in: LPNMR-93, 1993, pp. 171β189.
[14] R. A. Kowalski, F. Sadri, Reconciling the event calculus with the situation calculus, J. Log.
Program. 31 (1997) 39β58.
[15] D. Pellier, H. Fiorino, Multi-agent assumption-based planning, in: IJCAI-05, 2005, pp. 1717β1718.
[16] G. K. Giannikis, A. Daskalopulu, Defeasible reasoning with e-contracts, in: 2006 IEEE/WIC/ACM
International Conference on Intelligent Agent Technology, 2006, pp. 690β694.
[17] D. Stamate, Assumption based multi-valued semantics for extended logic programs, in: 36th
International Symposium on Multiple-Valued Logic (ISMVLβ06), 2006, pp. 10β10.
[18] M. Kaminski, A comparative study of open default theories, Artif. Intell. 77 (1995) 285β319.
[19] G. K. Giannikis, A. Daskalopulu, The representation of e-contracts as default theories, in: In-
ternational Conference on Industrial, Engineering and Other Applications of Applied Intelligent
Systems, Springer, 2007, pp. 963β973.
[20] M. Gelfond, V. Lifschitz, The stable model semantics for logic programming, in: ICLP/SLP, 1988.
[21] C. Baral, Knowledge representation, reasoning and declarative problem solving, 2003.
[22] M. Gelfond, Y. Kahl, Knowledge representation, reasoning, and the design of intelligent agents:
The answer-set programming approach, Cambridge University Press, 2014.
[23] E. Erdem, M. Gelfond, N. Leone, Applications of answer set programming, AI Mag. 37 (2016)
53β68.
[24] M. Balduccini, M. Gelfond, Logic programs with consistency-restoring rules, in: AAAI Technical
Report SS-03-05, 2003.
[25] K. Inoue, C. Sakama, Transforming abductive logic programs to disjunctive programs, in: ICLP-
93, 1993, p. 335.
[26] K. Inoue, C. Sakama, Abductive framework for nonmonotonic theory change., in: IJCAI, vol-
ume 95, Citeseer, 1995, pp. 204β210.
[27] R. Reiter, A logic for default reasoning, Artif. Intell. 13 (1980) 81β132.
[28] T. Schaub, On constrained default theories, in: ECAI, 1992, pp. 304β308.
[29] W. Faber, G. Pfeifer, N. Leone, T. Dellβarmi, G. Ielpa, Design and implementation of aggregate
functions in the dlv system, Theory Pract. Log. Program. 8 (2008) 545β580.
[30] M. Gebser, B. Kaufmann, T. Schaub, Conflict-driven answer set solving: From theory to practice,
Artif. Intell. 187-188 (2012) 52β89.
[31] M. Balduccini, Cr-models: An inference engine for cr-prolog, in: International Conference on
Logic Programming and Nonmonotonic Reasoning, Springer, 2007, pp. 18β30.
[32] C. Sakama, K. Inoue, Abductive logic programming and disjunctive logic programming: their
relationship and transferability, J. Log. Program. 44 (2000) 75β100.
[33] V. Lifschitz, Answer set programming and plan generation, Artif. Intell. 138 (2002) 39β54.