March 2003 \pagerangeForgetting in Answer Set Programming – A Survey–7.62
Forgetting in Answer Set Programming – A Survey
Abstract
Forgetting – or variable elimination – is an operation that allows the removal, from a knowledge base, of middle variables no longer deemed relevant. In recent years, many different approaches for forgetting in Answer Set Programming have been proposed, in the form of specific operators, or classes of such operators, commonly following different principles and obeying different properties. Each such approach was developed to address some particular view on forgetting, aimed at obeying a specific set of properties deemed desirable in such view, but a comprehensive and uniform overview of all the existing operators and properties is missing. In this paper, we thoroughly examine existing properties and (classes of) operators for forgetting in Answer Set Programming, drawing a complete picture of the landscape of these classes of forgetting operators, which includes many novel results on relations between properties and operators, including considerations on concrete operators to compute results of forgetting and computational complexity. Our goal is to provide guidance to help users in choosing the operator most adequate for their application requirements.
keywords
Forgetting, Answer Set Programming, Logic Programs1 Introduction
Forgetting is part of the human nature, often with negative connotations, and investigation for its causes started in Cognitive Psychology in the late 19th century [20]. Studies show that forgetting can be caused, among others, by the interference in between new and previously learned information, by decay over time, or because certain links, called cues, used to retrieve a specific memory are not (any longer) available [75]. In fact, recent experiments in Neuroscience reveal that part of this forgetting appears to be done actively, in the sense that the human brain seems to be able to remove information no longer deemed necessary [16]. This enables humans to distinguish important memories among the huge amount of memories they acquire, while abstracting irrelevant details, which allows for making better decisions under varying conditions [69].
In organizations, intentional forgetting plays a similar role [47]. As increasing amounts of information may become difficult to process, forgetting allows one to simplify the interpretation of the acquired knowledge which contributes to future success of the organization. The methods of forgetting employed build on ideas of forgetting in Cognitive Psychology, for example, rather than unlearning organizational routines, the retrieval cues are forgotten [47].
In the same vein, huge problems appear in Computer Science, where the vastly increasing amounts of data challenge the limits of space in terms of physical storage and processing speed, in particular in situations where the exponential worst-case complexity becomes prohibitive. At the same time, forgetting has become increasingly important to properly deal with legal and privacy issues, such as, for example, the elimination of illegally acquired information to implement a court order, or enforcing the right to be forgotten, i.e., the right of the eliminination of private data on a person’s request, following the EU General Data Protection Regulation [28].
Thus, forgetting has received increasing attention in Computer Science aiming at the elimination of irrelevant information for improved decision processes and tools [6]. In Artificial Intelligence and Knowledge Representation and Reasoning in particular, the ideas of forgetting can be traced back to Boole’s variable marginalization \shortciteBoole54, also called the eliminination of middle terms. These notions raised interest when Lin and Reiter \shortciteLR94 considered forgetting about a fact or a relation in a first-order logic for Cognitive Robotics. This subsequently triggered research into forgetting and closely related notion such as uniform interpolation [83], variable elimination [53] or ignorance [5], being extended for example to Description Logics [35, 88, 64], Planning [27], and Modal Logic [95]. Commonly two kinds of forgetting can be found in the literature [25]. One of them eliminates some formula from a given knowledge base, in a way that closely resembles the operation of contraction in belief revision. The other, more common one, views forgetting as an operation that omits part of the vocabulary of the knowledge base, including possible adjustments on formulas to accommodate some notion of preservation of information (for the remaining vocabulary). This is the kind of forgetting we consider here and particularly useful when we want to eliminate elements representing auxiliary concepts, with the aim to simplify a knowledge base or improve its declarativity, or related to data protection issues. The importance of forgetting in Knowledge Representation and Reasoning is also witnessed by applications in cognitive robotics [62, 63, 68], for resolving conflicts [53, 93, 26, 55, 19], and ontology abstraction and comparison [88, 52, 49, 50].
While forgetting has been extensively studied in the context of classical logic [9, 53, 56, 57, 65, 66, 89, 30], it only recently gathered wider attention in Answer Set Programming (cf. the overview by Eiter and Kern-Isberner \shortciteEiterK19). Answer Set Programming (ASP) [33, 34] provides a declarative rule-based language for knowledge representation and reasoning accompanied with efficient implementations such as CLASP [32], DLV [58, 4], and Smodels [76]. Its non-monotonic rule-based nature required the development of specific methods and techniques – similar to what happened with other belief change operations such as revision and update [3, 22, 70, 77, 78, 18, 79]. The result is a significant number of different approaches on forgetting [93, 26, 91, 86, 85, 48, 87, 19, 41, 43, 37, 8, 7, 36], some presenting single operators, others semantic characterizations of classes of operators, usually with different sets of properties deemed desirable, some adapted from the literature on classical forgetting [95, 86, 87], others introduced for the case of ASP [26, 91, 86, 85, 48, 19, 43, 37], and often defined for different classes of answer set programs (details on the individual motivations for introducing these approaches and their distinct characteristics can be found in Section 5).
The result is a complex landscape filled with classes of operators and properties, with very little effort put into drawing a map that could help us to better understand the relationships between properties and operators. Whereas, in principle, having an operator that obeys all of the properties would be desirable, it turns out that any such operator cannot be defined for any class that includes the standard class of normal logic programs [46]. In fact, one of the properties arguably best captures the essence of forgetting, however, there cannot exist an operator that always satisfies it [41, 38]. This strengthens the idea that there cannot be a one-size-fits-all forgetting operator for ASP, but rather a variety of approaches, each obeying a specific set of properties. The choice of operator will then depend on which properties are deemed more important for the specific application in hand, for which it is important to understand: a) the relationships between different properties, b) which properties are obeyed by which (classes of) operators, and even c) whether some sets of properties make more sense than others. To this end, we present a systematic, comprehensive and thorough survey of forgetting in ASP, including many novel results and insights that help answering the raised questions and provide guidelines to users which operators are most suited in which applications.
After a brief section with preliminaries and a section where the common notion of forgetting in ASP is defined, the paper is divided into three main sections. The first one contains a comprehensive account of the properties found in the literature, together with an investigation into the relationships between them, including several novel results. The subsequent section is devoted to describing the operators defined in the literature, and establishing some results on their relationships, including an equivalence between two of these operators, as well as considerations on proposed concrete operators, and the computational complexity of problems related to forgetting. Then, we devote our final major section to present a comprehensive account of which properties are satisfied by which operators, some of the results to be found scattered in the literature, but more than half being novel. This section also provides a detailed discussion of the suitability of these classes with respect to their characteristics, and establishes precisely the relationship to uniform interpolation. Finally, the suitability of the classes of operators w.r.t. several applications considered in the context of forgetting is discussed.
This paper is a considerable extension of a previous conference publication [40]. The material has been extended to incorporate novel approaches in the literature and revised to accommodate these new results and provide a more complete picture of the existing properties and classes of forgetting operators, and their relations. The new detailed material on concrete forgetting operators, computational complexity, the relation to uniform interpolation, and suitability of classes of operators for certain applications help shed further light on these relations, and provide more guidance for the reader. This is complemented with an appendix, available as supplementary material to this paper, that contains all the proofs of the novel results, as well as those in the previous publication, and pointers for all those results spread out over the literature.
2 Answer Set Programming
In this section, we recall the necessary notions and notation on logic programs under the answer set semantics.
We assume a propositional signature , i.e., a finite set of (propositional) atoms, also termed propositional variables synonymously. An (extended) logic program over is a finite set of (extended) rules of the form
| (1) |
where all , and are atoms of . Such rules are also commonly written in a more succinct way as
| (2) |
where , , , and , and we use both forms interchangeably. For each rule , we distinguish the head, , and its body, , where and represent and , respectively. We write the set of atoms appearing in as and the class of (extended) logic programs as . Such extended logic programs are actually equivalent to an even more expressive syntax [60], but the more concise syntax used here suffices. Also note that double negation is commonly required in the context of forgetting in ASP and commonly supported by answer set solvers such as clingo [31].
The class of extended programs includes a number of special kinds of rules : if , then we call disjunctive; if, in addition, , then is normal; if on top of that , then we call Horn; if moreover , then we call a fact. We also admit constraints, which are (extended) rules where . The classes of disjunctive, normal, and Horn programs, , , and , are defined as a finite set of disjunctive, normal, and Horn rules, respectively. We have .
We now define the answer sets [34] of a program, i.e., its models, and we recall this notion based on HT-models as defined in the context of the logic of here-and-there [44], the monotonic logic underpinning ASP [67]. We start with the notion of reduct [34] of a program with respect to a set of atoms:
An HT-interpretation is a pair s.t. . Note that we follow a common convention and usually abbreviate sets in HT-interpretations such as with the sequence of its elements, . Given a program , an HT-interpretation is an HT-model of if and , where is the standard consequence relation for classical logic and where programs are interpreted as conjunctions of classical implications
corresponding to its rules of the form (1) where , , and denote classical negation, conjunction and disjunction, respectively. We occasionally admit for the sake of readability that the HT-models of a program are restricted to even if . The set of all HT-models of is written . Given two programs and , if , then entails in HT, written . Also, and are HT-equivalent, written , if .
A set of atoms is an answer set of if , and there is no such that . We denote by the set of all answer sets of . For and its subclasses, all are pairwise incomparable. A program is consistent if is not empty.
Example 1
Consider the following program :
We can show that is an HT-model of because and where is as follows:
It is then easy to see that is not an answer set of (given that is an HT-model). Similarly, is not an answer set of because . In fact, we can verify that is the only answer set of , and that is therefore consistent.
Different notions of equivalence between programs have been established [24], essentially based on comparing their answer sets in different ways. Namely, we say that two programs are equivalent, written , if , i.e., their answer sets coincide. Uniform equivalence strengthens this condition by imposing that the equality of answer sets should hold even if a set of facts is added to both programs. Formally, two programs are uniformly equivalent, written , if for every set of facts. Strong equivalence further strengthens the condition by imposing equality of answer sets under the addition of any set of rules. Formally, two programs are strongly equivalent if for every . It is well-known that two programs are strongly equivalent exactly when [59], and we therefore use to denote both equivalences. Relativized equivalence relaxes the condition of strong equivalence by allowing to vary the language of the additional programs. Formally, two programs are relativized equivalent w.r.t. , written , if for every s.t. . Thus, strong equivalence and equivalence can be considered special cases of relativized equivalence, where the considered set is empty and identical to , respectively.
Example 2
Consider . Then and from Ex. 1 are equivalent, but neither strongly nor uniformly equivalent, e.g., because adding to both programs yields different answer sets, namely and , respectively. Also, neither is an HT-consequence of the other, since , but not in , and , but not in .
On the other hand, and , are well-known to be uniformly equivalent [21], but not strongly equivalent, e.g., for . We have that , but not , because of, e.g., .
Occasionally, we want to omit certain elements of the signature from sets of interpretations and HT-models. Given a set of atoms , the -exclusion of a set of answer sets (resp. a set of HT-interpretations) , written , is (resp. ). Also, given two sets of atoms , we write whenever . For -interpretations and , denotes that and . Then, for a set of -interpretations, denotes the set and .
3 Forgetting
In this section, we formally introduce the notion of forgetting in answer set programming. More precisely, we define operators of forgetting and classes of these in a general way that aligns with all the different approaches presented in the literature. We note that our account is on forgetting propositional atoms, just as all the literature on forgetting in answer set programming. This also allows us to capture forgetting atoms from ground programs obtained from programs built over predicate symbols, constants, and variables, simply by considering a one-to-one mapping of such ground atoms to a propositional alphabet. To keep the exposition simple, we here consider forgetting in the propositional setting.
The principal idea of forgetting in ASP is to remove certain atoms from a given program, while preserving its semantics for the remaining atoms.
Example 3
Consider program from Ex. 1:
If we want to forget about some atom, then we expect all rules that do not mention this atom to persist, while rules that mention it to no longer occur. For example, when forgetting about from , the first two rules should be contained in a result of forgetting, while the latter two should not. At the same time, implicit dependencies, such as depending on via , should be preserved. Hence, we would expect the following result:
In addition, if the atom to be forgotten does not appear at the same time in some rule body and some rule head, usually no dependencies need to be preserved. Alternatively, consider forgetting about from . Then, since only appears negated in the body of the rule with head , is false. Thus, becomes unconditionally true when forgetting, and the expected result would be:
Of course, with a fact for present, the body of the first rule can never be true and, alternatively, we may consider the following program as result of forgetting:
It can be verified that both programs are in fact strongly equivalent, i.e., both equally preserve the semantics for the remaining atoms.
Thus, forgetting can be viewed as returning a set of programs, which are equivalent in some way, e.g., according to one of the notions presented in the previous section, that only mention the remaining atoms and preserve the semantics of the given program over these remaining atoms. In the literature, concrete operators have been defined that, similar to a function, provide one unique such representative for each program and set of atoms to be forgotten. We formalize this central idea with the notion of a forgetting operator.
Definition 1
Given a class of logic programs over , a forgetting operator (over ) is defined as a function where, for each and , , the result of forgetting about from ,
- •
is a program over ; and
- •
preserves the semantic relations between atoms in from .
We denote the domain of by . A forgetting operator is called closed for if, for every and , we have .
Our definition establishes that forgetting can be understood as a reduction of the language preserving the semantic relations for the remaining atoms in . The latter is in line with the argument in Example 3 and requires that these semantic relations be established based on some semantic notion such as answer sets or one of the established equivalence notions, though, for the sake of generality, no concrete notion is fixed. This condition allows us to exclude nonsensical functions, such as, for example simply always deleting the entire program or replacing it by arbitrary rules over the remaining atoms, but we do not specify precisely how these semantic relations are established. In the literature, more precise notions for such semantic relations have been defined. For example, Delgrande \shortciteDelgrande17 defined for arbitrary logics that the result of forgetting corresponds to all the consequences of the given formulas over the remaining language. As we will see in Sect. 5, this aligns with some of the approaches in the literature of forgetting in ASP, but many others rather rely on for example preserving some notion of models (answer sets or HT-models) in some way, which in fact often turns out to be closely connected to the properties of forgetting in ASP we present in Sect. 4. For this reason, we abstain here from specifying how these semantic relations are determined specifically and refer to Sect. 5 for the details for each of the existing approaches.
We point out that the notion of closed operators allows us to indicate whether an operator, when applied to a (sub-)class of programs for which it is defined, does return a program in that same class. This is important, since based on this we are able to answer the question whether such operator can be iterated on such (sub-)class. Naturally, by Def. 1, any forgetting operator is closed for the most general class for which it is defined.
It is worth noting that some notions of forgetting do not explicitly require that atoms to be forgotten be absent from the result of forgetting, but instead that they be irrelevant, i.e., the result of forgetting is strongly equivalent to a program that does not mention the atoms to be forgotten. In our view, this is not aligned with the conceptual idea of forgetting itself. However, since such (irrelevant) occurrences of atoms in a result of forgetting are commonly assumed to be not occurring in the result, the required strong equivalence naturally holds. Hence, requiring that forgetting operators yield programs without the atoms to be forgotten does not prevent coverage of these particular approaches.
Now, as Ex. 3 indicates, preserving the semantics for the remaining atoms is not necessarily tied to one unique program. In fact, in the literature, usually, a representative up to some notion of equivalence between programs is considered, which is also why, in this case, we often refer to a result of forgetting (in indefinite terms) as opposed to the result. In this sense, many notions of forgetting for logic programs are defined semantically, i.e., they introduce a class of operators that satisfy a certain semantic characterization. To capture this, we introduce the notion of a class of forgetting operators.
Definition 2
A class of forgetting operators (over ) is a set of forgetting operators , with , that satisfy the semantic characterization of that class.
In this sense, the notion of a class of operators is used as an easy way of referring to all concrete operators that satisfy its semantic characterization, which is also useful in the cases in the literature where only the semantic characterization is presented and no concrete operator is defined. To remain as general and uniform as possible, in this paper, we focus on classes of operators. Whenever a notion of forgetting in the literature is defined through a concrete forgetting operator only, we consider the class containing that single operator.
The subset inclusion for the domain of operators in the previous definition is justified by the fact that there are classes of operators in the literature that include concrete operators only defined for a subclass of the programs considered by the class of operators.
Finally, with respect to uniform interpolation, we note that it is indeed closely connected to the concept of forgetting [29]. However, it does not exactly correspond to the notion of forgetting in ASP in the broad sense as considered here. We will discuss this in more detail in Sect. 6.4 and establish a precise relationship after we have properly presented properties of forgetting, classes of forgetting operators and their relations.
4 Properties of Forgetting
In the literature of forgetting in answer set programming, commonly one central focus has been the investigation of guiding principles that would provide desirable characteristics of classes of operators of forgetting, often called properties of forgetting. In this section, we recall these properties found in the literature and investigate existing relations between them.
In the course of this presentation, we opt for following a historical order without any considerations on their importance or preference among each other. In terms of technical notation, unless otherwise stated, represents a class of forgetting operators, the class of programs over of a given , and whenever we write that a single operator obeys some property, we mean that the singleton class composed of that operator, , obeys such property.
The first three properties, named strengthened Consequence, weak Equivalence, and Strong Equivalence, were proposed by Eiter and Wang \shortciteEiterW08, though not formally introduced as such. The first two were in fact guiding principles for defining their notion of forgetting, and formalized later [40], while the third was frequently considered in the literature in terms of formal results, but only formalized as a property by Wang et al. \shortciteWangWZ13.
Strengthened Consequence requires that the answer sets of a result of forgetting be answer sets of the original program, ignoring the atoms to be forgotten.
- (sC)
satisfies strengthened Consequence if, for each , and , we have .
In other words, forgetting does not admit the introduction of new answer sets, it may only remove some in the course of forgetting.
The other two properties focus on the preservation of some notion of equivalence during forgetting, i.e., if two programs are equivalent (w.r.t. some notion of equivalence of programs), then the respective results are as well.
- (wE)
satisfies weak Equivalence if, for each , and : if , then .
- (SE)
satisfies Strong Equivalence if, for each , and : if , then .
Weak Equivalence and Strong Equivalence require that forgetting preserves equivalence and strong equivalence of programs, respectively. For other notions of equivalence, no corresponding property has been considered in the literature.
The next four properties, called Irrelevance, Weakening, Positive Persistence, and Negative Persistence, were introduced by Zhang and Zhou \shortciteZZ-AI09 as postulates of knowledge forgetting in the context of modal logics, and later adopted by Wang et al. \shortciteWangZZZ12,WangZZZ14 for forgetting in ASP.
Irrelevance requires that a result of forgetting be strongly equivalent to a program that does not mention the atoms to be forgotten.
- (IR)
satisfies Irrelevance if, for each , and , for some not containing any .
This property corresponds to the concept of being irrelevant discussed in the end of the previous section. Thus, satisfaction of this property is an integral part of the definitions of forgetting operators and classes (cf. Defs. 1 and 2).
The other three properties focus on HT-consequences. Namely, Weakening requires that the HT-models of also be HT-models of a result of forgetting.
- (W)
satisfies Weakening if, for each , and , we have .
This means that a result of forgetting, , has at most the same consequences as the program itself.
Positive and negative persistence concern preserving the HT-consequences of and not introducing new ones, respectively.
- (PP)
satisfies Positive Persistence if, for each , and : if , with and , then .
- (NP)
satisfies Negative Persistence if, for each , and : if , with and , then .
Thus, Positive Persistence requires that the HT-consequences of not containing atoms to be forgotten be preserved in a result of forgetting, while Negative Persistence requires that a program not containing atoms to be forgotten not be an HT-consequence of , unless it was already a HT-consequence of .
Essentially in parallel to the appearance of the previous set of properties, Wong introduced a set of properties in his PhD dissertation \shortciteWong09. They were defined for forgetting a single atom from a given disjunctive program, and did not gather much attention in the literature, possibly due to the form of publication. These properties were generalized to extended programs and to forgetting sets of atoms and assigned a more descriptive name (as Wong simply used alphanumeric identifiers) [40, 39, 42]. In the course of this generalization, it turned out that two of the resulting properties would precisely coincide with (SE) and (PP). Thus, in the following, we will present those generalizations of Wong’s properties that are distinct from the previous ones, using the descriptive names for the ease of readability. Namely, we recall, Strong Invariance, Strong Consequence, Rule Consequence, Non-contradictory Consequence and Permutation Invariance.
Strong Invariance requires that it be (strongly) equivalent to add a program without the atoms to be forgotten before or after forgetting.
- (SI)
satisfies Strong (addition) Invariance if, for each , and , we have for all programs with .
In particular, this means that when computing a forgetting result using an operator from a class that satisfies this property, we can ignore the rules that do not mention the atoms to be forgotten while forgetting, and only add them in the end to this result.
The next three properties are related to HT-consequences. Namely, Strong Consequence requires that HT-consequences be preserved when forgetting.
- (SC)
satisfies Strong Consequence if, for each , and , if , then .
This is similar in spirit to properties (wE) and (SE), only here the HT-consequence is preserved while forgetting.
Rule Consequence requires that any rule which is a consequence of a result of forgetting about from be a consequence of a result of forgetting about from a single rule among the HT-consequences of .
- (RC)
satisfies Rule Consequence if, for each , and , if , then for some rule such that , and .
In particular, since any rule in a result of forgetting is an HT-consequence of it, for each such rule, there is a rule in the original program that gives rise to (in terms of HT-consequence).
Non-contradictory Consequence requires that whenever a rule is an HT-consequence of a forgetting result , then the rule obtained by adding the default negation of the atoms of to the body of should be an HT-consequence of .
- (NC)
satisfies Non-contradictory Consequence if, for each , and , if , then .
Again, since any rule in a result of forgetting is an HT-consequence of it, the original program has such a non-contradictory HT-consequence.
The final property by Wong, Permutation Invariance, requires that the order not be relevant when sequentially forgetting atoms.
- (PI)
satisfies Permutation Invariance if, for each , , and , we have that for every partition of .
In fact, such iteration of forgetting had been considered before in a similar manner in a result by Eiter and Wang 2008, but based on an already given sequence of atoms to be forgotten instead of a set. Thus, (PI) is slightly more general Gonçalves et al. (2017). Also, independently, a variant of (PI) was introduced by Wang et al. 2013, but shown to be equivalent Gonçalves et al. (2017). Therefore, in the following, we only use (PI) as a representative of these properties of invariance for different orders of forgetting a set of atoms.
The next property, called Existence, was first discussed by Wang et al. Wang et al. (2012) and formalized by Wang et al. Wang et al. (2013). It requires that a result of forgetting for in be again in the class . This is important to determine if class of forgetting operators is suitably well-defined for the class of programs it is intended for, as well for iteration on subclasses of programs for which it is defined. We follow the notation introduced in Gonçalves et al. (2016b) which formalizes this property s.t. it be explicitly tied to a class , thus allowing to speak about a class of forgetting operators being closed for different classes .
- (EC)
satisfies Existence for , i.e., is closed for a class of programs if there exists s.t. is closed for .
Thus, class being closed for some requires that there exist some “witness in favor of it”. This also means that if a class of operators does not satisfy this property for some class of programs, no operator of can be found that is closed for that class of programs.
The next property, called Consequence Persistence, was introduced by Wang et al. Wang et al. (2013) building on the ideas behind (sC) by Eiter and Wang Eiter and Wang (2008). Consequence persistence requires that the answer sets of a result of forgetting correspond exactly to the answer sets of the original program, ignoring the atoms to be forgotten.
- (CP)
satisfies Consequence Persistence if, for each , and , we have .
In other words, forgetting cannot introduce new answer sets nor remove existing ones.
The following property, called Strong Persistence, was introduced by Knorr and Alferes Knorr and Alferes (2014) with the aim of imposing the preservation of all dependencies contained in the original program building on ideas of strong equivalence between the original program and a result of forgetting (modulo the atoms to be forgotten).
- (SP)
satisfies Strong Persistence if, for each , and , we have , for all programs with .
This strengthens (CP) considerably by imposing that the correspondence between answer sets of the result of forgetting and those of the original program be preserved in the presence of any additional set of rules not containing the atoms to be forgotten.
A further property, Weakened Consequence, is due to results by Delgrande and Wang Delgrande and Wang (2015). It requires that the answer sets of the original program be preserved while forgetting, ignoring the atoms to be forgotten.
- (wC)
satisfies weakened Consequence if, for each , and , we have .
This property can thus also be understood as being the counterpart to (sC): one does prevent the introduction of new answer sets, the other the loss of existing ones. One can also observe that they correspond to the two inclusions of (CP).
The following two properties, weakened and strengthened Strong Persistence, are similiar in spirit, as they are generalizations of (wC) and (sC) that correspond to the two inclusions of (SP) Gonçalves et al. (2017).
- (wSP)
satisfies weakened Strong Persistence if, for each , and , we have , for all with .
- (sSP)
satisfies strengthened Strong Persistence if, for each , and , we have , for all with .
Weakened Strong Persistence guarantees that all answer sets of are preserved when forgetting, no matter which rules over are added to , while strengthened Strong Persistence ensures that all answer sets of a result of forgetting indeed correspond to answer sets of , independently of the added set of rules .
Finally, Uniform Persistence was introduced by Gonçalves et al. Gonçalves et al. (2019) in the context of forgetting in modular answer set programming. Uniform Persistence requires that the correspondence between answer sets of a result of forgetting and those of the original program be preserved in the presence of any additional set of facts not containing the atoms to be forgotten.
- (UP)
satisfies Uniform Persistence if, for each , and , we have , for all sets of facts with .
Hence, (UP) can be seen as a variant of (SP) under uniform equivalence. Since this is the only property in the literature related to uniform equivalence, we complement with one further property to complete the picture in that regard. It is a variant of a property already presented, namely (SI), but directed towards uniform equivalence.
- (UI)
satisfies Uniform (addition) Invariance if, for each , and , we have for all sets of facts with .
Thus, Uniform Invariance requires that it be (strongly) equivalent to add a set of facts without the atoms to be forgotten before or after forgetting.
Recently, a different relaxation has of (SI) has been introduced by Gonçalves et al. Gonçalves et al. (2021) when investigating syntactic operators under uniform equivalence.
-
satisfies Strong Invariance with respect to uniform equivalence if, for each , and , we have , for all programs with .
This property relaxes strong invariance by allowing that rules not mentioning the atoms to be forgotten can be ignored and be added to the result still preserving uniform equivalence (and not strong equivalence as (SI)). The difference to (UI) is that (UI) allows us to ignore facts over the remaining language while forgetting (under strong equivalence) whereas allows us to ignore rules over the remaining language under uniform equivalence. The latter is arguably more useful when forgetting from a program that contains general rules not mentioning the atoms to be forgotten.
All these properties are not orthogonal to one another, and in what follows we join the results established in the literature on the relations that exist between them. In particular, we opt for presenting these results in a concise way, trying to avoid repetition of results that are implicitly obtained from others.
To ease the reading, for a property (P), we represent with “(P)” that “ satisfies (P)”.
Theorem 1
The following relations hold for all :
- 1.
(W) is equivalent to (NP);
- 2.
(SP) implies (SE);
- 3.
(CP) and (SI) together are equivalent to (SP);
- 4.
(sC) and (wC) together are equivalent to (CP);
- 5.
(CP) implies (wE);
- 6.
(SE) and (SI) together imply (PP);
- 7.
(wSP) and (sSP) together are equivalent to (SP);
- 8.
(sC) and (SI) together imply (sSP);
- 9.
(wC) and (SI) together imply (wSP);
- 10.
(W) and (PP) together imply (SC);
- 11.
(SC) implies (SE);
- 12.
(W) implies (NC);
- 13.
(wC) is incompatible with (W) for over such that ;
- 14.
(wC) and (UI) together are incompatible with (RC) for over such that .
- 15.
(SI) implies (UI);
- 16.
(CP) and (UI) together are equivalent to (UP);
- 17.
(SI) implies ;
- 18.
(UP) is incompatible with .
Note first, that 1., as proven in by Ji et al.Ji et al. (2015), also relies on (IR) in its original formulation, in particular, (W) is equivalent to (NP) and (IR). However, as (IR) is an integral part of our definition of forgetting operators, this reliance is ensured implicitly. This means that, by 1., the four properties, originally proposed by Zhang and Zhou Zhang and Zhou (2009), in the context of forgetting in ASP actually reduce to two distinct ones, namely (W) and (PP).
The following results, 2.–9., show that (SP) is an expressive property, where 2. was shown by Knorr and Alferes Knorr and Alferes (2014) 3.–6. by Gonçalves et al. Gonçalves et al. (2016b), and 7.–9. are new. In fact, 3. provides a non-trivial decomposition of (SP) into (SI) and (CP). These two are themselves expressive, as witnessed by other results. Namely, 4. shows that (CP) in turn is the combination of (sC) and (wC), and 5. that it implies preservation of equivalence, while 6. provides the non-trivial result that Strong Equivalence and Strong Invariance imply Positive Persistence. Then, 7. provides another decomposition of (SP) into (wSP) and (sSP) which in turn, by 8. and 9., are implied by properties used in the decompositions 3. and 4., respectively. Thus, (SP) implies (SE), (CP), (SI), (sC), (wC), (wE), (PP), (wSP) and (sSP), where the result for (PP) has been shown directly Ji et al. Ji et al. (2015).
The next three results, 10.-12., were shown by Gonçalves et al. Gonçalves et al. (2017) and clarify the relation between the properties originally proposed by Zhang and Zhou Zhang and Zhou (2009) and those by Wong Wong (2009). Namely, the two distinct properties (W) and (PP) introduced by Zhang and Zhou Zhang and Zhou (2009) together imply (SC) which in turn implies (SE), where the combination of these two results, i.e., that (W) and (PP) together imply (SE), has been shown directly by Gonçalves et al. Gonçalves et al. (2016b). In addition, (W) alone implies (NC), which indicates that among Wong’s properties, (SC) is stronger than (NC).
The following two results establish incompatibility results for classes of operators defined over (at least) normal programs. Both results are new, though 13. is a revised result by Wang et al. Wang et al. (2013) where incompatibility of (W) with (CP) is established. In this sense, this new result makes the incompatibility more precise. In comparison to 14., we can also observe that, though no formal relation exists between (W) and (RC), (W) is stronger than (RC) in the sense that it is incompatible with (wC), whereas, in the case of (RC), an additional property is necessary, namely (UI), to establish incompatibility with (wC).
The two new results 15.–16., establish relations between the new properties introduced here w.r.t. uniform equivalence and their correspondents based on strong equivalence. In fact, 15. establishes that Strong Invariance implies Uniform Invariance. The second result provides a decomposition of (UP), and it is interesting as it, together with 3., allows us to trace the difference between (UP) and (SP) to the different considered form of invariance. This strengthens previous results by Gonçalves et al. Gonçalves et al. (2019) that positioned (UP) in between (CP) and (SP). However, unlike (SP), (UP) is incompatible with any property that allows to ignore the remaining arbitrary rules (beyond facts). This is naturally the case for (SI), as (SI) relies on strong equivalence whereas (UP) relies on uniform equivalence, but, by 18., even the relaxation of (SI) to uniform equivalence, (17.), is incompatible with (UP) Gonçalves et al. (2021).
To gain a better overview on the results in Thm. 1, Fig. 1 summarizes the positive results (all but the incompatibility results) in graphical form, representing equivalences and implications between (compositions of) properties. We can observe that (SP) is indeed important as the vast majority of properties is implied by it, further strengthening our view that this property is central as it arguably best captures preserving all the relations between the remaining atoms. Though (SP) can in general not be satisfied for classes of programs containing normal programs Gonçalves et al. (2016c); Gonçalves et al. (2020), in our view, it ideally corresponds to what forgetting in ASP should amount to whenever possible. Now, among the pairs of properties equivalent to (SP), (SI) and (CP) are arguably more important: the former allows one to focus on the rules containing the atoms to be forgotten when forgetting, which is beneficial for computation and amenable to syntactic forgetting, and the latter captures (the baseline in comparison to (SP)) that the answer sets be preserved. While (SP) is in general not satisfiable, its relaxation to uniform equivalence, (UP), is Gonçalves et al. (2019). In fact, (UP) is the strongest relaxation of (SP) w.r.t. programs such that there is a forgetting operator over a class including normal programs that satisfies it Gonçalves et al. (2021). This makes this property an important alternative, well-suited in the setting of ASP, where problem solutions are often encoded as rules with varying sets of facts. There are also two properties not present in Fig. 1 that we deem important, (PI) and (EC). The former allows forgetting atoms in any order, which facilitates the usage of forgetting and its implementation in concrete operators that may be defined forgetting one atom at a time. The latter is crucial for guaranteeing that operators (and classes of these) are indeed well-defined as well as permitting the iteration of these. Finally, we note that among properties that are variants of each other with respect to equivalence and strong equivalence, such as (wE) and (SE), we consider those based on strong equivalence more important as it is well-known that equivalence does not preserve the structure of rules, and this applies also in the context of forgetting. We revisit these observations in more detail taking into consideration also the existing approaches in the literature and which properties these satisfy (as presented in the following sections).
5 Operators of Forgetting
The different properties presented in the literature have often been the driving motivation for the definition of a variety of different approaches on forgetting in answer set programming. We now turn our attention to these classes of operators of forgetting, by first reviewing the approaches found in the literature and then establishing non-trivial relations between them. In the course of the exhibition, we follow a chronological order, similar in spirit to the presentation of the properties in the previous section.
Strong and Weak Forgetting
The first proposals are due to Zhang et al. Zhang and Foo (2005); Zhang et al. (2005); Zhang and Foo (2006) with the objective to apply forgetting for conflict resolution in the case of inconsistencies as well as to capture and characterize updates of answer set programs. The authors introduced two syntactic operators for normal logic programs, termed Strong and Weak Forgetting. Both start with computing a reduction corresponding to the well-known weak partial evaluation (WGPPE) Brass and Dix (1999), defined as follows: for a normal logic program and , is the set of all rules of the form such that there are with and . Then, the two operators differ on how they subsequently remove rules containing , the atom to be forgotten. In Strong Forgetting, all rules containing are simply removed:
In Weak Forgetting, rules with occurrences of in the body are kept, after is removed.
The motivation for this difference is whether such is seen as support for the rule head (Strong) or not (Weak). In both cases, the actual operator for a set of atoms is defined by the sequential application of the respective operator to each . Both operators are shown to be closed for and thus well-defined. The corresponding singleton classes are defined as follows.
No semantic characterization of the operators was provided, but a simplified representative was created which has the same answer sets as the corresponding forgetting results. The authors also introduced a framework for conflict-solving in answer set programs based on strong and weak forgetting and showed that different approaches of logic program updates can be represented. It was also shown that forgetting does not increase the complexity of determining inferences of logic programs under answer set semantics.
Semantic Forgetting
Building on ideas first exposed by Wang et al Wang et al. (2005), Eiter and Wang Eiter and Wang (2008) proposed Semantic Forgetting to improve on some of the shortcomings of the two purely syntax-based operators and . Semantic Forgetting introduces a class of operators for consistent disjunctive programs11 1 Actually, classical negation can occur in scope of , but due to the restriction to consistent programs, this difference is of no effect Gelfond and Lifschitz (1991), so we ignore it here. defined as follows:
The basic idea is to characterize a result of forgetting just by its answer sets, obtained by considering only the minimal sets among the answer sets of ignoring . Thus, preserving the semantic relations between the remaining atoms in the sense of Def. 1 is based on preserving answer sets, i.e., certain atoms occur in the same answer sets. The authors showed that their approach can be characterized by forgetting in classical logic (using the minimal models). Three concrete algorithms were presented, two based on semantic considerations and one syntactic. Unlike the former two, the latter is not closed for classes and (where the superscript + denotes the restriction to consistent programs), since double negation is required in general. Hence, it is not a forgetting operator according to our definition. A detailed complexity analysis was provided discussing model checking as well as credulous and skeptical reasoning under forgetting. The authors also presented a framework for resolving conflicts in multi-agent systems which is similar in spirit to that defined by Zhang and Foo Zhang and Foo (2006) though arguably more general in the sense that it can be adapted more easily than the former. The authors also characterized inheritance logic programs Buccafurri et al. (2002) and update logic programs Eiter et al. (2002) using their forgetting approach.
Semantic Strong and Weak Forgetting
Wong Wong (2009) argued that forgetting in ASP should be characterized by a set of properties, similar as proposed by Eiter and Wang Eiter and Wang (2008), but rather rely on strong equivalence, as answer sets alone do not contain all the information present in a program nor do they preserve all the information that is unrelated to the forgotten atoms. He defined two classes of forgetting operators for disjunctive programs, building on HT-models.22 2 Wong Wong (2009) considered SE-models Turner (2003). Without loss of generality, we consider the more general HT-models. First, given a program , we define , , the set of all consequences of . We obtain and , the results of strongly and weakly forgetting a single atom from , as follows:
- 1.
Consider .
- 2.
Obtain by removing from : (i) with , (ii) from the head of each with .
- 3.
Given , obtain and by transforming certain rules in as follows:
with in body with in head (remove) (remove) remove only remove only
The generalization to sets of atoms , i.e., and , can be obtained by simply sequentially forgetting each , yielding the following classes of operators.
While steps 2. and 3. are syntactic, different strongly equivalent representations of exist, thus providing different instances. Wong Wong (2009) defined one construction based on inference rules for HT-equivalence, closed for . He also introduced T-equivalence which can be characterized as a weaker form of equivalence by considering only a subset of the inference rules for HT-equivalence, and showed that these correspond to strong and weak forgetting. Thus, and as well as strong and weak forgetting rely on preserving the consequences from over the remaining atoms, in the spirit of Delgrande’s general approach Delgrande (2017), though for a varying notion of equivalence/consequence. Finally, computational complexity of and was not considered by Wong.
HT-Forgetting
Wang et al. Wang et al. (2012); Wang et al. (2014) introduced HT-Forgetting, also termed Knowledge Forgetting Wang et al. (2014), building on work by Zhang and Zhou Zhang and Zhou (2009) in the context of modal logics that proposed certain desirable characteristics of forgetting, which were shown to precisely characterize forgetting in classical propositional logic and modal logic S5. The authors showed that no existing notion would correspond to these ideas, and proposed HT-Forgetting which was defined for extended programs and used representations of sets of HT-models directly.
Thus, in this case, the semantic relations between the remaining atoms are preserved based on the equivalence of HT-models. A concrete operator was presented Wang et al. (2014) that was shown to be closed for and , and it was also shown that no operator exists that is closed for either or . In addition, FLP-forgetting Wang et al. (2014) was considered under the FLP-stable model semantics Truszczynski (2010), but as this semantics differs from the answer set semantics and the results are essentially identical for both variants considered, we only focus on the answer set semantics. The authors also established results on computational complexity and discussed conflict solving using HT-forgetting based on a framework similar to that used by Eiter and Wang Eiter and Wang (2008).
SM-Forgetting
Wang et al. Wang et al. (2013) defined a modification of HT-Forgetting, SM-Forgetting, for extended programs, with the objective of preserving the answer sets of the original program (modulo the forgotten atoms).
Hence, in this case, though the definition is a variation of the one for , the semantic relations between the remaining atoms are preserved based on the equivalence of answer sets (utilizing the correspondence of HT-models). A concrete operator was provided that builds on the notion of countermodels in HT-logic Cabalar and Ferraris (2007), a technique, in fact, also used by Wang et al. Wang et al. (2014) for HT-forgetting, and subsequently in the literature. This class, similar to , was shown to be closed for and , and it was also shown that no operator exists that is closed for either or . The authors also discussed relations to forgetting in propositional logic and uniform interpolation and considered the computational complexity of model checking, credulous and skeptical inference.
Strong AS-Forgetting
Knorr and Alferes Knorr and Alferes (2014) introduced Strong AS-Forgetting with the aim of preserving not only the answer sets of itself but also those of for any over the signature without the atoms to be forgotten. The notion was defined abstractly for classes of programs .
The definition of this class is indeed closely aligned with property (SP) and naturally, the semantic relations between the remaining atoms are preserved based on the equivalence of answer sets (for varying programs). A concrete operator was presented for a non-standard class of programs (extended programs without disjunction), but not closed for and only defined for certain programs with double negation. It is therefore not an operator for the class of normal programs according to Def. 1. In parallel, Strong WF-Forgetting for normal programs under the well-founded semantics was considered with favorable results (closed and defined for the whole class), but is not further considered here. The computational complexity was studied, but only in terms of computing a model.
SE-Forgetting
Delgrande and Wang Delgrande and Wang (2015) introduced SE-Forgetting based on the idea that forgetting an atom from program is characterized by the set of those SE-consequences, i.e., HT-consequences, of that do not mention the atoms to be forgotten. The notion was defined for disjunctive programs building on an inference system by Wong Wong (2008) that preserves strong equivalence. Given that is the consequence relation of this system, is . The class is defined by:
This notion is clearly aligned with the general notion of forgetting by Delgrande Delgrande (2017) relying on preserving the logical consequences over the remaining language. An operator was provided, which is closed for , based on computations using resolution, and a prototype implementation was made available. It was observed that, though forgetting a single atom results only in a quadratic blow-up in the size of the program, forgetting several atoms yields an exponential blow-up of the resulting program (in the worst case). Conflict solving was also revisited based on the framework presented by Eiter and Wang Eiter and Wang (2008), aiming to provide more intuitive/better solutions, mainly due to the fact that HT-consequences were used in opposite to Semantic Forgetting that merely relies on preserving answer sets.
The following three classes are all based on the same idea introduced by Knorr and Alferes Knorr and Alferes (2014), i.e., they aim at preserving all the dependencies between atoms not being forgotten in the sense of property (SP), but taking into consideration that it is not always possible to forget and satisfy (SP) Gonçalves et al. (2016c). All three approaches rely on the manipulation of HT-models to ensure that the semantic relations between the remaining atoms are preserved, oriented by the idea to maintain all answer sets from the original program whenever this is possible.
To ease the reading and to keep the material self-contained, we recall here the necessary notions, adapted from criterion Gonçalves et al. (2016c), which allows us to determine whether it is possible to forget a set of atoms while satisfying (SP).
Let be a program over , , and . Consider the following.
The set identifies those such that is a potential answer set of , which are therefore relevant for being an answer set of the result of forgetting. For each such , the set collects the -reduct of the left component of the HT-models of with right component . For each , the set collects all such sets.
SP-Forgetting
Gonçalves et al. Gonçalves et al. (2016c); Gonçalves et al. (2020) introduced SP-Forgetting with the aim to satisfy (SP) whenever that is possible. The notion was defined for extended logic programs, and, following criterion , tied to the existence of a least element in the set , which, if it exists, coincides with the intersections over .
A concrete (semantic) operator was defined by Gonçalves et al. Gonçalves et al. (2020) based on countermodels, as well as a syntactic operator Berthold et al. (2019b). Both operators and the entire class are closed for and , and it was shown that no operator exists that is closed for either or .
Relativized Forgetting
Gonçalves et al. Gonçalves et al. (2017); Gonçalves et al. (2020) introduced Relativized Forgetting as a solution to the fact that, in general, the result of forgetting according to SP-Forgetting may have answer sets that do not correspond to answer sets in the original program . Relativized Forgetting was originally defined using -HT-models, an extension of HT-models closed related with relativized equivalence Eiter et al. (2007). An alternative characterization Gonçalves et al. (2020), which helps clarify its relation with SP-Forgetting, is used here.
Thus, in comparison to SP-Forgetting, a union of the elements in the sets is used.
-Forgetting
Gonçalves et al. Gonçalves et al. (2017); Gonçalves et al. (2020) introduced -Forgetting as an alternative to both SP-Forgetting and Relativized Forgetting, based on the fact that SP-Forgetting may introduce answer sets that do not correspond to those of the original program, while Relativized Forgetting may remove answer sets of the original program, even in cases where it would be possible to forget and satisfy (SP). The difference between and lies in the usage of intersection and union in their respective definitions. Whenever has more than one element union and intersection will not coincide. Based on this, -Forgetting was formally defined as follows based on a case distinction.
For both of the latter classes, a concrete operator was defined based on countermodels, and, in both cases, the operator and the class are closed for and . Moreover, no operator of the class exists that is closed for either or Gonçalves et al. (2020). In addition, a comparison between the three previous classes is presented, discussing when to prefer which class of operators, as well as an analysis of the computational complexity Gonçalves et al. (2020).
Uniform Forgetting
Uniform Forgetting was introduced by Gonçalves et al. Gonçalves et al. (2019) in the context of forgetting in modular answer set programming. In this setting the programs are fixed, and only the input, i.e., sets of facts, varies, which is closely related with the notion of uniform equivalence. Uniform Forgetting aims at preserving the answer sets of no matter what input not containing the atoms to be forgotten is added to . This implies a careful choice of the HT-models of a result of forgetting, and the formal definition requires additional technical notions which we recall here for self-containedness (in a resumed manner).
The sets characterize all the different total HT-models of for each . Among these, the ones that give rise to total HT-models of the result of forgetting are given by the set . For the non-total HT-models of the result of forgetting, we consider the set and the indexed family of such sets where . For each tuple such that , the intersection of its sets is denoted as , and is the set of all such intersections. Formally, Uniform Forgetting combines the total models from and the non-total from as folows:
Again, a concrete operator was defined based on countermodels, which, just like itself, is closed for and . A further operator was defined which combines the former with a syntactic one whenever this is possible Gonçalves et al. (2021). Moreover, no operator of the class exists that is closed for either or . In addition, the effects of applying forgetting to answer set programming modules were studied, as well as the computational complexity.
While all these classes were introduced with differing motivations, they coincide under certain conditions, e.g., when restricted to specific classes of programs. This is the case for Horn programs, where the result of forgetting according to most of the classes of operators presented above are strongly equivalent.
Theorem 2
For all Horn programs , every , and all forgetting operators in the classes , , , , , , , , , , and , it holds that .
Notably, of the classes of operators presented in this section, and are the only ones that do not coincide with all others when restricted to Horn programs.
Example 4
Consider the following Horn program . Then, for any in any of the classes mentioned in Thm. 2, we have that is strongly equivalent to the program . None of the three concrete operators defined for actually satisfies this condition, because the two semantic operators do not consider as it is not relevant for the answer sets, while the syntactic one discards this rule in its pre-processing. However, a modification of the syntactic operator is possible such that it coincides with the result (by omitting part of the pre-processing), i.e., though does not align with Thm. 2, at least one corresponding operator exists. For , the result completely differs since any operator in must include in its result.
Interestingly, Wang et al. Wang et al. (2012); Wang et al. (2014) additionally showed that, for , the result of is strongly equivalent to that of classical forgetting. We thus obtain as a corollary that this holds for all classes of forgetting operators mentioned in Thm. 2.
Besides the coincidence when restricted to the class of Horn programs, there are two classes of operators that turn out to coincide.
Theorem 3
Consider the class of disjunctive programs. Then, and coincide.
This coincidence can be traced back to the fact that the inference system used for is the same as that used to define the example operator for . Since the two classes coincide, in what follows, we often use to refer to both. This correspondence can be extended to when the result of forgetting is still in the class of disjunctive programs.
Theorem 4
Let be a disjunctive program, , , , and . Then, whenever is strongly equivalent to a disjunctive program.
This does not hold in general though, as the next example shows.
Example 5
Given , , , consider forgetting about from . For any , it is easy to see that is strongly equivalent to , which is not strongly equivalent to any disjunctive program. In the case of and the result of forgetting is, by definition, always a disjunctive program.
This also means that item 1. in Prop. 2 Delgrande and Wang (2015), which semantically characterizes by asserting that it coincides with the set of HT-models restricted to the remaining atoms, i.e., that it coincides with on the class of disjunctive programs, actually does not hold.
Forgetting Operators
Concrete forgetting operators have been considered in all the presented approaches, either in the form of a syntax-based operator, namely for , , , , and , or based on a semantic characterization, namely for , , , , , , and , or one combining the latter two principles, namely for , or based on a consequence relation, namely , , and .
On closer inspection, the syntactic operators share a common basis in the form of the principle of weak partial evaluation (WGPPE) Brass and Dix (1999), which is present in the construction of each of them, even in the realization of the consequence relation used in the case of . Hence, positive occurrences in the rule bodies of atoms to be forgotten are generally treated in the same way. The difference lies in the treatment of negation and of the rules not mentioning the atoms to be forgotten, as well as the applicability of the operator in question. In the case of and , the treatment of negation is not founded on a semantic principle, which causes problems as argued by Eiter and Wang Eiter and Wang (2008). The other three operators defined for the classes , , and as well as the syntactic part of the operator defined for , even share the basic ideas for treatment of negation, inspired by the first such approach for . As argued by Berthold et al. Berthold et al. (2019b), they then differ in how rules not mentioning the atoms to be forgotten are treated. Namely, the operator in often simplifies these away, as its semantic notion is only relying on answer sets. On the other hand the operator defined for is only applicable in a very restricted setting.
For the semantic operators, two major approaches exist. The operators defined for rely on computing the answer sets, applying the definition of forgetting and finding a canonical program that represents the resulting set of answer sets. All the other approaches rely on the construction based on countermodels Cabalar and Ferraris (2007), as first used by Wang et al. Wang et al. (2013). The benefit is that one can simply determine the set of HT-models of a result of forgetting, and then provide a corresponding program based on countermodels. The difference between these operators resides then only in the characterization of the desired HT-models themselves. While this is an elegant way to obtain a result of forgetting, that can in fact be applied to any approach based on HT-models, the resulting program is often not in a minimal form, containing many unnecessary rules, which requires further non-trivial considerations on minimal programs Cabalar et al. (2007). This also impacts on the similarity between the original program and a result of forgetting, i.e., while the semantic characterization is precisely matched, syntactically they may be completely different, even for rules that do not mention the atoms to be forgotten. The latter can be avoided in certain cases, as argued by Gonçalves et al. Gonçalves et al. (2020), namely if property (SI) is satisfied, as this allows us to exclude the rules not mentioning atoms to be forgotten from the forgetting process, and simply pass them to the result. Still, for the rules involving the atoms to be forgotten, the result may bear no resemblance. The approaches based on a consequence relation do not suffer from this problem, i.e., the rules of the program that are not removed while forgetting do persist, they are, however, accompanied by a huge number of additional rules that do not add anything to the program which would require additional processing and simplification. This is what makes providing syntactic operators for classes with a well-defined semantic characterization an important approach. It is not an easy one though.
Computational Complexity
We finish the section with considerations on the computational complexity of forgetting. To begin with, all approaches showed or mentioned that computing a concrete result of forgetting with one particular operator is in general in EXP. In addition, many approaches provided arguments and results that show that forgetting is a computationally expensive task, but also argued that this is not surprising given the computational complexity of problems such as model existence in answer set programming Dantsin et al. (2001). A general comparison is however not straightforward as several approaches are quite distinct, which impacts on the kind of complexity results that are presented. In the following, we therefore focus on the results presented in the literature, in particular on two problems whose complexity is considered in several approaches, as this makes them suitable for such a comparison. In what follows, we assume a basic understanding of standard complexity classes as well as the polynomial hierarchy.
| coNP | |||
| coNP | |||
| coNP | |||
|
|
|
coNP | |
|
|
|
The first problem is skeptical reasoning under forgetting, i.e., is some atom true in all answer sets of a forgetting result . Formally, given , , , and , we determine , where denotes skeptical inference, i.e., truth in all answer sets. This problem has been considered for , , , and for different classes of programs. In fact, for , can be a literal, and for a formula, but we simplified this aspect here for the sake of the comparison. Fig. 1 summarizes the results. We can observe that, for normal programs, , , which are only defined for this class of programs, and coincide. In fact, though it has not been considered explicitly for normal programs, the result for does also coincide (for the larger class of programs) due to hardness of skeptical reasoning for ASP even without forgetting. For , this is not likely due to the maximization check. In general, for classes and for which skeptical reasoning without forgetting is -complete, we observe that and are computationally more expensive than the other classes due the additional minimization/maximization which is part of their respective definitions. We note that only and do also consider credulous reasoning. In the former case, the result raises to , while, in the latter, it remains on the same level of the hierarchy, i.e., .
Thus, requiring that answer sets be preserved comes at a cost in terms of computational complexity. When comparing with both and with their lack of semantic grounds (for part of their construction), arguably the additional cost is preferrable. When comparing and , this is less straightforward, as clearly is based on semantic grounds. Such considerations therefore depend on the intended usage and whether preserving answer sets justifies the additional cost.
The second problem considered is determining whether a given program is indeed a result of forgetting. Formally, given , , , we determine . This problem has been considered for , , , , , and and Fig. 2 presents the results. It can be observed that the results for and do coincide (unlike the first problem), and that there is an increase in terms of complexity for the classes that relate to property (SP). This is probably not surprising, as , , and all relate to criterion that establishes whether it is possible to forget and preserve for the concrete combination of program and atoms to be forgotten, which has been shown to be -complete Gonçalves et al. (2020). The result for class also points into this direction, but hardness and completeness remain to be shown. Still, the known complexity results on uniform equivalence Eiter et al. (2007) do indicate that it is not likely that an improvement can be achieved in comparison to the other three classes.
Here, the main conclusion is that trying to preserve the answer sets for arbitrary programs (or sets of facts) to be added increases the computational complexity. In our view, this is preferable unless the intended usage does not require it. We will revisit this question in the following section.
6 On the Properties of Existing Operators
Having presented the properties and classes of operators introduced in the literature for forgetting in ASP, in this section, we provide a detailed comparison of these classes with respect to their characteristics. In more detail, we draw a precise picture on the relations between classes of operators and the properties they satisfy. We then discuss the suitability of these classes based on their characteristics, establish concisely the relationship to uniform interpolation, and discuss their suitability w.r.t. several applications considered in the context of forgetting.
6.1 Specific Properties
Putting aside for a moment the considerations on the suitability of properties at the end of Sect. 4, the desirability of these properties is, to some extent, in the eye of the beholder. Often, a particular novel approach to forgetting is justified by the fact that previous approaches did not obey some new property deemed crucial, neglecting however that this novel approach actually ended up failing to satisfy other properties, themselves deemed crucial by those who introduced them. Whereas the introduction of most known approaches to forgetting was accompanied by a study of some properties they each enjoyed, there are many missing gaps, some because some properties were only introduced later, others because they were simply neglected. Despite the discussion and potential controversy around the adequacy of the properties, which may ultimately depend on the application at hand, the first and perhaps most important step is to draw an exhaustive picture regarding which properties are obeyed by which classes of operators. This takes us to the central theorem of our paper, illustrated in one easy-to-read table.
Theorem 5
All results in Table 3 hold.
One first observation is that every class of operators obeys a different set of properties (apart from and , which coincide, cf. Thm. 3). This is a strong indication that these properties play a role in characterizing the classes of operators. In fact, a precise characterization of some classes of operators in terms of the properties they satisfy sometimes exists Wang et al. (2012); Wang et al. (2014); Delgrande and Wang (2015), although this not the case in general.
We now focus on analyzing specific properties and how they relate to the known classes of operators, following commonly the presentation of the properties from left to right according to the historical order established in Sect. 4.
Starting with (sC) and (wE), we know, by Thm. 1, that any that is known to satisfy (CP) also satisfies these two. Not surprisingly, also satifies both, even though it does not satisfy (CP), since the proposal is based on the ideas behind these properties. For the remaining classes, it is worth illustrating why , , and do not satisfy (sC) by looking at the example where we forget about from : all three classes require the result to be strongly equivalent to , i.e., the forgetting operation introduces a new answer set. Turning to (wE), it requires that the results of forgetting about from and from have the same answer sets, while the three classes , , and require that the results be strongly equivalent to and , respectively, which are obviously not equivalent. satisfies both properties (though not satisfying (CP)): in the previous two examples, must be returned in the former, while includes in the latter.
The properties (SE), (W), and (PP) have received more attention in the literature, although focussing more on the properties not satisfied by previous approaches to motivate the introduction of a new one. As a result, several novel positive results are included in the table. It is perhaps worth pointing out that despite Wang et al. Wang et al. (2014) having discussed that and do not satisfy (PP), they did so using a counterexample – Ex. 5 in this paper – that is not really part of the language for which and are defined, since it relies on rules with double negation as missing consequences, which in our view seems to be an unfair argument. According to our uniformized notions, for the language for which they are defined, they satisfy (PP). In any case, we can observe that (SE) and (PP) are satisfied by most of the classes, basically only some of the early approaches do not satisfy these, and we can arguably conclude that these are vastly consensual properties of forgetting. The same does not hold for (W) where the incompatibility result with (wC) (and thus (CP)), item 13 in Thm. 1, affects the results.
Example 6
Consider , whose only answer set is . Thus, according to (wC), a forgetting result must contain at least this answer set modulo the forgotten atoms. For example, for , contains , whose only answer set is . However, this rule is not an HT-consequence of , hence (W) is not satisfied.
(SI) has received less attention, yet often this non-trivial property is satisfied. Wong Wong (2009) showed (SI) for strong and weak forgetting, but using -equivalence instead of -equivalence, whose semantics differs. This explains the negative result in the case of . The negative result for follows by correspondence to , and for from forgetting about from as in Ex. 6: for , so adding results precisely in a program containing this fact. If we add before forgetting, then the -models of the result of forgetting, ignoring all occurrences of , correspond precisely to , and . To preserve the answer sets of this modified program (there is only one – ), only the last of these three HT-models can be considered. Hence, and (or strongly equivalent rules) occur in the result of forgetting for any , and (SI) does not hold. Still, as pointed out in Sec. 4, (SI) is an important property as it allows one to focus forgetting on the rules that contain the atoms to be forgotten.
For the other three HT-related properties originally proposed by Wong Wong (2009), (SC), (RC), and (NC), the consensus is less obvious. Considering first (SC), we recall from 10. and 11. of Thm. 1 that it is implied by (PP) and (W) together, and in turn implies (SE). In fact, four of the five classes that satisfy (SC), also satisfy (PP) and (W). Only does not satisfy (W), and still satisfy (SC) (according to an first example presented by Wang et al. Wang et al. (2014)): Consider . For any , forgetting about is strongly equivalent to , which is not a consequence of itself. Regarding the relation to (SE), we can observe that there are several cases where (SE) holds, while (SC) does not, showing that both properties are relevant and indicating that (SC) can be seen as a stronger version of (SE). Still, given the broad consensus for (SE), arguably (SE) seems preferable among the two.
Regarding (RC) and (NC), we note that both are always satisfied for the same cases. This could be based on some correlation, but none is known. Arguably, this coincidence could be based on the fact that both are closely tied to the concrete definitions of and along which they were introduced. Actually, inspecting the definitions of both properties, one could consider that (NC) implies (RC), i.e., that the rule which is an HT consequence in (NC) is somehow the rule in (RC), but this is not the case in general.
Example 7
Consider which satisfies (NC) and . We have that . Since , we have, by (NC), that . But we also know that , and, therefore does not hold. This shows that there are cases where of (NC) is not the rule for property (RC).
Nevertheless, item 12. of Thm. 1 indicates that (W) implies (NC), and there are several cases where the latter is satisfied and the former is not, indicating that (W) has a more restrictive condition than (NC). This is also corroborated by the two incompatibility results in Thm. 1 and the apparent coincidence of satisfaction for (RC) and (NC) in Table 3, in the sense that (W) also has a more restrictive condition than (RC).
Property (PI) is also widely accepted, i.e., a set of atoms can be forgotten in any order. The only exceptions are the three classes closely tied to (SP), , , and , essentially, because it is not always possible to forget and preserve (SP) Gonçalves et al. (2016c). In such situations, the three classes then provide approximations of forgetting while preserving (SP), and, since the order in which atoms are forgotten may affect whether forgetting is possible (while preserving (SP)) Gonçalves et al. (2017), the property does not hold for any of them. Regarding , we note that a weaker version of (PI) was proven Gonçalves et al. (2019), showing that it is possible to iterate the operators of the class when applied in the context of modular logic programming. Thus strictly speaking the exact result is open. On the other hand, in the context of modular answer set programming, directed towards uniform equivalence, this result suffices, which explains the particular notation of the result in Table 3.
The new negative results for (CP) and (SP) can be illustrated with forgetting about from , , i.e., the first two rules of Ex. 5. Since , the result must have two answer sets and , which is not possible for disjunctive programs obtained from operators in , , and . The same example serves as counterexample for all negative results of (wC), while positive results follow for classes satisfying (CP) from Thm. 1. Notably, the counterexample also applies to , thus invalidating Thm. 2 in the paper of Delgrande and Wang Delgrande and Wang (2015).
Regarding (SP), only satisfies the property due to the way the class is defined. However, an important note is in order. Namely, unlike previously stated by Gonçalves et al. Gonçalves et al. (2016b); Gonçalves et al. (2017); Gonçalves et al. (2019), in Table 3, all results are positive for . The following consideration reveals the cause for this discrepancy. Many of the negative results previously stated for are based on counterexamples using the concrete operator defined in Knorr and Alferes (2014), among them, for example, that does not satisfy (UP) Gonçalves et al. (2019). However, items 3., 15., and 16. of Thm. 1 allow us to show that (SP) implies (UP), seemingly a contradiction. The reason why this is not a problem is revealed by a close inspection of the definition of class . The operator defined by Knorr and Alferes Knorr and Alferes (2014) is actually not defined for a standard class of programs, nor for all programs in this class which is in conflict with the quantification applied in the definition. This is complemented by the general result that forgetting and satisfying (SP) is not always possible for programs that include normal programs. These observations lead to the following corollary, strongly restricting the class of programs to which operators in can be applied.
Corollary 1
There is no forgetting operator with .
Thus, the operator defined by Knorr and Alferes Knorr and Alferes (2014) does not belong to and all previously negative results for are invalidated, allowing that this class indeed satisfies all the properties in the literature considered here, but only within the scope of Horn programs.
Regarding (wSP) and (sSP), these properties are essentially exclusive to the (SP)-related classes of forgetting, which is not surprising given item 7. of Thm. 1, with the exception of (sSP) for , as this class satisfies both (sC) and (SI), which implies satisfaction of (sSP) by item 8. of Thm. 1.
Concerning (UP) this is indeed also a strong property, as it is essentially only satisfied by the class for which it was defined, besides , of course. In fact, (UP) can be seen as an adaptation of (SP) to uniform equivalence. Thus, despite the reduced number of classes that satisfy it, it is an important property as it shows that the conceptual idea of (SP) can be satisfied in the scope of general programs (not restricted to Horn), if one only varies facts for the sake of preserving the dependencies for the atoms not to be forgotten. This is also well-aligned with a central idea of answer set programming, where the general specification of a problem is encoded as an answer set program which is combined with different set of facts, representing an instance of the problem one wants to solve.
With respect to (UI), we observe that satisfaction is vastly sanctioned by the fact that it is implied by (SI) (cf. 15 of Thm. 1), with the exception of for which the positive result is a result of 16. of Thm. 1. We exemplify the negative result for the case of . Consider forgetting about from . This program has as an HT-consequence, which is however not a disjunctive rule and thus not captured in the construction. So adding to the program makes true, and forgetting preserves that. If we forget first, that connection is lost and we cannot conclude by adding to the result of forgetting.
Although is a weakening of (SI), the results for are often a consequence of those for (SI). The positive ones follow immediately from the fact that is implied by (SI) (cf. 17 of Thm. 1), and most of the counterexamples for the negative results are similar to those of (SI). An interesting exception is the case of , for which the negative result for (SI) can be easily justified by the satisfaction of (CP), as these properties together are equivalent to (SP). In the case of the same argument cannot be used, since this property together with (CP) is not enough to imply (SP). Rather an advanced counterexample can be found based on HT-models in which the result is different from that of and , which both satisfy (for the details we refer to the appendix).
Finally, the results on (EC) for different classes of programs reveal that all classes of operators are closed for , and, in addition, each is closed for the maximal class of programs considered, but often not for intermediate ones, with the exception of and . Interestingly, the two known semantic operators in are not closed for , while the syntactic one is, despite not being closed in general and thus not an operator according to 1. This can be remedied by defining an additional operator specific to Horn programs, which is a simplification of Eiter and Wang (2008) taking advantage of the fact that only one answer set exists. Note that ’-’ was used w.r.t. to the definitions of each : the singleton classes and are precisely defined for normal programs; the intuition behind minimization embedded in ’s definition does not combine well with double negation; and, for , , and , the consequence relation that is applied is defined for disjunctive rules.
6.2 Classes of Operators
The results in Table 3 provide us with valuable information to compare classes of operators, as well as some guidelines regarding the choice of a forgetting operator.
The first concern is perhaps the required class of programs . If some class of operators is not closed or even not defined for , then it is certainly not a good choice. Of course, as already mentioned, nowadays, existing ASP solvers have no problem with accepting the full syntax of extended programs here considered, hence, there is no impediment in that regard. Rather, if the application in question requires a certain class of programs, then this may discard certain classes of forgetting operators as possible choices. Hence, many classes defined for extended programs may face difficulties if normal or disjunctive programs are required (cf. the occurrences of “” in Table 3). At the same time, is clearly not suitable with its restriction to Horn programs, while and present considerable limitations if disjunctions are required, since it is well-known that these cannot be represented in a strongly equivalent normal program; and , , and may require additional effort to represent double negation such as by and using an additional auxiliar atom , where introducing new atoms to be able to forget others seems counterintuitive.
With these considerations on (EC) in mind, we can analyze the remaining properties. To that end, Fig. 2 presents a lattice of inclusions between the sets of properties satisfied by each known class of forgetting operators, taking into consideration the following:
- •
Properties on existence, i.e., (EC), as well as (PI) are not considered in this lattice. The reasons are that existence can be easily handled orthogonally, and the same is true for the few cases where (PI) does not hold. Moreover, this allows obtaining more interesting observations that would otherwise be obfuscated.
- •
For the sake of readability, not all properties are made visible in each case. Rather, taking advantage of the results obtained in Thm. 1, only the necessary ones are presented, those that are implied are left implicit. E.g., for , which satisfies both (SC) and (SE), only (SC) is shown, while (SE) is left implicit.
- •
As satisfies all the properties, it represents the top element of the lattice, in a certain sense the ideal case (even though this turned out to only be possible for Horn programs). To complement this, property (IR) which is true for any notion of forgetting, has been chosen as the bottom element.
Fig. 2 makes it apparent that there is one kind of property that divides the classes into two groups, namely whether some kind of relation between the answer sets of the original program and those of its result of forgetting holds or not. The classes for which this is the case are , , , , , , , and by either satisfying (sC) or (wC) or a property that implies these.
Among them, putting aside, as it satisfies all the properties which turns out to not provide considerable insights, the two classes that satisfy (CP) and (PP) turn out to be separated by only one property as follows (using semi-formal notation):33 3 Such equations are in fact not to be read as precise characterizations of classes, but rather a form of visualization of differences.
Hence, the difference between these two classes resides in the preservation of answer sets, no matter which rules are added (over the remaining atoms).
Another such close relationship in terms of satisfied properties can be established between and as follows:
Thus, the difference between these two classes lies in strengthening property (SE) (using (SC)) and adding preserving equivalence while forgetting.
We can even take this one step further and state the following:
However, note that picking an operator of and somehow enforcing (SC) and (wE) will not provide an operator of . It can be shown that the effect of forgetting from for yields a result that replaces all as if they were false, independently of the actual rules in . E.g., forgetting about from would yield , which is not aligned with the original idea of forgetting, i.e., removing all without affecting other derivations, nor with the idea of class in particular, and neither (SC) nor (wE) will change that. In general, an operator of a superclass does not necessarily belong to a subclass in the hierarchy of Fig. 2. Still, there are cases where this is true, e.g., naturally satisfies the defining condition of class , and thus belongs to the class.
Also note that the three classes related to (SP) , , , place themselves quite differently in this picture. Recall that these three classes, in the face of the result that it is not always possible to forget while satisfying (SP) Gonçalves et al. (2016c), are considered relaxations of the equivalence, stating that (SP) is composed of (sC), (wC), and (SI) Gonçalves et al. (2020). Each of the three classes then basically is relaxed by dropping one of these three properties. Given that these three properties imply different other properties (cf. Thm. 1), this relation becomes less apparent in our lattice representation. Still, some observations can be made. , which satisfies both (sC) and (wC), aligns well with approaches that preserve answer sets. , which satisfies both (sC) and (SI), fits within the classes that satisfy (SI). Finally, , which satisfies both (wC) and (SI), does not relate to any class other than , essentially because a) it is the only class that satisfies (wC) and not (sC), and b) it satisfies a set of properties distinct from any of the classes that satisfy (CP).
Among the four classes that do not support preservation of answer sets, and are closely related due to their similar definition. Both coincide on satisfying (SI), a consequence of their syntactic definition that only manipulates rules containing the atoms to be forgotten, and differ on (W) and (PP), a consequence of the different treatment of negated occurrences of the atoms to be forgotten.
For the third node without this preservation support, , there is also a close proximity to based on their definition, yet, their characterizations differ substantially. Both satisfy (SE) and (PP), but differ on six other properties, which means that in this case the variation in the definition has a much more profound effect on the set of satisfied properties. At the same time, we already know that there is a close relation to the remaining class as witnessed in Thm. 4. This is matched by a close correspondence in terms of satisfied properties.
Here, (SI) plays a distinguishing role. Notably, this clarifies the apparent mismatch of the characterizations for and in terms of satisfied properties, both claiming that it is precisely given by (IR), (W), (PP), and (NP). This is indeed true for each of them for the maximal class of programs considered, but, intuitively, restricting to cancels (SI).
is also closely connected to , as the latter restricts the HT-models of the result s.t. (CP) holds. It turns out that this not only cancels (W) (see 1. of Thm. 1), but also (SI) and four further properties related to HT-consequences.
Now, in the spirit of describing classes of forgetting operators, for several classes, a defining characterization in terms of satisfied properties has been introduced in the literature. But providing operators that precisely satisfy only a certain set of properties can also be used to show that some sets of properties do not suffice to characterize a class:
- •
(W), (SI) : delete all rules with atoms to be forgotten.
This operator matches the properties satisfied by Strong Forgetting, but it clearly does not fit into the class (even if we ignored that we defined the class as a singleton), since, by the way deletion is applied, the idea of (WGPPE) is lost.
We mention examples of further operators that can be defined in a similar style, providing evidence that certain sets of properties alone are probably of little interest as they are satisfied by absurd operators. In fact, several of them do not even correspond to the definition of a forgetting operator, as no semantic relations between the remaining atoms are preserved.
- •
(IR) : delete all rules; then add some arbitrary rules over the remaining alphabet (after forgetting);44 4 The term “arbitrary” is used freely to represent some deterministic set, e.g., the first elements of some specific ordering.
- •
(W) : delete all rules with atoms to be forgotten and an arbitrary 50% of the remaining rules;
- •
(PP) : perform weak forgetting; in the resulting program, pick an arbitrary set of rules and turn them into facts by removing their body;
- •
(SE) : compute all answer sets; remove all atoms to be forgotten from them; create a set of facts that represents the intersection of all such reduced answer sets;
- •
(SI) : perform the WGPPE replacement step of strong and weak forgetting; in the resulting program, arbitrarily delete rules with negative occurrences (in the body) of atoms to be forgotten, or just remove their bodies, and delete all rules with positive occurrences (in the body or head) of atoms to be forgotten;
- •
(SE),(W) : delete the entire program;
- •
(SE),(PP) : add, as facts, to the result of performing SE-forgetting, the atoms that belong to some answer set of the original program and for which there is some rule of the original program that contains some negative and no positive occurrence of forgotten atoms.
Thus, often a meaningful choice of a class of forgetting operators requires looking at more than one property in combination with the rationale behind their definition, in particular for cases such as where the number of satisfied properties is comparably small.
Finally, while the results in Thm. 5 for (EC) naturally differentiate between the classes of programs considered, the remaining properties are stated for the most general class of programs for which the class of operators is defined. This begs the question whether restricting would affect the results shown in Fig. 3, which we will now address to gain further insights.
We first consider Horn programs, for which we already know that all classes of operators are closed. From Thm. 2, we know that several classes that satisfy different sets of properties in the general case actually coincide. As expected, these classes all satisfy the same set of properties when restricted to Horn programs. The reason can be traced back to the incompatibility result 13. in Thm. 1, only stated for program classes above , i.e., it does not apply here.
Theorem 6
For Horn programs, the following holds:
- •
, , , , , , , , , , and satisfy (W), (RC), (SP), and (PI);
- •
satisfies (CP) and (PI);
- •
satisfies the same properties as in the general case.
Actually, only the minimally necessary properties are mentioned, the remaining can be obtained from Thm. 1. This means, in particular, that the first group of classes satisfies all the presented properties (with (EC) limited to (EH), of course), and, that reducing to Horn programs does not change the set of properties satisfied by .
For normal programs, it turns out that the introduction of negation in the body immediately makes the result coincide with the general one for all the classes (except for which is not defined for such classes). This is witnessed by the fact that all counterexamples are normal programs, in particular those mentioned in the previous section.
6.3 On desirability of classes of operators
The plethora of results presented so far spread out over the previous sections, and the many differentiating details discussed with respect to these make it difficult to assess which classes of operators are in the end more important. To aid the reader in that regard, we present some summarizing considerations, guided mainly by the definition of forgetting operators, i.e., the idea that the semantic relations between the remaining atoms be preserved.
We start by identifying several classes of forgetting operators which in our view are less important, and can be dismissed for the remaining discussion. We note that in listing these, we follow the chronological order only, without any preference associated to this order.
- •
and can be dismissed, as their semantic consequence relation is non-standard (T-equivalence), resulting in forgetting results that do not even align with answer sets. Moreover, they are only defined for normal programs which severely limits the application.
- •
can be dismissed, as the characterization based on answer sets only is semantically too weak, not even aligning with expected results for Horn programs in general. It is true that one can find concrete operators that overcome part of these problems, but not in general.
- •
can be dismissed because, even though the class satisfies many properties, it cannot coincide with intended results even for Horn programs, i.e., the semantic relations preserved over the remaining atoms are not aligned with our expectations.
- •
can be dismissed, as it is only defined for Horn programs, which does not fit the intention of forgetting in ASP, where default negation is fundamental. The interest in the approach lies rather in the introduction of the idea of (SP) itself.
The remaining seven classes, , , , , , , and , all coincide for Horn programs, so further considerations are needed. If we look for a consensus among the satisfied properties, then we note that (PP) and (SE) are basically satisfied by all of them (with the exception of which is justified by the fact that this approach focusses on uniform equivalence). However, these two properties alone do not suffice because, as we have seen, corresponding absurd operators can be defined. To facilitate a comparison, we can separate them according to how semantic relations between the remaining atoms are preserved.
Preserving strong equivalence
This is the strongest form of preservation of semantic relations, as it aims to approximate satisfying (SP), and the classes , , and correspond to this. A preference among these three strongly depends on which of the individual distinguishing characteristics one prefers. This relies mainly on the satisfied properties, as the computational complexity and the classes of programs to which these can be applied do coincide. These differences have been spelled out with much detail by Gonçalves et al. Gonçalves et al. (2020) and we refer the reader to this paper.
Preserving uniform equivalence
This is a weaker form of preserving the dependencies compared to the previous one, and aligned with (UP). The class belongs to this category. The main benefit over the previous ones is that (UP) is indeed satisfied and that individual atoms can be forgotten in any order without leading to a different result. It is also well-aligned with ASP when we only want to vary the instance data, i.e., the facts.
Preserving equivalence
This is again weaker than the previous ones, and aligned with (CP). Only fits this category among the remaining. While the preservation of relations over the remaining atoms is weaker, as noted in the previous section in particular w.r.t. , it comes in exchange with a lower computational complexity.
Preserving consequences
These approaches preserve the semantic consequences over the remaining atoms, including the classes and . While a comparison with the previous ones w.r.t. the strength of preserving semantic relations from the original program is not straightforward, we argue that, since the definition of imposes a further restriction on that of , preserving consequences is weaker. Among the two classes, as shown by several technical results in this paper, is preferable.
While this exposition indicates an order of preference among these classes, it is not strict, and still depends on the concrete intended usage. To aid in that regard, we next discuss with more detail the relation to uniform interpolation, before we consider applications.
6.4 Forgetting and interpolation
A strong notion of interpolation, called uniform interpolation, is well-known to be closely related to forgetting Zhang and Zhou (2009); Lutz and Wolter (2011); Gabbay et al. (2011). Gabbay et al. Gabbay et al. (2011) introduced the notion for the case of logic programs, which we here adapt to make it more concise.
Definition 3
A class of logic programs is said to have the uniform interpolation property with respect to a consequence relation , if for every program and set of atoms, there exists a program with , such that:
-
;
-
, for every with such that .
In this case, is said to be a uniform interpolant of with respect to .
We say that a forgetting operator over a class of logic programs can be used to obtain uniform interpolants, if is a uniform interpolant of with respect to , for every and . Gabbay et al. Gabbay et al. (2011) considered the non-monotonic skeptical consequence relation for logic programs, defined as if , for every . Using a forgetting operator in , as defined by Eiter and Wang Eiter and Wang (2008), Gabbay et al. showed that, with respect to the consequence relation , the class of disjunctive programs satisfies uniform interpolation for programs composed of facts. Later, Wang et al. Wang et al. (2013) extended this result by showing that, with respect to the consequence relation , the class of all logic programs satisfies uniform interpolation. Besides knowing that the class of all logic programs satisfies uniform interpolation, it is also worth determining which approaches of forgetting can be used to obtain such uniform interpolants. It turns out that satisfying (CP) is a sufficient condition to obtain uniform interpolants with respect to , and in fact the two inclusions of (CP), i.e., (wC) and (sC), imply, respectively, conditions and of the definition of uniform interpolation.
Theorem 7
If a class of operators over a class of logic programs satisfies property (CP), then every operator of that class can be used to obtain uniform interpolants w.r.t. .
Given the above result, we know that every forgetting operator satisfying (CP) can be used to obtain uniform interpolants, namely the classes , , and . Class also satisfies (CP), but this case is not worth considering, because the class is only defined for Horn programs. From the remaining classes that do not satisfy (CP), only satisfies the conditions of uniform interpolation.
Theorem 8
Every forgetting operator of the classes , , , and can be used to obtain uniform interpolants with respect to .
None of the other classes of forgetting operators can be used to obtain uniform interpolants with respect to , and we now present, for each of these classes, a counterexample showing that one of the conditions for uniform interpolation is not satisfied. As shown by Gabbay et al. Gabbay et al. (2011), the class satisfies the conditions of uniform interpolation when is a set of facts. Although condition is satisfied in general, we can see that this is not the case for condition . Consider the program over , where . Then, since the only restriction that any has to satisfy is , we can consider . In this case , showing that condition of uniform interpolation is not satisfied.
In the case of , consider the program , for which . In this case, . But since , we have that , and therefore condition of uniform interpolation is not satisfied. For the classes and , consider the program , where . In this case, for , we have that , and therefore . If we take , then , but , which means that condition of uniform interpolation is not satisfied.
For , consider the program , where . In this case, for , we have , and therefore . But since , we have that , and therefore condition of uniform interpolation is not satisfied.
If we now consider , we can take a program such that . Therefore, . In this case, for , we have , and therefore . If we take , then , but , which means that condition of uniform interpolation is not satisfied.
Finally, in the case of , consider the program , for which . In this case, for , we have . If we take , then , but , which means that condition of uniform interpolation is not satisfied.
All these classes of operators that cannot be used to obtain uniform interpolants share the fact that property (CP) is not satisfied. Although this may indicate that (CP) could be a necessary condition for uniform interpolation with respect to , a simple counterexample shows that this is not the case, and that, therefore, (CP) is in fact strictly stronger than uniform interpolation.
Example 8
Consider the program , where , and a forgetting operator such that . Then, it is clear that cannot satisfy (CP). Nevertheless, it satisfies the two conditions of uniform interpolation, and it could therefore, be taken as a uniform interpolant for .
This also reveals that uniform interpolation with respect to the skeptical consequence is not well-aligned with forgetting, as it does not impose a strong connection between the answer sets of the original program and those of the result of forgetting. This is in part due to the fact that the consequence only imposes the preservation of skeptical consequence.
Hence, instead of using the weak skeptical consequence, , as originally considered by Gabbay et al. Gabbay et al. (2011), HT-consequence, , is arguably a more suitable consequence relation for uniform interpolation with respect to logic programs. In this case, conditions and of uniform interpolation with respect to HT-consequence match two of the properties considered for forgetting, namely (W) and (PP), respectively.
Theorem 9
A class of forgetting operators can be used to obtain uniform interpolants w.r.t. iff satisfies both (W) and (PP).
The above characterization, together with the results of Thm. 5, allow us to conclude exactly what classes of operators can be used to obtain uniform interpolants with respect to .
Theorem 10
Every forgetting operator of the classes and can be used to obtain uniform interpolants with respect to .
The classes and are therefore closely aligned with uniform interpolation, as both satisfy (W) and (PP). In fact, as stated in Thm. (10) of Wang et al. (2014), the class is precisely characterized by (W) and (PP), which also means that it precisely characterizes uniform interpolation with respect to . As pointed out by Wang et al., this result also shows that the class of all logic programs has the uniform interpolation property with respect to HT-consequence. Note that, when considering the class of all logic programs, we should consider to obtain uniform interpolants, since is only defined for disjunctive programs.
The above results and discussion also show that, contrarily to forgetting in the realm of monotonic logics, e.g. classical logic or description logics, where uniform interpolation can serve as a guideline for what forgetting should be, in our view, in non-monotonic frameworks such as ASP this cannot be the case: the relation seems too weak to capture forgetting and imposes (W), a monotonic property which is incompatible with the preservation of answer sets when forgetting.
6.5 Applications
In this section, we will discuss some of the applications of forgetting mentioned in the literature and provide indications as to what classes of operators are, from our point of view, most suitable for each of them.
Conflict Resolution
Forgetting has been considered as a means of conflict resolution for inconsistencies by weakening pieces of information to restore consistency in propositional logic, also termed recovery of preferences Lang and Marquis (2002); Lang and Marquis (2010). This has been adapted to a multi-agent setting using answer set programming Zhang and Foo (2006); Eiter and Wang (2008); Delgrande and Wang (2015), where a set of programs represent the knowledge or preferences of individual agents. If these programs together are inconsistent, then a compromise is a sequence of sets of atoms – one set per program indicating that these are to be forgotten from the corresponding program – such that the resulting programs together are consistent, admitting an agreement, i.e., one or several answer sets. Zhang and Foo Zhang and Foo (2006) defined compromises (termed preferred solutions) that are minimal w.r.t. the amount of atoms forgotten, and Eiter and Wang Eiter and Wang (2008) argued that, in such a setting, answer sets indeed result in minimal agreements (unlike in propositional logic where non-minimal agreements may be obtained). Finally, Delgrande and Wang Delgrande and Wang (2015) emphasized that such forgetting results should clearly keep as much of the program as is while forgetting, in particular not affecting rules over the remaining atoms. Thus, in our view, an approach that preserves as much as possible the semantics over the remaining atoms is recommended according to our considerations in Sect. 6.3, in particular, one that preserves these semantic relations when other rules are added from the programs of the other agents, i.e., when using one of the classes , , and .
Query Answering
As argued by Delgrande and Wang Delgrande and Wang (2015), in query answering, if one can determine what is relevant to a query, then the irrelevant part of the knowledge base/logic program can be forgotten, allowing for more efficient querying. Similar ideas have been expressed in the context of forgetting in Description Logics for using only a small fraction of the ontology in an application Konev et al. (2009). Conceptually common to these ideas is that one wants to use a simplified version of the knowledge base in question “as is”, i.e., without having to incorporate additional information during the reasoning process. This is indeed closely related to uniform interpolation. Therefore, in our view, the most suitable solutions can be found among the approaches that can be used to obtain uniform interpolants with respect to , i.e., and , among which, according to our considerations in Sect. 6.4, we prefer to recommend , since it is more general and satisfies (SI) which allows us to simplify the process of computing forgetting results.
Modular Reuse
While similar in spirit to the ideas presented with respect to query answering, a crucial difference for modular reuse is that a simplified program is created via forgetting that, unlike the former, is still subject to interaction with rules from other programs. The answer to the question what approach is preferred then largely depends on how this interaction is realized. If arbitrary rules can be added or interact with the program, as, e.g., outlined for the case of conflict resolution where a joint program is composed, then the same recommmendations apply as outlined for conflict resolution. If however the interaction follows a truly modular approach with well-defined input-output interfaces between modules Janhunen et al. (2009), where interaction is limited to atoms, then a particular preference can be given to whose characteristics are well-suited for this setting.
Hiding/Privacy
The principal idea of hiding is that certain parts/terms of a program are not intended to be public. This usage is also aligned with the notion of privacy and the data protection regulations such as the GDPR European Parliament (2016). Here, the recommendation on what class of forgetting operators to use depends on the intended usage. If we aim to merely create a publicly viewable version of a program, then any approach that can be used to obtain uniform interpolants is suitable. Thus, as spelled out for Query Answering, would be most suitable. However, since this class does not come with a known syntactic operator, among the two, is preferable in this context. Alternatively, if the resulting program is meant to be a public version that is being used, possibly together with other programs, then the recommendations from Modular Reuse are more suitable.
Embeddings in Forgetting
Forgetting has been considered in the literature as a way to capture other problems with the aim to facilitate their study and comparison, as well as being able to re-use existing algorithms. For example, Zhang and Foo Zhang and Foo (2006) have studied how different approaches to updating logic programs can be embedded into their framework of solving conflicts which is built on forgetting, allowing then to analyze these different frameworks. Similarly, Eiter and Wang Eiter and Wang (2008) showed how inheritance logic programs Buccafurri et al. (2002) can be captured using forgetting, which in turn could be used to capture updates in logic programs. In these cases, picking a suitable approach depends to a considerable extent on the target, so a more detailed inspection on the approaches and what properties they satisfy is recommended (cf. Sect. 6.1).
Summing up, in our view, those classes of operators that are closely related with (SP) and (UP), i.e., , , , and , are in general the most useful, except for those applications that are closer related to uniform interpolation, in which case would be more suitable.
7 Conclusions
The landscape of forgetting in ASP comprises many operators and classes of operators defined to obey some subset of a large number of desirable properties proposed in the literature, while lacking a systematic account of all these results and their relations, making it all too difficult to get a clear understanding of the state-of-the-art, and even to choose the most adequate operator for some specific application.
This paper aimed at addressing this problem, presenting a systematic study of forgetting in ASP, including a thorough investigation of both properties and existing classes of forgetting operators, going well beyond a survey of the state-of-the-art as many novel results were included, thus achieving a truly comprehensive picture of the landscape.
In more detail, after providing a uniform definition of forgetting, we presented a detailed account on properties of forgetting found in the literature, that allowed us to establish existing relations between these properties independently of specific classes of forgetting operators.
We then recalled the classes of forgetting operators proposed in the literature in a systematic and uniform way, which allowed us to obtain several relations between them, including that some classes of forgetting operators coincide for restricted classes of programs, and that two of them even coincide in general. This was strengthened by complementary considerations on existing concrete forgetting operators and results on computational complexity so far spread out over the literature.
We also provided a complete study showing which properties are satisfied by which class of operators. This allowed a thorough discussion and comparison of the existing properties, their impact on comparisons between classes of forgetting operators, as well as considerations on unsuitable operators of forgetting, all contributing to guidelines for the choice of a concrete forgetting operator.
Regarding such choice, it clearly depends on the application in mind, and we discussed several applications and indicated options of forgetting operators to consider. As a brief summary, the following criteria are important in our view:
- •
Preservation of semantic relations: Arguably, (SP) best captures the notion of forgetting, but as this is in general impossible for classes of programs beyond Horn, approximations are in order, which requires a more detailed look into the satisfied properties.
- •
Concrete Operators: Preferably operators should provide results that are as similar as possible to the given program with the aim to preserve the declarative nature of ASP.
- •
Complexity: Even though forgetting is known to be computationally expensive, a lower computational complexity is preferable.
- •
Program Class: Depending on the application, certain operators may not be suitable.
As our study shows, optimizing all criteria simultaneously, is not suitable. E.g., the classes that provide closer approximations of (SP) are computationally more expensive, and simple concrete operators may only be defined for a restricted class of programs. Still, we believe that our results together with the considerations on suitable options for certain use cases provide substantial material to help making a choice that balances these criteria.
One important open issue is establishing further concrete operators that are efficient (within the theoretical limitations imposed) and preferably provide forgetting results that are as similar as possible to the original program to preserve declarative nature of the programs, in the line of work by Berthold et al. Berthold et al. (2019b). Other avenues for future research include investigating the potential connections between forgetting and the work on abstraction in the context of Answer Set Programs Saribatur and Eiter (2018); Saribatur et al. (2019); Saribatur and Eiter (2021); Saribatur et al. (2021). Alternatively, we may further pursue forgetting over extensions of the syntax of logic programs, in the line of the work by Aguado et al. Aguado et al. (2019), where an extension of the syntax of programs by a new connective, called fork, allows Strong Persistence to always hold (cf. Berthold et al. (2019a)). Also interesting is to study forgetting with semantics other than ASP, such as the FLP-semantics Truszczynski (2010) following the work by Wang et al. Wang et al. (2014), or the well-founded semantics Van Gelder et al. (1991) as considered by Knorr and Alferes Alferes et al. (2013); Knorr and Alferes (2014). Finally, one ambitious open problem is the generalization to non-ground programs with variables to be able to forget from ASP programs expressed in first-order terms allowing then to forget predicates or constants.
Acknowledgments
We thank the anonymous reviewers for their helpful comments. This work was partially supported by FCT project FORGET (PTDC/CCI-INF/32219/2017) and by FCT project NOVA LINCS (UIDB/04516/2020).
References
- Aguado et al. (2019) Aguado, F., Cabalar, P., Fandinno, J., Pearce, D., Pérez, G., and Vidal, C. 2019. Forgetting auxiliary atoms in forks. Artif. Intell. 275, 575–601.
- Alferes et al. (2013) Alferes, J. J., Knorr, M., and Wang, K. 2013. Forgetting under the Well-Founded Semantics. In Logic Programming and Nonmonotonic Reasoning, 12th International Conference, LPNMR 2013, Proceedings, P. Cabalar and T. C. Son, Eds. Lecture Notes in Computer Science, vol. 8148. Springer, 36–41.
- Alferes et al. (2000) Alferes, J. J., Leite, J. A., Pereira, L. M., Przymusinska, H., and Przymusinski, T. C. 2000. Dynamic updates of non-monotonic knowledge bases. Journal Log. Program. 45, 1-3, 43–70.
- Alviano et al. (2017) Alviano, M., Calimeri, F., Dodaro, C., Fuscà, D., Leone, N., Perri, S., Ricca, F., Veltri, P., and Zangari, J. 2017. The ASP system DLV2. In Logic Programming and Nonmonotonic Reasoning - 14th International Conference, LPNMR 2017, Proceedings, M. Balduccini and T. Janhunen, Eds. Lecture Notes in Computer Science, vol. 10377. Springer, 215–221.
- Baral and Zhang (2005) Baral, C. and Zhang, Y. 2005. Knowledge updates: Semantics and complexity issues. Artif. Intell. 164, 1-2, 209–243.
- Beierle and Timm (2019) Beierle, C. and Timm, I. J. 2019. Intentional forgetting: An emerging field in AI and beyond. Künstliche Intell. 33, 1, 5–8.
- Berthold et al. (2019a) Berthold, M., Gonçalves, R., Knorr, M., and Leite, J. 2019a. Forgetting in Answer Set Programming with anonymous cycles. In Progress in Artificial Intelligence, 19th EPIA Conference on Artificial Intelligence, EPIA 2019, Proceedings, Part II, P. M. Oliveira, P. Novais, and L. P. Reis, Eds. Lecture Notes in Computer Science, vol. 11805. Springer, 552–565.
- Berthold et al. (2019b) Berthold, M., Gonçalves, R., Knorr, M., and Leite, J. 2019b. A syntactic operator for forgetting that satisfies strong persistence. Theory Pract. Log. Program. 19, 5-6, 1038–1055.
- Bledsoe and Hines (1980) Bledsoe, W. W. and Hines, L. M. 1980. Variable elimination and chaining in a resolution-based prover for inequalities. In 5th Conference on Automated Deduction, Proceedings, W. Bibel and R. A. Kowalski, Eds. Lecture Notes in Computer Science, vol. 87. Springer, 70–87.
- Boole (1854) Boole, G. 1854. An Investigation of The Laws of Thought on Which are Founded the Mathematical Theories of Logic and Probabilities. Macmillian, London.
- Brass and Dix (1999) Brass, S. and Dix, J. 1999. Semantics of (disjunctive) logic programs based on partial evaluation. Journal Log. Program. 40, 1, 1–46.
- Buccafurri et al. (2002) Buccafurri, F., Faber, W., and Leone, N. 2002. Disjuctive logic programs with inheritance. Theory Pract. Log. Program. 2, 3, 293–321.
- Cabalar and Ferraris (2007) Cabalar, P. and Ferraris, P. 2007. Propositional theories are strongly equivalent to logic programs. Theory Pract. Log. Program. 7, 6, 745–759.
- Cabalar et al. (2007) Cabalar, P., Pearce, D., and Valverde, A. 2007. Minimal logic programs. In Logic Programming, 23rd International Conference, ICLP 2007, Proceedings, V. Dahl and I. Niemelä, Eds. Lecture Notes in Computer Science, vol. 4670. Springer, 104–118.
- Dantsin et al. (2001) Dantsin, E., Eiter, T., Gottlob, G., and Voronkov, A. 2001. Complexity and expressive power of logic programming. ACM Comput. Surv. 33, 3, 374–425.
- Davis and Zhong (2017) Davis, R. L. and Zhong, Y. 2017. The biology of forgetting - a perspective. Neuron 95, 3, 490–503.
- Delgrande (2017) Delgrande, J. P. 2017. A knowledge level account of forgetting. J. Artif. Intell. Res. 60, 1165–1213.
- Delgrande et al. (2013) Delgrande, J. P., Schaub, T., Tompits, H., and Woltran, S. 2013. A model-theoretic approach to belief change in Answer Set Programming. ACM Trans. Comput. Log. 14, 2, 14:1–14:46.
- Delgrande and Wang (2015) Delgrande, J. P. and Wang, K. 2015. A syntax-independent approach to forgetting in disjuctive logic programs. In Proceedings of the Twenty-Ninth AAAI Conference on Artificial Intelligence, B. Bonet and S. Koenig, Eds. AAAI Press, 1482–1488.
- Ebbinghaus (1885) Ebbinghaus, H. 1885. Über das Gedächtnis. Untersuchungen zur experimentellen Psychologie. Duncker & Humblot, Leipzig.
- Eiter and Fink (2003) Eiter, T. and Fink, M. 2003. Uniform equivalence of logic programs under the Stable Model Semantics. In Logic Programming, 19th International Conference, ICLP 2003, Proceedings, C. Palamidessi, Ed. Lecture Notes in Computer Science, vol. 2916. Springer, 224–238.
- Eiter et al. (2002) Eiter, T., Fink, M., Sabbatini, G., and Tompits, H. 2002. On properties of update sequences based on causal rejection. Theory Pract. Log. Program. 2, 6, 711–767.
- Eiter et al. (2004) Eiter, T., Fink, M., Tompits, H., and Woltran, S. 2004. On eliminating disjunctions in stable logic programming. In Principles of Knowledge Representation and Reasoning: Proceedings of the Ninth International Conference (KR2004), D. Dubois, C. A. Welty, and M. Williams, Eds. AAAI Press, 447–458.
- Eiter et al. (2007) Eiter, T., Fink, M., and Woltran, S. 2007. Semantical characterizations and complexity of equivalences in Answer Set Programming. ACM Trans. Comput. Log. 8, 3, 17.
- Eiter and Kern-Isberner (2019) Eiter, T. and Kern-Isberner, G. 2019. A brief survey on forgetting from a knowledge representation and reasoning perspective. Künstliche Intell. 33, 1, 9–33.
- Eiter and Wang (2008) Eiter, T. and Wang, K. 2008. Semantic forgetting in Answer Set Programming. Artif. Intell. 172, 14, 1644–1672.
- Erdem and Ferraris (2007) Erdem, E. and Ferraris, P. 2007. Forgetting actions in domain descriptions. In Proceedings of the Twenty-Second AAAI Conference on Artificial Intelligence. AAAI Press, 409–414.
- European Parliament (2016) European Parliament. 2016. General data protection regulation. Official Journal of the European Union L119/59.
- Gabbay et al. (2011) Gabbay, D. M., Pearce, D., and Valverde, A. 2011. Interpolable formulas in Equilibrium Logic and Answer Set Programming. J. Artif. Intell. Res. 42, 917–943.
- Gabbay et al. (2008) Gabbay, D. M., Schmidt, R. A., and Szalas, A. 2008. Second Order Quantifier Elimination: Foundations, Computational Aspects and Applications. College Publications.
- Gebser et al. (2018) Gebser, M., Kaminski, R., Kaufmann, B., Lühne, P., Obermeier, P., Ostrowski, M., Romero, J., Schaub, T., Schellhorn, S., and Wanko, P. 2018. The Potsdam answer set solving collection 5.0. Künstliche Intell. 32, 2-3, 181–182.
- Gebser et al. (2011) Gebser, M., Kaufmann, B., Kaminski, R., Ostrowski, M., Schaub, T., and Schneider, M. T. 2011. Potassco: The Potsdam answer set solving collection. AI Commun. 24, 2, 107–124.
- Gelfond and Lifschitz (1988) Gelfond, M. and Lifschitz, V. 1988. The Stable Model Semantics for logic programming. In Logic Programming, Proceedings of the Fifth International Conference and Symposium, (2 Volumes), R. A. Kowalski and K. A. Bowen, Eds. MIT Press, 1070–1080.
- Gelfond and Lifschitz (1991) Gelfond, M. and Lifschitz, V. 1991. Classical negation in logic programs and disjunctive databases. New Generation Computing 9, 3-4, 365–385.
- Ghilardi et al. (2006) Ghilardi, S., Lutz, C., and Wolter, F. 2006. Did I damage my ontology? A case for conservative extensions in Description Logics. In Proceedings, Tenth International Conference on Principles of Knowledge Representation and Reasoning, P. Doherty, J. Mylopoulos, and C. A. Welty, Eds. AAAI Press, 187–197.
- Gonçalves et al. (2021) Gonçalves, R., Janhunen, T., Knorr, M., and Leite, J. 2021. On syntactic forgetting under uniform equivalence. In Logics in Artificial Intelligence - 17th European Conference, JELIA 2021, Proceedings, W. Faber, G. Friedrich, M. Gebser, and M. Morak, Eds. Lecture Notes in Computer Science, vol. 12678. Springer, 297–312.
- Gonçalves et al. (2019) Gonçalves, R., Janhunen, T., Knorr, M., Leite, J., and Woltran, S. 2019. Forgetting in Modular Answer Set Programming. In The Thirty-Third AAAI Conference on Artificial Intelligence, AAAI 2019, The Thirty-First Innovative Applications of Artificial Intelligence Conference, IAAI 2019, The Ninth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2019. AAAI Press, 2843–2850.
- Gonçalves et al. (2020) Gonçalves, R., Knorr, M., ao Leite, J., and Woltran, S. 2020. On the limits of forgetting in Answer Set Programming. Artif. Intell. 286, 103–307.
- Gonçalves et al. (2016a) Gonçalves, R., Knorr, M., and Leite, J. 2016a. Forgetting in ASP: the forgotten properties. In Logics in Artificial Intelligence - 15th European Conference, JELIA 2016, Proceedings, L. Michael and A. C. Kakas, Eds. Lecture Notes in Computer Science, vol. 10021. Springer, 543–550.
- Gonçalves et al. (2016b) Gonçalves, R., Knorr, M., and Leite, J. 2016b. The ultimate guide to forgetting in Answer Set Programming. In Principles of Knowledge Representation and Reasoning: Proceedings of the Fifteenth International Conference, KR 2016, C. Baral, J. P. Delgrande, and F. Wolter, Eds. AAAI Press, 135–144.
- Gonçalves et al. (2016c) Gonçalves, R., Knorr, M., and Leite, J. 2016c. You can’t always forget what you want: On the limits of forgetting in Answer Set Programming. In ECAI 2016 - 22nd European Conference on Artificial Intelligence - Including Prestigious Applications of Artificial Intelligence (PAIS 2016), G. A. Kaminka, M. Fox, P. Bouquet, E. Hüllermeier, V. Dignum, F. Dignum, and F. van Harmelen, Eds. Frontiers in Artificial Intelligence and Applications, vol. 285. IOS Press, 957–965.
- Gonçalves et al. (2017) Gonçalves, R., Knorr, M., and Leite, J. 2017. Iterative variable elimination in ASP. In Progress in Artificial Intelligence - 18th EPIA Conference on Artificial Intelligence, EPIA 2017, Proceedings, E. C. Oliveira, J. Gama, Z. A. Vale, and H. L. Cardoso, Eds. Lecture Notes in Computer Science, vol. 10423. Springer, 643–656.
- Gonçalves et al. (2017) Gonçalves, R., Knorr, M., Leite, J., and Woltran, S. 2017. When you must forget: Beyond strong persistence when forgetting in Answer Set Programming. Theory Pract. Log. Program. 17, 5-6, 837–854.
- Heyting (1930) Heyting, A. 1930. Die formalen Regeln der intuitionistischen Logik. Sitzungsberichte der Preussischen Akademie der Wissenschaften. Physikalisch-mathematische Klasse, 42–56.
- Janhunen et al. (2009) Janhunen, T., Oikarinen, E., Tompits, H., and Woltran, S. 2009. Modularity aspects of disjunctive stable models. J. Artif. Intell. Res. 35, 813–857.
- Ji et al. (2015) Ji, J., You, J., and Wang, Y. 2015. On forgetting postulates in Answer Set Programming. In Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence, IJCAI 2015, Q. Yang and M. J. Wooldridge, Eds. AAAI Press, 3076–3083.
- Kluge and Gronau (2018) Kluge, A. and Gronau, N. 2018. Intentional forgetting in organizations: The importance of eliminating retrieval cues for implementing new routines. Front. Psychol. 9, 51, 1–17.
- Knorr and Alferes (2014) Knorr, M. and Alferes, J. J. 2014. Preserving strong equivalence while forgetting. In Logics in Artificial Intelligence - 14th European Conference, JELIA 2014. Proceedings, E. Fermé and J. Leite, Eds. Lecture Notes in Computer Science, vol. 8761. Springer, 412–425.
- Konev et al. (2012) Konev, B., Ludwig, M., Walther, D., and Wolter, F. 2012. The logical difference for the lightweight description logic EL. J. Artif. Intell. Res. 44, 633–708.
- Konev et al. (2013) Konev, B., Lutz, C., Walther, D., and Wolter, F. 2013. Model-theoretic inseparability and modularity of description logic ontologies. Artif. Intell. 203, 66–103.
- Konev et al. (2009) Konev, B., Walther, D., and Wolter, F. 2009. Forgetting and uniform interpolation in large-scale description logic terminologies. In IJCAI 2009, Proceedings of the 21st International Joint Conference on Artificial Intelligence, C. Boutilier, Ed. IJCAI/AAAI.
- Kontchakov et al. (2010) Kontchakov, R., Wolter, F., and Zakharyaschev, M. 2010. Logic-based ontology comparison and module extraction, with an application to DL-lite. Artif. Intell. 174, 15, 1093–1141.
- Lang et al. (2003) Lang, J., Liberatore, P., and Marquis, P. 2003. Propositional independence: Formula-variable independence and forgetting. J. Artif. Intell. Res. 18, 391–443.
- Lang and Marquis (2002) Lang, J. and Marquis, P. 2002. Resolving inconsistencies by variable forgetting. In Proceedings of the Eights International Conference on Principles and Knowledge Representation and Reasoning (KR-02), D. Fensel, F. Giunchiglia, D. L. McGuinness, and M. Williams, Eds. Morgan Kaufmann, 239–250.
- Lang and Marquis (2010) Lang, J. and Marquis, P. 2010. Reasoning under inconsistency: A forgetting-based approach. Artif. Intell. 174, 12-13, 799–823.
- Larrosa (2000) Larrosa, J. 2000. Boosting search with variable elimination. In Principles and Practice of Constraint Programming - CP 2000, 6th International Conference, Proceedings, R. Dechter, Ed. Lecture Notes in Computer Science, vol. 1894. Springer, 291–305.
- Larrosa et al. (2005) Larrosa, J., Morancho, E., and Niso, D. 2005. On the practical use of variable elimination in constraint optimization problems: ’still-life’ as a case study. J. Artif. Intell. Res. 23, 421–440.
- Leone et al. (2006) Leone, N., Pfeifer, G., Faber, W., Eiter, T., Gottlob, G., Perri, S., and Scarcello, F. 2006. The DLV system for knowledge representation and reasoning. ACM Trans. Comput. Log. 7, 3, 499–562.
- Lifschitz et al. (2001) Lifschitz, V., Pearce, D., and Valverde, A. 2001. Strongly equivalent logic programs. ACM Trans. Comput. Log. 2, 4, 526–541.
- Lifschitz et al. (1999) Lifschitz, V., Tang, L. R., and Turner, H. 1999. Nested expressions in logic programs. Ann. of Matt. and Artif. Intell. 25, 3-4, 369–389.
- Lin and Reiter (1994) Lin, F. and Reiter, R. 1994. Forget it! In AAAI Fall Symposium on Relevance. AAAI Press, 154–159.
- Lin and Reiter (1997) Lin, F. and Reiter, R. 1997. How to progress a database. Artif. Intell. 92, 1-2, 131–167.
- Liu and Wen (2011) Liu, Y. and Wen, X. 2011. On the progression of knowledge in the Situation Calculus. In IJCAI 2011, Proceedings of the 22nd International Joint Conference on Artificial Intelligence, T. Walsh, Ed. IJCAI/AAAI, 976–982.
- Lutz and Wolter (2011) Lutz, C. and Wolter, F. 2011. Foundations for uniform interpolation and forgetting in expressive description logics. In IJCAI 2011, Proceedings of the 22nd International Joint Conference on Artificial Intelligence, T. Walsh, Ed. IJCAI/AAAI, 989–995.
- Middeldorp et al. (1996) Middeldorp, A., Okui, S., and Ida, T. 1996. Lazy narrowing: Strong completeness and eager variable elimination. Theor. Comput. Sci. 167, 1&2, 95–130.
- Moinard (2007) Moinard, Y. 2007. Forgetting literals with varying propositional symbols. J. Log. Comput. 17, 5, 955–982.
- Pearce (1999) Pearce, D. 1999. Stable inference as intuitionistic validity. Journal Log. Program. 38, 1, 79–91.
- Rajaratnam et al. (2014) Rajaratnam, D., Levesque, H. J., Pagnucco, M., and Thielscher, M. 2014. Forgetting in action. In Principles of Knowledge Representation and Reasoning: Proceedings of the Fourteenth International Conference, KR 2014, C. Baral, G. D. Giacomo, and T. Eiter, Eds. AAAI Press.
- Richards and Frankland (2017) Richards, B. A. and Frankland, P. W. 2017. The persistence and transience of memory. Neuron 94, 6, 1071–1084.
- Sakama and Inoue (2003) Sakama, C. and Inoue, K. 2003. An abductive framework for computing knowledge base updates. Theory Pract. Log. Program. 3, 6, 671–713.
- Saribatur and Eiter (2021) Saribatur, Z. and Eiter, T. 2021. Omission-based abstraction for answer set programs. Theory Pract. Log. Program. 21, 2, 145–195.
- Saribatur and Eiter (2018) Saribatur, Z. G. and Eiter, T. 2018. Omission-based abstraction for answer set programs. In Principles of Knowledge Representation and Reasoning: Proceedings of the Sixteenth International Conference, KR 2018, M. Thielscher, F. Toni, and F. Wolter, Eds. AAAI Press, 42–51.
- Saribatur et al. (2021) Saribatur, Z. G., Eiter, T., and Schüller, P. 2021. Abstraction for non-ground answer set programs. Artif. Intell. 300, 103563.
- Saribatur et al. (2019) Saribatur, Z. G., Schüller, P., and Eiter, T. 2019. Abstraction for non-ground answer set programs. In Logics in Artificial Intelligence - 16th European Conference, JELIA 2019, Proceedings, F. Calimeri, N. Leone, and M. Manna, Eds. Lecture Notes in Computer Science, vol. 11468. Springer, 576–592.
- Shrestha (2017) Shrestha, P. 2017. Meaning and causes of forgetting. Psychstudy, November 17, 2017. https://www.psychestudy.com/cognitive/memory/meaning-causes-forgetting.
- Simons et al. (2002) Simons, P., Niemelä, I., and Soininen, T. 2002. Extending and implementing the Stable Model Semantics. Artif. Intell. 138, 1-2, 181–234.
- Slota and Leite (2012a) Slota, M. and Leite, J. 2012a. Robust equivalence models for semantic updates of answer-set programs. In Principles of Knowledge Representation and Reasoning: Proceedings of the Thirteenth International Conference, KR 2012, G. Brewka, T. Eiter, and S. A. McIlraith, Eds. AAAI Press.
- Slota and Leite (2012b) Slota, M. and Leite, J. 2012b. A unifying perspective on knowledge updates. In Logics in Artificial Intelligence - 13th European Conference, JELIA 2012. Proceedings, L. F. del Cerro, A. Herzig, and J. Mengin, Eds. Lecture Notes in Computer Science, vol. 7519. Springer, 372–384.
- Slota and Leite (2014) Slota, M. and Leite, J. 2014. The rise and fall of semantic rule updates based on SE-models. Theory Pract. Log. Program. 14, 6, 869–907.
- Truszczynski (2010) Truszczynski, M. 2010. Reducts of propositional theories, satisfiability relations, and generalizations of semantics of logic programs. Artif. Intell. 174, 16-17, 1285–1306.
- Turner (2003) Turner, H. 2003. Strong equivalence made easy: nested expressions and weight constraints. Theory Pract. Log. Program. 3, 4-5, 609–622.
- Van Gelder et al. (1991) Van Gelder, A., Ross, K. A., and Schlipf, J. S. 1991. The well-founded semantics for general logic programs. Journal of the ACM 38, 3, 620–650.
- Visser (1996) Visser, A. 1996. Uniform interpolation and layered bisimulation. In Gödel’96. Lecture Notes in Logic, vol. 6. Springer Verlag, 139–164.
- Wang et al. (2005) Wang, K., Sattar, A., and Su, K. 2005. A theory of forgetting in logic programming. In Proceedings, The Twentieth National Conference on Artificial Intelligence and the Seventeenth Innovative Applications of Artificial Intelligence Conference, M. M. Veloso and S. Kambhampati, Eds. AAAI Press / The MIT Press, 682–688.
- Wang et al. (2013) Wang, Y., Wang, K., and Zhang, M. 2013. Forgetting for answer set programs revisited. In IJCAI 2013, Proceedings of the 23rd International Joint Conference on Artificial Intelligence, F. Rossi, Ed. IJCAI/AAAI, 1162–1168.
- Wang et al. (2012) Wang, Y., Zhang, Y., Zhou, Y., and Zhang, M. 2012. Forgetting in logic programs under strong equivalence. In Principles of Knowledge Representation and Reasoning: Proceedings of the Thirteenth International Conference, KR 2012, G. Brewka, T. Eiter, and S. A. McIlraith, Eds. AAAI Press.
- Wang et al. (2014) Wang, Y., Zhang, Y., Zhou, Y., and Zhang, M. 2014. Knowledge forgetting in Answer Set Programming. J. Artif. Intell. Res. 50, 31–70.
- Wang et al. (2010) Wang, Z., Wang, K., Topor, R. W., and Pan, J. Z. 2010. Forgetting for knowledge bases in DL-lite. Ann. Math. Artif. Intell. 58, 1-2, 117–151.
- Weber (1986) Weber, A. 1986. Updating propositional formulas. In Expert Database Systems, Proceedings From the First International Conference, L. Kerschberg, Ed. Benjamin/Cummings, 487–500.
- Wong (2008) Wong, K.-S. 2008. Sound and complete inference rules for SE-consequence. J. Artif. Intell. Res. 31, 205–216.
- Wong (2009) Wong, K.-S. 2009. Forgetting in logic programs. Ph.D. thesis, The University of New South Wales.
- Zhang and Foo (2005) Zhang, Y. and Foo, N. Y. 2005. A unified framework for representing logic program updates. In Proceedings, The Twentieth National Conference on Artificial Intelligence and the Seventeenth Innovative Applications of Artificial Intelligence Conference, M. M. Veloso and S. Kambhampati, Eds. AAAI Press / The MIT Press, 707–713.
- Zhang and Foo (2006) Zhang, Y. and Foo, N. Y. 2006. Solving logic program conflict through strong and weak forgettings. Artif. Intell. 170, 8-9, 739–778.
- Zhang et al. (2005) Zhang, Y., Foo, N. Y., and Wang, K. 2005. Solving logic program conflict through strong and weak forgettings. In IJCAI-05, Proceedings of the Nineteenth International Joint Conference on Artificial Intelligence, L. P. Kaelbling and A. Saffiotti, Eds. Professional Book Center, 627–634.
- Zhang and Zhou (2009) Zhang, Y. and Zhou, Y. 2009. Knowledge forgetting: Properties and applications. Artif. Intell. 173, 16-17, 1525–1537.
Appendix
In this section, we prove the results stated in the paper. For Theorem 5, we divide it into several insightful results, grouped by the classes of operators, which we present before the theorem. These intermediate results are stated as theorems (Theorems 11-23), and to visually distinguish them from the theorems stated in the paper, we do not use bold face to write the theorem keyword and number. For the sake of simplicity and in order to highlight the important results, we prove some more technical lemmas only subsequently.
Theorem 1. The following relations hold for all :
- 1.
(W) is equivalent to (NP);
- 2.
(SP) implies (SE);
- 3.
(CP) and (SI) together are equivalent to (SP);
- 4.
(sC) and (wC) together are equivalent to (CP);
- 5.
(CP) implies (wE);
- 6.
(SE) and (SI) together imply (PP);
- 7.
(wSP) and (sSP) together are equivalent to (SP);
- 8.
(sC) and (SI) together imply (sSP);
- 9.
(wC) and (SI) together imply (wSP);
- 10.
(W) and (PP) together imply (SC);
- 11.
(SC) implies (SE);
- 12.
(W) implies (NC);
- 13.
(wC) is incompatible with (W) for over such that ;
- 14.
(wC) and (UI) together are incompatible with (RC) for over such that .
- 15.
(SI) implies (UI);
- 16.
(CP) and (UI) together are equivalent to (UP);
- 17.
(SI) implies ;
- 18.
(UP) is incompatible with .
Proof 7.11.
The first two results were already proven in the literature, so we focus on the remainder.
To show 3., first, let be a class of operators satisfying (SP). Let , , and a program. The fact that satisfies (CP) follows immediately from (SP), by taking . The proof that (SP) implies (SI) involves reasoning with subsignatures. For a program over , we denote by the set of HT-models of over signature . Let with . To show (SI) we aim to prove that , i.e., . We first prove that for the restricted signature , i.e., . Let be a program such that . Then, by (SP), we have . Also by (SP), we have . Therefore, . This means that for the restricted signature , i.e., . Now let be an HT-interpretation over . Then, since is a program over , we have that iff . Since , we have that iff . Since is a program over , we know that iff . Therefore, .
Now let be a class of operators satisfying (CP) and (SI). Let , , a program, and a program with . Using (SI) we have . Using (CP) we have . Putting these together we have . Therefore, (SP) holds.
Result 4. follows immediately from the fact that (sC) and (wC) correspond to the two inclusions on the equality condition in (CP).
To show 5., let be a class of operators satisfying (CP). Let , , and be two programs such that . By (CP), we have the equalities: . Thus, .
To show 6., let be a class of operators satisfying (SE) and (SI). Let , , and a program. Consider . Then clearly . By (SI), we have that . We can then conclude that . Now, by (SE) and the fact that , we can conclude that . Therefore, , i.e., for every rule such that and does not contain . Thus (PP) is satisfied.
Result 7. can be shown straightforwardly due to the fact that the conditions of (sSP) and (wSP) provide the two directions of the condition of (SP).
To show 8., let , and such that satisfies (sC) and (SI). Consider . By (SI), we have that . By (sC), we obtain which finishes the proof.
To show 9., let , and such that satisfies (wC) and (SI). Consider . By (wC), we obtain . Then, by (SI), we have which finishes the proof.
Results 10.–12. have been shown by Gonçalves et al. Gonçalves et al. (2017).
To show 13. and 14., we rely on the following example which fits the class of programs required. Consider from which we want to forget about . Note that though the program uses double negation, we can easily replace by two rules and and forget both and . To ease the presentation, we rely on . The idea is now to show that in both cases, it is not possible to satisfy both (sets of) properties simultaneously. Note that has two answer sets, and .
Consider first 13., and suppose both (wC) and (W) are satisfied. By (wC), we have that . But there is only one rule over that has (at least) these two answer sets: . Now, has an HT-model , while a forgetting result cannot have this HT-model. We obtain a contradiction to (W) being satisfied.
Now consider 14., and suppose that (wC), (UI), and (RC) are satisfied. Again, by (wC), we have that , and there is only one rule over that has (at least) these two answer sets: . Let this rule be in (RC). Clearly, . Consider such that . Note that thus cannot be itself. By (UI), we have . We consider two cases. First, has no HT-model . Then, it cannot have an HT-model . We derive a contradiction to the condition imposed by (UI). Second, has an HT-model (as well as ). But this is a contradiction to , which finishes the argument.
Then, 15. is a consequence of the definition of the respective properties where the uniform property, (UI), is just a special case of (SI), and the proof of 16. is a precise adaptation of that of 3. replacing all used programs by sets of facts. Finally, 17 is straightforward by the definitions of (SI) and , and 18. has been shown by Gonçalves et al. Gonçalves et al. (2021).
Theorem 2. For all Horn programs , every , and all forgetting operators in the classes , , , , , , , , , , and , it holds that .
Proof 7.12.
We will base our proof on Theorem 10 by Wang et al. Wang et al. (2014), a representation result for HT-Forgetting. This theorem implies that, whenever is closed for a class of programs, then it coincides with any class of forgetting operators that is closed for the same class and satisfies (W) and (PP) for that class. Our aim now is to prove that every class of forgetting operators mentioned in the statement of this theorem coincides with . Just for the sake of simplify we will use the results in Theorem 5. We should stress, nevertheless, that there is no circular dependence between these two results.
In order to prove that a class coincides with on the class of Horn programs, we need to prove that is closed for the class of Horn programs, and: (i) is closed for the class of Horn programs, (ii) satisfies (W) and (PP) on the class of Horn programs.
The fact that is closed for the class of Horn programs is precisely Theorem 8 Wang et al. (2014). So we now prove that each other class of operators satisfies (i) and (ii).
First, it is straightforward from the definitions of and that they coincide on the class of Horn programs. It is also clear that they are closed for this class. Since satisfies (W) (Theorem 5), satisfies (PP) (Theorem 5), and they coincide on the class of Horn programs, they both satisfy (PP) and (W) on that class.
Thm. 4 states that and coincide with on the class of disjunctive programs, whenever the result of is a disjunctive program. Since is closed for the class of Horn programs, it follows immediately that and coincide with when restricted to Horn programs.
It follows easily from the algorithm presented by Knorr and Alferes Knorr and Alferes (2014) that for , , and a Horn program . As a consequence, , just as , coincides with on the class of Horn programs.
Since coincides with for Horn programs, we have that satisfies (CP) for Horn programs. Therefore, by definition, coincides with for Horn programs.
In the case of , , and , the result is a consequence of Proposition 6 Gonçalves et al. (2020), which shows that coincides with when restricted to Horn programs, and Proposition 21 Gonçalves et al. (2020), which shows that the three classes , , and coincide when restricted to Horn programs.
Finally, in the case of , Proposition 1 Gonçalves et al. (2019) shows that coincides with when restricted to Horn programs.
Theorem 3. Consider the class of disjunctive programs. Then, and coincide.
Proof 7.13.
First recall that, on the one hand, given a disjunctive program and , is defined by removing from , all rules in which atoms from occur. On the other hand, given a disjunctive program and , for any , we have that is equivalent to , where . Since, as Wong Wong (2009) showed, the consequence is sound and complete with respect to , we have that . Therefore, . This means that iff iff iff . Therefore, .
Theorem 4. Let be a disjunctive program, , , , and . Then, whenever is strongly equivalent to a disjunctive program.
Proof 7.14.
Let be a disjunctive program, , such that is strongly equivalent to a disjunctive program. We only prove that since Theorem 3 already states that . Since both and satisfy (W), we have that and . Since satisfies (PP) (restricted to disjunctives programs) and is equivalent to a disjunctive program, we can use to conclude that . Since satisfies (PP) we can use to conclude that . Therefore, .
We now present several intermediate results, each presenting the set of properties satisfied and not satisfied by each class of operators considered in the paper, that we will combine to prove Theorem 5.
Theorem 7.15.
satisfies (W), (SI), (RC), (NC), (PI), (UI), , (E), (E), but not (sC), (wE), (SE), (PP), (SC), (CP), (SP), (wC), (wSP), (sSP) and (UP).
Proof 7.16.
To prove (W), let be a normal logic program over a signature , and . In the first step of the definition of we obtain an intermediate program by adding to , for each , the rules such that and are in . By Lemma 7.59 every model of both and is also a model of . Thus, . Therefore, , i.e., is strongly equivalent to . In the second and last step of the definition of , all rules from containing some are eliminated, thus obtaining . Since , we have that . Note that we proved the result for forgetting one variable. The general result then follows from (F6) Wong (2009), which was shown to hold for both Strong and Weak Forgetting.
For (SI), let be a normal logic program over a signature and let . Let be the set of rules of that do not mention any . It follows from the definition of Strong Forgetting that . Let be a normal logic program over . We now prove that . Let us prove the two inclusions.
For the left to right inclusion, let . Then, we have two cases:
- a)
-
. Then using the above observation we have that .
- b)
-
such that there exist and such that and . In this case, since does not contain rules with atoms from . Therefore, we can immediately conclude that , and then .
For the converse inclusion, let . Then, we have two cases:
- c)
-
. Then using the above observation we have that .
- d)
-
. If , then using the above observation we have . Otherwise, if such that there exist and such that and . In this case, also , and we can immediately conclude that .
The fact that satisfies (RC), (NC) and (PI) was proved by Gonçalves et al. Gonçalves et al. (2017).
The fact that satisfies (UI) follows from the already proved fact that satisfies (SI), and item 15 of Thm. 1.
The fact that satisfies follows from the already proved fact that satisfies (SI), and item 17 of Thm. 1.
The fact that (E) is satisfied follows from the simple observation that, when restricted to Horn programs, and coincide and the result is by definition always Horn.
Finally, the definition of the concrete operator by Zhang and Foo Zhang and Foo (2006) implicitly implies that satisfy (En).
For the negative results, Eiter and Wang Eiter and Wang (2008) provided counterexamples showing that does not satisfy (sC) and (wE); Wong Wong (2009) provided counterexamples showing that does not satisfy (SE); Wang et al. Wang et al. (2014) provided counterexamples showing that does not satisfy (PP), and Gonçalves et al. Gonçalves et al. (2017) provided a counterexample to show that does not satisfy (SC); Wang et al. Wang et al. (2013) presented a counterexample showing that does not satisfy (CP); and Knorr and Alferes Knorr and Alferes (2014) provided a counterexample showing that does not satisfy (SP).
For (wC), consider forgetting about from , . Since , to satisfy (wC), the result must have the two answer sets and , which is not possible for disjunctive programs. Therefore, does not satisfy (wC).
Gonçalves et al. Gonçalves et al. (2020) showed that does not satisfy (wSP) and (sSP), and that it does not satisfy (UP) Gonçalves et al. (2019).
Theorem 7.17.
satisfies (PP), (SI), (RC), (NC), (PI), (UI), , (E), (E), but not (sC), (wE), (SE), (W), (SC), (CP), (SP), (wC), (wSP), (sSP) and (UP).
Proof 7.18.
For (PP) consider the inferential system given by Wong Wong (2008), which is sound and complete with respect to HT-consequence for disjunctive programs. Suppose that , where . Now recall that every rule of that does not contain the atoms to be forgotten is in the result of forgetting. The rule (WGPPE) is the only inference rule in Wong’s system that allows to derive a rule without the atoms to be forgotten from rules that have those atoms. Since, by definition of Weak Forgetting, the result of applying (WGPPE) belongs to the result of forgetting, we have that must also be a consequence of the result of forgetting.
For (SI), let be a normal logic program over a signature and let . Let be the set of rules of that do not mention any . It follows from the definition of Weak Forgetting that . Let be a normal logic program over . We now prove that . Let us prove the two inclusions.
For the left to right inclusion, let . Then, we have three cases:
- a)
-
. Then using the above observation we have that .
- b)
-
such that there exist , such that and . In this case, since does not contain any . Therefore, we can immediately conclude that , and then .
- c)
-
such that there exists and . Then, since does not contain any . Therefore, we can conclude that , and then .
For the converse inclusion, let . Then, we have two cases:
- e)
-
. Then using the above observation we have that .
- f)
-
.
- i)
If , then using the above observation we have .
- ii)
If such that there exist , and such that and . In this case, also , and we can immediately conclude that .
- iii)
If such that there exist , and . Then, , and we can conclude that . Therefore, .
- i)
The fact that satisfies (RC), (NC) and (PI) was shown by Gonçalves et al. Gonçalves et al. (2017).
In the case of (UI) the result follows from the already proved fact that satisfies (SI), and item 15 of Thm. 1.
The fact that satisfies follows from the already proved fact that satisfies (SI), and item 17 of Thm. 1.
The fact that (E) is satisfied follows from the simple observation that, when restricted to Horn programs, and coincide and the result is by definition always Horn.
Finally, the definition of the concrete operator Zhang and Foo (2006) implicitly implies that satisfy (En).
For the negative results, Eiter and Wang Eiter and Wang (2008) provided counterexamples showing that does not satisfy (sC) and (wE); Wong Wong (2009) provides counterexamples showing that does not satisfy (SE); Wang et al. (2014) provided a counterexample showing that does not satisfy (W); the fact that does not satisfy (SC) was proved by Gonçalves et al. Gonçalves et al. (2017); Wang et al. Wang et al. (2013) presented a counterexample showing that does not satisfy (CP); and Knorr and Alferes Knorr and Alferes (2014) provided a counterexample showing that does not satisfy (SP).
For (wC), consider forgetting about from , . Since , to satisfy (wC), the result must have the two answer sets and , which is not possible for disjunctive programs. Therefore, does not satisfy (wC).
Gonçalves et al. Gonçalves et al. (2020) showed that does not satisfy (wSP) and (sSP), and that it does not satisfy (UP)Gonçalves et al. (2019).
Theorem 7.19.
satisfies (sC), (wE), (PI), (E), (E), (E), but not (SE), (W), (PP), (SI), (SC), (RC), (NC), (CP), (SP), (wC), (wSP), (sSP), (UP), (UI) and .
Proof 7.20.
Eiter and Wang Eiter and Wang (2008) proved that satisfies (sC) (Proposition 6) and (wE) (Proposition 4), and, by the definitions of concrete operators, it is implicit that satisfies (E) and (E). The fact that satisfies (PI) was proved by Gonçalves et al. Gonçalves et al. (2017). Finally, in the case of (E) the result follows from the observation that a variant of Eiter and Wang (2008) can be simplified which constructs a single program consisting of facts given that there does exist only at most one answer set in this case.
Regarding negative results, counterexamples have been presented in the literature for (SE) Eiter and Wang (2008), for (W) Wang et al. (2013), for (PP) Wang et al. (2014), and for (SI) Wong (2009). Also, the fact that does not satisfy (SC), (RC), and (NC) was proved by Gonçalves et al. Gonçalves et al. (2017). Wang et al. Wang et al. (2013) showed that does not satisfy (CP), and Knorr and Alferes Knorr and Alferes (2014) that it does not satisfy (SP). The counterexample for (wC) is similar to other cases, just by considering forgetting about from , . Since , to satisfy (wC), the result must have the two answer sets and , which is not possible for disjunctive programs. Therefore, does not satisfy (wC). Gonçalves et al. Gonçalves et al. (2020) showed that does not satisfy (wSP) and (sSP), and that it does not satisfy (UP) Gonçalves et al. (2019). For the case of (UI), consider forgetting about from . In this case, an operator of is such that , but adding before and after forgetting gives rise to results with different sets of answer sets. Finally, for the case of , consider over the signature , and the program over . Since and , then, according to the definition of in Eiter and Wang (2008), we have that and . We can now easily see that , and therefore .
Theorem 7.21.
satisfies (SE), (W), (PP), (SC), (RC), (NC), (PI), (E), (E), but not (sC), (wE), (SI), (CP), (SP), (wC), (wSP), (sSP), (UP), (UI), and (E).
Proof 7.22.
In the case of (SE), Wong Wong (2009) proved that satisfies (SE) (Lemma 4.27), and it is implicit that it satisfies (E). Delgrande and Wang Delgrande and Wang (2015) proved that satisfies (SE), (W) and (PP) (Proposition 1). Therefore, by Thm. 3, the results also hold for . The fact that satisfies (SC), (RC), (NC) and (PI) was proved by Gonçalves et al. Gonçalves et al. (2017). Finally, the fact that (E) holds follows from Theorem 8 Wang et al. (2014), which states that is closed for the class of Horn programs, and Thm. 4, which implies that the operators from are equivalent with those of for Horn programs.
For the negative results, in the case of (sC), consider forgetting about from . The result should be strongly equivalent to , i.e., the forgetting operation introduces a new answer set. Turning to (wE), this property requires that the results of forgetting about from and from have the same answer-sets, while requires that the results be strongly equivalent to and , which are obviously not equivalent.
Wong Wong (2009) provided a counterexample showing that does not satisfy (SI). The fact that does not satisfy (CP) and (SP) follows immediately from the fact that it does not satisfy (sC), and items 3. and 4. of Thm. 1. The counterexample for (wC) is similar to other cases, just by considering forgetting about from , . Since , to satisfy (wC), the result must have the two answer sets and , which is not possible for disjunctive programs. Therefore, does not satisfy (wC). Gonçalves et al. Gonçalves et al. (2020) showed that does not satisfy (wSP) and (sSP), and that it does not satisfy (UP) Gonçalves et al. (2019).
To prove that does not satisfy (UI), consider forgetting about from the program . We have that , and since satisfies (PP), we have that . Since , we have that . Therefore .
For the case of , consider the same program as for (UI), i.e., . Again, we have that , and since satisfies (PP), we have that . This means that . Since, by using the same argument as before, it is also the case that , we can conclude that . Since and satisfies (W), we have that , and therefore . We can then conclude that . On the other hand, we know that . Since , we have that . We therefore have two alternative possibilities: a) or b) . If a) is the case, then . If b) is the case we have that . In both cases we can conclude that . Therefore, , showing that does not satisfy .
Finally, for the negative result of (E), we prove for . The corresponding result for follows immediately from Theorem 3. Let be a normal program. Using Theorem 3 Delgrande and Wang (2015), the result of forgetting about from is equivalent to . Using the characterization result for a set of HT-models of normal programs Eiter et al. (2004) it not difficult to see that is not strongly equivalent to any normal program: just note that both and are HT-models of , but the so-called Here-intersection is not.
Theorem 7.23.
satisfies (sC), (wE), (SE), (PP), (SI), (SC), (RC), (NC), (PI), (sSP), (UI), , (E), (E), (E), but not (W), (CP), (SP), (wC), (wSP) and (UP).
Proof 7.24.
In the case of (sC), the result follows immediately from Lemma 7.51. For (wE), let , disjunctive programs over , and . Suppose . We aim to prove that . The result follows from Lemma 7.51 and the assumption , since .
Wong Wong (2009) proved that satisfies (SE) (Lemma 4.27), and it is implicit that it satisfies (E).
The fact that (PP) holds follows easily from the definition of . Note that, by definition, for every disjunctive rule not containing such that . Therefore, for every disjunctive rule not containing and such that we have that .
For (SI), let , be a program over a signature , , and a program over . We aim to prove that . Consider the following sequence of equalities:
The first and fourth equalities follow from Lemma 7.49. The second and the third are well-known properties of HT-models. The fifth equality follows from the fact that does not contain any and Lemma 7.57. We then have that . Since both and do not contain any , the above equality immediately entails that .
The fact that satisfies (SC), (RC), (NC) and (PI) was proved by Gonçalves et al. Gonçalves et al. (2017).
Property (sSP) follows from Thm. 1 and the fact that satisfies (sC) and (SI).
In the case of (UI) the result follows from the already proved fact that satisfies (SI), and item 15 of Thm. 1.
The fact that satisfies follows from the already proved fact that satisfies (SI), and item 17 of Thm. 1.
For (E), let and a Horn program. Using Lemma 7.49 we have that . Since is a normal program, it can be easily shown that satisfies all conditions characterizing a class of HT-models of a Horn program Wang et al. (2014), taking into account that satisfies these conditions.
For (E), let and a normal program. Using Lemma 7.47 we have that . Since is a normal program, it can be easily shown that satisfies all conditions characterizing a class of HT-models of a normal program Eiter et al. (2004), taking into account that satisfies these conditions.
For the negative results, Wang et al. Wang et al. (2012) provided counterexamples showing that does not satisfy . The negative results for (CP) and (SP) can be illustrated with forgetting about from , . Since , the result must have two answer sets and , which is not possible for disjunctive programs obtained from operators in .
The counterexample for (wC) is similar to other cases, just by considering forgetting about from , . Since , to satisfy (wC), the result must have the two answer sets and , which is not possible for disjunctive programs. Therefore, does not satisfy (wC), which also implies that it does not satisfy (wSP) by Thm. 1.
Theorem 7.25.
satisfies (SE), (W), (PP), (SI), (SC), (RC), (NC), (PI), (UI), , (E), (E), but not (sC), (wE), (CP), (SP), (wC), (wSP), (sSP), (UP), (E) and (E).
Proof 7.26.
Wang et al. Wang et al. (2012) proved that satisfies (SE) (Proposition 3), (W), (PP) (Theorem 3), (E) (Theorem 2), and (E) (Theorem 1).
For (SI), let , be a program over a signature , , and a program over . We aim to prove that , which is the same as . Consider the following sequence of equalities.
The first equality follows from a well-known property of -models. The second equality follows from the definition of -forgetting. The third equality follows from Lemma 7.61, while the fourth equality follows from Lemma 7.57. Finally, the last equality also follows from the definition of -forgetting.
The fact that satisfies (SC), (RC), (NC) and (PI) was proved by Gonçalves et al. Gonçalves et al. (2017). In the case of (UI) the result follows from the already proved fact that satisfies (SI), and item 15 of Thm. 1.
The fact that satisfies follows from the already proved fact that satisfies (SI), and item 17 of Thm. 1.
For the negative results, in the case of (sC), consider forgetting about from . The result should be strongly equivalent to , i.e., the forgetting operation introduces a new answer-set. Turning to (wE), this property requires that the results of forgetting about from and from have the same answer sets, while requires that the results be strongly equivalent to and , which are obviously not equivalent.
The fact that does not satisfy (CP) and (SP) follows immediately from the fact that it does not satisfy (sC), and items 3. and 4. of Thm. 1.
For (wC), consider forgetting about from , . Since , to satisfy (wC), the result must have the two answer sets and , but the result of for is equivalent to the empty program. Therefore, the answer set is not preserved, and thus does not satisfy (wC).
The fact that does not satisfy (wSP) and (sSP) follows immediately from the fact that it does not satisfy (sC) and (wC), and items 8. and 9. of Thm. 1.
Gonçalves et al. Gonçalves et al. (2019) showed that does not satisfy (UP). Wang Wang et al. (2012) provided counterexamples showing that does not satisfy (E) and (E).
Theorem 7.27.
satisfies (sC), (wE), (SE), (PP), (PI), (CP), (wC), (E), (E), but not (W), (SI), (SC), (RC), (NC), (SP), (wSP), (sSP), (UP), (UI), , (E) and (E).
Proof 7.28.
By definition, satisfies (CP). From this and Thm. 1 it follows easily that satisfies (sC), (wC) and (wE). Wang et al. Wang et al. (2013) have shown that satisfies (SE), (PP), (E) (Proposition 1), and (E) (Theorem 3), and the fact that satisfies (PI) was proved by Gonçalves et al. Gonçalves et al. (2017).
For the negative results, Wang et al. Wang et al. (2013) pointed out that does not satisfy (W). In the case of (SI), consider forgetting about from , . In this case we have that for , so adding results precisely in a program containing this fact. If we add before forgetting, then the -models of the result of forgetting, ignoring all occurrences of , correspond precisely to , and . To preserve the answer sets, only the last of these three can be considered. Hence, and (or strongly equivalent rules) occur in the result of forgetting for any , and (SI) does not hold. Since this counterexample only adds a fact before and after forgetting, it also shows that (UI) does not hold.
The fact that does not satisfy (SC), (RC), (NC) was proved by Gonçalves et al. Gonçalves et al. (2017). Knorr and Alferes Knorr and Alferes (2014) provided a counterexample showing that does not satisfy (SP).
Gonçalves et al. Gonçalves et al. (2020) showed that does not satisfy (wSP) and (sSP), and that it does not satisfy (UP) Gonçalves et al. (2019). For the case of , consider a program . We can easily check that for any , we have that . We can then conclude that . On the other hand, since satisfies (CP), we have that . But then, , and we can conclude that , showing that does not satisfy .
Wang et al. Wang et al. (2013) provided counterexamples showing that does not satisfy (E) and (E).
Theorem 7.29.
satisfies (sC), (wE), (SE), (W), (PP), (SI), (SC), (RC), (NC), (PI), (CP), (SP), (wC), (wSP), (sSP), (UP), (UI), , and (E).
Proof 7.30.
By definition of the class, (SP) is satisfied. From this fact it easily follows from the results in Thm. 1 that satisfies (sC), (wE), (SE), (PP), (SI), (CP), (SP), (wC), (wSP), (sSP), (UP), (UI), .
For (W), (SC), (RC), (NC) and (PI), first note that Thm. 1 Gonçalves et al. (2020) states that there is no operator over a class of programs that contains normal programs and that satisfies (SP). Therefore, every operator in is necessarily defined over . Thm. 2 states that when restricted to Horn programs the result of operators in is strongly equivalent to the result of operators in the class . Since Thm. 7.21 states that satisfies (W), (SC), (RC), (NC), (PI) and (E), so does .
Theorem 7.31.
satisfies (SE), (W), (PP), (SC), (RC), (NC), (PI), (E), (E), but not (sC), (wE), (SI), (CP), (SP), (wC), (wSP), (sSP), (UP), (UI), and (E).
Theorem 7.33.
satisfies (SE), (PP), (SI), (wC), (wSP), (UI), , (E), (E), but not (sC), (wE), (W), (SC), (RC), (NC), (PI), (CP), (SP), (sSP), (UP), (E) and (E).
Proof 7.34.
Gonçalves et al. Gonçalves et al. (2020) showed that satisfies (SE), (PP), (SI), (wC), (wSP), (E) and (E). Property (UI) follows from item 15 of Thm. 1 and the fact that satisfies (SI).
The fact that satisfies follows from the already proved fact that satisfies (SI), and item 17 of Thm. 1.
The negative results for (sC), (wE), (W), (CP), (SP), (sSP), (E) and (E) were proven by Gonçalves et al. Gonçalves et al. (2020).
For (SC), consider the program . We have that , but , since is strongly equivalent to and is strongly equivalent to .
The fact that does not satisfy (RC) follows from item 14. of Thm. 1 and the fact that satisfies (wC) and (UI).
For (NC) consider the program . Then, for we have that . Therefore, , but it is not the case that .
The fact that does not satisfy (PI) follows from the result given in Gonçalves et al. (2017) about the impossibility of iteration while satisfying (SP). The counterexample for (UP) was presented by Gonçalves et al. Gonçalves et al. (2019).
Theorem 7.35.
satisfies (sC), (SE), (PP), (SI), (RC), (NC), (sSP), (UI), , (E), (E), but not (wE), (W), (SC), (PI), (CP), (SP), (wC), (wSP), (UP), (E) and (E).
Proof 7.36.
Gonçalves et al. Gonçalves et al. (2020) showed that satisfies (sC), (SE), (PP), (SI), (sSP), (E) and (E).
To show that satisfies (NC), let be a rule such that . Then, . Let . Then it is clear that , and as a consequence we can conclude that . Consider two cases: first let such that . In this case, since and . Now take such that . By definition of , we have that , and therefore . In both cases, , and therefore .
To prove (RC), let be a rule such that . Let . We can easily prove that if and then . Now, since satisfies (NC), we can conclude that . We aim to prove that . For that, let . Then, there exists such that , where . We now prove that . Suppose not. Then, since , we have that is also a model of , which contradicts the fact that . Since must be empty we can conclude that . Since , the above consideration entails that , which completes the proof.
Property (UI) follows from item 15 of Thm. 1 and the fact that satisfies (SI).
Property follows from item 17 of Thm. 1 and the fact that satisfies (SI).
The negative results for (wE), (W), (PI), (CP), (SP), (wC), (wSP), (E) and (E) are due to Gonçalves et al. Gonçalves et al. (2020).
For (SC), consider the program . We have that , but , since contains , therefore , but is strongly equivalent to .
The fact that does not satisfy (PI) follows from the result about the impossibility of iteration while satisfying (SP) Gonçalves et al. (2017).
The counterexample for (UP) was given by Gonçalves et al. Gonçalves et al. (2019).
Theorem 7.37.
satisfies (sC), (wE), (SE), (PP), (CP), (wC), (sSP), (E), (E), but not (W), (SI), (SC), (RC), (NC), (PI), (SP), (wSP), (UP), (UI), , (E) and (E).
Proof 7.38.
Gonçalves et al. Gonçalves et al. (2020) showed that satisfies (sC), (wE), (SE), (PP), (CP), (wC), (sSP), (E), (E), as well as the negative results for (W), (SI), (SP), (wSP), (E) and (E).
In the case of (SC), consider the program . We have that , but , since is strongly equivalent to and is strongly equivalent to .
In the case of (RC) consider forgetting about from the program . We have that is strongly equivalent to . Nevertheless, there is no rule over and such that and .
For (NC) consider the program . Then, for we have that . Therefore, , but it is not the case that .
The fact that does not satisfy (PI) follows from the result about the impossibility of iteration while satisfying (SP) Gonçalves et al. (2017). The counterexample for (UP) was presented by Gonçalves et al. Gonçalves et al. (2019).
The negative result for (UI) follows from item 16. of Thm. 1 and the fact that satisfies (CP) but not (UP).
In the case of , consider a program over such that , . By definition, for , we have that forgetting is such that . Consider over such that , . Then, , . Again by definition, for , we have that . On the other hand, . This then implies that , which means that , thus showing that does not satisfy .
Theorem 7.39.
satisfies (sC), (wE), (SE), (PI), (CP), (wC), (UP), (UI), (E), (E), but not (W), (PP), (SI), (SC), (RC), (NC), (SP), (wSP), (sSP), , (E) and (E).
Proof 7.40.
Gonçalves et al. Gonçalves et al. (2019) showed that satisfies (sC), (wE), (SE), (PI), (CP), (wC), (UP), (UI) (E), (E), and that it does not satisfy (W), (PP), (SI), (SP), (E) and (E). Also, a weaker version of (PI) was proved, showing that it is possible to iterate the operators when applied in the context of modular logic programming. Gonçalves et al. Gonçalves et al. (2021) proved that does not satisfy .
In the case of (SC), consider the program . We have that , but , since is strongly equivalent to and is strongly equivalent to .
The negative result for (RC) follows from item 14. of Thm. 1 and the fact that satisfies (wC) and (UI).
For (NC) consider the program . Then, for we have that . Therefore, , but it is not the case that .
For (wSP), consider such that . Then, by definition . Consider a program over such that (over ). Then, , thus , but .
For (sSP), consider such that . Then, by definition . Consider a program over s.t. (over ). Then has an answer set , but this is not an answer set of .
Theorem 6. For Horn programs, the following holds:
- •
, , , , , , , , , , and satisfy (W), (RC), (SP), and (PI);
- •
satisfies (CP) and (PI);
- •
satisfies the same properties as in the general case.
Proof 7.42.
The fact that , , , , , , , , , , and , when restricted to Horn programs, satisfy (W), (RC), (SP), and (PI) follows easily from Thm. 2, and the fact that satisfies all these properties.
The fact that , when restricted to Horn programs, additionally satisfies (CP) follows easily from the fact that any Horn program has at most one answer set, i.e., or . Then, for every , by definition we have . Since has at most one element we have or . Therefore, satisfies (CP) when restricted to Horn programs.
Theorem 7. If a class of operators over a class of logic programs satisfies property (CP), then every operator of that class can be used to obtain uniform interpolants w.r.t. .
Proof 7.43.
For that, assume that satifies (CP), i.e, given and , we have that . Condition of uniform interpolation follows easily from the fact that every is such that , and therefore . For condition , we let be a program such that and , and we aim to conclude that . Let . Then, since we are assuming that , we know that there is such that . Given that , we can conclude that , and since is a program over , we can conclude that .
Theorem 8. Any forgetting operator of the classes , , , and can be used to obtain uniform interpolants with respect to .
Proof 7.44.
The case of , , and follows from Thm.7 and the fact that these classes satisfy (CP).
In the case of let be a program and . We start by considering . Taking into account the definition of , it is easy to see that, for every , we have that . This implies that , and since is over , we also have that , meaning that condition of uniform interpolation is satisfied. Condition is a consequence of satisfying (sC), i.e., .
Theorem 9. A class of forgetting operators can be used to obtain uniform interpolants w.r.t. iff satisfies both (W) and (PP).
Proof 7.45.
The result follows immediately, since the conditions and of uniform interpolation precisely coincide with (W) and (PP), respectively.
Theorem 10. Any forgetting operator of the classes and can be used to obtain uniform interpolants with respect to .
Proof 7.46.
The proof follows immediately from Thm. 9 and the fact that and satisfy (W) and (PP).
Lemma 7.47.
Let be a disjunctive program over a signature and . Then, for every we have
Proof 7.48.
Let be a disjunctive program over a signature , and . We prove the equality for and the result extends to every since these only differ from up to strong equivalence. We prove both inclusions of the equality . In what follows let .
We start with the left to right inclusion. Let such that . Since does not occur in we have that . Since does not contain , then . We now show that , for every . If such that it does not contain , then clearly , and so . If and it contains , then we have the following cases:
- •
If is a tautology, then clearly ;
- •
If , then, since does not contain , trivially ;
- •
If then the rule . Suppose . Then we have two cases:
- –
, which is an absurd since and ;
- –
and . This is an absurd since , , and .
- –
- •
If then . Suppose . Then we have two cases:
- –
, which is an absurd since and ;
- –
and . This is an absurd since , , and .
- –
- •
If then . Suppose . Then we have two cases:
- –
, which is an absurd since and ;
- –
and . This is an absurd since in this case , and .
- –
We now prove the right to left inclusion. Let . Since then clearly does not contain . We prove that for every we have that . This immediately implies that . Let . We consider the following cases.
- •
. In this case, since , we have that , and therefore ;
- •
If then we have the following three possibilities:
- –
such that . Suppose . Then we have two cases:
- *
, which is an absurd since and ;
- *
and . This is an absurd since , , and .
- *
- –
and . Suppose . Then we have two cases:
- *
, which is an absurd since and ;
- *
and . This is an absurd since , , and .
- *
- –
and . Suppose . Then we have two cases:
- *
, which is an absurd since and ;
- *
and . This is an absurd since , and .
- *
- –
Lemma 7.49.
Let be a disjunctive program over a signature and . Then, for every we have
Proof 7.50.
The result follows easily by induction on the number of elements of , using the definition of and Lemma 7.51.
Lemma 7.51.
Let be a disjunctive program over a signature and . Then, for every
Proof 7.52.
Let . We will prove both inclusions.
Let us start with the left to right inclusion. Let . Then and there is no such that . We can conclude that , since otherwise , which contradicts .
Since , by Lemma 7.49, we have that , and therefore, . We need to prove that there is no such that . Suppose there is. Then , thus contradicting the fact that .
Now let us prove the right to left inclusion. Let such that . Then and there is no such that . Since we have . We just need to prove that there is no such that . Suppose there is. Then, , which contradicts .
Lemma 7.53.
Let be a signature and . Let an -interpretation over that does not contain any and such that . Then, for every formula over not containing any , we have that iff .
Proof 7.54.
We prove the result by induction on the structure of the formula . For the base case suppose is a propositional atom , thus . Then, iff iff with (since ) iff .
For the induction step we only consider the case . The other cases are straightforward. We have that iff (i) and (ii) whenever . From a well known result from classical logic, we have that iff (since no occurs in nor in ). The equivalence of condition (ii) with the correspondent one for follows easily using induction hypothesis.
Lemma 7.55.
Let be a signature and . For every formula over not containing any we have that
Proof 7.56.
Let us prove both inclusions. For the left to right inclusion, assume that . Then, . Therefore, .
Lemma 7.57.
Let be a signature, , and programs over , such that does not contain . Then,
Proof 7.58.
We prove both inclusions. Let us start with the left to right inclusion. Let . Then, . Therefore, there exists such that . From this we can conclude that and , and thus and . Therefore, we have that , thus .
For the reverse inclusion consider that . Then, , and thus and . Therefore, there exists such that . Since (by Lemma 7.55 and since no occurs in ), and since , we can conclude that . Therefore, , and then . We can then conclude that .
Lemma 7.59.
Let be a signature and . Let , , , , sets of atoms over . Consider the rules
Then,
Proof 7.60.
Let . Then, we have
-
,
-
whenever ,
-
,
-
whenever .
Our aim is to prove that , i.e.,
-
and
-
whenever .
If then and trivially hold. So, suppose that . If , then again and trivially hold. So assume that . Then from and we can conclude that , and so holds. If then immediately holds. So assume that . Then and allow us to conclude that , and so holds.
Lemma 7.61.
Let be a signature, , and programs over . Then, .
Proof 7.62.
Let be an -interpretation over . Consider the following sequence of equivalent sentences:
-
iff
-
, for each iff
-
for each iff
-
iff
-
.