Abstract
Answer Set Programming (ASP) is a well established logical approach in artificial intelligence that is widely used for knowledge representation and problem solving. Equilibrium logic extends answer set semantics to more general classes of programs and theories. When intertheory relations are studied in ASP, or in the more general form of equilibrium logic, they are usually understood in the form of comparisons of the answer sets or equilibrium models of theories or programs. This is the case for strong and uniform equivalence and their relativised and projective versions. However, there are many potential areas of application of ASP for which query answering is relevant and a comparison of programs in terms of what can be inferred from them may be important. We formulate and study some natural equivalence and entailment concepts for programs and theories that are couched in terms of inference and query answering. We show that, for the most part, these new intertheory relations coincide with their model-theoretic counterparts. We also extend some previous results on projective entailment for theories and for the new connective called fork.
1. Introduction
Answer Set Programming (ASP) is a popular environment for knowledge representation and problem solving in artificial intelligence. Thanks to efficient answer set solvers, there are now many applications of this technique in diverse domains. Equilibrium logic [1] provides a logical foundation for ASP and extends the stable model semantics to arbitrary propositional and first order theories. It has also proved instrumental in generating novel extensions for temporal and epistemic reasoning under answer set semantics. Answer set programs are typically employed to provide one or more representations of problem solutions in the form of models or answer sets. Unlike Prolog, ASP was not traditionally designed to be used as a query answering system. Accordingly, the study of logical relations between programs, beginning with [2], has focused mainly on a comparison of their answer sets. This is how the principle relations of strong and uniform equivalence as well as their relativised and projective versions are understood [2,3,4,5]. Strong and uniform equivalence were first considered in the Datalog domain [6,7]; since then, many nonmonotonic formalisms have been investigated in this regard, including default logic [8], causal logics [9], argumentation frameworks [10,11], and preference-based formalisms [12,13,14], to mention just a few examples. Results on strong equivalence and related notions have proved to be useful in many different contexts, such as program simplification [15] or forgetting [16].
Nevertheless, query answering is important in a number of domains where ASP can be applied. In such cases, we are interested in comparing the logical consequences of different programs, to see, for example, under what conditions they agree in their answering of queries. This motivates the challenge of defining and analysing equivalence and entailment relations between programs that are formulated in terms of inference and query answering. Similar notions turn up in other logic-based reasoning systems. In Datalog, there is the well-known concept of query containment [17]. In description logics for reasoning over ontologies, there is the concept of query inseparability (see e.g., [18]); similarly, in abstract argumentation, strong equivalence with respect to argument acceptance has been investigated [11].
In ASP, two programs are said to be equivalent if they have the same stable models and strongly equivalent if they remain equivalent under the addition of any new set of rules [2]. If only new facts can be added, the relation is known as uniform equivalence. Furthermore, relativised versions of strong and uniform equivalence can be defined to cover the case that the newly added rules or facts are in a specific language. Projective equivalence is the appropriate concept in case we are interested in model equivalence with respect to a restricted sublanguage of the programs. All these relations have been studied and characterised in the literature (as cited above). In [19], weak and strong forms of entailment between programs were also defined and analysed. In this case, we are concerned with the relative strength of theories.
In the rest of the article, we formulate new intertheory and inter-program relations based on inference and show that, in most cases, they coincide with their well-known model-theoretic counterparts. This means that they can be studied using familiar concepts and techniques. We work throughout in the non-classical logic of here-and-there, which provides a basis for equilibrium logic and hence for the stable model semantics of ASP. is of particular importance in this context due to the way in which models relate to theory equivalences. In Section 2, we recall the basic features of and equilibrium logic, and we define three types of consequence relations for equilibrium theories. Section 3 deals with strong and uniform equivalence relations, showing how the standard notions compare with their counterparts formulated in terms of inference. An analogous procedure for relativised equivalence follows in Section 4. In Section 5, we turn to entailment relations between theories. In other words, we deal with the relative strength of theories in terms of both their stable models and their question answering capabilities. Section 6 examines projective entailment and equivalence relations; here, we generalise some of the characterisations obtained in previous work. We include projective entailment and equivalence for standard logic programs and also cover two further cases. One is the extension to arbitrary propositional theories. The other deals with an extension of the usual vocabulary of programs to include a new type of disjunction connective, ‘’, called fork, introduced in [20]. As explained in Section 6.2, the intuitive meaning of this construct is that when we form the stable models of , they correspond to the union of the stable models from and . This continues to be the case when further rules are added.
ASP is well suited to formalise rule-based policies and often one is interested in the consequences that can be derived from such policies, given relevant background information and data. It follows that the kinds of intertheory correspondences we have been studying are relevant when we want to compare different policies in a logical manner. We include in Section 7 some paragraphs describing an outline of how such a policy formalisation might look in the case of access control policies, a domain in which logic programs have been successfully applied in the past. This sketch may help to illustrate how our intertheory relations may provide useful concepts for reasoning about such policies.
There is a substantial body of literature devoted to logical relations between answer set programs and between theories in equilibrium logic. It is beyond the remit of this article to describe all the many characterisation results and their applications. However, in the concluding Section 8, we list some additional research articles where the reader can find many of the most important results. We moved some of the longer proofs, especially those from Section 6, to an Appendix A.
2. Logical Preliminaries and Basic Definitions
We work in the logic of here-and-there first presented in [21]. This is a three-valued extension of intuitionistic propositional logic. It can be built up in a simple manner by considering two kinds of truth: provable truth and truth by default applying to propositions that are not false but not provably true [22]. We also rely on equilibrium logic, a nonmonotonic extension of based on a concept of minimal model [1]. Equilibrium logic captures the stable model semantics of ASP for arbitrary propositional theories. Moreover, is of great value when studying intertheory relations, because theories and programs are strongly equivalent if and only if they are logically equivalent in .
The language of is built up in the usual way from a set of atoms called the (propositional) signature. A (propositional) formula is defined using the usual grammar:
where p is an atom . Greek letters and their variants stand for formulas. We also consider derived operators , and . A literal is an atom p or its negation . A theory is a set of formulas. A (general) program is a set of implications of the form where is a conjunction of literals and a disjunction of literals. A disjunctive logic program is a program such that for each of its implications , is a disjunction of atoms. In other words, the formulas of a disjunctive program have precisely the form of what are usually called logic programming rules, where is the rule body and is the rule head. We denote theories and programs by upper-case Greek letters, , and denotes the set of atomic formulas present in . Throughout the article, we restrict attention to finite languages, theories, and programs.
A model-theoretic semantics for can be based on the usual possible-worlds models for intuitionistic logic (see e.g., [23]), but is complete for frames (where, as usual, w is the set of points or worlds and ≤ is a partial-ordering on w) having exactly two worlds, say h (‘here’) and T (‘there’) with . As usual, a model is a frame together with an assignment i that associates to each element of w a set of atoms, such that if , then . An assignment is then extended inductively to all formulas via the usual rules for conjunction, disjunction, implication, and negation in intuitionistic logic, namely
Although the final clause is obtained from those for → and ⊥, we include it to make it clear that is true at either world just in case . It is convenient to represent an model as an ordered pair of sets of atoms, where and under a suitable assignment i; by , it follows that . When , we say that the interpretation is total. Note that in a model , H represents the set of certain or provable atoms whereas T represents the set of true atoms of either kind.
We write to denote that a formula is true or forced at world w in an model , i.e., . Then, is true in , in symbols , if . A formula is said to be a consequence of a theory , in symbols , if for each model of . We denote by the collection of all formulas true in .
Equilibrium Logic
To define equilibrium logic, we first introduce a partial ordering ⊴ on models.
Definition 1.
Given any two models, , , we set if and .
This leads to the following notion of equilibrium.
Definition 2.
Let Π be a theory and a model of Π. Then, is said to be an equilibrium model of Π if it is minimal under ⊴ among models of Π, and it is total.
In other words, a model of is in equilibrium if there is no model of with . In this case, we say that T is a stable model or answer set of . Equilibrium logic is the logic determined by the equilibrium models of a theory. Our terminology is justified by the following property:
Proposition 1
([24]). Let Π be a disjunctive logic program. Then, a set of atoms T is a stable model (or answer set) of Π (in the standard sense [25]) if and only if is an equilibrium model of Π.
Because a theory or program under stable model semantics usually possesses more than one stable or equilibrium model, different notions of inference can be considered depending on the particular problem domain represented by the theory. The more usual relation in ASP is sceptical inference; however, there are applications where a credulous form of inference is more appropriate. We also include a third type of prudent inference. For a theory , we denote by the set of its equilibrium models. We say that a theory is stable if . When it is clear that we are dealing with an equilibrium model or any total (i.e., classical) model , we also simply denote it by its corresponding set M of (true) atoms.
Definition 3
(Equilibrium consequence). The relations of equilibrium consequence, credulous (), sceptical (), and prudent () are defined as follows. Let Π be a theory. Then,
- if Π is stable and ;
- if Π is stable and
- if Π is stable and
These relations differ: Take for instance . We have, . Thus, but not nor . Moreover, but . In general, we have that implies and implies . In our example, (because ) but because .
3. Equivalence Notions
Based on these relations, we now can define different notions of equivalence between theories.
Definition 4.
Let and be theories and . Then, states that for any formula φ, iff .
We are now able to compare theories in further different ways:
Definition 5.
Let and be theories and . Then,
- holds iff for any further theory Π, .
- holds iff for any set X of atoms, .
- holds iff for any further theory Π, .
- holds iff for any set X of atoms, .
The first two relations are well known. Following standard terminology, we say that and are equivalent if , strongly equivalent if and uniform equivalent if . These relations are well understood. and are strongly equivalent if and only if they are equivalent in the logic ; in other words, they have the same models [2]. Uniform equivalence on the other hand is captured by a special set of countermodels [26] (see also [3,27]).
Evidently, if theories are equivalent, then their inference relations are also equivalent for all types of inference. However, what happens if two theories have different equilibrium models; can we always separate them in terms of sentences they entail? The following lemma answers this in the affirmative for credulous and sceptical inference. To simplify notation, we treat an equilibrium model as a set of atoms M.
Lemma 1.
Let and be stable theories such that ; say that has an equilibrium model M that is not an equilibrium model of . Then:
(i) There exists a sentence φ such that but φ is false in all equilibrium models of . Hence, , , and so .
(ii) There exists a sentence ψ such that but for each equilibrium model . Hence, whereas and so .
Proof.
(i) For each , we know that or with . Set
Then, , for each i, so where and . However, for any , which implies that
(ii) Similarly, for each equilibrium model of either there is some atom such that or else there is some atom such that , where U is the set of atoms in . Set
Then, holds in each equilibrium model of and so . By inspection and so . □
Now it is straightforward to characterise entailment equivalence.
Proposition 2.
The following conditions hold:
- iff iff .
- implies for .
The next results show that in the strong-equivalence setting, the choice of the consequence operator does not play a role. Together with the observation from above, we conclude that all three notions are characterised by the logic of here-and-there.
Proposition 3.
The following propositions are equivalent:
- (i)
- ;
- (ii)
- ;
- (iii)
- ;
- (iv)
- .
Proof.
(Parts (i)–(iii)) Clearly (i) implies (ii) and (iii). However, if (i) does not hold, then there is a theory such that . Apply Lemma 1 to conclude that neither nor holds.
□
Proof
() It suffices to show that . Suppose then that . Hence, there exists a such that . By Proposition 2 we can assume . Consider
where U is the set of atoms occurring in . Then, Y is the only equilibrium model of whereas . This can be seen as follows. The only models of are of the form with . Because no is an -model of (by assumption ), no is an -model of . Thus, Y is the only equilibrium model of . On the other hand, from assumption we can have two cases:
- (a)
- is not an -model of . Then, Y obviously cannot become an equilibrium model of , or
- (b)
- is an -model of but then there exists such that is an -model of . By definition of , is then also an -model of , and so Y cannot be an equilibrium model of .
Then, we can conclude that and, because Y is the only classical (total) model of , it follows that .
Now, using the fact that has a unique equilibrium model, there obviously exists a (non-tautological) such that and . Hence, . □
Note that this argument applies to disjunctive logic programs as well (using constraints).
Uniform Equivalence
For the sceptical and credulous cases, the situation with respect to uniform equivalence follows precisely the previous pattern.
Proposition 4.
The following conditions are equivalent:
- (i)
- ;
- (ii)
- ;
- (iii)
- ;
Proof.
□
For the prudent case, consider the empty theory and the theory containing the formula . These two theories are not uniformly equivalent. In fact, they are not even ordinarily equivalent because the former has as its unique stable model ∅ and the latter has two stable models and . Note that the intersection of all stable models is in both cases ∅, so they are ordinarily equivalent with respect to prudent queries. Furthermore, we get the same stable models if we add to these theories the contexts , , and . So, they are also uniformly equivalent for prudent consequence.
4. Relativised Equivalence
As usual, we consider theories , , etc. and now make explicit languages , , etc. As before, we view a language as a set of atoms. A theory is said to be in the language if all its atomic formulas belong to .
Definition 6.
Let and be theories.
- (i)
- and are strongly equivalent relative to , in symbols , iff for any (empty or non-empty)set Σ of formulas, and are equivalent, i.e., have the same equilibrium models.
- (ii)
- and are uniformly equivalent relative to , in symbols , iff for any (empty or non-empty )set X of literals, and are equivalent, i.e., have the same equilibrium models.
We can now apply these definitions to different relativised versions of strong and uniform equivalence.
Definition 7.
Let and be theories and . Then,
- we write if for any further theory Π in , ;
- we write if for any set X of atoms, .
Proposition 5.
For any theories and , iff ; similarly iff .
Proof.
The right to left directions are obvious. For the other direction, suppose for instance that and are not strongly equivalent relative to . Then, for some set of formulas , and have different sets of equilibrium models. We can apply Lemma 1 again to conclude that and can be separated by different queries, both in the sceptical and in the credulous sense, i.e., that and . The uniform case follows the same pattern.
□
5. Entailment Relations
In [19], various nonmonotonic entailment relations are defined in terms of (equilibrium) models. In particular:
Definition 8
(strong and uniform entailment). strongly entails , in symbols , (respective uniformly entails , in symbols ) if for any set Γ of formulas (respective atoms)
We can also consider entailment relations attuned to query answering.
Definition 9
(weak theory entailment). Let and be theories and . Then, we write if for any formula φ, if then, .
As in the case of Definition 2, we can compare theories for their deductive strength.
Definition 10
(strong and uniform theory entailment). Let and be theories and . Then,
- we write if for any further theory Π ;
- we write if for any set X of atoms, .
Proposition 6.
For any theories Π, :
- (1)
- (2)
Proof
(1). The implication from right to left holds by inspection. For the other direction, suppose that . Then, for some , . Let . Apply Lemma 1(ii) to conclude that there is a sentence that holds in each equilibrium model of and so . Inspection , so , and hence .
For (2), the proof is entirely analogous. □
The relation has been characterised in terms of -models.
Proposition 7
([19]). holds iff the following two conditions are satisfied:
- (i)
- classically entails .
- (ii)
- For any model of such that , .
Although the (strong) equivalence concepts are captured in the monotonic logic , the same is not true for strong entailment, because does not imply . However, it is clear that
By Propositions 1 and 2, we can see that if and only if and are strongly equivalent theories. In turn, by the well-known characterisation [2], this means that and are equivalent in . It follows that, whereas does not entail , it is easy to see that implies both and .
Although the strong equivalence concepts for credulous, sceptical, and prudent reasoning all agree, in the case of strong entailment, credulous and sceptical reasoning behave in a kind of dual form.
Proposition 8.
.
Proof.
From Proposition 6, we established that holds if and only if (1) is true. Clearly, if (1) holds then by inspection. Suppose then that does not hold. Then, there is an extension of such that there is an equilibrium model in that is not in . From the proof of Proposition 3, we can conclude that there is an extension of and non-tautological formula such that but . Furthermore, . □
6. Projective Concepts
6.1. Basic Definitions
Very often we are interested only in certain parts of answer sets or equilibrium models, and the output of solvers may suppress the unwanted parts. If our query is expressed in a sublanguage B of the theory, we need only consult the projection of equilibrium models onto that sublanguage, i.e., we deal with the B-reducts of the equilibrium models ( In the remainder of the article, we use upper-case Latin letters, A, B, etc., to denote (sub)languages, i.e., regarded as sets of atoms). This is justified by the next lemma. For notation, let M be a classical model for a language and B a sublanguage of . We denote by the B-reduct of M, i.e., , and where now truth and falsity in is defined only for formulas expressible in B. Likewise, for any set X of classical models, denotes the set of their B-reducts.
Lemma 2.
Let M be an equilibrium model (of some theory in ) and B a sublanguage of . Then, for any B-formula φ, .
Definition 11 (B-consequence).
For
- (i)
- We say that is a B-consequence of , in symbols , if for any B-formula φ, .
- (ii)
- We say that and are B-inseparable (for ω), in symbols , if and .
Strong versions of B consequence and inseparability are obtained in the obvious way.
Definition 12
(strong B-consequence). For :
- We write (for strong B-consequence) if for any Π and B-formula φ, .
- Similarly for strong B-inseparability: if for any Π and B-formula φ, and .
- Relativised versions are easily obtained. e.g., strong B-consequence, relative to A, in symbols , obtains when for any set Π of A formulas and B-formula φ, .
- Similarly, strong inseparability relative to A is denoted by .
Our previous notion of relativised strong equivalence has a straightforward projective version.
Definition 13.
Let and be theories. and are strongly equivalent relative to A projected onto B, in symbols , if for any (empty or non-empty ) set Σ of A formulas, .
Proposition 9.
Two theories, and , are strongly B-inseparable relative to A iff they are strongly equivalent relative to A, projected onto B.
Proof.
See Appendix A. □
Definition 14
(strong B-entailment). Let and be theories. We say that strongly entails relative to A, projected onto B, in symbols , if for any set Σ of A formulas, .
Strong B-entailment and (relativised) strong B-consequence coincide for .
Proposition 10.
For any theories , :
Proof.
See Appendix A. □
6.2. Forks and Projective B-entailment for Theories
We have seen that there is good agreement between equivalence and entailment concepts defined in terms of equilibrium models and their analogous counterparts couched in terms of consequence or query answering. As expected, in the case of (projective) strong entailment, the agreement is with the sceptical version of strong B-consequence. For the standard model-theoretic concepts, many characterisation results are known (see Section 8). In the case of projective entailment and equivalence, the main results are those of [3], which apply to disjunctive logic programs (see also the recent work [28]). For the remainder of the article, we consider projective concepts for programs and propositional theories and also make use of the concept of fork.
In [20], the language of logic programs was extended to include a new construct ‘’, called fork, whose intuitive meaning is that the stable models of correspond to the union of stable models from and in any context , that is . (Remark: denotes the collection of stable models of . Because a program (or theory) is in our case finite, we can also regard it as a conjunction of its formulas. This allows us to write expressions such as or with the obvious meaning). Using the construct of fork, [20] studied the property of projective strong equivalence (PSE) for forks: two forks satisfy PSE for a vocabulary V iff they yield the same stable models projected on V for any context over V. This property corresponds to the one defined in Definition 13 for the case . [20] also provides a semantic characterisation of PSE that allows one to prove that it is always possible to forget (under strong persistence) an auxiliary atom in a fork—something shown to be false in standard . Now, we recall some definitions from [19,20].
Definition 15.
Given , a T-support is a set of subsets of T, that is , satisfying iff .
To increase the readability of examples, we can write a support as a sequence of interpretations between square brackets. For instance, possible supports for are , or the empty support .
It is well-known that, given a propositional formula , the set:
is always a T-support denoted by . Moreover, in [3], it was shown that is a T-support iff there exists a propositional formula such that .
Example 1.
If , we say that a T-support is A-feasible iff there is no in satisfying . (Remark: If , for some and , suppose that is V-unfesasible. Then, there exists with such that . In this case, T would never be a stable model of if . Notice that and ).
Lemma 3
(Lemma 7 from [20]). Given and any T-support , there is a propositional formula such that and for any and .
Definition 16.
Given , we say that a T-support is A-respectful, if for any , with , it follows that iff .
Notice that, when , then, for any , is A-respectful.
Lemma 4
(Lemma 13 from [20]). Let be two sets of atoms and be a pair of T-supports. Then:
- (i)
- ,
- (ii)
- In addition, if is A-respectful, then
We can define an order relation ⪯ between T-supports by saying that, given two T-supports, and , iff either or It is clear that and are the bottom and top elements, respectively, in the class of all T-supports. Going back to Example 1, it is clear that , for any .
Given a T-support , we define its complementary support as:
We also consider the ideal of :
Note that the empty support is not included in the ideal, so .
If is any set of supports:
Definition 17.
A T-view is a set of T-supports that is ⪯-closed, i.e., .
A fork is defined using the grammar:
where is a propositional formula and is an atom. For the definition of T-denotation of a fork, we use a weaker version of the membership relation, , defined as follows. Given a T-view , we write iff or both and .
Definition 18
(T-denotation of a fork). Let be a propositional signature and a set of atoms. The T-denotation of a fork F, written , is a T-view, recursively defined as follows:
Given , the concept of -certificate of a program is used in [3] to characterise correspondence relations between disjunctive programs. Using denotations, we can say that a pair , where is a set of interpretations and , is an -certificate of a program iff there exists , such that:
- or and .
- is A-feasible
It is easy to prove that (minimal) -certificates of a program correspond to (maximal) elements of the view where and:
In [3], certificates were used to prove:
Lemma 5
(Lemma 1 from [3]). Given two disjunctive programs and and two sets , it holds that: iff, for each -certificate of , there exists an -certificate of with .
We can now extend this result to show that it holds for general programs and theories and not only for disjunctive programs:
Theorem 1.
Given two programs, and , and two sets, , we have that:
iff , for any .
Consequently, we also have:
Theorem 2.
Given two programs, and , and two sets, , it holds that:
iff , for each
6.3. Projective B-entailment for Forks
In order to extend Definition 14 and Theorem 1 to the case of forks, we need some extra definitions and results.
Definition 19
(Definition 7 from [20]). Given a fork F, we say that is a stable model of F () iff or, equivalently, .
Definition 20.
Let F and G be forks and two sets. We say that F strongly entails G relative to A projected onto B , in symbols , if for any fork L in , .
Definition 21.
Let F and G be forks and two sets. We say that F and G are strongly equivalent relative to A projected onto B , in symbols , if for any fork L in , .
In [20], it was shown that, in case , we have:
Theorem 3.
Given F and G two forks and , the following holds:
, iff, for any ,
We recall from [20] that when F is a fork and :
In order to extend Theorem 3, suppose that F is a fork, , and . We can define the A-view:
The following theorem generalizes Theorem 2 from [20] (which would be the case for ) because
Theorem 4.
Given F and G two forks and sets , the following holds:
iff , for any
We will need the following auxiliary lemmas in order to prove the above theorem.
Lemma 6
(Lemma 6 from [20]). Let be sets of atoms and let L be a fork such that . Then, any maximal in is A-respectful.
Lemma 7
(Lemma 18 from [20]). Let be sets of atoms such that and let F be a fork such that . Then, for any ⪯-maximal S-support , there exists such that .
Proof
(Proof of Theorem 4). See Appendix A. □
Corollary 1.
Given the two forks and sets of F and G and sets , the following relation holds:
iff , for any
7. An Example Case: Reasoning about Policies
To illustrate briefly the practical relevance of our intertheory relations, let us consider the case of rule-based policies. In particular, ASP is well suited to represent defaults, typicalities, and exceptions that may be involved in policy formulations. One policy area where logical approaches have been employed with success is in the domain of security and access control. This area has been active for some time, as far back as [29]. Later works include [30,31,32,33,34]. Bonatti [31] has surveyed the area and suggested several reasoning problems that can be studied in languages such as Datalog and answer set programming. We loosely follow his approach and extend it somewhat.
In the case of access control, let us suppose there is a logic program expressing the basic policy in the form of a set of rules. Let us say it might express conditions for accessing certain restricted Web pages in the University of South Wolverhampton. In addition, there are contexts that express additional facts that hold at some times; perhaps this particular Web area allows different types of access in different periods. Then, there are credentials that are also (atomic) facts. Let us say that, in general, only faculty members are allowed to access the restricted area, so a credential might be . Completing the picture, there are authorisations , usually statements saying whether a subject can/cannot perform the operation on the object—for instance, whether Pedro can access the Web area. It may be 2- or 3-valued, depending on the context.
Using a logic-based language such as ASP allows us to analyse in a straightforward manner different kinds of reasoning problems that may arise. As Bonatti observes, the most basic problem is one of entailment. Is an authorisation granted by and ? This is the case if , where ⊧ is a suitable nonmonotonic inference relation, such as the relation associated with stable model semantics.
The second problem is in fact an abductive, satisfaction problem. Roughly speaking, given an authorisation request, the problem is to deliver a set of conditions (credentials) that are sufficient to answer the authorisation positively, if such a set exists. Thus, given a set of digital credentials, the abduction problem is to find a subset of credentials for a given authorisation and context C, such that
A solution to the abduction problem can provide a suitable explanation. Suppose that Pedro has only recently joined the faculty but is not yet registered in the appropriate database. He is denied access with the explanation that a registering process is required first, i.e., he is informed of a missing credential that will grant him access.
Third, there is the conservative extension problem. Suppose that conditions have changed and now a new type of user may be admitted, e.g., some students can now access the area providing they belong to a specific committee. The program is enlarged to a new program, , specifying the new conditions. The context and the set of credentials is also enlarged. However, we want to be sure that all authorisations that were valid previously continue to hold in the new situation and also that no loopholes in the system have been created that would allow unintended authorisations that were previously barred. In other words, the new program conservatively extends the previous one.
Fourth, there is a related problem of relative strength. We can say that in a given context , a policy is at least as strong as if every authorisation request accepted by is also accepted by . So, if rejects authorisation A, then so does . For simplicity, let us suppress contexts for the moment and consider a policy framework to be a triple , where is a theory, possibly in the form of a set of program rules in language , is a set of credentials, comprising certain atomic sentences of , and are authorisations. Let , and be policy frameworks. Then, we can say that is at least as strong as if for any , and :
Fifth, there is the problem of policy equivalence which may come in different degrees. Two policies that admit exactly the same authorisations and rejections in a given context can be said to be equivalent in that context. A stronger property is that they are equivalent in all contexts. Furthermore, a still stronger property is that they remain equivalent when they are extended by adding new policy rules.
Inter-Policy Relations
ASP provides a suitable framework for studying these kinds of reasoning problems. Aside from being able to deal with issues of entailment, abduction, consistency, and completeness, the logical approach is well adapted to handle the inter-policy relations described above. Weak and strong forms of entailment between programs are relevant for capturing the relation express by (4). For example, a sufficient condition for the relation to obtain is that for any , weakly entails in the sense of Definition 9. This also means that the relation holds if strongly entails . However, to characterise this notion precisely we can use the notion of relativised uniform entailment and consider projections onto the authorisations .
We can say that two access policies covering the same credentials and authorisations, , and , are equivalent if they generate the same authorisations, and strongly equivalent if they are equivalent when expanded by any new set of policy rules . If and are relativised uniform equivalent with respect to , then and are strongly equivalent. To consider the converse relation, because we only require policies to deliver the same authorisations, they only need to be equivalent when projected onto . So, in this case we are interested in uniform or relativised uniform equivalence with projection.
8. Conclusions
We defined a selection of correspondence relations between equilibrium theories and answer set programs. They are based on the inferential capabilities of theories, i.e., how they answer queries and derive formulas, rather than on their sets of stable models. This is important for many applications of ASP. In particular, by including relativised and projective correspondences, we cover many cases that arise in practical applications of ASP. Not only is theory equivalence of interest but also entailment (and consequence) relations between theories.
We have shown that these new relations, including both equivalence and consequence relations, are actually for the most part equivalent to the standard types of correspondence defined in terms of stable and equilibrium models that have been studied in the past. Finite theories and programs that are not equivalent or not in an entailment relation can be separated by queries of the following kind: conjunctions of literals in the case of credulous inference and disjunctions of literals in the case of sceptical inference.
What this implies is that the large body of known results that characterise intertheory relations in ASP, as well as the accompanying techniques for deciding whether these relations obtain in practice, are directly applicable to the types of relations defined here. These results include the original characterisation of strong equivalence for programs and theories in the logic [2] and the studies of uniform equivalence in terms of models [4,27] and in terms of countermodels in [26]. Relativised equivalence was treated in [5] and more general correspondences including projection in [3] and [28]. Woltran’s work in [5] was extended in [35] to cover general propositional theories. For an extensive bibliography of further work on program correspondences, see especially [28].
In Section 6, we extended previous work on projective relations [3,28] in two respects. First, building on [20], we applied the notions of T-support and T-views to give alternative characterisations of projective entailment and equivalence that are now extended to general propositional theories in equilibrium logic. Secondly, we extended previous work on forks to yield a more general characterisation of projective entailment between forks.
There are many open challenges left for the future. For example, it remains to be investigated how these new intertheory relations generalise to the case of first-order theories and programs with variables. Already strong equivalence for first-order theories was characterised in a quantified version of in [36] and uniform equivalence was treated in [26]. More recently, [37] studied relativised and projective versions of equivalence for non-ground programs.
Another avenue for study would be to extend the present framework to accommodate infinite languages and theories. In the case of credulous consequence, for instance, it seems that finite queries will separate non-equivalent theories in many cases. Consider the formula in the proof of Lemma 1(i). This formula would become an infinite conjunction in the case of infinite theories, but for each , there is some from that is false in . So, if the set of equilibrium models of is finite, we can build a finite conjunction of literals false in each equilibrium model of but true in an equilibrium model M of . So, there is a finite query that can separate the two theories.
Author Contributions
J.F., D.P., C.V. and S.W. have contributed substantially and in equal measure to the work reported here. This applies in particular to the conceptualisation, methodology, formal analysis, and writing. The final editing was supervised by D.P. All authors have read and agreed to the published version of the manuscript.
Funding
This research has received partial support from the European Cooperation in Science & Technology (COST) Action CA17124. The third author acknowledges the funding of project PID 2020-116201GB-I00 (Ministerio de Ciencia e Innovación, Spain) and also the financial support supplied by the Consellería de Educación, Universidade e Formación Profesional (accreditations GPC ED431B 2022/23 and 2019–2022 ED431G-2019/01). The last author has been supported by the Austrian Science Fund (FWF) grant Y698.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Acknowledgments
We are grateful for the advice and suggestions made by the anonymous referees of this article.
Conflicts of Interest
The authors declare no conflict of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| ASP | Answer Set Programming |
| the logic of here-and-there | |
| PSE | projective strong equivalence |
Appendix A. Proofs of Results
Proof of Proposition 9
(Right to left). Clearly, if, for any set of A formulas , , then these theories answer all B-queries in the same way and so are strongly inseparable.
(Left to right). Suppose that for some , . Then, we can apply Lemma 1(i) to some , say, in and build a B-sentence that is true in but false in all models in . Note that the formulas are built as in Lemma 1(i) where now . Likewise for Lemma 1(ii). So, the theories are not strongly inseparable relative to A, for . □
Proof of Proposition 10.
(Right to left). Suppose that does not hold and choose a model . Apply Lemma 1(ii), setting , to obtain a B-formula satisfied by all models in but not in M. It follows that
□
The following lemma will be useful later.
Lemma A1.
Given a program Π and sets , such that , for any the following assertions are equivalent:
- 1.
- 2.
- is A-feasible and
Proof.
Take and suppose that for some such that Because
we have that which implies that . Moreover, if satisfies and , then and . Consequently, .
Suppose that for some . Then, and . Consequently, and because is A-feasible. □
Proof of Theorem 1.
(Right to left) Suppose that for some and . By Lemma A1, we know that is A-feasible and
Take , then .
It follows that there is some such that (which implies that and ) being A-feasible and (or ). Notice that because and . Moreover:
This implies that and .
(Left to right)
Take and , for some such that is A-feasible. Let us denote by
Take
Notice that and implies . Then, is a total-closed set of interpretations (A set of interpretations is total-closed if for any , ). Denote by the program with signature in A such that models of correspond to interpretations in .
First of all, we have that because , so or . Moreover, take such that . Then, so which implies that and because is A-feasible.
Now , so there exists such that . Because , we know that so . We are going to show that or equivalently . On the contrary, suppose that with . Then, so . Because: , we can deduce that because . Finally, . □
Proof of Theorem 4.
(Left to right)
Take and , where is A-feasible and .
We will denote by
Let us consider the following -support :
By Lemma 3, we know that there exists a formula such that and , for any with .
Let us prove that by showing that:
Suppose that . Then:
Consequently , so there exists verifying that . Notice that , so
for some -support . This implies that
Then, and so . Now we will show that is A-feasible. Suppose that satisfies . Then, because and . Then, .
Finally, suppose that , so there exists such that and . This would imply that , so which is a contradiction.
(Right to left)
Suppose that for some fork . Then, with . Take . Because:
for some in and , which we can suppose maximal in and then A-respectful by Lemma 6, we can say that is A-feasible because if satisfies ; then, and . This implies that , so there exists and being A-feasible such that or . We can apply Lemma 7 to deduce that there exists such that .
In order to finish the proof, we only have to show that or, equivalently that:
Take . Then:
Notice that we used Lemma 6. □
References
- Pearce, D. Equilibrium logic. Ann. Math. Artif. Intell. 2006, 47, 3–41. [Google Scholar] [CrossRef]
- Lifschitz, V.; Pearce, D.; Valverde, A. Strongly equivalent logic programs. ACM Trans. Comput. Log. 2001, 2, 526–541. [Google Scholar] [CrossRef]
- Eiter, T.; Tompits, H.; Woltran, S. On solution correspondences in answer-set programming. In Proceedings of the Nineteenth International Joint Conference on Artificial Intelligence (IJCAI’05), Edinburgh, UK, 30 July–5 August 2005; Kaelbling, L.P., Saffiotti, A., Eds.; Professional Book Center: London, UK, 2005; pp. 97–102. [Google Scholar]
- Eiter, T.; Fink, M. Uniform equivalence of logic programs under the stable model semantics. In Logic Programming, Proceedings of the 19th International Conference, ICLP 2003, Mumbai, India, 9–13, December 2003; Palamidessi, C., Ed.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2003; Volume 2916, pp. 224–238. [Google Scholar]
- Woltran, S. Characterizations for relativized notions of equivalence in answer set programming. In Logics in Artificial Intelligence, Proceedings of the 9th European Conference, JELIA 2004, Lisbon, Portugal, 27–30 September 2004; Alferes, J.J., Leite, J.A., Eds.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2004; Volume 3229, pp. 161–173. [Google Scholar]
- Maher, M. Equivalences of Logic Programs. In Foundations of Deductive Databases and Logic Programming; Minker, J., Ed.; Morgan Kaufmann: Burlington, MA, UDA, 1988; pp. 627–658. [Google Scholar]
- Sagiv, Y. Optimising DATALOG Programs. In Foundations of Deductive Databases and Logic Programming; Minker, J., Ed.; Morgan Kaufmann: Burlington, MA, UDA, 1988; pp. 659–698. [Google Scholar]
- Truszczynski, M. Strong and uniform equivalence of nonmonotonic theories—An algebraic approach. Ann. Math. Artif. Intell. 2006, 48, 245–265. [Google Scholar] [CrossRef]
- Turner, H. Strong equivalence for causal theories. In Proceedings of the 7th International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR’04), Fort Lauderdale, FL, USA, 6–8 January 2004; Lifschitz, V., Niemelä, I., Eds.; Lecture Notes in Computer Science. Springer: Berlin/Heidelberg, Germany, 2004; Volume 2923, pp. 289–301. [Google Scholar]
- Baumann, R. Normal and strong expansion equivalence for argumentation frameworks. Artif. Intell. 2012, 193, 18–44. [Google Scholar] [CrossRef]
- Oikarinen, E.; Woltran, S. Characterizing strong equivalence for argumentation frameworks. Artif. Intell. 2011, 175, 1985–2009. [Google Scholar] [CrossRef]
- Bernreiter, M.; Maly, J.; Woltran, S. Choice logics and their computational properties. In Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, Virtual, 19–27 August 2021; pp. 1794–1800. [Google Scholar]
- Faber, W.; Konczak, K. Strong equivalence for logic programs with preferences. In Proceedings of the Nineteenth International Joint Conference on Artificial Intelligence, Edinburgh, UK, 30 July–5 August 2005; Professional Book Center: London, UK, 2005; pp. 430–435. [Google Scholar]
- Faber, W.; Truszczynski, M.; Woltran, S. Abstract preference frameworks—A unifying perspective on separability and strong equivalence. In Proceedings of the Twenty-Seventh AAAI Conference on Artificial Intelligence, Bellevue, WA, USA, 14–18 July 2013; des Jardins, M., Littman, M.L., Eds.; AAAI Press: Palo Alto, CA, USA, 2013; pp. 297–303. [Google Scholar]
- Eiter, T.; Fink, M.; Tompits, H.; Woltran, S. Simplifying logic programs under uniform and strong equivalence. In Proceedings of the LPNMR 2004, Fort Lauderdale, FL, USA, 6–8 January 2004; Lifschitz, V., Niemelä, I., Eds.; Springer: Berlin/Heidelberg, Germany, 2004; Volume 2923, pp. 87–99. [Google Scholar]
- Gonçalves, R.; Knorr, M.; Leite, J. You can’t always forget what you want: On the limits of forgetting in answer set programming. In Proceedings of the ECAI 2016, The Hague, The Netherlands, 29 August–2 September 2016; Fox, M.S., Kaminka, G.A., Eds.; IOS Press: Amsterdam, The Netherlands, 2016. [Google Scholar]
- Shmueli, O. Decidability and Expressiveness Aspects of Logic Queries. In Proceedings of the 6th ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems (PODS’87), San Diego, CA, USA, 23–25 March 1987; ACM Press: New York, NY, USA, 1987; pp. 237–249. [Google Scholar]
- Botoeva, E.; Lutz, C.; Ryzhikov, V.; Wolter, F.; Zakharyaschev, M. Query inseparability for ALC ontologies. Artif. Intell. 2019, 272, 1–51. [Google Scholar] [CrossRef]
- Aguado, F.; Cabalar, P.; Pearce, D.; Pérez, G.; Vidal, C. A denotational semantics for equilibrium logic. Theory Pract. Log. Program. 2015, 15, 620–634. [Google Scholar] [CrossRef][Green Version]
- Aguado, F.; Cabalar, P.; Fandinno, J.; Pearce, D.; Pérez, G.; Vidal, C. Forgetting auxiliary atoms in forks. Artif. Intell. 2019, 275, 575–601. [Google Scholar] [CrossRef]
- Heyting, A. Die formalen Regeln der intuitionistischen Logik. Sitzungsberichte der Preussischen Akademie der Wissenschaften zu Berlin 1930, 16, 42–56. [Google Scholar]
- Cabalar, P.; Pearce, D.; Valverde, A. Stable reasoning. J. Appl. Non Class. Logics 2017, 27, 238–254. [Google Scholar] [CrossRef]
- van Dalen, D. Logic and Structure; Springer: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
- Pearce, D. A new logical characterisation of stable models and answer sets. In Non-Monotonic Extensions of Logic Programming, Proceedings of the NMELP ’96, Bad Honnef, Germany, 5–6 September 1996; Dix, J., Pereira, L.M., Przymusinski, T.C., Eds.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 1996; Volume 1216, pp. 57–70. [Google Scholar]
- Gelfond, M.; Lifschitz, V. The stable models semantics for logic programming. In Proceedings of the 5th International Conference on Logic Programming, Seattle, WA, USA, 15–19 August 1988; Kowalski, R., Bowen, A., Eds.; MIT Press: Cambridge, MA, USA, 1988; pp. 1070–1108. [Google Scholar]
- Fink, M. Equivalences in answer-set programming by countermodels in the logic of here-and-there. In Logic Programming, Proceedings of the 24th International Conference, ICLP 2008, Udine, Italy, 9–13 December 2008; Banda, M.G.d., Pontelli, E., Eds.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2008; Volume 5366, pp. 99–113. [Google Scholar]
- Pearce, D.; Valverde, A. Uniform equivalence for equilibrium logic and logic programs. In Logic Programming and Nonmonotonic Reasoning, Proceedings of the 7th International Conference, LPNMR 2004, Fort Lauderdale, FL, USA, 6–8 January 2004; Lifschitz, V., Niemelä, I., Eds.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2004; Volume 2923, pp. 194–206. [Google Scholar]
- Oetsch, J.; Seidl, M.; Tompits, H.; Woltran, S. Beyond uniform equivalence between answer-set programs. ACM Trans. Comput. Log. 2021, 22, 2:1–2:46. [Google Scholar] [CrossRef]
- Woo, T.Y.C.; Lam, S.S. Authorization in distributed systems: A new approach. J. Comput. Secur. 1993, 2, 107–136. [Google Scholar] [CrossRef]
- Bonatti, P.A.; Samarati, P. Logics for authorization and security. In Logics for Emerging Applications of Databases; Chomicki, J., Meyden, R.V., Saake, G., Eds.; Springer: Berlin/Heidelberg, Germany, 2003; pp. 277–323. [Google Scholar]
- Bonatti, P.A. Datalog for security, privacy and trust. In Datalog Reloaded; de Moor, O., Gottlob, G., Furche, T., Sellers, A., Eds.; Springer: Berlin/Heidelberg, Germany, 2011; pp. 21–36. [Google Scholar]
- Bonatti, P.A. Logic-based authorization languages. In Encyclopedia of Cryptography and Security, 2nd ed.; Henk, C., van Tilborg, A., Jajodia, S., Eds.; Springer: Berlin/Heidelberg, Germany, 2011; pp. 734–736. [Google Scholar]
- Craven, R.; Lobo, J.; Ma, J.; Russo, A.; Lupu, E.C.; Bandara, A.K. Expressive policy analysis with enhanced system dynamicity. In Proceedings of the 2009 ACM Symposium on Information, Computer and Communications Security, ASIACCS 2009, Sydney, Australia, 10–12 March 2009; Li, W., Susilo, W., Tupakula, U.K., Safavi-Naini, R., Varadharajan, V., Eds.; ACM: New York, NY, USA, 2009; pp. 239–250. [Google Scholar]
- Gelfond, M.; Lobo, J. Authorization and obligation policies in dynamic systems. In Logic Programming, Proceedings of the 24th International Conference, ICLP 2008, Udine, Italy, 9–13 December2008, Proceedings; Banda, M.G.d., Pontelli, E., Eds.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2008; Volume 5366, pp. 22–36. [Google Scholar]
- Pearce, D.; Tompits, H.; Woltran, S. Relativised equivalence in equilibrium logic and its applications to prediction and explanation: Preliminary report. In Proceedings of the LPNMR’07 Workshop on Correspondence and Equivalence for Nonmonotonic Theories (CENT2007), Tempe, AZ, USA, 14 May 2007; Volume 265. [Google Scholar]
- Lifschitz, V.; Pearce, D.; Valverde, A. A characterization of strong equivalence for logic programs with variables. In Logic Programming and Nonmonotonic Reasoning, Proceedings of the 9th International Conference, LPNMR 2007, Tempe, AZ, USA, 15–17 May 2007; Baral, C., Brewka, G., Schlipf, J.S., Eds.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2007; Volume 4483, pp. 188–200. [Google Scholar]
- Geibinger, T.; Tompits, H. Characterising relativised strong equivalence with projection for non-ground answer-set programs. In Logics in Artificial Intelligence, Proceedings of the 16th European Conference, JELIA 2019, Rende, Italy, 7–11 May 2019; Calimeri, F., Leone, N., Manna, M., Eds.; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2019; Volume 11468, pp. 542–558. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).