arXiv is now an independent nonprofit! Learn more
License: CC BY-NC-SA 4.0
arXiv:2107.07016v3 [cs.AI] 07 Dec 2021
\jdate

March 2003 \pagerangeForgetting in Answer Set Programming – A Survey7.62

Forgetting in Answer Set Programming – A Survey

DOI: S1471068401001193
RICARDO GONÇALVES and MATTHIAS KNORR and JOÃO LEITE
NOVA LINCS
   Departamento de Informática    Faculdade de Ciências e Tecnologia    Universidade Nova de Lisboa    Portugal Email: rjrg—mkn—jleite@fct.unl.pt
2003
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 Programs

1 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 𝒜\mathcal{A}, i.e., a finite set of (propositional) atoms, also termed propositional variables synonymously. An (extended) logic program PP over 𝒜\mathcal{A} is a finite set of (extended) rules of the form

a1akb1,,bl,notc1,,notcm,notnotd1,,notnotdn,\displaystyle a_{1}\vee\ldots\vee a_{k}\leftarrow b_{1},...,b_{l},not\,c_{1},...,not\,c_{m},not\,not\,d_{1},...,not\,not\,d_{n}\;, (1)

where all a1,,ak,b1,,bl,c1,,cma_{1},\ldots,a_{k},b_{1},\ldots,b_{l},c_{1},\ldots,c_{m}, and d1,,dnd_{1},\ldots,d_{n} are atoms of 𝒜\mathcal{A}. Such rules rr are also commonly written in a more succinct way as

AB,notC,notnotD,A\leftarrow B,not\,C,not\,not\,D\;, (2)

where A={a1,,ak}\mathit{A}=\{a_{1},\ldots,a_{k}\}, B={b1,,bl}\mathit{B}=\{b_{1},\ldots,b_{l}\}, C={c1,,cm}\mathit{C}=\{c_{1},\ldots,c_{m}\}, and D={d1,,dn}\mathit{D}=\{d_{1},\ldots,d_{n}\}, and we use both forms interchangeably. For each rule rr, we distinguish the head, ℎ𝑒𝑎𝑑(r)=A\mathit{head}(r)=A, and its body, 𝑏𝑜𝑑𝑦(r)=BnotCnotnotD\mathit{body}(r)=\mathit{B}\cup not\,\mathit{C}\cup not\,not\,\mathit{D}, where notCnot\,C and notnotDnot\,not\,D represent {notppC}\{not\,p\mid p\in C\} and {notnotppD}\{not\,not\,p\mid p\in D\}, respectively. We write the set of atoms appearing in PP as 𝒜(P)\mathcal{A}(P) and the class of (extended) logic programs as 𝒞e\mathcal{C}_{e}. 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 rr: if n=0n=0, then we call rr disjunctive; if, in addition, k1k\leq 1, then rr is normal; if on top of that m=0m=0, then we call rr Horn; if moreover l=0l=0, then we call rr a fact. We also admit constraints, which are (extended) rules where k=0k=0. The classes of disjunctive, normal, and Horn programs, 𝒞d\mathcal{C}_{d}, 𝒞n\mathcal{C}_{n}, and 𝒞H\mathcal{C}_{H}, are defined as a finite set of disjunctive, normal, and Horn rules, respectively. We have 𝒞H𝒞n𝒞d𝒞e\mathcal{C}_{H}\subset\mathcal{C}_{n}\subset\mathcal{C}_{d}\subset\mathcal{C}_{e}.

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 PP with respect to a set II of atoms:

PI={AB:r of the form (2) in P such that CI= and DI}.P^{I}=\{\mathit{A}\leftarrow\mathit{B}:r\text{ of the form (\ref{l:shortRule}) in }P\text{ such that }\mathit{C}\cap I=\emptyset\text{ and }\mathit{D}\subseteq I\}.

An HT-interpretation is a pair X,Y\langle X,Y\rangle s.t. XY𝒜X\subseteq Y\subseteq\mathcal{A}. Note that we follow a common convention and usually abbreviate sets in HT-interpretations such as {a,b}\{a,b\} with the sequence of its elements, abab. Given a program PP, an HT-interpretation X,Y\langle X,Y\rangle is an HT-model of PP if YPY\models P and XPYX\models P^{Y}, where \models is the standard consequence relation for classical logic and where programs are interpreted as conjunctions of classical implications

b1bl¬c1¬cm¬¬d1¬¬dna1akb_{1}\wedge...\wedge b_{l}\wedge\neg c_{1}\wedge...\wedge\neg c_{m}\wedge\neg\neg d_{1}\wedge...\wedge\neg\neg d_{n}\rightarrow a_{1}\vee\ldots\vee a_{k}

corresponding to its rules rr of the form (1) where ¬\neg, \wedge, and \vee denote classical negation, conjunction and disjunction, respectively. We occasionally admit for the sake of readability that the HT-models of a program PP are restricted to 𝒜(P)\mathcal{A}(P) even if 𝒜(P)𝒜\mathcal{A}(P)\subset\mathcal{A}. The set of all HT-models of PP is written 𝒯(P)\mathcal{HT}(P). Given two programs P1P_{1} and P2P_{2}, if 𝒯(P1)𝒯(P2)\mathcal{HT}(P_{1})\subseteq\mathcal{HT}(P_{2}), then P1P_{1} entails P2P_{2} in HT, written P1𝖧𝖳P2P_{1}\models_{\sf HT}P_{2}. Also, P1P_{1} and P2P_{2} are HT-equivalent, written P1𝖧𝖳P2P_{1}\equiv_{\sf HT}P_{2}, if 𝒯(P1)=𝒯(P2)\mathcal{HT}(P_{1})=\mathcal{HT}(P_{2}).

A set of atoms YY is an answer set of PP if Y,Y𝒯(P)\langle Y,Y\rangle\in\mathcal{HT}(P), and there is no XYX\subset Y such that X,Y𝒯(P)\langle X,Y\rangle\in\mathcal{HT}(P). We denote by 𝒜𝒮(P)\mathcal{AS}(P) the set of all answer sets of PP. For 𝒞d\mathcal{C}_{d} and its subclasses, all I𝒜𝒮(P)I\in\mathcal{AS}(P) are pairwise incomparable. A program PP is consistent if 𝒜𝒮(P)\mathcal{AS}(P) is not empty.

Example 1

Consider the following program PP:

a\displaystyle a notb\displaystyle\leftarrow not\,b b\displaystyle b notc\displaystyle\leftarrow not\,c e\displaystyle e d\displaystyle\leftarrow d d\displaystyle d a\displaystyle\leftarrow a

We can show that b,bde\langle b,bde\rangle is an HT-model of PP because {b,d,e}P\{b,d,e\}\models P and {b}P{b,d,e}\{b\}\models P^{\{b,d,e\}} where P{b,d,e}P^{\{b,d,e\}} is as follows:

b\displaystyle b \displaystyle\leftarrow e\displaystyle e d\displaystyle\leftarrow d d\displaystyle d a\displaystyle\leftarrow a

It is then easy to see that {b,d,e}\{b,d,e\} is not an answer set of PP (given that b,bde\langle b,bde\rangle is an HT-model). Similarly, {b,d}\{b,d\} is not an answer set of PP because {b,d}⊧̸P\{b,d\}\not\models P. In fact, we can verify that {b}\{b\} is the only answer set of PP, and that PP 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 P1,P2P_{1},P_{2} are equivalent, written P1P2P_{1}\equiv P_{2}, if 𝒜𝒮(P1)=𝒜𝒮(P2)\mathcal{AS}(P_{1})=\mathcal{AS}(P_{2}), 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 P1,P2P_{1},P_{2} are uniformly equivalent, written P1uP2P_{1}\equiv_{u}P_{2}, if 𝒜𝒮(P1R)=𝒜𝒮(P2R)\mathcal{AS}(P_{1}\cup R)=\mathcal{AS}(P_{2}\cup R) for every set RR 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 P1,P2P_{1},P_{2} are strongly equivalent if 𝒜𝒮(P1R)=𝒜𝒮(P2R)\mathcal{AS}(P_{1}\cup R)=\mathcal{AS}(P_{2}\cup R) for every R𝒞eR\in\mathcal{C}_{e}. It is well-known that two programs P1,P2P_{1},P_{2} are strongly equivalent exactly when P1𝖧𝖳P2P_{1}\equiv_{\sf HT}P_{2} [59], and we therefore use 𝖧𝖳\equiv_{\sf HT} 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 P1,P2P_{1},P_{2} are relativized equivalent w.r.t. V𝒜V\subseteq\mathcal{A}, written P1VP2P_{1}\equiv_{V}P_{2}, if 𝒜𝒮(P1R)=𝒜𝒮(P2R)\mathcal{AS}(P_{1}\cup R)=\mathcal{AS}(P_{2}\cup R) for every R𝒞eR\in\mathcal{C}_{e} s.t. 𝒜(R)𝒜\V\mathcal{A}(R)\subseteq\mathcal{A}\text{\textbackslash}V. Thus, strong equivalence and equivalence can be considered special cases of relativized equivalence, where the considered set VV is empty and identical to 𝒜\mathcal{A}, respectively.

Example 2

Consider P1={b}P_{1}=\{b\leftarrow\}. Then P1P_{1} and PP from Ex. 1 are equivalent, but neither strongly nor uniformly equivalent, e.g., because adding R={c}R=\{c\leftarrow\} to both programs yields different answer sets, namely {b,c}\{b,c\} and {a,c,d,e}\{a,c,d,e\}, respectively. Also, neither is an HT-consequence of the other, since ,bc𝒯(P)\langle\emptyset,bc\rangle\in\mathcal{HT}(P), but not in 𝒯(P1)\mathcal{HT}(P_{1}), and b,bd𝒯(P1)\langle b,bd\rangle\in\mathcal{HT}(P_{1}), but not in 𝒯(P)\mathcal{HT}(P).

On the other hand, P2={ab}P_{2}=\{a\vee b\} and P3={anotb;bnota}P_{3}=\{a\leftarrow not\,b;b\leftarrow not\,a\}, are well-known to be uniformly equivalent [21], but not strongly equivalent, e.g., for R={ab;ba}R=\{a\leftarrow b;b\leftarrow a\}. We have that P2𝖧𝖳P3P_{2}\models_{\sf HT}P_{3}, but not P3𝖧𝖳P2P_{3}\models_{\sf HT}P_{2}, because of, e.g., ,ab\langle\emptyset,ab\rangle.

Occasionally, we want to omit certain elements of the signature from sets of interpretations and HT-models. Given a set of atoms VV, the VV-exclusion of a set of answer sets (resp. a set of HT-interpretations) \mathcal{M}, written V\mathcal{M}_{\parallel V}, is {X\VX}\{X\text{\textbackslash}V\mid X\in\mathcal{M}\} (resp. {X\V,Y\VX,Y}\{\langle X\text{\textbackslash}V,Y\text{\textbackslash}V\rangle\mid\langle X,Y\rangle\in\mathcal{M}\}). Also, given two sets of atoms X,X𝒜X,X^{\prime}\subseteq\mathcal{A}, we write XVXX\sim_{V}X^{\prime} whenever X\V=X\VX\text{\textbackslash}V=X^{\prime}\text{\textbackslash}V. For HTHT-interpretations H,T\langle H,T\rangle and X,Y\langle X,Y\rangle, H,TVX,Y\langle H,T\rangle\sim_{V}\langle X,Y\rangle denotes that HVXH\sim_{V}X and TVYT\sim_{V}Y. Then, for a set \mathcal{M} of HTHT-interpretations, V\mathcal{M}_{\dagger V} denotes the set {X,YH,T\{\langle X,Y\rangle\mid\langle H,T\rangle\in\mathcal{M} and X,YVH,T}\langle X,Y\rangle\sim_{V}\langle H,T\rangle\}.

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 PP from Ex. 1:

a\displaystyle a notb\displaystyle\leftarrow not\,b b\displaystyle b notc\displaystyle\leftarrow not\,c e\displaystyle e d\displaystyle\leftarrow d d\displaystyle d a\displaystyle\leftarrow a

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 dd from PP, 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 ee depending on aa via dd, should be preserved. Hence, we would expect the following result:

a\displaystyle a notb\displaystyle\leftarrow not\,b b\displaystyle b notc\displaystyle\leftarrow not\,c e\displaystyle e a\displaystyle\leftarrow a

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 cc from PP. Then, since cc only appears negated in the body of the rule with head bb, cc is false. Thus, bb becomes unconditionally true when forgetting, and the expected result would be:

a\displaystyle a notb\displaystyle\leftarrow not\,b b\displaystyle b \displaystyle\leftarrow e\displaystyle e d\displaystyle\leftarrow d d\displaystyle d a\displaystyle\leftarrow a

Of course, with a fact for bb present, the body of the first rule can never be true and, alternatively, we may consider the following program as result of forgetting:

b\displaystyle b \displaystyle\leftarrow e\displaystyle e d\displaystyle\leftarrow d d\displaystyle d a\displaystyle\leftarrow a

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 PP and set of atoms VV to be forgotten. We formalize this central idea with the notion of a forgetting operator.

Definition 1

Given a class of logic programs 𝒞\mathcal{C} over 𝒜\mathcal{A}, a forgetting operator (over 𝒞\mathcal{C}) is defined as a function 𝖿:𝒞×2𝒜𝒞{\mathsf{f}}:\mathcal{C}\times 2^{\mathcal{A}}\to\mathcal{C} where, for each P𝒞P\in\mathcal{C} and V𝒜V\subseteq\mathcal{A}, 𝖿(P,V)\mathsf{f}(P,V), the result of forgetting about VV from PP,

  • is a program over 𝒜(P)\V\mathcal{A}(P)\text{\textbackslash}V; and

  • preserves the semantic relations between atoms in 𝒜(P)\V\mathcal{A}(P)\text{\textbackslash}V from PP.

We denote the domain of 𝖿\mathsf{f} by 𝒞(𝖿)\mathcal{C}(\mathsf{f}). A forgetting operator 𝖿{\mathsf{f}} is called closed for 𝒞𝒞(𝖿)\mathcal{C}^{\prime}\subseteq\mathcal{C}(\mathsf{f}) if, for every P𝒞P\in\mathcal{C}^{\prime} and V𝒜V\subseteq\mathcal{A}, we have 𝖿(P,V)𝒞\mathsf{f}(P,V)\in\mathcal{C}^{\prime}.

Our definition establishes that forgetting can be understood as a reduction of the language preserving the semantic relations for the remaining atoms in PP. 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 𝖥\mathsf{F} of forgetting operators (over 𝒞\mathcal{C}) is a set of forgetting operators 𝖿\mathsf{f}, with 𝒞(𝖿)𝒞\mathcal{C}(\mathsf{f})\subseteq\mathcal{C}, 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, 𝖥\mathsf{F} represents a class of forgetting operators, 𝒞(𝖿)\mathcal{C}(\mathsf{f}) the class of programs over 𝒜\mathcal{A} of a given 𝖿𝖥\mathsf{f}\in\mathsf{F}, and whenever we write that a single operator 𝖿{\mathsf{f}} obeys some property, we mean that the singleton class composed of that operator, {𝖿}\{{\mathsf{f}}\}, 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)

    𝖥\mathsf{F} satisfies strengthened Consequence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, we have 𝒜𝒮(𝖿(P,V))𝒜𝒮(P)V\mathcal{AS}(\mathsf{f}(P,V))\subseteq\mathcal{AS}(P)_{\parallel V}.

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)

    𝖥\mathsf{F} satisfies weak Equivalence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P,P𝒞(𝖿)P,P^{\prime}\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}: if PPP\equiv P^{\prime}, then 𝖿(P,V)𝖿(P,V)\mathsf{f}(P,V)\equiv\mathsf{f}(P^{\prime},V).

  • (SE)

    𝖥\mathsf{F} satisfies Strong Equivalence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P,P𝒞(𝖿)P,P^{\prime}\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}: if P𝖧𝖳PP\equiv_{\sf HT}P^{\prime}, then 𝖿(P,V)𝖧𝖳𝖿(P,V)\mathsf{f}(P,V)\equiv_{\sf HT}\mathsf{f}(P^{\prime},V).

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)

    𝖥\mathsf{F} satisfies Irrelevance if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, 𝖿(P,V)𝖧𝖳P\mathsf{f}(P,V)\equiv_{\sf HT}P^{\prime} for some PP^{\prime} not containing any vVv\in V.

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 PP also be HT-models of a result of forgetting.

  • (W)

    𝖥\mathsf{F} satisfies Weakening if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, we have P𝖧𝖳𝖿(P,V)P\models_{\sf HT}\mathsf{f}(P,V).

This means that a result of forgetting, 𝖿(P,V)\mathsf{f}(P,V), has at most the same consequences as the program PP itself.

Positive and negative persistence concern preserving the HT-consequences of PP and not introducing new ones, respectively.

  • (PP)

    𝖥\mathsf{F} satisfies Positive Persistence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}: if P𝖧𝖳PP\models_{\sf HT}P^{\prime}, with P𝒞(𝖿)P^{\prime}\in\mathcal{C}(\mathsf{f}) and 𝒜(P)𝒜\V\mathcal{A}(P^{\prime})\subseteq\mathcal{A}\text{\textbackslash}V, then 𝖿(P,V)𝖧𝖳P\mathsf{f}(P,V)\models_{\sf HT}P^{\prime}.

  • (NP)

    𝖥\mathsf{F} satisfies Negative Persistence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}: if P⊧̸𝖧𝖳PP\not\models_{\sf HT}P^{\prime}, with P𝒞(𝖿)P^{\prime}\in\mathcal{C}(\mathsf{f}) and 𝒜(P)𝒜V\mathcal{A}(P^{\prime})\subseteq\mathcal{A}\setminus V, then 𝖿(P,V)⊧̸𝖧𝖳P\mathsf{f}(P,V)\not\models_{\sf HT}P^{\prime}.

Thus, Positive Persistence requires that the HT-consequences of PP 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 𝖿(P,V)\mathsf{f}(P,V), unless it was already a HT-consequence of PP.

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)

    𝖥\mathsf{F} satisfies Strong (addition) Invariance if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, we have 𝖿(P,V)R𝖧𝖳𝖿(PR,V)\mathsf{f}(P,V)\cup R\equiv_{\sf HT}\mathsf{f}(P\cup R,V) for all programs R𝒞(𝖿)R\in\mathcal{C}(\mathsf{f}) with 𝒜(R)𝒜\V\mathcal{A}(R)\subseteq\mathcal{A}\text{\textbackslash}V.

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)

    𝖥\mathsf{F} satisfies Strong Consequence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P,P𝒞(𝖿)P,P^{\prime}\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, if P𝖧𝖳PP\models_{\sf HT}P^{\prime}, then 𝖿(P,V)𝖧𝖳𝖿(P,V)\mathsf{f}(P,V)\models_{\sf HT}\mathsf{f}(P^{\prime},V).

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 VV from PP be a consequence of a result of forgetting about VV from a single rule among the HT-consequences of PP.

  • (RC)

    𝖥\mathsf{F} satisfies Rule Consequence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, if 𝖿(P,V)𝖧𝖳r\mathsf{f}(P,V)\models_{\sf HT}r, then 𝖿({r},V)𝖧𝖳r\mathsf{f}(\{r^{\prime}\},V)\models_{\sf HT}r for some rule rr^{\prime} such that {r}𝒞(𝖿)\{r^{\prime}\}\in\mathcal{C}(\mathsf{f}), and P𝖧𝖳rP\models_{\sf HT}r^{\prime}.

In particular, since any rule rr in a result of forgetting is an HT-consequence of it, for each such rule, there is a rule rr^{\prime} in the original program that gives rise to rr (in terms of HT-consequence).

Non-contradictory Consequence requires that whenever a rule rr is an HT-consequence of a forgetting result 𝖿(P,V)\mathsf{f}(P,V), then the rule obtained by adding the default negation of the atoms of VV to the body of rr should be an HT-consequence of PP.

  • (NC)

    𝖥\mathsf{F} satisfies Non-contradictory Consequence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, if 𝖿(P,V)𝖧𝖳ABnotCnotnotD\mathsf{f}(P,V)\models_{\sf HT}\mathit{A}\leftarrow\mathit{B}\cup not\,\mathit{C}\cup not\,not\,\mathit{D}, then P𝖧𝖳ABnotCnotVnotnotDP\models_{\sf HT}\mathit{A}\leftarrow\mathit{B}\cup not\,\mathit{C}\cup not\,V\cup not\,not\,\mathit{D}.

Again, since any rule rr in a result of forgetting is an HT-consequence of it, the original program PP 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)

    𝖥\mathsf{F} satisfies Permutation Invariance if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}), and V𝒜V\subseteq\mathcal{A}, we have that 𝖿(P,V)𝖧𝖳𝖿(𝖿(P,V1),,Vn)\mathsf{f}(P,V)\equiv_{\sf HT}\mathsf{f}(...\mathsf{f}(P,V_{1}),...,V_{n}) for every partition {V1,,Vn}\{V_{1},...,V_{n}\} of VV.

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 PP in 𝒞\mathcal{C} be again in the class 𝒞\mathcal{C}. 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 𝒞\mathcal{C}, thus allowing to speak about a class of forgetting operators 𝖥\mathsf{F} being closed for different classes 𝒞\mathcal{C}.

  • (EC)

    𝖥\mathsf{F} satisfies Existence for 𝒞\mathcal{C}, i.e., 𝖥\mathsf{F} is closed for a class of programs 𝒞\mathcal{C} if there exists 𝖿𝖥{\mathsf{f}}\in\mathsf{F} s.t. 𝖿{\mathsf{f}} is closed for 𝒞\mathcal{C}.

Thus, class 𝖥\mathsf{F} being closed for some 𝒞\mathcal{C} requires that there exist some “witness in favor of it”. This also means that if a class 𝖥\mathsf{F} of operators does not satisfy this property for some class 𝒞\mathcal{C} of programs, no operator of 𝖥\mathsf{F} 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)

    𝖥\mathsf{F} satisfies Consequence Persistence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, we have 𝒜𝒮(𝖿(P,V))=𝒜𝒮(P)V\mathcal{AS}(\mathsf{f}(P,V))=\mathcal{AS}(P)_{\parallel V}.

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)

    𝖥\mathsf{F} satisfies Strong Persistence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, we have 𝒜𝒮(𝖿(P,V)R)=𝒜𝒮(PR)V\mathcal{AS}(\mathsf{f}(P,V)\cup R)=\mathcal{AS}(P\cup R)_{\parallel V}, for all programs R𝒞(𝖿)R\in\mathcal{C}(\mathsf{f}) with 𝒜(R)𝒜\V\mathcal{A}(R)\subseteq\mathcal{A}\text{\textbackslash}V.

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)

    𝖥\mathsf{F} satisfies weakened Consequence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, we have 𝒜𝒮(P)V𝒜𝒮(𝖿(P,V))\mathcal{AS}(P)_{\parallel V}\subseteq\mathcal{AS}(\mathsf{f}(P,V)).

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)

    𝖥\mathsf{F} satisfies weakened Strong Persistence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, we have 𝒜𝒮(PR)V𝒜𝒮(𝖿(P,V)R)\mathcal{AS}(P\cup R)_{\parallel V}\subseteq\mathcal{AS}(\mathsf{f}(P,V)\cup R), for all R𝒞(𝖿)R\in\mathcal{C}(\mathsf{f}) with 𝒜(R)𝒜\V\mathcal{A}(R)\subseteq\mathcal{A}\text{\textbackslash}V.

  • (sSP)

    𝖥\mathsf{F} satisfies strengthened Strong Persistence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, we have 𝒜𝒮(𝖿(P,V)R)𝒜𝒮(PR)V\mathcal{AS}(\mathsf{f}(P,V)\cup R)\subseteq\mathcal{AS}(P\cup R)_{\parallel V}, for all R𝒞(𝖿)R\in\mathcal{C}(\mathsf{f}) with 𝒜(R)𝒜\V\mathcal{A}(R)\subseteq\mathcal{A}\text{\textbackslash}V.

Weakened Strong Persistence guarantees that all answer sets of PP are preserved when forgetting, no matter which rules RR over 𝒜\V\mathcal{A}\text{\textbackslash}V are added to PP, while strengthened Strong Persistence ensures that all answer sets of a result of forgetting indeed correspond to answer sets of PP, independently of the added set of rules RR.

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)

    𝖥\mathsf{F} satisfies Uniform Persistence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, we have 𝒜𝒮(𝖿(P,V)R)=𝒜𝒮(PR)V\mathcal{AS}(\mathsf{f}(P,V)\cup R)=\mathcal{AS}(P\cup R)_{\parallel V}, for all sets of facts RR with 𝒜(R)𝒜\V\mathcal{A}(R)\subseteq\mathcal{A}\text{\textbackslash}V.

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)

    𝖥\mathsf{F} satisfies Uniform (addition) Invariance if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, we have 𝖿(P,V)R𝖧𝖳𝖿(PR,V)\mathsf{f}(P,V)\cup R\equiv_{\sf HT}\mathsf{f}(P\cup R,V) for all sets of facts RR with 𝒜(R)𝒜\V\mathcal{A}(R)\subseteq\mathcal{A}\text{\textbackslash}V.

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.

  • (𝐒𝐈𝐮){\bf(SI_{u})}

    𝖥\mathsf{F} satisfies Strong Invariance with respect to uniform equivalence if, for each 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A}, we have 𝖿(P,V)Ru𝖿(PR,V)\mathsf{f}(P,V)\cup R\equiv_{u}\mathsf{f}(P\cup R,V), for all programs R𝒞(𝖿)R\in\mathcal{C}(\mathsf{f}) with 𝒜(R)𝒜\V\mathcal{A}(R)\subseteq\mathcal{A}\text{\textbackslash}V.

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 (𝐒𝐈𝐮){\bf(SI_{u})} 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 “𝖥\mathsf{F} satisfies (P)”.

Theorem 1

The following relations hold for all 𝖥\mathsf{F}:

  1. 1.

    (W) is equivalent to (NP);

  2. 2.

    (SP) implies (SE);

  3. 3.

    (CP) and (SI) together are equivalent to (SP);

  4. 4.

    (sC) and (wC) together are equivalent to (CP);

  5. 5.

    (CP) implies (wE);

  6. 6.

    (SE) and (SI) together imply (PP);

  7. 7.

    (wSP) and (sSP) together are equivalent to (SP);

  8. 8.

    (sC) and (SI) together imply (sSP);

  9. 9.

    (wC) and (SI) together imply (wSP);

  10. 10.

    (W) and (PP) together imply (SC);

  11. 11.

    (SC) implies (SE);

  12. 12.

    (W) implies (NC);

  13. 13.

    (wC) is incompatible with (W) for 𝖥\mathsf{F} over 𝒞\mathcal{C} such that 𝒞n𝒞\mathcal{C}_{n}\subseteq\mathcal{C};

  14. 14.

    (wC) and (UI) together are incompatible with (RC) for 𝖥\mathsf{F} over 𝒞\mathcal{C} such that 𝒞n𝒞\mathcal{C}_{n}\subseteq\mathcal{C}.

  15. 15.

    (SI) implies (UI);

  16. 16.

    (CP) and (UI) together are equivalent to (UP);

  17. 17.

    (SI) implies (𝐒𝐈𝐮){\bf(SI_{u})};

  18. 18.

    (UP) is incompatible with (𝐒𝐈𝐮){\bf(SI_{u})}.

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, (𝐒𝐈𝐮){\bf(SI_{u})} (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 RR 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).

Refer to caption
Figure 1: Relations between properties according to Thm.1: curved lines without arrows join properties and arcs indicate directions of implication.

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 PP and a𝒜a\in\mathcal{A}, R(P,a)R(P,a) is the set of all rules of the form ℎ𝑒𝑎𝑑(r1)𝑏𝑜𝑑𝑦(r1){a}𝑏𝑜𝑑𝑦(r2)\mathit{head}(r_{1})\leftarrow\mathit{body}(r_{1})\setminus\{a\}\cup\mathit{body}(r_{2}) such that there are r1,r2Pr_{1},r_{2}\in P with a𝑏𝑜𝑑𝑦(r1)a\in\mathit{body}(r_{1}) and ℎ𝑒𝑎𝑑(r2)=a\mathit{head}(r_{2})=a. Then, the two operators differ on how they subsequently remove rules containing aa, the atom to be forgotten. In Strong Forgetting, all rules containing aa are simply removed:

𝖿strong(P,a)={rR(P,a)a𝒜(r)}\mathsf{f}_{strong}(P,a)=\{r\in R(P,a)\mid a\not\in\mathcal{A}(r)\}

In Weak Forgetting, rules with occurrences of notanot\,a in the body are kept, after notanot\,a is removed.

𝖿weak(P,a)\displaystyle\mathsf{f}_{weak}(P,a) ={ℎ𝑒𝑎𝑑(r)𝑏𝑜𝑑𝑦(r)\{nota}rR(P,a),aℎ𝑒𝑎𝑑(r)𝑏𝑜𝑑𝑦(r)}\displaystyle=\{\mathit{head}(r)\leftarrow\mathit{body}(r)\text{\textbackslash}\{not\,a\}\mid r\in R(P,a),a\not\in\mathit{head}(r)\cup\mathit{body}(r)\}

The motivation for this difference is whether such notanot\,a is seen as support for the rule head (Strong) or not (Weak). In both cases, the actual operator for a set of atoms VV is defined by the sequential application of the respective operator to each aVa\in V. Both operators are shown to be closed for 𝒞n\mathcal{C}_{n} and thus well-defined. The corresponding singleton classes are defined as follows.

𝖥strong={𝖿strong}𝖥weak={𝖿weak}\mathsf{F}_{strong}=\{\mathsf{f}_{strong}\}\qquad\mathsf{F}_{weak}=\{\mathsf{f}_{weak}\}

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 𝖿strong\mathsf{f}_{strong} and 𝖿weak\mathsf{f}_{weak}. Semantic Forgetting introduces a class of operators for consistent disjunctive programs11 1 Actually, classical negation can occur in scope of notnot\,, 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:

𝖥sem={𝖿𝒜𝒮(𝖿(P,V))=𝒩(𝒜𝒮(P)V) for all P𝒞(𝖿) and V𝒜}\mathsf{F}_{sem}=\{\mathsf{f}\mid\mathcal{AS}(\mathsf{f}(P,V))=\mathcal{MIN}(\mathcal{AS}(P)_{\parallel V})\text{ for all }P\in\mathcal{C}(\mathsf{f})\text{ and }V\subseteq\mathcal{A}\}

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 PP ignoring VV. 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 𝒞d+\mathcal{C}_{d}^{+} and 𝒞n+\mathcal{C}_{n}^{+} (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 PP, we define Cn(P)={rr disjunctive,P𝖧𝖳rCn(P)=\{r\mid r\text{ disjunctive},P\models_{\sf HT}r, 𝒜(r)𝒜(P)}\mathcal{A}(r)\subseteq\mathcal{A}(P)\}, the set of all consequences of PP. We obtain PS(P,a)P_{S}(P,a) and PW(P,a)P_{W}(P,a), the results of strongly and weakly forgetting a single atom aa from PP, as follows:

  1. 1.

    Consider P1=Cn(P)P_{1}=Cn(P).

  2. 2.

    Obtain P2P_{2} by removing from P1P_{1}: (i) rr with a𝑏𝑜𝑑𝑦(r)a\in\mathit{body}(r), (ii) aa from the head of each rr with nota𝑏𝑜𝑑𝑦(r)not\,a\in\mathit{body}(r).

  3. 3.

    Given P2P_{2}, obtain PS(P,a)P_{S}(P,a) and PW(P,a)P_{W}(P,a) by transforming certain rules rr in P2P_{2} as follows:

    rr with notanot\,a in body rr with aa in head
    SS (remove) (remove)
    WW remove only notanot\,a remove only aa

The generalization to sets of atoms VV, i.e., PS(P,V)P_{S}(P,V) and PW(P,V)P_{W}(P,V), can be obtained by simply sequentially forgetting each aVa\in V, yielding the following classes of operators.

𝖥S\displaystyle\mathsf{F}_{S} ={𝖿𝖿(P,V)𝖧𝖳PS(P,V) for all P𝒞(𝖿) and V𝒜}\displaystyle=\{\mathsf{f}\mid\mathsf{f}(P,V)\equiv_{\sf HT}P_{S}(P,V)\text{ for all }P\in\mathcal{C}(\mathsf{f})\text{ and }V\subseteq\mathcal{A}\}
𝖥W\displaystyle\mathsf{F}_{W} ={𝖿𝖿(P,V)𝖧𝖳PW(P,V) for all P𝒞(𝖿) and V𝒜}\displaystyle=\{\mathsf{f}\mid\mathsf{f}(P,V)\equiv_{\sf HT}P_{W}(P,V)\text{ for all }P\in\mathcal{C}(\mathsf{f})\text{ and }V\subseteq\mathcal{A}\}

While steps 2. and 3. are syntactic, different strongly equivalent representations of Cn(P)Cn(P) exist, thus providing different instances. Wong Wong (2009) defined one construction based on inference rules for HT-equivalence, closed for 𝒞d\mathcal{C}_{d}. 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, 𝖥S\mathsf{F}_{S} and 𝖥W\mathsf{F}_{W} as well as strong and weak forgetting rely on preserving the consequences from PP 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 𝖥S\mathsf{F}_{S} and 𝖥W\mathsf{F}_{W} 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.

𝖥𝖧𝖳={𝖿𝒯(𝖿(P,V))=𝒯(P)V for all P𝒞(𝖿) and V𝒜}\mathsf{F}_{{\sf HT}}=\{\mathsf{f}\mid\mathcal{HT}(\mathsf{f}(P,V))=\mathcal{HT}(P)_{\dagger V}\text{ for all }P\in\mathcal{C}(\mathsf{f})\text{ and }V\subseteq\mathcal{A}\}

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 𝒞e\mathcal{C}_{e} and 𝒞H\mathcal{C}_{H}, and it was also shown that no operator exists that is closed for either 𝒞d\mathcal{C}_{d} or 𝒞n\mathcal{C}_{n}. 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).

𝖥𝖲𝖬={𝖿𝒯(𝖿(P,V)) is a maximal subset of\displaystyle\mathsf{F}_{{\sf SM}}\!=\!\{\mathsf{f}\mid\mathcal{HT}(\mathsf{f}(P,V))\text{ is a maximal subset of } 𝒯(P)V s.t. 𝒜𝒮(𝖿(P,V))=𝒜𝒮(P)V\displaystyle\mathcal{HT}(P)_{\dagger V}\text{ s.t.\ }\mathcal{AS}(\mathsf{f}(P,V))=\mathcal{AS}(P)_{\parallel V}
for all P𝒞(𝖿) and V𝒜}\displaystyle\text{ for all }P\in\mathcal{C}(\mathsf{f})\text{ and }V\subseteq\mathcal{A}\}

Hence, in this case, though the definition is a variation of the one for 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, 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 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, was shown to be closed for 𝒞e\mathcal{C}_{e} and 𝒞H\mathcal{C}_{H}, and it was also shown that no operator exists that is closed for either 𝒞d\mathcal{C}_{d} or 𝒞n\mathcal{C}_{n}. 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 PP itself but also those of PRP\cup R for any RR over the signature without the atoms to be forgotten. The notion was defined abstractly for classes of programs 𝒞\mathcal{C}.

𝖥Sas={𝖿𝒜𝒮(𝖿(P,V)R)=𝒜𝒮(PR)V for all programs\displaystyle\mathsf{F}_{Sas}\!=\!\{\mathsf{f}\mid\mathcal{AS}(\mathsf{f}(P,V)\cup R)=\mathcal{AS}(P\cup R)_{\parallel V}\text{ for all}\text{ programs } R𝒞 with 𝒜(R)𝒜(P)V,\displaystyle R\in\mathcal{C}\text{ with }\mathcal{A}(R)\subseteq\mathcal{A}(P)\setminus V,
for all P𝒞(𝖿) and V𝒜}\displaystyle\text{ for all }P\in\mathcal{C}(\mathsf{f})\text{ and }V\subseteq\mathcal{A}\}

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 𝒞n\mathcal{C}_{n} 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 PP is characterized by the set of those SE-consequences, i.e., HT-consequences, of PP 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 s\vdash_{s} is the consequence relation of this system, Cn𝒜(P)Cn_{\mathcal{A}}(P) is {r𝒜r disjunctive,Psr}\{r\in\mathcal{L}_{\mathcal{A}}\mid r\text{ disjunctive},P\vdash_{s}r\}. The class is defined by:

𝖥𝖲𝖤={𝖿𝖿(P,V)𝖧𝖳Cn𝒜(P)𝒜(P)V for all P𝒞(𝖿) and V𝒜}\displaystyle\mathsf{F}_{\sf SE}=\{\mathsf{f}\mid\mathsf{f}(P,V)\equiv_{\sf HT}Cn_{\mathcal{A}}(P)\cap\mathcal{L}_{\mathcal{A}(P)\setminus V}\text{ for all }P\in\mathcal{C}(\mathsf{f})\text{ and }V\subseteq\mathcal{A}\}

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 𝒞d\mathcal{C}_{d}, 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 Ω\Omega Gonçalves et al. (2016c), which allows us to determine whether it is possible to forget a set of atoms while satisfying (SP).

Let PP be a program over 𝒜\mathcal{A}, V𝒜V\subseteq\mathcal{A}, and Y𝒜\VY\subseteq\mathcal{A}\text{\textbackslash}V. Consider the following.

RelP,VY\displaystyle Rel_{\langle P,V\rangle}^{Y} ={AVYA,YA𝒯(P) and AA such that YA,YA𝒯(P)}\displaystyle=\{A\subseteq V\mid\langle Y\cup A,Y\cup A\rangle\in\mathcal{HT}(P)\text{ and }\nexists A^{\prime}\subset A\text{ such that }\langle Y\cup A^{\prime},Y\cup A\rangle\in\mathcal{HT}(P)\}
RP,VY,A\displaystyle R^{Y,A}_{\langle P,V\rangle} ={X\VX,YA𝒯(P)}\displaystyle=\{X\text{\textbackslash}V\mid\langle X,Y\cup A\rangle\in\mathcal{HT}(P)\}
Y\displaystyle\mathcal{R}^{Y} ={RP,VY,AARelP,VY}\displaystyle=\{R_{\langle P,V\rangle}^{Y,A}\mid A\in Rel_{\langle P,V\rangle}^{Y}\}

The set RelP,VYRel_{\langle P,V\rangle}^{Y} identifies those AVA\subseteq V such that YAY\cup A is a potential answer set of PP, which are therefore relevant for YY being an answer set of the result of forgetting. For each such AA, the set RP,VY,AR^{Y,A}_{\langle P,V\rangle} collects the VV-reduct of the left component of the HT-models of PP with right component YAY\cup A. For each YY, the set Y\mathcal{R}^{Y} 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 Ω\Omega, tied to the existence of a least element in the set Y\mathcal{R}^{Y}, which, if it exists, coincides with the intersections over Y\mathcal{R}^{Y}.

𝖥𝖲𝖯={𝖿𝒯(𝖿(P,V))={X,YY𝒜(P)\VXY} for all P𝒞(𝖿) and V𝒜}\displaystyle\mathsf{F}_{\sf SP}=\{\mathsf{f}\mid\mathcal{HT}(\mathsf{f}(P,V))\!=\!\{\langle X,Y\rangle\mid Y\subseteq\mathcal{A}(P)\text{\textbackslash}V\wedge X\!\in\bigcap\mathcal{R}^{Y}\}\text{ for all }P\in\mathcal{C}(\mathsf{f})\text{ and }V\subseteq\mathcal{A}\}

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 𝒞e\mathcal{C}_{e} and 𝒞H\mathcal{C}_{H}, and it was shown that no operator exists that is closed for either 𝒞d\mathcal{C}_{d} or 𝒞n\mathcal{C}_{n}.

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 PP. Relativized Forgetting was originally defined using VV-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.

𝖥𝖱={𝖿𝒯(𝖿(P,V))={X,YY𝒜\VXY} for all P𝒞(𝖿) and V𝒜}.\displaystyle\mathsf{F}_{\sf R}=\{\mathsf{f}\mid\mathcal{HT}(\mathsf{f}(P,V))\!=\!\{\langle X,Y\rangle\mid Y\subseteq\mathcal{A}\text{\textbackslash}V\wedge X\!\in\bigcup\mathcal{R}^{Y}\}\text{ for all }P\in\mathcal{C}(\mathsf{f})\text{ and }V\subseteq\mathcal{A}\}.

Thus, in comparison to SP-Forgetting, a union of the elements in the sets Y\mathcal{R}^{Y} is used.

FMF_{M}-Forgetting

Gonçalves et al. Gonçalves et al. (2017); Gonçalves et al. (2020) introduced FMF_{M}-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 𝖥𝖲𝖯\mathsf{F}_{\sf SP} and 𝖥𝖱\mathsf{F}_{\sf R} lies in the usage of intersection and union in their respective definitions. Whenever Y\mathcal{R}^{Y} has more than one element union and intersection will not coincide. Based on this, FMF_{M}-Forgetting was formally defined as follows based on a case distinction.

𝖥𝖬={𝖿𝒯(𝖿(P,V))={X,Y\displaystyle\mathsf{F}_{\sf M}=\{\mathsf{f}\mid\mathcal{HT}(\mathsf{f}(P,V))\!=\!\{\langle X,Y\rangle\mid\ Y𝒜\V and XY, if Y has no least element,\displaystyle Y\subseteq\mathcal{A}\text{\textbackslash}V\text{ and }X\!\in\bigcup\mathcal{R}^{Y}\text{, if }\mathcal{R}^{Y}\text{ has no least element,}
or XY, otherwise} for all P𝒞(𝖿) and V𝒜}\displaystyle\text{or }X\!\in\bigcap\mathcal{R}^{Y}\text{, otherwise}\}\text{ for all }P\in\mathcal{C}(\mathsf{f})\text{ and }V\subseteq\mathcal{A}\}

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 𝒞e\mathcal{C}_{e} and 𝒞H\mathcal{C}_{H}. Moreover, no operator of the class exists that is closed for either 𝒞d\mathcal{C}_{d} or 𝒞n\mathcal{C}_{n} 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 PP no matter what input not containing the atoms to be forgotten is added to PP. 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).

SelP,VY\displaystyle Sel^{Y}_{\langle P,V\rangle} ={AVYA,YA𝒯(P)}\displaystyle=\{A\subseteq V\mid\langle Y\cup A,Y\cup A\rangle\in\mathcal{HT}(P)\}
TP,V\displaystyle T_{\langle P,V\rangle} ={Y𝒜\Vthere exists ASelP,VY s.t. YA,YAHT(P) for every AA}\displaystyle=\{Y\subseteq\mathcal{A}\text{\textbackslash}V\mid~\text{there exists }A\in Sel^{Y}_{\langle P,V\rangle}\text{ s.t. }\langle Y\cup A^{\prime},Y\cup A\rangle\notin HT(P)\text{ for every }A^{\prime}\subset A\}
NP,VY,A\displaystyle N^{Y,A}_{\langle P,V\rangle} ={XVX,YA𝒯(P) and XYA}\displaystyle=\{X\setminus V\mid\langle X,Y\cup A\rangle\in\mathcal{HT}(P)\text{ and }X\neq Y\cup A\}

The sets SelP,VYSel^{Y}_{\langle P,V\rangle} characterize all the different total HT-models of PP for each Y𝒜\VY\subseteq\mathcal{A}\text{\textbackslash}V. Among these, the ones that give rise to total HT-models of the result of forgetting are given by the set TP,VT_{\langle P,V\rangle}. For the non-total HT-models of the result of forgetting, we consider the set NP,VY,AN^{Y,A}_{\langle P,V\rangle} and the indexed family of such sets 𝒮P,VY={NY,i}iI\mathcal{S}^{Y}_{\langle P,V\rangle}=\{N^{Y,i}\}_{i\in I} where I=SelP,VYI=Sel^{Y}_{\langle P,V\rangle}. For each tuple (Xi)iI(X_{i})_{i\in I} such that XiNY,iX_{i}\in N^{Y,i}, the intersection of its sets is denoted as iIXi\bigcap_{i\in I}X_{i}, and SIntP,VYSInt^{Y}_{\langle P,V\rangle} is the set of all such intersections. Formally, Uniform Forgetting combines the total models from TP,VT_{\langle P,V\rangle} and the non-total from SIntP,VYSInt^{Y}_{\langle P,V\rangle} as folows:

𝖥𝖴𝖯={𝖿𝒯(𝖿(P,V))=({Y,YYTP,V}{X,Y\displaystyle\mathsf{F}_{\sf UP}=\{\mathsf{f}\mid\mathcal{HT}(\mathsf{f}(P,V))=(\{\langle Y,Y\rangle\mid Y\in T_{\langle P,V\rangle}\}\ \cup\ \{\langle X,Y\rangle\mid\ YTP,V and XSIntP,VY}),\displaystyle Y\in T_{\langle P,V\rangle}\text{ and }X\in SInt^{Y}_{\langle P,V\rangle}\}),
for all P𝒞(𝖿) and V𝒜}.\displaystyle\text{ for all }P\in\mathcal{C}(\mathsf{f})\text{ and }V\subseteq\mathcal{A}\}.

Again, a concrete operator was defined based on countermodels, which, just like 𝖥𝖴𝖯\mathsf{F}_{\sf UP} itself, is closed for 𝒞e\mathcal{C}_{e} and 𝒞H\mathcal{C}_{H}. 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 𝒞d\mathcal{C}_{d} or 𝒞n\mathcal{C}_{n}. 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 PP, every V𝒜(P)V\subseteq\mathcal{A}(P), and all forgetting operators 𝖿1,𝖿2\mathsf{f}_{1},\mathsf{f}_{2} in the classes 𝖥strong\mathsf{F}_{strong}, 𝖥weak\mathsf{F}_{weak}, 𝖥S\mathsf{F}_{S}, 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 𝖥Sas\mathsf{F}_{Sas}, 𝖥𝖲𝖤\mathsf{F}_{\sf SE}, 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, 𝖥𝖬\mathsf{F}_{\sf M}, and 𝖥𝖴𝖯\mathsf{F}_{\sf UP}, it holds that 𝖿1(P,V)𝖧𝖳𝖿2(P,V)\mathsf{f}_{1}(P,V)\equiv_{\sf HT}\mathsf{f}_{2}(P,V).

Notably, of the classes of operators presented in this section, 𝖥sem\mathsf{F}_{sem} and 𝖥W\mathsf{F}_{W} are the only ones that do not coincide with all others when restricted to Horn programs.

Example 4

Consider the following Horn program P={ae,eb,b,cd}P=\{a\leftarrow e,\ e\leftarrow b,\ b\leftarrow,\ c\leftarrow d\}. Then, for any 𝖿\mathsf{f} in any of the classes mentioned in Thm. 2, we have that 𝖿(P,{e})\mathsf{f}(P,\{e\}) is strongly equivalent to the program {ab,b,cd}\{a\leftarrow b,\ b\leftarrow,\ c\leftarrow d\}. None of the three concrete operators defined for 𝖥sem\mathsf{F}_{sem} actually satisfies this condition, because the two semantic operators do not consider cdc\leftarrow d 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 𝖥sem\mathsf{F}_{sem} does not align with Thm. 2, at least one corresponding operator exists. For 𝖥W\mathsf{F}_{W}, the result completely differs since any operator in 𝖥W\mathsf{F}_{W} must include b\leftarrow b in its result.

Interestingly, Wang et al. Wang et al. (2012); Wang et al. (2014) additionally showed that, for 𝒞H\mathcal{C}_{H}, the result of 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} 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, 𝖥S\mathsf{F}_{S} and 𝖥𝖲𝖤\mathsf{F}_{\sf SE} coincide.

This coincidence can be traced back to the fact that the inference system used for 𝖥𝖲𝖤\mathsf{F}_{\sf SE} is the same as that used to define the example operator for 𝖥S\mathsf{F}_{S}. Since the two classes coincide, in what follows, we often use 𝖥S\mathsf{F}_{S} to refer to both. This correspondence can be extended to 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} when the result of forgetting is still in the class of disjunctive programs.

Theorem 4

Let PP be a disjunctive program, V𝒜(P)V\subseteq\mathcal{A}(P), 𝖿S𝖥S\mathsf{f}_{S}\in\mathsf{F}_{S}, 𝖿𝖧𝖳𝖥𝖧𝖳\mathsf{f}_{{\sf HT}}\in\mathsf{F}_{{\sf HT}}, and 𝖿𝖲𝖤𝖥𝖲𝖤\mathsf{f}_{\sf SE}\in\mathsf{F}_{\sf SE}. Then, 𝖿S(P,V)𝖧𝖳𝖿𝖧𝖳(P,V)𝖧𝖳𝖿𝖲𝖤(P,V)\mathsf{f}_{S}(P,V)\equiv_{\sf HT}\mathsf{f}_{{\sf HT}}(P,V)\equiv_{\sf HT}\mathsf{f}_{\sf SE}(P,V) whenever 𝖿𝖧𝖳(P,V)\mathsf{f}_{{\sf HT}}(P,V) is strongly equivalent to a disjunctive program.

This does not hold in general though, as the next example shows.

Example 5

Given P={anotbP=\{a\leftarrow not\,b, bnotab\leftarrow not\,a, a,b}\leftarrow a,b\}, consider forgetting about bb from PP. For any 𝖿𝖧𝖳𝖥𝖧𝖳\mathsf{f}_{{\sf HT}}\in\mathsf{F}_{{\sf HT}}, it is easy to see that 𝖿𝖧𝖳(P,{b})\mathsf{f}_{{\sf HT}}(P,\{b\}) is strongly equivalent to anotnotaa\leftarrow not\,not\,a, which is not strongly equivalent to any disjunctive program. In the case of 𝖥𝖲𝖤\mathsf{F}_{\sf SE} and 𝖥S\mathsf{F}_{S} 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 𝖥𝖲𝖤\mathsf{F}_{\sf SE} by asserting that it coincides with the set of HT-models restricted to the remaining atoms, i.e., that it coincides with 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} 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 𝖥strong\mathsf{F}_{strong}, 𝖥weak\mathsf{F}_{weak}, 𝖥sem\mathsf{F}_{sem}, 𝖥Sas\mathsf{F}_{Sas}, and 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, or based on a semantic characterization, namely for 𝖥sem\mathsf{F}_{sem}, 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, 𝖥𝖬\mathsf{F}_{\sf M}, and 𝖥𝖴𝖯\mathsf{F}_{\sf UP}, or one combining the latter two principles, namely for 𝖥𝖴𝖯\mathsf{F}_{\sf UP}, or based on a consequence relation, namely 𝖥S\mathsf{F}_{S}, 𝖥W\mathsf{F}_{W}, and 𝖥𝖲𝖤\mathsf{F}_{\sf SE}.

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 𝖥𝖲𝖤\mathsf{F}_{\sf SE}. 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 𝖥strong\mathsf{F}_{strong} and 𝖥weak\mathsf{F}_{weak}, 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 𝖥sem\mathsf{F}_{sem}, 𝖥Sas\mathsf{F}_{Sas}, and 𝖥𝖲𝖯\mathsf{F}_{\sf SP} as well as the syntactic part of the operator defined for 𝖥𝖴𝖯\mathsf{F}_{\sf UP}, even share the basic ideas for treatment of negation, inspired by the first such approach for 𝖥sem\mathsf{F}_{sem}. 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 𝖥sem\mathsf{F}_{sem} often simplifies these away, as its semantic notion is only relying on answer sets. On the other hand the operator defined for 𝖥Sas\mathsf{F}_{Sas} is only applicable in a very restricted setting.

For the semantic operators, two major approaches exist. The operators defined for 𝖥sem\mathsf{F}_{sem} 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.

𝒞n\mathcal{C}_{n} 𝒞d\mathcal{C}_{d} 𝒞e\mathcal{C}_{e}
𝖥strong\mathsf{F}_{strong} coNP - -
𝖥weak\mathsf{F}_{weak} coNP - -
𝖥sem\mathsf{F}_{sem} coNP Π2P{{\Pi}_{2}^{P}} -
𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}

×\times

×\times

coNP
𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}

×\times

×\times

Π2P{{\Pi}_{2}^{P}}
Table 1: Known complexity results for skeptical reasoning under forgetting. All results are completeness results. For class 𝖥\mathsf{F} (of operators) and class 𝒞\mathcal{C} (of programs), ’

×\times

’ represents that 𝒞\mathcal{C} has not been considered for this problem for 𝖥\mathsf{F}, and ’-’ that 𝖥\mathsf{F} is not defined for 𝒞\mathcal{C}.

The first problem is skeptical reasoning under forgetting, i.e., is some atom true in all answer sets of a forgetting result 𝖿(P,V)\mathsf{f}(P,V). Formally, given 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}), V𝒜V\subseteq\mathcal{A}, and a𝒜Va\in\mathcal{A}\setminus V, we determine 𝖿(P,V)sa\mathsf{f}(P,V)\models_{s}a, where s\models_{s} denotes skeptical inference, i.e., truth in all answer sets. This problem has been considered for 𝖥strong\mathsf{F}_{strong}, 𝖥weak\mathsf{F}_{weak}, 𝖥sem\mathsf{F}_{sem}, 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} and 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} for different classes of programs. In fact, for 𝖥sem\mathsf{F}_{sem}, aa can be a literal, and for 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} 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, 𝖥strong\mathsf{F}_{strong}, 𝖥weak\mathsf{F}_{weak}, which are only defined for this class of programs, and 𝖥sem\mathsf{F}_{sem} coincide. In fact, though it has not been considered explicitly for normal programs, the result for 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} does also coincide (for the larger class of programs) due to hardness of skeptical reasoning for ASP even without forgetting. For 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, this is not likely due to the maximization check. In general, for classes 𝒞d\mathcal{C}_{d} and 𝒞e\mathcal{C}_{e} for which skeptical reasoning without forgetting is Π2P{{\Pi}_{2}^{P}}-complete, we observe that 𝖥sem\mathsf{F}_{sem} and 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} are computationally more expensive than the other classes due the additional minimization/maximization which is part of their respective definitions. We note that only 𝖥sem\mathsf{F}_{sem} and 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} do also consider credulous reasoning. In the former case, the result raises to Σ3P{{\Sigma}_{3}^{P}}, while, in the latter, it remains on the same level of the hierarchy, i.e., Σ2P{{\Sigma}_{2}^{P}}.

Thus, requiring that answer sets be preserved comes at a cost in terms of computational complexity. When comparing 𝖥sem\mathsf{F}_{sem} with both 𝖥strong\mathsf{F}_{strong} and 𝖥weak\mathsf{F}_{weak} with their lack of semantic grounds (for part of their construction), arguably the additional cost is preferrable. When comparing 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} and 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, this is less straightforward, as 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} 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 𝖿𝖥\mathsf{f}\in\mathsf{F}, P,P𝒞(𝖿)P,P^{\prime}\in\mathcal{C}(\mathsf{f}), V𝒜V\subseteq\mathcal{A}, we determine P𝖧𝖳𝖿(P,V)P^{\prime}\equiv_{\sf HT}\mathsf{f}(P,V). This problem has been considered for 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, 𝖥𝖬\mathsf{F}_{\sf M}, and 𝖥𝖴𝖯\mathsf{F}_{\sf UP} and Fig. 2 presents the results. It can be observed that the results for 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} and 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} 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 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, and 𝖥𝖬\mathsf{F}_{\sf M} all relate to criterion Ω\Omega that establishes whether it is possible to forget and preserve (𝐒𝐏){\bf(SP)} for the concrete combination of program and atoms to be forgotten, which has been shown to be Σ3P{{\Sigma}_{3}^{P}}-complete Gonçalves et al. (2020). The result for class 𝖥𝖴𝖯\mathsf{F}_{\sf UP} 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.

𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} 𝖥𝖲𝖯\mathsf{F}_{\sf SP} 𝖥𝖱\mathsf{F}_{\sf R} 𝖥𝖬\mathsf{F}_{\sf M} 𝖥𝖴𝖯\mathsf{F}_{\sf UP}
Π2P{{\Pi}_{2}^{P}} Π2P{{\Pi}_{2}^{P}} Π3P{{\Pi}_{3}^{P}} Π3P{{\Pi}_{3}^{P}} Π3P{{\Pi}_{3}^{P}} Π3P{{\Pi}_{3}^{P}}
Table 2: Known complexity results for determining whether a given program is a result of forgetting. All results are completeness results but 𝖥𝖴𝖯\mathsf{F}_{\sf UP}, which is only an inclusion.

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.

𝖥strong𝖥weak𝖥sem𝖥S𝖥W𝖥𝖧𝖳𝖥𝖲𝖬𝖥Sas𝖥𝖲𝖤𝖥𝖲𝖯𝖥𝖱𝖥𝖬𝖥𝖴𝖯𝐬𝐂××××××𝐰𝐄×××××××𝐒𝐄×××𝐖××××××××𝐏𝐏×××𝐒𝐈××××××𝐒𝐂××××××××𝐑𝐂×××××𝐍𝐂×××××𝐏𝐈×××()𝐂𝐏×××××××××𝐒𝐏××××××××××××wC ××××××××𝐰𝐒𝐏×××××××××××𝐬𝐒𝐏×××××××××𝐔𝐏×××××××××××UI ×××××𝐒𝐈𝐮××××××E𝒞HE𝒞n××××××××E𝒞d××××××E𝒞e\begin{array}[]{rccccccccccccc}&\mathsf{F}_{strong}&\mathsf{F}_{weak}&\mathsf{F}_{sem}&\mathsf{F}_{S}&\mathsf{F}_{W}&\mathsf{F}_{{\sf HT}}&\mathsf{F}_{{\sf SM}}&\mathsf{F}_{Sas}&\mathsf{F}_{\sf SE}&\mathsf{F}_{\sf SP}&\mathsf{F}_{\sf R}&\mathsf{F}_{\sf M}&\mathsf{F}_{\sf UP}\\ \cline{1-14}\cr{{\bf sC}\ }&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&\checkmark\\ \cline{1-14}\cr{{\bf wE}\ }&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark\\ \cline{1-14}\cr{{\bf SE}\ }&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark\\ \cline{1-14}\cr{{\bf W}\ }&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}\\ \cline{1-14}\cr{{\bf PP}\ }&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}\\ \cline{1-14}\cr{{\bf SI}\ }&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}\\ \cline{1-14}\cr{{\bf SC}\ }&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}\\ \cline{1-14}\cr{{\bf RC}\ }&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}\\ \cline{1-14}\cr{{\bf NC}\ }&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}\\ \cline{1-14}\cr{{\bf PI}\ }&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&(\checkmark)\\ \cline{1-14}\cr{{\bf CP}\ }&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark\\ \cline{1-14}\cr{{\bf SP}\ }&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}\\ \cline{1-14}\cr${{\bf wC}\ }$&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark\\ \cline{1-14}\cr{{\bf wSP}\ }&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}\\ \cline{1-14}\cr{{\bf sSP}\ }&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}\\ \cline{1-14}\cr{{\bf UP}\ }&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark\\ \cline{1-14}\cr${{\bf UI}\ }$&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark\\ \cline{1-14}\cr{{\bf SI_{u}}\ }&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}\\ \cline{1-14}\cr${{\bf E${}_{\mathcal{C}_{H}}$}}$&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark&\checkmark\\ \cline{1-14}\cr${{\bf E${}_{\mathcal{C}_{n}}$}}$&\checkmark&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&-&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}\\ \cline{1-14}\cr${{\bf E${}_{\mathcal{C}_{d}}$}}$&-&-&\checkmark&\checkmark&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&-&\checkmark&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}&{\scalebox{0.8}{$\times$}}\\ \cline{1-14}\cr${{\bf E${}_{\mathcal{C}_{e}}$}}$&-&-&-&-&-&\checkmark&\checkmark&-&-&\checkmark&\checkmark&\checkmark&\checkmark\\ \cline{1-14}\cr\end{array}

Table 3: Satisfaction of properties for known classes of forgetting operators. For class 𝖥\mathsf{F} and property P, ’✓’ represents that 𝖥\mathsf{F} satisfies P, ’

×\times

’ that 𝖥\mathsf{F} does not satisfy P, and ’-’ that 𝖥\mathsf{F} is not defined for the class 𝒞\mathcal{C} in consideration.
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 𝖥S\mathsf{F}_{S} and 𝖥𝖲𝖤\mathsf{F}_{\sf SE}, 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 𝖥\mathsf{F} that is known to satisfy (CP) also satisfies these two. Not surprisingly, 𝖥sem\mathsf{F}_{sem} 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 𝖥S\mathsf{F}_{S}, 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, and 𝖥𝖲𝖤\mathsf{F}_{\sf SE} do not satisfy (sC) by looking at the example where we forget about aa from P={anota}P=\{a\leftarrow not\,a\}: all three classes require the result to be strongly equivalent to \emptyset, i.e., the forgetting operation introduces a new answer set. Turning to (wE), it requires that the results of forgetting about pp from P={qnotp,qnotq}P=\{q\leftarrow not\,p,q\leftarrow not\,q\} and from Q={q}Q=\{q\leftarrow\} have the same answer sets, while the three classes 𝖥S\mathsf{F}_{S}, 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, and 𝖥𝖲𝖤\mathsf{F}_{\sf SE} require that the results be strongly equivalent to 𝖿(P,p)={qnotq}\mathsf{f}(P,p)=\{q\leftarrow not\,q\} and 𝖿(Q,p)={q}\mathsf{f}(Q,p)=\{q\leftarrow\}, respectively, which are obviously not equivalent. 𝖥W\mathsf{F}_{W} satisfies both properties (though not satisfying (CP)): in the previous two examples, \bot must be returned in the former, while 𝖿(P,p)\mathsf{f}(P,p) includes qq\leftarrow 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 𝖥S\mathsf{F}_{S} and 𝖥W\mathsf{F}_{W} 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 𝖥S\mathsf{F}_{S} and 𝖥W\mathsf{F}_{W} 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 P={anotbP=\{a\leftarrow not\,b, bnotc}b\leftarrow not\,c\} whose only answer set is {b}\{b\}. Thus, according to (wC), a forgetting result must contain at least this answer set modulo the forgotten atoms. For example, for 𝖿𝖥𝖲𝖯\mathsf{f}\in\mathsf{F}_{\sf SP}, 𝖿(P,b)\mathsf{f}(P,b) contains anotnotca\leftarrow not\,not\,c, whose only answer set is {}\{\}. However, this rule is not an HT-consequence of PP, 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 tt-equivalence instead of HTHT-equivalence, whose semantics differs. This explains the negative result in the case of 𝖥S\mathsf{F}_{S}. The negative result for 𝖥𝖲𝖤\mathsf{F}_{\sf SE} follows by correspondence to 𝖥S\mathsf{F}_{S}, and for 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} from forgetting about bb from PP as in Ex. 6: 𝖿(P,b)𝖧𝖳\mathsf{f}(P,b)\equiv_{\sf HT}\emptyset for 𝖿𝖥𝖲𝖬\mathsf{f}\in\mathsf{F}_{{\sf SM}}, so adding cc\leftarrow results precisely in a program containing this fact. If we add cc\leftarrow before forgetting, then the HTHT-models of the result of forgetting, ignoring all occurrences of bb, correspond precisely to c,c,c,ac\langle c,c\rangle,\langle c,ac\rangle, and ac,ac\langle ac,ac\rangle. To preserve the answer sets of this modified program (there is only one – {a,c}\{a,c\}), only the last of these three HT-models can be considered. Hence, aa\leftarrow and cc\leftarrow (or strongly equivalent rules) occur in the result of forgetting for any 𝖿𝖥𝖲𝖬\mathsf{f}\in\mathsf{F}_{{\sf SM}}, 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 𝖥W\mathsf{F}_{W} does not satisfy (W), and still satisfy (SC) (according to an first example presented by Wang et al. Wang et al. (2014)): Consider P={pnotq;qnotp}P=\{p\leftarrow not\,q;q\leftarrow not\,p\}. For any 𝖿𝖥W\mathsf{f}\in\mathsf{F}_{W}, forgetting about pp is strongly equivalent to qq\leftarrow, which is not a consequence of PP 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 𝖥S\mathsf{F}_{S} and 𝖥W\mathsf{F}_{W} 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 rr^{\prime} in (RC), but this is not the case in general.

Example 7

Consider 𝖥strong\mathsf{F}_{strong} which satisfies (NC) and P={ab}P=\{a\leftarrow b\}. We have that 𝖿strong(P,{p})=P\mathsf{f}_{strong}(P,\{p\})=P. Since 𝖿strong(P,{p})𝖧𝖳ab\mathsf{f}_{strong}(P,\{p\})\models_{\sf HT}a\leftarrow b, we have, by (NC), that P𝖧𝖳ab,notpP\models_{\sf HT}a\leftarrow b,not\,p. But we also know that 𝖿strong({ab,notp},{p})=\mathsf{f}_{strong}(\{a\leftarrow b,not\,p\},\{p\})=\emptyset, and, therefore 𝖿strong({ab,notp},{p})𝖧𝖳ab\mathsf{f}_{strong}(\{a\leftarrow b,not\,p\},\{p\})\models_{\sf HT}a\leftarrow b does not hold. This shows that there are cases where rr^{\prime} 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), 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, and 𝖥𝖬\mathsf{F}_{\sf M}, 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 𝖥𝖴𝖯\mathsf{F}_{\sf UP}, 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 bb from P={anotbP=\{a\leftarrow not\,b, bnota}b\leftarrow not\,a\}, i.e., the first two rules of Ex. 5. Since 𝒜𝒮(P)={{a},{b}}\mathcal{AS}(P)=\{\{a\},\{b\}\}, the result must have two answer sets {a}\{a\} and \emptyset, which is not possible for disjunctive programs obtained from operators in 𝖥S\mathsf{F}_{S}, 𝖥W\mathsf{F}_{W}, and 𝖥𝖲𝖤\mathsf{F}_{\sf SE}. 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 𝖥𝖲𝖤\mathsf{F}_{\sf SE}, thus invalidating Thm. 2 in the paper of Delgrande and Wang Delgrande and Wang (2015).

Regarding (SP), only 𝖥Sas\mathsf{F}_{Sas} 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 𝖥Sas\mathsf{F}_{Sas}. The following consideration reveals the cause for this discrepancy. Many of the negative results previously stated for 𝖥Sas\mathsf{F}_{Sas} are based on counterexamples using the concrete operator defined in Knorr and Alferes (2014), among them, for example, that 𝖥Sas\mathsf{F}_{Sas} 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 𝖥Sas\mathsf{F}_{Sas}. 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 𝖥Sas\mathsf{F}_{Sas} can be applied.

Corollary 1

There is no forgetting operator 𝖿𝖥Sas\mathsf{f}\in\mathsf{F}_{Sas} with 𝒞n𝒞(𝖿)\mathcal{C}_{n}\subseteq\mathcal{C}(\mathsf{f}).

Thus, the operator defined by Knorr and Alferes Knorr and Alferes (2014) does not belong to 𝖥Sas\mathsf{F}_{Sas} and all previously negative results for 𝖥Sas\mathsf{F}_{Sas} 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 𝖥W\mathsf{F}_{W}, 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 𝖥Sas\mathsf{F}_{Sas}, 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 𝖥𝖴𝖯\mathsf{F}_{\sf UP} for which the positive result is a result of 16. of Thm. 1. We exemplify the negative result for the case of 𝖥S\mathsf{F}_{S}. Consider forgetting about pp from P={anotp,b;pnota;p,b}P=\{a\leftarrow not\,p,b;\ p\leftarrow not\,a;\ \leftarrow p,b\}. This program has anotnota,ba\leftarrow not\,not\,a,b as an HT-consequence, which is however not a disjunctive rule and thus not captured in the construction. So adding bb\leftarrow to the program makes aa true, and forgetting preserves that. If we forget first, that connection is lost and we cannot conclude aa by adding bb\leftarrow to the result of forgetting.

Although (𝐒𝐈𝐮){\bf(SI_{u})} is a weakening of (SI), the results for (𝐒𝐈𝐮){\bf(SI_{u})} are often a consequence of those for (SI). The positive ones follow immediately from the fact that (𝐒𝐈𝐮){\bf(SI_{u})} 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 𝖥𝖬\mathsf{F}_{\sf M}, 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 (𝐒𝐈𝐮){\bf(SI_{u})} 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 𝖥𝖲𝖯\mathsf{F}_{\sf SP} and 𝖥𝖱\mathsf{F}_{\sf R}, which both satisfy (𝐒𝐈𝐮){\bf(SI_{u})} (for the details we refer to the appendix).

Finally, the results on (EC) for different classes of programs 𝒞\mathcal{C} reveal that all classes of operators are closed for 𝒞H\mathcal{C}_{H}, and, in addition, each 𝖥\mathsf{F} is closed for the maximal class of programs considered, but often not for intermediate ones, with the exception of 𝖥sem\mathsf{F}_{sem} and 𝖥W\mathsf{F}_{W}. Interestingly, the two known semantic operators in 𝖥sem\mathsf{F}_{sem} are not closed for 𝒞H\mathcal{C}_{H}, 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 𝖿𝗈𝗋𝗀𝖾𝗍𝟣{\sf forget_{1}} 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 𝖥\mathsf{F}: the singleton classes 𝖥strong\mathsf{F}_{strong} and 𝖥weak\mathsf{F}_{weak} are precisely defined for normal programs; the intuition behind minimization embedded in 𝖥sem\mathsf{F}_{sem}’s definition does not combine well with double negation; and, for 𝖥S\mathsf{F}_{S}, 𝖥W\mathsf{F}_{W}, and 𝖥𝖲𝖤\mathsf{F}_{\sf SE}, 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 𝒞\mathcal{C}. If some class of operators is not closed or even not defined for 𝒞\mathcal{C}, 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 “×\times” in Table 3). At the same time, 𝖥Sas\mathsf{F}_{Sas} is clearly not suitable with its restriction to Horn programs, while 𝖥strong\mathsf{F}_{strong} and 𝖥weak\mathsf{F}_{weak} present considerable limitations if disjunctions are required, since it is well-known that these cannot be represented in a strongly equivalent normal program; and 𝖥sem\mathsf{F}_{sem}, 𝖥S\mathsf{F}_{S}, and 𝖥W\mathsf{F}_{W} may require additional effort to represent double negation such as anotnotaa\leftarrow not\,not\,a by anotauxa\leftarrow not\,aux and auxnotaaux\leftarrow not\,a using an additional auxiliar atom auxaux, where introducing new atoms to be able to forget others seems counterintuitive.

SPW,PP,SI,RCsC,wE,SI,SC,RC,NC,sSPwE,SE,CP,UPwE,SE,PP,CP,sSPSE,SI,wC,wSPW,PP,RCsC,SE,SI,RC,NC,sSPwE,SE,PP,CPW,SI,RC,NCPP,SI,RC,NCsC,wEIR𝖥Sas\mathsf{F}_{Sas}𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}𝖥W\mathsf{F}_{W}𝖥𝖴𝖯\mathsf{F}_{\sf UP}𝖥𝖬\mathsf{F}_{\sf M}𝖥𝖲𝖯\mathsf{F}_{\sf SP}𝖥S\mathsf{F}_{S},𝖥𝖲𝖤\mathsf{F}_{\sf SE}𝖥𝖱\mathsf{F}_{\sf R}𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}𝖥strong\mathsf{F}_{strong}𝖥weak\mathsf{F}_{weak}𝖥sem\mathsf{F}_{sem}
Figure 2: Sets of properties satisfied by known classes of forgetting operators, where each connection represents that the above set of properties implies the one below (with (𝐒𝐏){\bf(SP)} and (𝐖){\bf(W)} restricted to Horn programs).

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 𝖥W\mathsf{F}_{W}, which satisfies both (SC) and (SE), only (SC) is shown, while (SE) is left implicit.

  • As 𝖥Sas\mathsf{F}_{Sas} 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 𝖥sem\mathsf{F}_{sem}, 𝖥W\mathsf{F}_{W}, 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 𝖥Sas\mathsf{F}_{Sas}, 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, 𝖥𝖬\mathsf{F}_{\sf M}, and 𝖥𝖴𝖯\mathsf{F}_{\sf UP} by either satisfying (sC) or (wC) or a property that implies these.

Among them, putting 𝖥Sas\mathsf{F}_{Sas} 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.

𝖥𝖲𝖬+(𝐬𝐒𝐏)𝖥𝖬\mathsf{F}_{{\sf SM}}+{\bf(sSP)}\ \rightsquigarrow\mathsf{F}_{\sf M}

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 𝖥W\mathsf{F}_{W} and 𝖥𝖱\mathsf{F}_{\sf R} as follows:

𝖥𝖱+(𝐒𝐂)+(𝐰𝐄)𝖥W\mathsf{F}_{\sf R}+{\bf(SC)}\ +{\bf(wE)}\rightsquigarrow\mathsf{F}_{W}

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:

𝖥𝖱+𝖥sem+(𝐒𝐂)𝖥W\mathsf{F}_{\sf R}+\mathsf{F}_{sem}+{\bf(SC)}\ \rightsquigarrow\mathsf{F}_{W}

However, note that picking an operator of 𝖥𝖱\mathsf{F}_{\sf R} and somehow enforcing (SC) and (wE) will not provide an operator of 𝖥W\mathsf{F}_{W}. It can be shown that the effect of forgetting VV from PP for 𝖿𝖥W\mathsf{f}\in\mathsf{F}_{W} yields a result that replaces all vVv\in V as if they were false, independently of the actual rules in PP. E.g., forgetting about pp from pp\leftarrow would yield \bot, which is not aligned with the original idea of forgetting, i.e., removing all vVv\in V without affecting other derivations, nor with the idea of class 𝖥𝖱\mathsf{F}_{\sf R} 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., 𝖿𝖥𝖴𝖯\mathsf{f}\in\mathsf{F}_{\sf UP} naturally satisfies the defining condition of class 𝖥sem\mathsf{F}_{sem}, and thus belongs to the class.

Also note that the three classes related to (SP)𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, 𝖥𝖬\mathsf{F}_{\sf M}, 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. 𝖥𝖬\mathsf{F}_{\sf M}, which satisfies both (sC) and (wC), aligns well with approaches that preserve answer sets. 𝖥𝖱\mathsf{F}_{\sf R}, which satisfies both (sC) and (SI), fits within the classes that satisfy (SI). Finally, 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, which satisfies both (wC) and (SI), does not relate to any class other than 𝖥Sas\mathsf{F}_{Sas}, 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, 𝖥strong\mathsf{F}_{strong} and 𝖥weak\mathsf{F}_{weak} 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, 𝖥S/𝖥𝖲𝖤\mathsf{F}_{S}/\mathsf{F}_{\sf SE}, there is also a close proximity to 𝖥W\mathsf{F}_{W} 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 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} as witnessed in Thm. 4. This is matched by a close correspondence in terms of satisfied properties.

𝖥S/𝖥𝖲𝖤+(𝐒𝐈)𝖥𝖧𝖳\mathsf{F}_{S}/\mathsf{F}_{\sf SE}+{\bf(SI)}\rightsquigarrow\mathsf{F}_{{\sf HT}}

Here, (SI) plays a distinguishing role. Notably, this clarifies the apparent mismatch of the characterizations for 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} and 𝖥𝖲𝖤\mathsf{F}_{\sf SE} 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 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} to 𝒞d\mathcal{C}_{d} cancels (SI).

𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} is also closely connected to 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 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 𝖥strong\mathsf{F}_{strong} 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 𝖥sem\mathsf{F}_{sem} 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 𝒞\mathcal{C} 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 𝒞\mathcal{C} 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 𝒞H\mathcal{C}_{H}, i.e., it does not apply here.

Theorem 6

For Horn programs, the following holds:

  • 𝖥strong\mathsf{F}_{strong}, 𝖥weak\mathsf{F}_{weak}, 𝖥S\mathsf{F}_{S}, 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 𝖥Sas\mathsf{F}_{Sas}, 𝖥𝖲𝖤\mathsf{F}_{\sf SE}, 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, 𝖥𝖬\mathsf{F}_{\sf M}, and 𝖥𝖴𝖯\mathsf{F}_{\sf UP} satisfy (W), (RC), (SP), and (PI);

  • 𝖥sem\mathsf{F}_{sem} satisfies (CP) and (PI);

  • 𝖥W\mathsf{F}_{W} 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 𝖥W\mathsf{F}_{W}.

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 𝖥Sas\mathsf{F}_{Sas} 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.

  • 𝖥strong\mathsf{F}_{strong} and 𝖥weak\mathsf{F}_{weak} 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.

  • 𝖥sem\mathsf{F}_{sem} 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.

  • 𝖥W\mathsf{F}_{W} 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.

  • 𝖥Sas\mathsf{F}_{Sas} 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, 𝖥S\mathsf{F}_{S}, 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, 𝖥𝖬\mathsf{F}_{\sf M}, and 𝖥𝖴𝖯\mathsf{F}_{\sf UP}, 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 𝖥𝖴𝖯\mathsf{F}_{\sf UP} 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 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, and 𝖥𝖬\mathsf{F}_{\sf M} 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 𝖥𝖴𝖯\mathsf{F}_{\sf UP} 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 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} 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. 𝖥𝖬\mathsf{F}_{\sf M}, it comes in exchange with a lower computational complexity.

Preserving consequences

These approaches preserve the semantic consequences over the remaining atoms, including the classes 𝖥S\mathsf{F}_{S} and 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}. 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 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} imposes a further restriction on that of 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, preserving consequences is weaker. Among the two classes, as shown by several technical results in this paper, 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} 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 𝒞\mathcal{C} is said to have the uniform interpolation property with respect to a consequence relation \vdash, if for every program P𝒞P\in\mathcal{C} and set V𝒜V\subseteq\mathcal{A} of atoms, there exists a program P𝒞P^{*}\in\mathcal{C} with 𝒜(P)𝒜\V\mathcal{A}(P^{*})\subseteq\mathcal{A}\text{\textbackslash}V, such that:

  • (i)(i)

    PPP\vdash P^{*};

  • (ii)(ii)

    PRP^{*}\vdash R, for every R𝒞R\in\mathcal{C} with 𝒜(R)𝒜\V\mathcal{A}(R)\subseteq\mathcal{A}\text{\textbackslash}V such that PRP\vdash R.

In this case, PP^{*} is said to be a uniform interpolant of PP with respect to VV.

We say that a forgetting operator 𝖿\mathsf{f} over a class 𝒞\mathcal{C} of logic programs can be used to obtain uniform interpolants, if 𝖿(P,V)\mathsf{f}(P,V) is a uniform interpolant of PP with respect to VV, for every P𝒞P\in\mathcal{C} and V𝒜\VV\subseteq\mathcal{A}\text{\textbackslash}V. Gabbay et al. Gabbay et al. (2011) considered the non-monotonic skeptical consequence relation \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}} for logic programs, defined as PPP\mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}P^{\prime} if MPM\models P^{\prime}, for every M𝒜𝒮(P)M\in\mathcal{AS}(P). Using a forgetting operator in 𝖥sem\mathsf{F}_{sem}, as defined by Eiter and Wang Eiter and Wang (2008), Gabbay et al. showed that, with respect to the consequence relation \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}, the class of disjunctive programs satisfies uniform interpolation for programs RR composed of facts. Later, Wang et al. Wang et al. (2013) extended this result by showing that, with respect to the consequence relation \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}, the class of all logic programs satisfies uniform interpolation. Besides knowing that the class 𝒞e\mathcal{C}_{e} 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 \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}, and in fact the two inclusions of (CP), i.e., (wC) and (sC), imply, respectively, conditions (i)(i) and (ii)(ii) of the definition of uniform interpolation.

Theorem 7

If a class 𝖥\mathsf{F} of operators over a class 𝒞\mathcal{C} of logic programs satisfies property (CP), then every operator of that class can be used to obtain uniform interpolants w.r.t. \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}.

Given the above result, we know that every forgetting operator satisfying (CP) can be used to obtain uniform interpolants, namely the classes 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 𝖥𝖬\mathsf{F}_{\sf M}, and 𝖥𝖴𝖯\mathsf{F}_{\sf UP}. Class 𝖥Sas\mathsf{F}_{Sas} 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 𝖥𝖱\mathsf{F}_{\sf R} satisfies the conditions of uniform interpolation.

Theorem 8

Every forgetting operator of the classes 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 𝖥𝖬\mathsf{F}_{\sf M}, 𝖥𝖴𝖯\mathsf{F}_{\sf UP}, and 𝖥𝖱\mathsf{F}_{\sf R} can be used to obtain uniform interpolants with respect to \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}.

None of the other classes of forgetting operators can be used to obtain uniform interpolants with respect to \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}, 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 𝖥sem\mathsf{F}_{sem} satisfies the conditions of uniform interpolation when RR is a set of facts. Although condition (ii)(ii) is satisfied in general, we can see that this is not the case for condition (i)(i). Consider the program P={ap,ab,pnotb,bnotp}P=\{a\leftarrow p,a\leftarrow b,p\leftarrow not\,b,b\leftarrow not\,p\} over 𝒜={a,b,c,p}\mathcal{A}=\{a,b,c,p\}, where 𝒜𝒮(P)={{a,p},{a,b}}\mathcal{AS}(P)=\{\{a,p\},\{a,b\}\}. Then, since the only restriction that any 𝖿𝖥sem\mathsf{f}\in\mathsf{F}_{sem} has to satisfy is 𝒜𝒮(𝖿(P,p))={{a}}\mathcal{AS}(\mathsf{f}(P,p))=\{\{a\}\}, we can consider 𝖿(P,p)={a,cb}\mathsf{f}(P,p)=\{a\leftarrow,c\leftarrow b\}. In this case P𝖿(P,p)P\not\mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}\mathsf{f}(P,p), showing that condition (i)(i) of uniform interpolation is not satisfied.

In the case of 𝖥weak\mathsf{F}_{weak}, consider the program P={anotb,bnota}P=\{a\leftarrow not\,b,b\leftarrow not\,a\}, for which 𝒜𝒮(P)={{a},{b}}\mathcal{AS}(P)=\{\{a\},\{b\}\}. In this case, 𝖿weak(P,a)={b}\mathsf{f}_{weak}(P,a)=\{b\leftarrow\}. But since {a}⊧̸𝖿weak(P,a)\{a\}\not\models\mathsf{f}_{weak}(P,a), we have that P𝖿weak(P,a)P\not\mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}\mathsf{f}_{weak}(P,a), and therefore condition (i)(i) of uniform interpolation is not satisfied. For the classes 𝖥strong\mathsf{F}_{strong} and 𝖥S\mathsf{F}_{S}, consider the program P={bnota}P=\{b\leftarrow not\,a\}, where 𝒜𝒮(P)={{b}}\mathcal{AS}(P)=\{\{b\}\}. In this case, for 𝖿(𝖥strong𝖥S)\mathsf{f}\in(\mathsf{F}_{strong}\cup\mathsf{F}_{S}), we have that 𝖿(P,a)𝖧𝖳{}\mathsf{f}(P,a)\equiv_{\sf HT}\{\}, and therefore 𝒜𝒮(𝖿(P,a))={{}}\mathcal{AS}(\mathsf{f}(P,a))=\{\{\}\}. If we take R={b}R=\{b\leftarrow\}, then PRP\mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}R, but 𝖿(P,a)R\mathsf{f}(P,a)\not\mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}R, which means that condition (ii)(ii) of uniform interpolation is not satisfied.

For 𝖥W\mathsf{F}_{W}, consider the program P={b,ab}P=\{b\leftarrow,a\leftarrow b\}, where 𝒜𝒮(P)={{a,b}}\mathcal{AS}(P)=\{\{a,b\}\}. In this case, for 𝖿𝖥W\mathsf{f}\in\mathsf{F}_{W}, we have 𝖿(P,a)={b,b}\mathsf{f}(P,a)=\{b\leftarrow,\bot\leftarrow b\}, and therefore 𝒜𝒮(𝖿(P,a))={}\mathcal{AS}(\mathsf{f}(P,a))=\{\}. But since {a,p}⊧̸𝖿(P,a)\{a,p\}\not\models\mathsf{f}(P,a), we have that P𝖿(P,a)P\not\mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}\mathsf{f}(P,a), and therefore condition (i)(i) of uniform interpolation is not satisfied.

If we now consider 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, we can take a program PP such that 𝒯(P)={ab,ab,b,ab}\mathcal{HT}(P)=\{\langle ab,ab\rangle,\langle b,ab\rangle\}. Therefore, 𝒜𝒮(P)={}\mathcal{AS}(P)=\{\}. In this case, for 𝖿𝖥𝖧𝖳\mathsf{f}\in\mathsf{F}_{{\sf HT}}, we have 𝒯(𝖿(P,a))={b,b}\mathcal{HT}(\mathsf{f}(P,a))=\{\langle b,b\rangle\}, and therefore 𝒜𝒮(𝖿(P,a))={{b}}\mathcal{AS}(\mathsf{f}(P,a))=\{\{b\}\}. If we take R={notb}R=\{\bot\leftarrow not\,b\}, then PRP\mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}R, but 𝖿(P,a)R\mathsf{f}(P,a)\not\mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}R, which means that condition (ii)(ii) of uniform interpolation is not satisfied.

Finally, in the case of 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, consider the program P={ap,bnotp,pnotnotp}P=\{a\leftarrow p,b\leftarrow not\,p,p\leftarrow not\,not\,p\}, for which 𝒜𝒮(P)={{a,p},{b}}\mathcal{AS}(P)=\{\{a,p\},\{b\}\}. In this case, for 𝖿𝖥𝖲𝖯\mathsf{f}\in\mathsf{F}_{\sf SP}, we have 𝒜𝒮(𝖿(P,p))={{a},{b},{a,b}}\mathcal{AS}(\mathsf{f}(P,p))=\{\{a\},\{b\},\{a,b\}\}. If we take R={a,b}R=\{\bot\leftarrow a,b\}, then PRP\mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}R, but 𝖿(P,a)R\mathsf{f}(P,a)\not\mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}R, which means that condition (ii)(ii) 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 \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}, 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 P={anotb,bnota,ca,cb}P=\{a\leftarrow not\,b,b\leftarrow not\,a,c\leftarrow a,c\leftarrow b\}, where 𝒜𝒮(P)={{a,c},{b,c}}\mathcal{AS}(P)=\{\{a,c\},\{b,c\}\}, and a forgetting operator 𝖿\mathsf{f} such that 𝖿(P,a)={c}\mathsf{f}(P,a)=\{c\leftarrow\}. Then, it is clear that 𝖿\mathsf{f} cannot satisfy (CP). Nevertheless, it satisfies the two conditions of uniform interpolation, and it could therefore, be taken as a uniform interpolant for PP.

This also reveals that uniform interpolation with respect to the skeptical consequence \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}} 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 \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}} only imposes the preservation of skeptical consequence.

Hence, instead of using the weak skeptical consequence, \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}, as originally considered by Gabbay et al. Gabbay et al. (2011), HT-consequence, 𝖧𝖳\models_{\sf HT}, is arguably a more suitable consequence relation for uniform interpolation with respect to logic programs. In this case, conditions (i)(i) and (ii)(ii) 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 𝖥\mathsf{F} of forgetting operators can be used to obtain uniform interpolants w.r.t. 𝖧𝖳\models_{\sf HT} iff 𝖥\mathsf{F} 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 𝖧𝖳\models_{\sf HT}.

Theorem 10

Every forgetting operator of the classes 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} and 𝖥S\mathsf{F}_{S} can be used to obtain uniform interpolants with respect to 𝖧𝖳\models_{\sf HT}.

The classes 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} and 𝖥S\mathsf{F}_{S} 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 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} is precisely characterized by (W) and (PP), which also means that it precisely characterizes uniform interpolation with respect to 𝖧𝖳\models_{\sf HT}. 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 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} to obtain uniform interpolants, since 𝖥S\mathsf{F}_{S} 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 \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}} seems too weak to capture forgetting and 𝖧𝖳\models_{\sf HT} 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 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, and 𝖥𝖬\mathsf{F}_{\sf M}.

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 𝖧𝖳\models_{\sf HT}, i.e., 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} and 𝖥S\mathsf{F}_{S}, among which, according to our considerations in Sect. 6.4, we prefer to recommend 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, 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 𝖥𝖴𝖯\mathsf{F}_{\sf UP} 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, 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} would be most suitable. However, since this class does not come with a known syntactic operator, among the two, 𝖥S\mathsf{F}_{S} 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., 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, 𝖥𝖬\mathsf{F}_{\sf M}, and 𝖥𝖴𝖯\mathsf{F}_{\sf UP}, are in general the most useful, except for those applications that are closer related to uniform interpolation, in which case 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} 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 𝖥\mathsf{F}:

  1. 1.

    (W) is equivalent to (NP);

  2. 2.

    (SP) implies (SE);

  3. 3.

    (CP) and (SI) together are equivalent to (SP);

  4. 4.

    (sC) and (wC) together are equivalent to (CP);

  5. 5.

    (CP) implies (wE);

  6. 6.

    (SE) and (SI) together imply (PP);

  7. 7.

    (wSP) and (sSP) together are equivalent to (SP);

  8. 8.

    (sC) and (SI) together imply (sSP);

  9. 9.

    (wC) and (SI) together imply (wSP);

  10. 10.

    (W) and (PP) together imply (SC);

  11. 11.

    (SC) implies (SE);

  12. 12.

    (W) implies (NC);

  13. 13.

    (wC) is incompatible with (W) for 𝖥\mathsf{F} over 𝒞\mathcal{C} such that 𝒞n𝒞\mathcal{C}_{n}\subseteq\mathcal{C};

  14. 14.

    (wC) and (UI) together are incompatible with (RC) for 𝖥\mathsf{F} over 𝒞\mathcal{C} such that 𝒞n𝒞\mathcal{C}_{n}\subseteq\mathcal{C}.

  15. 15.

    (SI) implies (UI);

  16. 16.

    (CP) and (UI) together are equivalent to (UP);

  17. 17.

    (SI) implies (𝐒𝐈𝐮){\bf(SI_{u})};

  18. 18.

    (UP) is incompatible with (𝐒𝐈𝐮){\bf(SI_{u})}.

Proof 7.11.

The first two results were already proven in the literature, so we focus on the remainder.

To show 3., first, let 𝖥\mathsf{F} be a class of operators satisfying (SP). Let 𝖿𝖥\mathsf{f}\in\mathsf{F}, V𝒜V\subseteq\mathcal{A}, and PP a program. The fact that 𝖥\mathsf{F} satisfies (CP) follows immediately from (SP), by taking R=R=\emptyset. The proof that (SP) implies (SI) involves reasoning with subsignatures. For a program PP^{\prime} over 𝒜V\mathcal{A}\setminus V, we denote by 𝒯V(P)\mathcal{HT}_{\parallel V}(P) the set of HT-models of PP over signature 𝒜V\mathcal{A}\setminus V. Let R𝒞R\in\mathcal{C} with 𝒜(R)𝒜V\mathcal{A}(R)\subseteq\mathcal{A}\setminus V. To show (SI) we aim to prove that 𝖿(P,V)R𝖧𝖳𝖿(PR,V)\mathsf{f}(P,V)\cup R\equiv_{\sf HT}\mathsf{f}(P\cup R,V), i.e., 𝒯(𝖿(P,V)R)=𝒯(𝖿(PR,V))\mathcal{HT}(\mathsf{f}(P,V)\cup R)=\mathcal{HT}(\mathsf{f}(P\cup R,V)). We first prove that 𝖿(P,V)R𝖧𝖳𝖿(PR,V)\mathsf{f}(P,V)\cup R\equiv_{\sf HT}\mathsf{f}(P\cup R,V) for the restricted signature 𝒜V\mathcal{A}\setminus V, i.e., 𝒯V(𝖿(P,V)R)=𝒯V(𝖿(PR,V))\mathcal{HT}_{\parallel V}(\mathsf{f}(P,V)\cup R)=\mathcal{HT}_{\parallel V}(\mathsf{f}(P\cup R,V)). Let RR^{\prime} be a program such that 𝒜(R)𝒜V\mathcal{A}(R^{\prime})\subseteq\mathcal{A}\setminus V. Then, by (SP), we have 𝒜𝒮(𝖿(P,V)RR)=𝒜𝒮(PRR)V\mathcal{AS}(\mathsf{f}(P,V)\cup R\cup R^{\prime})=\mathcal{AS}(P\cup R\cup R^{\prime})_{\parallel V}. Also by (SP), we have 𝒜𝒮(𝖿(PR,V)R)=𝒜𝒮(PRR)V\mathcal{AS}(\mathsf{f}(P\cup R,V)\cup R^{\prime})=\mathcal{AS}(P\cup R\cup R^{\prime})_{\parallel V}. Therefore, 𝒜𝒮(𝖿(P,V)RR)=𝒜𝒮(𝖿(PR,V)R)\mathcal{AS}(\mathsf{f}(P,V)\cup R\cup R^{\prime})=\mathcal{AS}(\mathsf{f}(P\cup R,V)\cup R^{\prime}). This means that 𝖿(P,V)R𝖧𝖳𝖿(PR,V)\mathsf{f}(P,V)\cup R\equiv_{\sf HT}\mathsf{f}(P\cup R,V) for the restricted signature 𝒜V\mathcal{A}\setminus V, i.e., 𝒯V(𝖿(P,V)R)=𝒯V(𝖿(PR,V))\mathcal{HT}_{\parallel V}(\mathsf{f}(P,V)\cup R)=\mathcal{HT}_{\parallel V}(\mathsf{f}(P\cup R,V)). Now let MM be an HT-interpretation over 𝒜\mathcal{A}. Then, since 𝖿(P,V)R\mathsf{f}(P,V)\cup R is a program over 𝒜V\mathcal{A}\setminus V, we have that M𝖧𝖳𝖿(P,V)RM\models_{\sf HT}\mathsf{f}(P,V)\cup R iff MV𝖧𝖳𝖿(P,V)RM_{\parallel V}\models_{\sf HT}\mathsf{f}(P,V)\cup R. Since 𝒯V(𝖿(P,V)R)=𝒯V(𝖿(PR,V))\mathcal{HT}_{\parallel V}(\mathsf{f}(P,V)\cup R)=\mathcal{HT}_{\parallel V}(\mathsf{f}(P\cup R,V)), we have that MV𝖧𝖳𝖿(P,V)RM_{\parallel V}\models_{\sf HT}\mathsf{f}(P,V)\cup R iff MV𝖧𝖳𝖿(PR,V)M_{\parallel V}\models_{\sf HT}\mathsf{f}(P\cup R,V). Since 𝖿(PR,V)\mathsf{f}(P\cup R,V) is a program over 𝒜V\mathcal{A}\setminus V, we know that MV𝖧𝖳𝖿(PR,V)M_{\parallel V}\models_{\sf HT}\mathsf{f}(P\cup R,V) iff M𝖧𝖳𝖿(PR,V)M\models_{\sf HT}\mathsf{f}(P\cup R,V). Therefore, 𝒯(𝖿(P,V)R)=𝒯(𝖿(PR,V))\mathcal{HT}(\mathsf{f}(P,V)\cup R)=\mathcal{HT}(\mathsf{f}(P\cup R,V)).

Now let 𝖥\mathsf{F} be a class of operators satisfying (CP) and (SI). Let 𝖿𝖥\mathsf{f}\in\mathsf{F}, V𝒜V\subseteq\mathcal{A}, PP a program, and RR a program with 𝒜(R)𝒜V\mathcal{A}(R)\subseteq\mathcal{A}\setminus V. Using (SI) we have 𝒜𝒮(𝖿(P,V)R)=𝒜𝒮(𝖿(PR,V))\mathcal{AS}(\mathsf{f}(P,V)\cup R)=\mathcal{AS}(\mathsf{f}(P\cup R,V)). Using (CP) we have 𝒜𝒮(𝖿(PR,V))=𝒜𝒮(PR)V\mathcal{AS}(\mathsf{f}(P\cup R,V))=\mathcal{AS}(P\cup R)_{\parallel V}. Putting these together we have 𝒜𝒮(𝖿(P,V)R)=𝒜𝒮(PR)V\mathcal{AS}(\mathsf{f}(P,V)\cup R)=\mathcal{AS}(P\cup R)_{\parallel V}. 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 𝖥\mathsf{F} be a class of operators satisfying (CP). Let 𝖿𝖥\mathsf{f}\in\mathsf{F}, V𝒜V\subseteq\mathcal{A}, and P1,P2P_{1},P_{2} be two programs such that 𝒜𝒮(P1)=𝒜𝒮(P2)\mathcal{AS}(P_{1})=\mathcal{AS}(P_{2}). By (CP), we have the equalities: 𝒜𝒮(𝖿(P1,V))=𝒜𝒮(P1)V=𝒜𝒮(P2)V=𝒜𝒮(𝖿(P2,V))\mathcal{AS}(\mathsf{f}(P_{1},V))=\mathcal{AS}(P_{1})\setminus V=\mathcal{AS}(P_{2})\setminus V=\mathcal{AS}(\mathsf{f}(P_{2},V)). Thus, 𝒜𝒮(𝖿(P1,V))=𝒜𝒮(𝖿(P2,V))\mathcal{AS}(\mathsf{f}(P_{1},V))=\mathcal{AS}(\mathsf{f}(P_{2},V)).

To show 6., let 𝖥\mathsf{F} be a class of operators satisfying (SE) and (SI). Let 𝖿𝖥\mathsf{f}\in\mathsf{F}, V𝒜V\subseteq\mathcal{A}, and PP a program. Consider R={r:P𝖧𝖳r and r does not contain variables from V}R=\{r:P\models_{\sf HT}r\text{ and }r\text{ does not contain variables from }V\}. Then clearly 𝖿(P,V)R𝖧𝖳R\mathsf{f}(P,V)\cup R\models_{\sf HT}R. By (SI), we have that 𝖿(P,V)R𝖧𝖳𝖿(PR,V)\mathsf{f}(P,V)\cup R\equiv_{\sf HT}\mathsf{f}(P\cup R,V). We can then conclude that 𝖿(PR,V)𝖧𝖳R\mathsf{f}(P\cup R,V)\models_{\sf HT}R. Now, by (SE) and the fact that PR𝖧𝖳PP\cup R\equiv_{\sf HT}P, we can conclude that 𝖿(PR,V)𝖧𝖳𝖿(P,V)\mathsf{f}(P\cup R,V)\equiv_{\sf HT}\mathsf{f}(P,V). Therefore, 𝖿(P,V)𝖧𝖳R\mathsf{f}(P,V)\models_{\sf HT}R, i.e., 𝖿(P,V)𝖧𝖳r\mathsf{f}(P,V)\models_{\sf HT}r for every rule rr such that P𝖧𝖳rP\models_{\sf HT}r and rr does not contain VV. 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 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A} such that 𝖥\mathsf{F} satisfies (sC) and (SI). Consider M𝒜𝒮(𝖿(P,V)R)M\in\mathcal{AS}(\mathsf{f}(P,V)\cup R). By (SI), we have that M𝒜𝒮(𝖿(PR,V))M\in\mathcal{AS}(\mathsf{f}(P\cup R,V)). By (sC), we obtain M𝒜𝒮(PR)VM\in\mathcal{AS}(P\cup R)_{\parallel V} which finishes the proof.

To show 9., let 𝖿𝖥\mathsf{f}\in\mathsf{F}, P𝒞(𝖿)P\in\mathcal{C}(\mathsf{f}) and V𝒜V\subseteq\mathcal{A} such that 𝖥\mathsf{F} satisfies (wC) and (SI). Consider M𝒜𝒮(PR)VM\in\mathcal{AS}(P\cup R)_{\parallel V}. By (wC), we obtain M𝒜𝒮(𝖿(PR,V))M\in\mathcal{AS}(\mathsf{f}(P\cup R,V)). Then, by (SI), we have M𝒜𝒮(𝖿(P,V)R)M\in\mathcal{AS}(\mathsf{f}(P,V)\cup R) 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 P={ap;pnotnotp}P=\{a\leftarrow p;p\leftarrow not\,not\,p\} from which we want to forget about pp. Note that though the program uses double negation, we can easily replace pnotnotpp\leftarrow not\,not\,p by two rules pnotqp\leftarrow not\,q and qnotpq\leftarrow not\,p and forget both pp and qq. To ease the presentation, we rely on PP. The idea is now to show that in both cases, it is not possible to satisfy both (sets of) properties simultaneously. Note that PP has two answer sets, \emptyset and {a,p}\{a,p\}.

Consider first 13., and suppose both (wC) and (W) are satisfied. By (wC), we have that 𝒜𝒮(𝖿(P,{p})){,{a}}\mathcal{AS}(\mathsf{f}(P,\{p\}))\supseteq\{\emptyset,\{a\}\}. But there is only one rule over aa that has (at least) these two answer sets: anotnotaa\leftarrow not\,not\,a. Now, PP has an HT-model ,a\langle\emptyset,a\rangle, while a forgetting result 𝖿(P,{p})\mathsf{f}(P,\{p\}) 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 𝒜𝒮(𝖿(P,{p})){,{a}}\mathcal{AS}(\mathsf{f}(P,\{p\}))\supseteq\{\emptyset,\{a\}\}, and there is only one rule over aa that has (at least) these two answer sets: anotnotaa\leftarrow not\,not\,a. Let this rule be rr in (RC). Clearly, 𝖿(P,{p})𝖧𝖳r\mathsf{f}(P,\{p\})\models_{\sf HT}r. Consider rr^{\prime} such that P𝖧𝖳rP\models_{\sf HT}r^{\prime}. Note that thus rr^{\prime} cannot be rr itself. By (UI), we have 𝖿({r},{p}){a}𝖧𝖳𝖿({r}{a},{p})\mathsf{f}(\{r^{\prime}\},\{p\})\cup\{a\leftarrow\}\equiv_{\sf HT}\mathsf{f}(\{r^{\prime}\}\cup\{a\leftarrow\},\{p\}). We consider two cases. First, 𝖿({r},{p})\mathsf{f}(\{r^{\prime}\},\{p\}) has no HT-model ,a\langle\emptyset,a\rangle. Then, it cannot have an HT-model a,a\langle a,a\rangle. We derive a contradiction to the condition imposed by (UI). Second, 𝖿({r},{p})\mathsf{f}(\{r^{\prime}\},\{p\}) has an HT-model ,a\langle\emptyset,a\rangle (as well as a,a\langle a,a\rangle). But this is a contradiction to 𝖿(P,{p})𝖧𝖳r\mathsf{f}(P,\{p\})\models_{\sf HT}r, 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 RR by sets of facts. Finally, 17 is straightforward by the definitions of (SI) and (𝐒𝐈𝐮){\bf(SI_{u})}, and 18. has been shown by Gonçalves et al. Gonçalves et al. (2021).

Theorem 2. For all Horn programs PP, every V𝒜(P)V\subseteq\mathcal{A}(P), and all forgetting operators 𝖿1,𝖿2\mathsf{f}_{1},\mathsf{f}_{2} in the classes 𝖥strong\mathsf{F}_{strong}, 𝖥weak\mathsf{F}_{weak}, 𝖥S\mathsf{F}_{S}, 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 𝖥Sas\mathsf{F}_{Sas}, 𝖥𝖲𝖤\mathsf{F}_{\sf SE}, 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, 𝖥𝖬\mathsf{F}_{\sf M}, and 𝖥𝖴𝖯\mathsf{F}_{\sf UP}, it holds that 𝖿1(P,V)𝖧𝖳𝖿2(P,V)\mathsf{f}_{1}(P,V)\equiv_{\sf HT}\mathsf{f}_{2}(P,V).

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 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} 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 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}. 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 𝖥\mathsf{F} coincides with 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} on the class of Horn programs, we need to prove that 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} is closed for the class of Horn programs, and: (i) 𝖥\mathsf{F} is closed for the class of Horn programs, (ii) 𝖥\mathsf{F} satisfies (W) and (PP) on the class of Horn programs.

The fact that 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} 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 𝖥strong\mathsf{F}_{strong} and 𝖥weak\mathsf{F}_{weak} that they coincide on the class of Horn programs. It is also clear that they are closed for this class. Since 𝖥strong\mathsf{F}_{strong} satisfies (W) (Theorem 5), 𝖥weak\mathsf{F}_{weak} 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 𝖥𝖲𝖤\mathsf{F}_{\sf SE} and 𝖥S\mathsf{F}_{S} coincide with 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} on the class of disjunctive programs, whenever the result of 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} is a disjunctive program. Since 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} is closed for the class of Horn programs, it follows immediately that 𝖥𝖲𝖤\mathsf{F}_{\sf SE} and 𝖥S\mathsf{F}_{S} coincide with 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} when restricted to Horn programs.

It follows easily from the algorithm presented by Knorr and Alferes Knorr and Alferes (2014) that for 𝖿Sas𝖥Sas\mathsf{f}_{Sas}\in\mathsf{F}_{Sas}, V𝒜V\subseteq\mathcal{A}, and PP a Horn program 𝖿Sas(P,V)𝖧𝖳𝖿strong(P,V)\mathsf{f}_{Sas}(P,V)\equiv_{\sf HT}\mathsf{f}_{strong}(P,V). As a consequence, 𝖥Sas\mathsf{F}_{Sas}, just as 𝖥strong\mathsf{F}_{strong}, coincides with 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} on the class of Horn programs.

Since 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} coincides with 𝖥Sas\mathsf{F}_{Sas} for Horn programs, we have that 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} satisfies (CP) for Horn programs. Therefore, by definition, 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} coincides with 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} for Horn programs.

In the case of 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, and 𝖥𝖬\mathsf{F}_{\sf M}, the result is a consequence of Proposition 6 Gonçalves et al. (2020), which shows that 𝖥𝖲𝖯\mathsf{F}_{\sf SP} coincides with 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} when restricted to Horn programs, and Proposition 21 Gonçalves et al. (2020), which shows that the three classes 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, and 𝖥𝖬\mathsf{F}_{\sf M} coincide when restricted to Horn programs.

Finally, in the case of 𝖥𝖴𝖯\mathsf{F}_{\sf UP}, Proposition 1 Gonçalves et al. (2019) shows that 𝖥𝖴𝖯\mathsf{F}_{\sf UP} coincides with 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} when restricted to Horn programs.

Theorem 3. Consider the class of disjunctive programs. Then, 𝖥S\mathsf{F}_{S} and 𝖥𝖲𝖤\mathsf{F}_{\sf SE} coincide.

Proof 7.13.

First recall that, on the one hand, given a disjunctive program PP and V𝒜V\subseteq\mathcal{A}, PS(P,V)P_{S}(P,V) is defined by removing from Cn(P,a)={rr disjunctive,P𝖧𝖳rCn(P,a)=\{r\mid r\text{ disjunctive},P\models_{\sf HT}r, 𝒜(r)𝒜(P)}\mathcal{A}(r)\subseteq\mathcal{A}(P)\} all rules in which atoms from VV occur. On the other hand, given a disjunctive program PP and V𝒜V\subseteq\mathcal{A}, for any 𝖿𝖲𝖤𝖥𝖲𝖤\mathsf{f}_{\sf SE}\in\mathsf{F}_{\sf SE}, we have that 𝖿𝖲𝖤(P,V)\mathsf{f}_{\sf SE}(P,V) is equivalent to Cn𝒜(P)𝒜(P)VCn_{\mathcal{A}}(P)\cap\mathcal{L}_{\mathcal{A}(P)\setminus V}, where Cn𝒜(P)={r𝒜r disjunctive,Psr}Cn_{\mathcal{A}}(P)=\{r\in\mathcal{L}_{\mathcal{A}}\mid r\text{ disjunctive},P\vdash_{s}r\}. Since, as Wong Wong (2009) showed, the consequence s\vdash_{s} is sound and complete with respect to 𝖧𝖳\models_{\sf HT}, we have that Cn(P,a)=Cn𝒜(P)𝒜(P)Cn(P,a)=Cn_{\mathcal{A}}(P)\cap\mathcal{L}_{\mathcal{A}(P)}. Therefore, Cn(P,a)𝒜(P)V=Cn𝒜(P)𝒜(P)VCn(P,a)\cap\mathcal{L}_{\mathcal{A}(P)\setminus V}=Cn_{\mathcal{A}}(P)\cap\mathcal{L}_{\mathcal{A}(P)\setminus V}. This means that 𝖿𝖥S\mathsf{f}\in\mathsf{F}_{S} iff 𝖿(P,V)𝖧𝖳Cn(P,a)𝒜(P)V\mathsf{f}(P,V)\equiv_{\sf HT}Cn(P,a)\cap\mathcal{L}_{\mathcal{A}(P)\setminus V} iff 𝖿(P,V)𝖧𝖳Cn𝒜(P)𝒜(P)V\mathsf{f}(P,V)\equiv_{\sf HT}Cn_{\mathcal{A}}(P)\mathcal{L}_{\mathcal{A}(P)\setminus V} iff 𝖿𝖥𝖲𝖤\mathsf{f}\in\mathsf{F}_{\sf SE}. Therefore, 𝖥S=𝖥𝖲𝖤\mathsf{F}_{S}=\mathsf{F}_{\sf SE}.

Theorem 4. Let PP be a disjunctive program, V𝒜(P)V\subseteq\mathcal{A}(P), 𝖿S𝖥S\mathsf{f}_{S}\in\mathsf{F}_{S}, 𝖿𝖧𝖳𝖥𝖧𝖳\mathsf{f}_{{\sf HT}}\in\mathsf{F}_{{\sf HT}}, and 𝖿𝖲𝖤𝖥𝖲𝖤\mathsf{f}_{\sf SE}\in\mathsf{F}_{\sf SE}. Then, 𝖿S(P,V)𝖧𝖳𝖿𝖧𝖳(P,V)𝖧𝖳𝖿𝖲𝖤(P,V)\mathsf{f}_{S}(P,V)\equiv_{\sf HT}\mathsf{f}_{{\sf HT}}(P,V)\equiv_{\sf HT}\mathsf{f}_{\sf SE}(P,V) whenever 𝖿𝖧𝖳(P,V)\mathsf{f}_{{\sf HT}}(P,V) is strongly equivalent to a disjunctive program.

Proof 7.14.

Let PP be a disjunctive program, V𝒜(P)V\subseteq\mathcal{A}(P), such that 𝖿𝖧𝖳(P,V)\mathsf{f}_{{\sf HT}}(P,V) is strongly equivalent to a disjunctive program. We only prove that 𝖿𝖧𝖳(P,V)𝖧𝖳𝖿𝖲𝖤(P,V)\mathsf{f}_{{\sf HT}}(P,V)\equiv_{\sf HT}\mathsf{f}_{\sf SE}(P,V) since Theorem 3 already states that 𝖿S(P,V)𝖧𝖳𝖿𝖲𝖤(P,V)\mathsf{f}_{S}(P,V)\equiv_{\sf HT}\mathsf{f}_{\sf SE}(P,V). Since both 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} and 𝖥𝖲𝖤\mathsf{F}_{\sf SE} satisfy (W), we have that (i)(i) P𝖧𝖳𝖿𝖧𝖳(P,V)P\models_{\sf HT}\mathsf{f}_{{\sf HT}}(P,V) and (ii)(ii) P𝖧𝖳𝖿𝖲𝖤(P,V)P\models_{\sf HT}\mathsf{f}_{\sf SE}(P,V). Since 𝖥𝖲𝖤\mathsf{F}_{\sf SE} satisfies (PP) (restricted to disjunctives programs) and 𝖿𝖧𝖳(P,V)\mathsf{f}_{{\sf HT}}(P,V) is equivalent to a disjunctive program, we can use (i)(i) to conclude that 𝖿𝖲𝖤(P,V)𝖧𝖳𝖿𝖧𝖳(P,V)\mathsf{f}_{\sf SE}(P,V)\models_{\sf HT}\mathsf{f}_{{\sf HT}}(P,V). Since 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} satisfies (PP) we can use (ii)(ii) to conclude that 𝖿𝖧𝖳(P,V)𝖧𝖳𝖿𝖲𝖤(P,V)\mathsf{f}_{{\sf HT}}(P,V)\models_{\sf HT}\mathsf{f}_{\sf SE}(P,V). Therefore, 𝖿𝖲𝖤(P,V)𝖧𝖳𝖿𝖧𝖳(P,V)\mathsf{f}_{\sf SE}(P,V)\equiv_{\sf HT}\mathsf{f}_{{\sf HT}}(P,V).

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.

𝖥strong\mathsf{F}_{strong} satisfies (W), (SI), (RC), (NC), (PI), (UI), (𝐒𝐈𝐮){\bf(SI_{u})}, (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞n{}_{\mathcal{C}_{n}}), but not (sC), (wE), (SE), (PP), (SC), (CP), (SP), (wC), (wSP), (sSP) and (UP).

Proof 7.16.

To prove (W), let PP be a normal logic program over a signature 𝒜\mathcal{A}, and v𝒜v\subseteq\mathcal{A}. In the first step of the definition of 𝖿strong(P,V)\mathsf{f}_{strong}(P,V) we obtain an intermediate program PP^{\prime} by adding to PP, for each vVv\in V, the rules aB1,B2,notC1,notC2a\leftarrow B_{1},B_{2},not\,C_{1},not\,C_{2} such that aB1,v,notC1a\leftarrow B_{1},v,not\,C_{1} and vB2,notC2v\leftarrow B_{2},not\,C_{2} are in PP. By Lemma 7.59 every HTHT model of both aB1,v,notC1a\leftarrow B_{1},v,not\,C_{1} and vB2,notC2v\leftarrow B_{2},not\,C_{2} is also a model of aB1,B2,notC1,notC2a\leftarrow B_{1},B_{2},not\,C_{1},not\,C_{2}. Thus, 𝒯(P)𝒯(P)\mathcal{HT}(P)\subseteq\mathcal{HT}(P^{\prime}). Therefore, 𝒯(PP)=𝒯(P)𝒯(P)=𝒯(P)\mathcal{HT}(P\cup P^{\prime})=\mathcal{HT}(P)\cap\mathcal{HT}(P^{\prime})=\mathcal{HT}(P), i.e., PPP\cup P^{\prime} is strongly equivalent to PP. In the second and last step of the definition of 𝖿strong(P,V)\mathsf{f}_{strong}(P,V), all rules from PPP\cup P^{\prime} containing some vVv\in V are eliminated, thus obtaining 𝖿strong(P,V)\mathsf{f}_{strong}(P,V). Since 𝖿strong(P,V)PP\mathsf{f}_{strong}(P,V)\subseteq P\cup P^{\prime}, we have that 𝒯(P)=𝒯(PP)𝒯(𝖿strong(P,V))\mathcal{HT}(P)=\mathcal{HT}(P\cup P^{\prime})\subseteq\mathcal{HT}(\mathsf{f}_{strong}(P,V)). 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 PP be a normal logic program over a signature 𝒜\mathcal{A} and let V𝒜V\subseteq\mathcal{A}. Let PVP_{\parallel V} be the set of rules of PP that do not mention any vVv\in V. It follows from the definition of Strong Forgetting that PV𝖿strong(P,V)P_{\parallel V}\subseteq\mathsf{f}_{strong}(P,V). Let RR be a normal logic program over 𝒜V\mathcal{A}\setminus V. We now prove that 𝖿strong(PR,V)=𝖿strong(P,V)R\mathsf{f}_{strong}(P\cup R,V)=\mathsf{f}_{strong}(P,V)\cup R. Let us prove the two inclusions.

For the left to right inclusion, let r𝖿strong(PR,V)r\in\mathsf{f}_{strong}(P\cup R,V). Then, we have two cases:

a)

rPVRr\in P_{\parallel V}\cup R. Then using the above observation we have that r𝖿strong(P,V)Rr\in\mathsf{f}_{strong}(P,V)\cup R.

b)

r=AB,B,notC,notCr=A\leftarrow B,B^{\prime},not\,C,not\,C^{\prime} such that there exist r1,r2PRr_{1},r_{2}\in P\cup R and vVv\in V such that r1=AB,v,notCr_{1}=A\leftarrow B,v,not\,C and r2=vB,notCr_{2}=v\leftarrow B^{\prime},not\,C^{\prime}. In this case, r1,r2Pr_{1},r_{2}\in P since RR does not contain rules with atoms from VV. Therefore, we can immediately conclude that r𝖿strong(P,V)r\in\mathsf{f}_{strong}(P,V), and then r𝖿strong(P,V)Rr\in\mathsf{f}_{strong}(P,V)\cup R.

For the converse inclusion, let r𝖿strong(P,V)Rr\in\mathsf{f}_{strong}(P,V)\cup R. Then, we have two cases:

c)

rRr\in R. Then using the above observation we have that r𝖿strong(PR,V)r\in\mathsf{f}_{strong}(P\cup R,V).

d)

r𝖿strong(P,V)r\in\mathsf{f}_{strong}(P,V). If rPVr\in P_{\parallel V}, then using the above observation we have r𝖿strong(PR,V)r\in\mathsf{f}_{strong}(P\cup R,V). Otherwise, if r=AB,B,notC,notCr=A\leftarrow B,B^{\prime},not\,C,not\,C^{\prime} such that there exist r1,r2Pr_{1},r_{2}\in P and vVv\in V such that r1=AB,v,notCr_{1}=A\leftarrow B,v,not\,C and r2=vB,notCr_{2}=v\leftarrow B^{\prime},not\,C^{\prime}. In this case, also r1,r2PRr_{1},r_{2}\in P\cup R, and we can immediately conclude that r𝖿strong(PR,V)r\in\mathsf{f}_{strong}(P\cup R,V).

The fact that 𝖥strong\mathsf{F}_{strong} satisfies (RC), (NC) and (PI) was proved by Gonçalves et al. Gonçalves et al. (2017).

The fact that 𝖥strong\mathsf{F}_{strong} satisfies (UI) follows from the already proved fact that 𝖥strong\mathsf{F}_{strong} satisfies (SI), and item 15 of Thm. 1.

The fact that 𝖥strong\mathsf{F}_{strong} satisfies (𝐒𝐈𝐮){\bf(SI_{u})} follows from the already proved fact that 𝖥strong\mathsf{F}_{strong} satisfies (SI), and item 17 of Thm. 1.

The fact that (E𝒞H{}_{\mathcal{C}_{H}}) is satisfied follows from the simple observation that, when restricted to Horn programs, 𝖿strong\mathsf{f}_{strong} and 𝖿weak\mathsf{f}_{weak} coincide and the result is by definition always Horn.

Finally, the definition of the concrete operator 𝖿strong\mathsf{f}_{strong} by Zhang and Foo Zhang and Foo (2006) implicitly implies that 𝖥strong\mathsf{F}_{strong} satisfy (En).

For the negative results, Eiter and Wang Eiter and Wang (2008) provided counterexamples showing that 𝖥strong\mathsf{F}_{strong} does not satisfy (sC) and (wE); Wong Wong (2009) provided counterexamples showing that 𝖥strong\mathsf{F}_{strong} does not satisfy (SE); Wang et al. Wang et al. (2014) provided counterexamples showing that 𝖥strong\mathsf{F}_{strong} does not satisfy (PP), and Gonçalves et al. Gonçalves et al. (2017) provided a counterexample to show that 𝖥strong\mathsf{F}_{strong} does not satisfy (SC); Wang et al. Wang et al. (2013) presented a counterexample showing that 𝖥strong\mathsf{F}_{strong} does not satisfy (CP); and Knorr and Alferes Knorr and Alferes (2014) provided a counterexample showing that 𝖥strong\mathsf{F}_{strong} does not satisfy (SP).

For (wC), consider forgetting about bb from P={anotbP=\{a\leftarrow not\,b, bnota}b\leftarrow not\,a\}. Since 𝒜𝒮(P)={{a},{b}}\mathcal{AS}(P)=\{\{a\},\{b\}\}, to satisfy (wC), the result must have the two answer sets {a}\{a\} and \emptyset, which is not possible for disjunctive programs. Therefore, 𝖥strong\mathsf{F}_{strong} does not satisfy (wC).

Gonçalves et al. Gonçalves et al. (2020) showed that 𝖥strong\mathsf{F}_{strong} does not satisfy (wSP) and (sSP), and that it does not satisfy (UP) Gonçalves et al. (2019).

Theorem 7.17.

𝖥weak\mathsf{F}_{weak} satisfies (PP), (SI), (RC), (NC), (PI), (UI), (𝐒𝐈𝐮){\bf(SI_{u})}, (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞n{}_{\mathcal{C}_{n}}), 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 P𝖧𝖳rP\models_{\sf HT}r, where 𝒜(r)𝒜\V\mathcal{A}(r)\subseteq\mathcal{A}\text{\textbackslash}V. Now recall that every rule of PP 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 rr must also be a consequence of the result of forgetting.

For (SI), let PP be a normal logic program over a signature 𝒜\mathcal{A} and let V𝒜V\subseteq\mathcal{A}. Let PVP_{\parallel V} be the set of rules of PP that do not mention any vVv\in V. It follows from the definition of Weak Forgetting that PV𝖿weak(P,V)P_{\parallel V}\subseteq\mathsf{f}_{weak}(P,V). Let RR be a normal logic program over 𝒜V\mathcal{A}\setminus V. We now prove that 𝖿weak(PR,V)=𝖿weak(P,V)R\mathsf{f}_{weak}(P\cup R,V)=\mathsf{f}_{weak}(P,V)\cup R. Let us prove the two inclusions.

For the left to right inclusion, let r𝖿weak(PR,V)r\in\mathsf{f}_{weak}(P\cup R,V). Then, we have three cases:

a)

rPVRr\in P_{\parallel V}\cup R. Then using the above observation we have that r𝖿weak(P,V)Rr\in\mathsf{f}_{weak}(P,V)\cup R.

b)

r=AB,B,notC,notCr=A\leftarrow B,B^{\prime},not\,C,not\,C^{\prime} such that there exist vVv\in V, r1,r2PRr_{1},r_{2}\in P\cup R such that r1=AB,v,notCr_{1}=A\leftarrow B,v,not\,C and r2=vB,notCr_{2}=v\leftarrow B^{\prime},not\,C^{\prime}. In this case, r1,r2Pr_{1},r_{2}\in P since RR does not contain any vVv\in V. Therefore, we can immediately conclude that r𝖿weak(P,V)r\in\mathsf{f}_{weak}(P,V), and then r𝖿weak(P,V)Rr\in\mathsf{f}_{weak}(P,V)\cup R.

c)

r=AB,notCr=A\leftarrow B,not\,C such that there exists vVv\in V and r1=AB,notv,notCPRr_{1}=A\leftarrow B,not\,v,not\,C\in P\cup R. Then, r1Pr_{1}\in P since RR does not contain any vVv\in V. Therefore, we can conclude that r𝖿weak(P,V)r\in\mathsf{f}_{weak}(P,V), and then r𝖿weak(P,V)Rr\in\mathsf{f}_{weak}(P,V)\cup R.

For the converse inclusion, let r𝖿weak(P,V)Rr\in\mathsf{f}_{weak}(P,V)\cup R. Then, we have two cases:

e)

rRr\in R. Then using the above observation we have that r𝖿weak(PR,V)r\in\mathsf{f}_{weak}(P\cup R,V).

f)

r𝖿weak(P,V)r\in\mathsf{f}_{weak}(P,V).

  • i)

    If rPVr\in P_{\parallel V}, then using the above observation we have r𝖿weak(PR,V)r\in\mathsf{f}_{weak}(P\cup R,V).

  • ii)

    If r=AB,B,notC,notCr=A\leftarrow B,B^{\prime},not\,C,not\,C^{\prime} such that there exist vVv\in V, and r1,r2Pr_{1},r_{2}\in P such that r1=AB,v,notCr_{1}=A\leftarrow B,v,not\,C and r2=vB,notCr_{2}=v\leftarrow B^{\prime},not\,C^{\prime}. In this case, also r1,r2PRr_{1},r_{2}\in P\cup R, and we can immediately conclude that r𝖿weak(PR,V)r\in\mathsf{f}_{weak}(P\cup R,V).

  • iii)

    If r=AB,notCr=A\leftarrow B,not\,C such that there exist vVv\in V, and r1=AB,notv,notCPr_{1}=A\leftarrow B,not\,v,not\,C\in P. Then, r1PRr_{1}\in P\cup R, and we can conclude that r𝖿weak(P,V)r\in\mathsf{f}_{weak}(P,V). Therefore, r𝖿weak(P,V)Rr\in\mathsf{f}_{weak}(P,V)\cup R.

The fact that 𝖥weak\mathsf{F}_{weak} 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 𝖥weak\mathsf{F}_{weak} satisfies (SI), and item 15 of Thm. 1.

The fact that 𝖥weak\mathsf{F}_{weak} satisfies (𝐒𝐈𝐮){\bf(SI_{u})} follows from the already proved fact that 𝖥weak\mathsf{F}_{weak} satisfies (SI), and item 17 of Thm. 1.

The fact that (E𝒞H{}_{\mathcal{C}_{H}}) is satisfied follows from the simple observation that, when restricted to Horn programs, 𝖿strong\mathsf{f}_{strong} and 𝖿weak\mathsf{f}_{weak} coincide and the result is by definition always Horn.

Finally, the definition of the concrete operator 𝖿weak\mathsf{f}_{weak} Zhang and Foo (2006) implicitly implies that 𝖥weak\mathsf{F}_{weak} satisfy (En).

For the negative results, Eiter and Wang Eiter and Wang (2008) provided counterexamples showing that 𝖥weak\mathsf{F}_{weak} does not satisfy (sC) and (wE); Wong Wong (2009) provides counterexamples showing that 𝖥weak\mathsf{F}_{weak} does not satisfy (SE); Wang et al. (2014) provided a counterexample showing that 𝖥weak\mathsf{F}_{weak} does not satisfy (W); the fact that 𝖥weak\mathsf{F}_{weak} 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 𝖥weak\mathsf{F}_{weak} does not satisfy (CP); and Knorr and Alferes Knorr and Alferes (2014) provided a counterexample showing that 𝖥weak\mathsf{F}_{weak} does not satisfy (SP).

For (wC), consider forgetting about bb from P={anotbP=\{a\leftarrow not\,b, bnota}b\leftarrow not\,a\}. Since 𝒜𝒮(P)={{a},{b}}\mathcal{AS}(P)=\{\{a\},\{b\}\}, to satisfy (wC), the result must have the two answer sets {a}\{a\} and \emptyset, which is not possible for disjunctive programs. Therefore, 𝖥weak\mathsf{F}_{weak} does not satisfy (wC).

Gonçalves et al. Gonçalves et al. (2020) showed that 𝖥weak\mathsf{F}_{weak} does not satisfy (wSP) and (sSP), and that it does not satisfy (UP)Gonçalves et al. (2019).

Theorem 7.19.

𝖥sem\mathsf{F}_{sem} satisfies (sC), (wE), (PI), (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞n{}_{\mathcal{C}_{n}}), (E𝒞d{}_{\mathcal{C}_{d}}), but not (SE), (W), (PP), (SI), (SC), (RC), (NC), (CP), (SP), (wC), (wSP), (sSP), (UP), (UI) and (𝐒𝐈𝐮){\bf(SI_{u})}.

Proof 7.20.

Eiter and Wang Eiter and Wang (2008) proved that 𝖥sem\mathsf{F}_{sem} satisfies (sC) (Proposition 6) and (wE) (Proposition 4), and, by the definitions of concrete operators, it is implicit that 𝖥sem\mathsf{F}_{sem} satisfies (E𝒞n{}_{\mathcal{C}_{n}}) and (E𝒞d{}_{\mathcal{C}_{d}}). The fact that 𝖥sem\mathsf{F}_{sem} satisfies (PI) was proved by Gonçalves et al. Gonçalves et al. (2017). Finally, in the case of (E𝒞H{}_{\mathcal{C}_{H}}) the result follows from the observation that a variant of 𝖿𝗈𝗋𝗀𝖾𝗍𝟣{\sf forget_{1}} 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 𝖥sem\mathsf{F}_{sem} 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 𝖥sem\mathsf{F}_{sem} 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 bb from P={anotbP=\{a\leftarrow not\,b, bnota}b\leftarrow not\,a\}. Since 𝒜𝒮(P)={{a},{b}}\mathcal{AS}(P)=\{\{a\},\{b\}\}, to satisfy (wC), the result must have the two answer sets {a}\{a\} and \emptyset, which is not possible for disjunctive programs. Therefore, 𝖥sem\mathsf{F}_{sem} does not satisfy (wC). Gonçalves et al. Gonçalves et al. (2020) showed that 𝖥sem\mathsf{F}_{sem} 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 bb from P={ab}P=\{a\leftarrow b\}. In this case, an operator 𝖿\mathsf{f} of 𝖥sem\mathsf{F}_{sem} is such that 𝖿(P,b)={}\mathsf{f}(P,b)=\{\}, but adding bb\leftarrow before and after forgetting gives rise to results with different sets of answer sets. Finally, for the case of (𝐒𝐈𝐮){\bf(SI_{u})}, consider P={ab}P=\{a\leftarrow b\} over the signature 𝒜={a,b,c}\mathcal{A}=\{a,b,c\}, and the program R={b}R=\{b\leftarrow\} over 𝒜\{c}\mathcal{A}\text{\textbackslash}\{c\}. Since 𝒜𝒮(P)={{}}\mathcal{AS}(P)=\{\{\}\} and 𝒜𝒮(PR)={{a,b}}\mathcal{AS}(P\cup R)=\{\{a,b\}\}, then, according to the definition of 𝖿𝗈𝗋𝗀𝖾𝗍𝟣𝖥sem{\sf forget_{1}}\in\mathsf{F}_{sem} in Eiter and Wang (2008), we have that 𝖿𝗈𝗋𝗀𝖾𝗍𝟣(P,{c})={}{\sf forget_{1}}(P,\{c\})=\{\} and 𝖿𝗈𝗋𝗀𝖾𝗍𝟣(PR,{c})={a,b}{\sf forget_{1}}(P\cup R,\{c\})=\{a\leftarrow,b\leftarrow\}. We can now easily see that 𝒜𝒮(𝖿𝗈𝗋𝗀𝖾𝗍𝟣(P,{c})R)={{b}}{{a,b}}=𝒜𝒮(𝖿𝗈𝗋𝗀𝖾𝗍𝟣(PR,{c}))\mathcal{AS}({\sf forget_{1}}(P,\{c\})\cup R)=\{\{b\}\}\neq\{\{a,b\}\}=\mathcal{AS}({\sf forget_{1}}(P\cup R,\{c\})), and therefore 𝖿𝗈𝗋𝗀𝖾𝗍𝟣(P,{c})Ru𝖿𝗈𝗋𝗀𝖾𝗍𝟣(PR,{c}){\sf forget_{1}}(P,\{c\})\cup R\not\equiv_{u}{\sf forget_{1}}(P\cup R,\{c\}).

Theorem 7.21.

𝖥S\mathsf{F}_{S} satisfies (SE), (W), (PP), (SC), (RC), (NC), (PI), (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞d{}_{\mathcal{C}_{d}}), but not (sC), (wE), (SI), (CP), (SP), (wC), (wSP), (sSP), (UP), (UI), (𝐒𝐈𝐮){\bf(SI_{u})} and (E𝒞n{}_{\mathcal{C}_{n}}).

Proof 7.22.

In the case of (SE), Wong Wong (2009) proved that 𝖥S\mathsf{F}_{S} satisfies (SE) (Lemma 4.27), and it is implicit that it satisfies (E𝒞d{}_{\mathcal{C}_{d}}). Delgrande and Wang Delgrande and Wang (2015) proved that 𝖥𝖲𝖤\mathsf{F}_{\sf SE} satisfies (SE), (W) and (PP) (Proposition 1). Therefore, by Thm. 3, the results also hold for 𝖥S\mathsf{F}_{S}. The fact that 𝖥S\mathsf{F}_{S} satisfies (SC), (RC), (NC) and (PI) was proved by Gonçalves et al. Gonçalves et al. (2017). Finally, the fact that (E𝒞H{}_{\mathcal{C}_{H}}) holds follows from Theorem 8 Wang et al. (2014), which states that 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} is closed for the class of Horn programs, and Thm. 4, which implies that the operators from 𝖥S\mathsf{F}_{S} are equivalent with those of 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} for Horn programs.

For the negative results, in the case of (sC), consider forgetting about aa from P={anota}P=\{a\leftarrow not\,a\}. The result should be strongly equivalent to \emptyset, i.e., the forgetting operation introduces a new answer set. Turning to (wE), this property requires that the results of forgetting about pp from P={qnotp,qnotq}P=\{q\leftarrow not\,p,q\leftarrow not\,q\} and from Q={q}Q=\{q\leftarrow\} have the same answer-sets, while 𝖥S\mathsf{F}_{S} requires that the results be strongly equivalent to 𝖿(P,p)={qnotq}\mathsf{f}(P,p)=\{q\leftarrow not\,q\} and 𝖿(Q,p)={q}\mathsf{f}(Q,p)=\{q\leftarrow\}, which are obviously not equivalent.

Wong Wong (2009) provided a counterexample showing that 𝖥S\mathsf{F}_{S} does not satisfy (SI). The fact that 𝖥S\mathsf{F}_{S} 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 bb from P={anotbP=\{a\leftarrow not\,b, bnota}b\leftarrow not\,a\}. Since 𝒜𝒮(P)={{a},{b}}\mathcal{AS}(P)=\{\{a\},\{b\}\}, to satisfy (wC), the result must have the two answer sets {a}\{a\} and \emptyset, which is not possible for disjunctive programs. Therefore, 𝖥S\mathsf{F}_{S} does not satisfy (wC). Gonçalves et al. Gonçalves et al. (2020) showed that 𝖥S\mathsf{F}_{S} does not satisfy (wSP) and (sSP), and that it does not satisfy (UP) Gonçalves et al. (2019).

To prove that 𝖥S\mathsf{F}_{S} does not satisfy (UI), consider forgetting about pp from the program P={anotp,b,pnota,p,b}P=\{a\leftarrow not\,p,b,\ p\leftarrow not\,a,\ \leftarrow p,b\}. We have that P{b}𝖧𝖳aP\cup\{b\leftarrow\}\models_{\sf HT}a\leftarrow, and since 𝖥S\mathsf{F}_{S} satisfies (PP), we have that 𝖿(P{b},p)𝖧𝖳a\mathsf{f}(P\cup\{b\leftarrow\},p)\models_{\sf HT}a\leftarrow. Since P⊧̸𝖧𝖳abP\not\models_{\sf HT}a\leftarrow b, we have that 𝖿(P,p)⊧̸𝖧𝖳ab\mathsf{f}(P,p)\not\models_{\sf HT}a\leftarrow b. Therefore 𝖿(P,p){b}⊧̸𝖧𝖳a\mathsf{f}(P,p)\cup\{b\leftarrow\}\not\models_{\sf HT}a\leftarrow.

For the case of (𝐒𝐈𝐮){\bf(SI_{u})}, consider the same program as for (UI), i.e., P={anotp,b,pnota,p,b}P=\{a\leftarrow not\,p,b,\ p\leftarrow not\,a,\ \leftarrow p,b\}. Again, we have that P{b}𝖧𝖳aP\cup\{b\leftarrow\}\models_{\sf HT}a\leftarrow, and since 𝖥S\mathsf{F}_{S} satisfies (PP), we have that 𝖿(P{b},p)𝖧𝖳a\mathsf{f}(P\cup\{b\leftarrow\},p)\models_{\sf HT}a\leftarrow. This means that 𝒯(𝖿(P{b},p})𝒯({a})={a,a,ab,ab,a,ab}\mathcal{HT}(\mathsf{f}(P\cup\{b\leftarrow\},p\})\subseteq\mathcal{HT}(\{a\leftarrow\})=\{\langle a,a\rangle,\langle ab,ab\rangle,\langle a,ab\rangle\}. Since, by using the same argument as before, it is also the case that 𝖿(P{b},p)𝖧𝖳b\mathsf{f}(P\cup\{b\leftarrow\},p)\models_{\sf HT}b\leftarrow, we can conclude that 𝒯(𝖿(P{b},p))𝒯({a})𝒯({b})={ab,ab}\mathcal{HT}(\mathsf{f}(P\cup\{b\leftarrow\},p))\subseteq\mathcal{HT}(\{a\leftarrow\})\cap\mathcal{HT}(\{b\leftarrow\})=\{\langle ab,ab\rangle\}. Since ab,ab𝒯(P{b})\langle ab,ab\rangle\in\mathcal{HT}(P\cup\{b\leftarrow\}) and 𝖥S\mathsf{F}_{S} satisfies (W), we have that ab,ab𝒯(𝖿(P{b},p))\langle ab,ab\rangle\in\mathcal{HT}(\mathsf{f}(P\cup\{b\leftarrow\},p)), and therefore 𝒯(𝖿(P{b},p))={ab,ab}\mathcal{HT}(\mathsf{f}(P\cup\{b\leftarrow\},p))=\{\langle ab,ab\rangle\}. We can then conclude that 𝒜𝒮(𝖿(P{b},p))={{a,b}}\mathcal{AS}(\mathsf{f}(P\cup\{b\leftarrow\},p))=\{\{a,b\}\}. On the other hand, we know that 𝒯(𝖿(P,p){b})𝒯({b})\mathcal{HT}(\mathsf{f}(P,p)\cup\{b\leftarrow\})\subseteq\mathcal{HT}(\{b\leftarrow\}). Since 𝖿(P,p){b}⊧̸𝖧𝖳{a}\mathsf{f}(P,p)\cup\{b\leftarrow\}\not\models_{\sf HT}\{a\leftarrow\}, we have that 𝒯(𝖿(P,p){b})𝒯({a})\mathcal{HT}(\mathsf{f}(P,p)\cup\{b\leftarrow\})\not\subseteq\mathcal{HT}(\{a\leftarrow\}). We therefore have two alternative possibilities: a) b,b𝒯(𝖿(P,p){b})\langle b,b\rangle\in\mathcal{HT}(\mathsf{f}(P,p)\cup\{b\leftarrow\}) or b) b,ab𝒯(𝖿(P,p){b})\langle b,ab\rangle\in\mathcal{HT}(\mathsf{f}(P,p)\cup\{b\leftarrow\}). If a) is the case, then {b}𝒜𝒮(𝖿(P,p){b})\{b\}\in\mathcal{AS}(\mathsf{f}(P,p)\cup\{b\leftarrow\}). If b) is the case we have that {a,b}𝒜𝒮(𝖿(P,p){b})\{a,b\}\notin\mathcal{AS}(\mathsf{f}(P,p)\cup\{b\leftarrow\}). In both cases we can conclude that 𝒜𝒮(𝖿(P,p){b})𝒜𝒮(𝖿(P{b},p))={{a,b}}\mathcal{AS}(\mathsf{f}(P,p)\cup\{b\leftarrow\})\neq\mathcal{AS}(\mathsf{f}(P\cup\{b\leftarrow\},p))=\{\{a,b\}\}. Therefore, 𝖿(P,p){b}u𝖿(P{b},p)\mathsf{f}(P,p)\cup\{b\leftarrow\}\not\equiv_{u}\mathsf{f}(P\cup\{b\leftarrow\},p), showing that 𝖥sem\mathsf{F}_{sem} does not satisfy (𝐒𝐈𝐮){\bf(SI_{u})}.

Finally, for the negative result of (E𝒞n{}_{\mathcal{C}_{n}}), we prove for 𝖥𝖲𝖤\mathsf{F}_{\sf SE}. The corresponding result for 𝖥S\mathsf{F}_{S} follows immediately from Theorem 3. Let P={h1nota1,h2nota2,h3a1,a2}P=\{h_{1}\leftarrow not\,a_{1},\ h_{2}\leftarrow not\,a_{2},\ h_{3}\leftarrow a_{1},a_{2}\} be a normal program. Using Theorem 3 Delgrande and Wang (2015), the result of forgetting about a1a_{1} from PP is equivalent to P={h1h2noth3,h2nota2}P^{\prime}=\{h_{1}\vee h_{2}\leftarrow not\,h_{3},\ h_{2}\leftarrow not\,a_{2}\}. Using the characterization result for a set of HT-models of normal programs Eiter et al. (2004) it not difficult to see that PP^{\prime} is not strongly equivalent to any normal program: just note that both {h1},{h1,h2,a2}\langle\{h_{1}\},\{h_{1},h_{2},a_{2}\}\rangle and {h2},{h1,h2,a2}\langle\{h_{2}\},\{h_{1},h_{2},a_{2}\}\rangle are HT-models of PP^{\prime}, but the so-called Here-intersection {h1}{h2},{h1,h2,a2}=,{h1,h2,a2}\langle\{h_{1}\}\cap\{h_{2}\},\{h_{1},h_{2},a_{2}\}\rangle=\langle\emptyset,\{h_{1},h_{2},a_{2}\}\rangle is not.

Theorem 7.23.

𝖥W\mathsf{F}_{W} satisfies (sC), (wE), (SE), (PP), (SI), (SC), (RC), (NC), (PI), (sSP), (UI), (𝐒𝐈𝐮){\bf(SI_{u})}, (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞n{}_{\mathcal{C}_{n}}), (E𝒞d{}_{\mathcal{C}_{d}}), 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 𝖿𝖥W\mathsf{f}\in\mathsf{F}_{W}, P1,P2P_{1},P_{2} disjunctive programs over 𝒜\mathcal{A}, and V𝒜V\subseteq\mathcal{A}. Suppose 𝒜𝒮(P1)=𝒜𝒮(P2)\mathcal{AS}(P_{1})=\mathcal{AS}(P_{2}). We aim to prove that 𝒜𝒮(𝖿(P1,V))=𝒜𝒮(𝖿(P2,V))\mathcal{AS}(\mathsf{f}(P_{1},V))=\mathcal{AS}(\mathsf{f}(P_{2},V)). The result follows from Lemma 7.51 and the assumption 𝒜𝒮(P1)=𝒜𝒮(P2)\mathcal{AS}(P_{1})=\mathcal{AS}(P_{2}), since 𝒜𝒮(𝖿(P1,V))={X𝒜𝒮(P1):VX=}={X𝒜𝒮(P2):VX=}=𝒜𝒮(𝖿(P2,V))\mathcal{AS}(\mathsf{f}(P_{1},V))=\{X\in\mathcal{AS}(P_{1}):V\cap X=\emptyset\}=\{X\in\mathcal{AS}(P_{2}):V\cap X=\emptyset\}=\mathcal{AS}(\mathsf{f}(P_{2},V)).

Wong Wong (2009) proved that 𝖥W\mathsf{F}_{W} satisfies (SE) (Lemma 4.27), and it is implicit that it satisfies (E𝒞d{}_{\mathcal{C}_{d}}).

The fact that (PP) holds follows easily from the definition of 𝖥W\mathsf{F}_{W}. Note that, by definition, r𝖿W(P,v)r\in\mathsf{f}_{W}(P,v) for every disjunctive rule rr not containing vv such that P𝖧𝖳rP\models_{\sf HT}r. Therefore, for every disjunctive rule rr not containing vv and such that P𝖧𝖳rP\models_{\sf HT}r we have that 𝖿W(P,v)𝖧𝖳r\mathsf{f}_{W}(P,v)\models_{\sf HT}r.

For (SI), let 𝖿𝖥W\mathsf{f}\in\mathsf{F}_{W}, PP be a program over a signature 𝒜\mathcal{A}, V𝒜V\subseteq\mathcal{A}, and RR a program over 𝒜V\mathcal{A}\setminus V. We aim to prove that 𝖿(PR,V)𝖧𝖳𝖿(P,V)R\mathsf{f}(P\cup R,V)\equiv_{\sf HT}\mathsf{f}(P,V)\cup R. Consider the following sequence of equalities:

𝒯V(𝖿(PR,V))\displaystyle\mathcal{HT}_{\parallel V}(\mathsf{f}(P\cup R,V)) =𝒯((PR){v:vV})\displaystyle={\mathcal{HT}}((P\cup R)\cup\{\leftarrow v:v\in V\})
=𝒯((P{v:vV})R)\displaystyle={\mathcal{HT}}((P\cup\{\leftarrow v:v\in V\})\cup R)
=𝒯((P{v:vV}))𝒯(R)\displaystyle={\mathcal{HT}}((P\cup\{\leftarrow v:v\in V\}))\cap{\mathcal{HT}}(R)
=𝒯V(𝖿(P,V))𝒯(R)\displaystyle=\mathcal{HT}_{\parallel V}(\mathsf{f}(P,V))\cap{\mathcal{HT}}(R)
=𝒯V(𝖿(P,V)R)\displaystyle=\mathcal{HT}_{\parallel V}(\mathsf{f}(P,V)\cup R)

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 RR does not contain any vVv\in V and Lemma 7.57. We then have that 𝒯V(𝖿(PR,V))=𝒯V(𝖿(P,V)R)\mathcal{HT}_{\parallel V}(\mathsf{f}(P\cup R,V))=\mathcal{HT}_{\parallel V}(\mathsf{f}(P,V)\cup R). Since both 𝖿(PR,V)\mathsf{f}(P\cup R,V) and 𝖿(P,V)R\mathsf{f}(P,V)\cup R do not contain any vVv\in V, the above equality immediately entails that 𝒯(𝖿(PR,V))=𝒯(𝖿(P,V)R)\mathcal{HT}(\mathsf{f}(P\cup R,V))=\mathcal{HT}(\mathsf{f}(P,V)\cup R).

The fact that 𝖥W\mathsf{F}_{W} 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 𝖥W\mathsf{F}_{W} satisfies (sC) and (SI).

In the case of (UI) the result follows from the already proved fact that 𝖥W\mathsf{F}_{W} satisfies (SI), and item 15 of Thm. 1.

The fact that 𝖥W\mathsf{F}_{W} satisfies (𝐒𝐈𝐮){\bf(SI_{u})} follows from the already proved fact that 𝖥W\mathsf{F}_{W} satisfies (SI), and item 17 of Thm. 1.

For (E𝒞H{}_{\mathcal{C}_{H}}), let 𝖿𝖥W\mathsf{f}\in\mathsf{F}_{W} and PP a Horn program. Using Lemma 7.49 we have that 𝒯V(𝖿(P,V))=𝒯(P{v:vV})\mathcal{HT}_{\parallel V}(\mathsf{f}(P,V))=\mathcal{HT}(P\cup\{\leftarrow v:v\in V\}). Since P{v:vV}P\cup\{\leftarrow v:v\in V\} is a normal program, it can be easily shown that 𝒯(𝖿(P,V))=(𝒯V(𝖿(P,V)))V\mathcal{HT}(\mathsf{f}(P,V))=(\mathcal{HT}_{\parallel V}(\mathsf{f}(P,V)))_{\dagger V} satisfies all conditions characterizing a class of HT-models of a Horn program Wang et al. (2014), taking into account that 𝒯(P{v:vV})\mathcal{HT}(P\cup\{\leftarrow v:v\in V\}) satisfies these conditions.

For (E𝒞n{}_{\mathcal{C}_{n}}), let 𝖿𝖥W\mathsf{f}\in\mathsf{F}_{W} and PP a normal program. Using Lemma 7.47 we have that 𝒯V(𝖿(P,v))=𝒯(P{v})\mathcal{HT}_{\parallel V}(\mathsf{f}(P,v))=\mathcal{HT}(P\cup\{\leftarrow v\}). Since P{v}P\cup\{\leftarrow v\} is a normal program, it can be easily shown that 𝒯(𝖿(P,v))=(𝒯V(𝖿(P,v)))v\mathcal{HT}(\mathsf{f}(P,v))=(\mathcal{HT}_{\parallel V}(\mathsf{f}(P,v)))_{\dagger v} satisfies all conditions characterizing a class of HT-models of a normal program Eiter et al. (2004), taking into account that 𝒯(P{v})\mathcal{HT}(P\cup\{\leftarrow v\}) satisfies these conditions.

For the negative results, Wang et al. Wang et al. (2012) provided counterexamples showing that 𝖥W\mathsf{F}_{W} does not satisfy (𝐖){\bf(W)}. The negative results for (CP) and (SP) can be illustrated with forgetting about bb from P={anotbP=\{a\leftarrow not\,b, bnota}b\leftarrow not\,a\}. Since 𝒜𝒮(P)={{a},{b}}\mathcal{AS}(P)=\{\{a\},\{b\}\}, the result must have two answer sets {a}\{a\} and \emptyset, which is not possible for disjunctive programs obtained from operators in 𝖥W\mathsf{F}_{W}.

The counterexample for (wC) is similar to other cases, just by considering forgetting about bb from P={anotbP=\{a\leftarrow not\,b, bnota}b\leftarrow not\,a\}. Since 𝒜𝒮(P)={{a},{b}}\mathcal{AS}(P)=\{\{a\},\{b\}\}, to satisfy (wC), the result must have the two answer sets {a}\{a\} and \emptyset, which is not possible for disjunctive programs. Therefore, 𝖥W\mathsf{F}_{W} does not satisfy (wC), which also implies that it does not satisfy (wSP) by Thm. 1.

Theorem 7.25.

𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} satisfies (SE), (W), (PP), (SI), (SC), (RC), (NC), (PI), (UI), (𝐒𝐈𝐮){\bf(SI_{u})}, (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞e{}_{\mathcal{C}_{e}}), but not (sC), (wE), (CP), (SP), (wC), (wSP), (sSP), (UP), (E𝒞n{}_{\mathcal{C}_{n}}) and (E𝒞d{}_{\mathcal{C}_{d}}).

Proof 7.26.

Wang et al. Wang et al. (2012) proved that 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} satisfies (SE) (Proposition 3), (W), (PP) (Theorem 3), (E𝒞H{}_{\mathcal{C}_{H}}) (Theorem 2), and (E𝒞e{}_{\mathcal{C}_{e}}) (Theorem 1).

For (SI), let 𝖿𝖥𝖧𝖳\mathsf{f}\in\mathsf{F}_{{\sf HT}}, PP be a program over a signature 𝒜\mathcal{A}, V𝒜V\subseteq\mathcal{A}, and RR a program over 𝒜V\mathcal{A}\setminus V. We aim to prove that 𝖿(P,V)R𝖧𝖳𝖿(PR,V)\mathsf{f}({P},{V})\cup R\equiv_{\sf HT}\mathsf{f}({P\cup R},{V}), which is the same as 𝒯(𝖿(P,V)R)=𝒯(𝖿(PR,V))\mathcal{HT}(\mathsf{f}({P},{V})\cup R)=\mathcal{HT}(\mathsf{f}({P\cup R},{V})). Consider the following sequence of equalities.

𝒯(𝖿(P,V)R)\displaystyle\mathcal{HT}(\mathsf{f}({P},{V})\cup R) =𝒯(𝖿(P,V))𝒯(R)\displaystyle=\mathcal{HT}(\mathsf{f}({P},{V}))\cap\mathcal{HT}(R)
=(𝒯V(P))V(𝒯V(R))V\displaystyle=({\mathcal{HT}}_{\parallel V}(P))_{\dagger V}\cap({\mathcal{HT}}_{\parallel V}(R))_{\dagger V}
=(𝒯V(P)𝒯V(R))V\displaystyle=({\mathcal{HT}}_{\parallel V}(P)\cap{\mathcal{HT}}_{\parallel V}(R))_{\dagger V}
=(𝒯V(PR))V\displaystyle=({\mathcal{HT}}_{\parallel V}(P\cup R))_{\dagger V}
=𝒯(𝖿(PR,V))\displaystyle=\mathcal{HT}(\mathsf{f}({P\cup R},{V}))

The first equality follows from a well-known property of HTHT-models. The second equality follows from the definition of HTHT-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 HTHT-forgetting.

The fact that 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} 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 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} satisfies (SI), and item 15 of Thm. 1.

The fact that 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} satisfies (𝐒𝐈𝐮){\bf(SI_{u})} follows from the already proved fact that 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} satisfies (SI), and item 17 of Thm. 1.

For the negative results, in the case of (sC), consider forgetting about aa from P={anota}P=\{a\leftarrow not\,a\}. The result should be strongly equivalent to \emptyset, i.e., the forgetting operation introduces a new answer-set. Turning to (wE), this property requires that the results of forgetting about pp from P={qnotp,qnotq}P=\{q\leftarrow not\,p,q\leftarrow not\,q\} and from Q={q}Q=\{q\leftarrow\} have the same answer sets, while 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} requires that the results be strongly equivalent to 𝖿(P,p)={qnotq}\mathsf{f}(P,p)=\{q\leftarrow not\,q\} and 𝖿(Q,p)={q}\mathsf{f}(Q,p)=\{q\leftarrow\}, which are obviously not equivalent.

The fact that 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} 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 bb from P={anotbP=\{a\leftarrow not\,b, bnota}b\leftarrow not\,a\}. Since 𝒜𝒮(P)={{a},{b}}\mathcal{AS}(P)=\{\{a\},\{b\}\}, to satisfy (wC), the result must have the two answer sets {a}\{a\} and \emptyset, but the result of 𝖿(P,b)\mathsf{f}(P,b) for 𝖿𝖥𝖧𝖳\mathsf{f}\in\mathsf{F}_{{\sf HT}} is equivalent to the empty program. Therefore, the answer set {a}\{a\} is not preserved, and thus 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} does not satisfy (wC).

The fact that 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} 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 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} does not satisfy (UP). Wang Wang et al. (2012) provided counterexamples showing that 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} does not satisfy (E𝒞n{}_{\mathcal{C}_{n}}) and (E𝒞d{}_{\mathcal{C}_{d}}).

Theorem 7.27.

𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} satisfies (sC), (wE), (SE), (PP), (PI), (CP), (wC), (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞e{}_{\mathcal{C}_{e}}), but not (W), (SI), (SC), (RC), (NC), (SP), (wSP), (sSP), (UP), (UI), (𝐒𝐈𝐮){\bf(SI_{u})}, (E𝒞n{}_{\mathcal{C}_{n}}) and (E𝒞d{}_{\mathcal{C}_{d}}).

Proof 7.28.

By definition, 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} satisfies (CP). From this and Thm. 1 it follows easily that 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} satisfies (sC), (wC) and (wE). Wang et al. Wang et al. (2013) have shown that 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} satisfies (SE), (PP), (E𝒞e{}_{\mathcal{C}_{e}}) (Proposition 1), and (E𝒞H{}_{\mathcal{C}_{H}}) (Theorem 3), and the fact that 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} 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 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} does not satisfy (W). In the case of (SI), consider forgetting about bb from P={anotbP=\{a\leftarrow not\,b, bnotc}b\leftarrow not\,c\}. In this case we have that 𝖿(P,b)𝖧𝖳\mathsf{f}(P,b)\equiv_{\sf HT}\emptyset for 𝖿𝖥𝖲𝖬\mathsf{f}\in\mathsf{F}_{{\sf SM}}, so adding cc\leftarrow results precisely in a program containing this fact. If we add cc\leftarrow before forgetting, then the HTHT-models of the result of forgetting, ignoring all occurrences of bb, correspond precisely to {c},{c},{c},{a,c}\langle\{c\},\{c\}\rangle,\langle\{c\},\{a,c\}\rangle, and {a,c},{a,c}\langle\{a,c\},\{a,c\}\rangle. To preserve the answer sets, only the last of these three can be considered. Hence, aa\leftarrow and cc\leftarrow (or strongly equivalent rules) occur in the result of forgetting for any 𝖿𝖥𝖲𝖬\mathsf{f}\in\mathsf{F}_{{\sf SM}}, 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 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} 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 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} does not satisfy (SP).

Gonçalves et al. Gonçalves et al. (2020) showed that 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} does not satisfy (wSP) and (sSP), and that it does not satisfy (UP) Gonçalves et al. (2019). For the case of (𝐒𝐈𝐮){\bf(SI_{u})}, consider a program P={anotb,bnotc}P=\{a\leftarrow not\,b,b\leftarrow not\,c\}. We can easily check that for any 𝖿𝖥𝖲𝖬\mathsf{f}\in\mathsf{F}_{{\sf SM}}, we have that 𝖿(P,b)𝖧𝖳{}\mathsf{f}(P,b)\equiv_{\sf HT}\{\}. We can then conclude that 𝒜𝒮(𝖿(P,b){c})={{c}}\mathcal{AS}(\mathsf{f}(P,b)\cup\{c\leftarrow\})=\{\{c\}\}. On the other hand, since 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} satisfies (CP), we have that 𝒜𝒮(𝖿(P{c},b))=𝒜𝒮(P{c}){b}={{a,c}}\mathcal{AS}(\mathsf{f}(P\cup\{c\leftarrow\},b))=\mathcal{AS}(P\cup\{c\leftarrow\})_{\parallel\{b\}}=\{\{a,c\}\}. But then, 𝒜𝒮(𝖿(P,b){c})={{c}}{{a,c}}=𝒜𝒮(𝖿(P{c},b))\mathcal{AS}(\mathsf{f}(P,b)\cup\{c\leftarrow\})=\{\{c\}\}\neq\{\{a,c\}\}=\mathcal{AS}(\mathsf{f}(P\cup\{c\leftarrow\},b)), and we can conclude that 𝖿(P,b){c}u𝖿(P{c},b)\mathsf{f}(P,b)\cup\{c\leftarrow\}\not\equiv_{u}\mathsf{f}(P\cup\{c\leftarrow\},b), showing that 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} does not satisfy (𝐒𝐈𝐮){\bf(SI_{u})}.

Wang et al. Wang et al. (2013) provided counterexamples showing that 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}} does not satisfy (E𝒞n{}_{\mathcal{C}_{n}}) and (E𝒞d{}_{\mathcal{C}_{d}}).

Theorem 7.29.

𝖥Sas\mathsf{F}_{Sas} satisfies (sC), (wE), (SE), (W), (PP), (SI), (SC), (RC), (NC), (PI), (CP), (SP), (wC), (wSP), (sSP), (UP), (UI), (𝐒𝐈𝐮){\bf(SI_{u})}, and (E𝒞H{}_{\mathcal{C}_{H}}).

Proof 7.30.

By definition of the class, (SP) is satisfied. From this fact it easily follows from the results in Thm. 1 that 𝖥Sas\mathsf{F}_{Sas} satisfies (sC), (wE), (SE), (PP), (SI), (CP), (SP), (wC), (wSP), (sSP), (UP), (UI), (𝐒𝐈𝐮){\bf(SI_{u})}.

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 𝖥Sas\mathsf{F}_{Sas} is necessarily defined over 𝒞H\mathcal{C}_{H}. Thm. 2 states that when restricted to Horn programs the result of operators in 𝖥Sas\mathsf{F}_{Sas} is strongly equivalent to the result of operators in the class 𝖥S\mathsf{F}_{S}. Since Thm. 7.21 states that 𝖥S\mathsf{F}_{S} satisfies (W), (SC), (RC), (NC), (PI) and (E𝒞H{}_{\mathcal{C}_{H}}), so does 𝖥Sas\mathsf{F}_{Sas}.

Theorem 7.31.

𝖥𝖲𝖤\mathsf{F}_{\sf SE} satisfies (SE), (W), (PP), (SC), (RC), (NC), (PI), (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞d{}_{\mathcal{C}_{d}}), but not (sC), (wE), (SI), (CP), (SP), (wC), (wSP), (sSP), (UP), (UI), (𝐒𝐈𝐮){\bf(SI_{u})} and (E𝒞n{}_{\mathcal{C}_{n}}).

Proof 7.32.

The results follow from Thm. 3 and Thm. 7.21.

Theorem 7.33.

𝖥𝖲𝖯\mathsf{F}_{\sf SP} satisfies (SE), (PP), (SI), (wC), (wSP), (UI), (𝐒𝐈𝐮){\bf(SI_{u})}, (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞e{}_{\mathcal{C}_{e}}), but not (sC), (wE), (W), (SC), (RC), (NC), (PI), (CP), (SP), (sSP), (UP), (E𝒞n{}_{\mathcal{C}_{n}}) and (E𝒞d{}_{\mathcal{C}_{d}}).

Proof 7.34.

Gonçalves et al. Gonçalves et al. (2020) showed that 𝖥𝖲𝖯\mathsf{F}_{\sf SP} satisfies (SE), (PP), (SI), (wC), (wSP), (E𝒞H{}_{\mathcal{C}_{H}}) and (E𝒞e{}_{\mathcal{C}_{e}}). Property (UI) follows from item 15 of Thm. 1 and the fact that 𝖥𝖲𝖯\mathsf{F}_{\sf SP} satisfies (SI).

The fact that 𝖥𝖲𝖯\mathsf{F}_{\sf SP} satisfies (𝐒𝐈𝐮){\bf(SI_{u})} follows from the already proved fact that 𝖥𝖲𝖯\mathsf{F}_{\sf SP} satisfies (SI), and item 17 of Thm. 1.

The negative results for (sC), (wE), (W), (CP), (SP), (sSP), (E𝒞n{}_{\mathcal{C}_{n}}) and (E𝒞d{}_{\mathcal{C}_{d}}) were proven by Gonçalves et al. Gonçalves et al. (2020).

For (SC), consider the program P={anotp,pnota}P=\{a\leftarrow not\,p,\ p\leftarrow not\,a\}. We have that P𝖧𝖳anotpP\models_{\sf HT}a\leftarrow not\,p, but 𝖿(P,{p})⊧̸𝖧𝖳𝖿({anotp},p)\mathsf{f}(P,\{p\})\not\models_{\sf HT}\mathsf{f}(\{a\leftarrow not\,p\},p), since 𝖿(P,{p})\mathsf{f}(P,\{p\}) is strongly equivalent to {anotnota}\{a\leftarrow not\,not\,a\} and 𝖿({anotp},{p})\mathsf{f}(\{a\leftarrow not\,p\},\{p\}) is strongly equivalent to {a}\{a\leftarrow\}.

The fact that 𝖥𝖲𝖯\mathsf{F}_{\sf SP} does not satisfy (RC) follows from item 14. of Thm. 1 and the fact that 𝖥𝖲𝖯\mathsf{F}_{\sf SP} satisfies (wC) and (UI).

For (NC) consider the program P={ap;pnotnotp}P=\{a\leftarrow p;p\leftarrow not\,not\,p\}. Then, for 𝖿𝖥𝖲𝖯\mathsf{f}\in\mathsf{F}_{\sf SP} we have that 𝖿(P,{p})𝖧𝖳{anotnota}\mathsf{f}(P,\{p\})\equiv_{\sf HT}\{a\leftarrow not\,not\,a\}. Therefore, 𝖿(P,{p})𝖧𝖳anotnota\mathsf{f}(P,\{p\})\models_{\sf HT}a\leftarrow not\,not\,a, but it is not the case that P𝖧𝖳anotnota,notpP\models_{\sf HT}a\leftarrow not\,not\,a,not\,p.

The fact that 𝖥𝖲𝖯\mathsf{F}_{\sf SP} 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.

𝖥𝖱\mathsf{F}_{\sf R} satisfies (sC), (SE), (PP), (SI), (RC), (NC), (sSP), (UI), (𝐒𝐈𝐮){\bf(SI_{u})}, (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞e{}_{\mathcal{C}_{e}}), but not (wE), (W), (SC), (PI), (CP), (SP), (wC), (wSP), (UP), (E𝒞n{}_{\mathcal{C}_{n}}) and (E𝒞d{}_{\mathcal{C}_{d}}).

Proof 7.36.

Gonçalves et al. Gonçalves et al. (2020) showed that 𝖥𝖱\mathsf{F}_{\sf R} satisfies (sC), (SE), (PP), (SI), (sSP), (E𝒞H{}_{\mathcal{C}_{H}}) and (E𝒞e{}_{\mathcal{C}_{e}}).

To show that 𝖥𝖱\mathsf{F}_{\sf R} satisfies (NC), let r=AB,notC,notnotDr=A\leftarrow B,not\,C,not\,not\,D be a rule such that 𝖿(P,V)𝖧𝖳r\mathsf{f}(P,V)\models_{\sf HT}r. Then, 𝒯(𝖿(P,V))𝒯(r)\mathcal{HT}(\mathsf{f}(P,V))\subseteq\mathcal{HT}(r). Let r=AB,notC,notV,notnotDr^{\prime}=A\leftarrow B,not\,C,not\,V,not\,not\,D. Then it is clear that 𝒯(r)𝒯(r)\mathcal{HT}(r)\subseteq\mathcal{HT}(r^{\prime}), and as a consequence we can conclude that 𝒯(𝖿(P,V))𝒯(r)\mathcal{HT}(\mathsf{f}(P,V))\subseteq\mathcal{HT}(r^{\prime}). Consider two cases: first let X,Y𝒯(P)\langle X,Y\rangle\in\mathcal{HT}(P) such that YVY\cap V\neq\emptyset. In this case, X,Y𝒯(r)\langle X,Y\rangle\in\mathcal{HT}(r^{\prime}) since YrY\models r^{\prime} and {r}Y=\{r^{\prime}\}^{Y}=\emptyset. Now take X,Y𝒯(P)\langle X,Y\rangle\in\mathcal{HT}(P) such that YV=Y\cap V=\emptyset. By definition of 𝖥𝖱\mathsf{F}_{\sf R}, we have that X,Y𝒯(𝖿(P,V))\langle X,Y\rangle\in\mathcal{HT}(\mathsf{f}(P,V)), and therefore X,Y𝒯(r)\langle X,Y\rangle\in\mathcal{HT}(r^{\prime}). In both cases, X,Y𝒯(r)\langle X,Y\rangle\in\mathcal{HT}(r^{\prime}), and therefore P𝖧𝖳rP\models_{\sf HT}r^{\prime}.

To prove (RC), let r=AB,notC,notnotDr=A\leftarrow B,not\,C,not\,not\,D be a rule such that 𝖿(P,V)𝖧𝖳r\mathsf{f}(P,V)\models_{\sf HT}r. Let r=AB,notC,notV,notnotDr^{\prime}=A\leftarrow B,not\,C,not\,V,not\,not\,D. We can easily prove that if X,Y𝒯(r)\langle X,Y\rangle\in\mathcal{HT}(r^{\prime}) and YV=Y\cap V=\emptyset then X,Y𝒯(r)\langle X,Y\rangle\in\mathcal{HT}(r). Now, since 𝖥𝖱\mathsf{F}_{\sf R} satisfies (NC), we can conclude that P𝖧𝖳rP\models_{\sf HT}r^{\prime}. We aim to prove that 𝖿({r},V)𝖧𝖳r\mathsf{f}(\{r^{\prime}\},V)\models_{\sf HT}r. For that, let X,Y𝒯(𝖿({r},V))\langle X,Y\rangle\in\mathcal{HT}(\mathsf{f}(\{r^{\prime}\},V)). Then, there exists ARel{r},VYA\in Rel^{Y}_{\langle\{r^{\prime}\},V\rangle} such that XX,YA𝒯(r)\langle X\cup X^{\prime},Y\cup A\rangle\in\mathcal{HT}(r^{\prime}), where XAX^{\prime}\subseteq A. We now prove that A=A=\emptyset. Suppose not. Then, since {r}YA={}\{r^{\prime}\}^{Y\cup A}=\{\}, we have that Y,YA\langle Y,Y\cup A\rangle is also a model of rr^{\prime}, which contradicts the fact that ARel{r},VYA\in Rel^{Y}_{\langle\{r^{\prime}\},V\rangle}. Since AA must be empty we can conclude that X,Y𝒯(r)\langle X,Y\rangle\in\mathcal{HT}(r^{\prime}). Since YV=Y\cap V=\emptyset, the above consideration entails that X,Y𝒯(r)\langle X,Y\rangle\in\mathcal{HT}(r), which completes the proof.

Property (UI) follows from item 15 of Thm. 1 and the fact that 𝖥𝖱\mathsf{F}_{\sf R} satisfies (SI).

Property (𝐒𝐈𝐮){\bf(SI_{u})} follows from item 17 of Thm. 1 and the fact that 𝖥𝖱\mathsf{F}_{\sf R} satisfies (SI).

The negative results for (wE), (W), (PI), (CP), (SP), (wC), (wSP), (E𝒞n{}_{\mathcal{C}_{n}}) and (E𝒞d{}_{\mathcal{C}_{d}}) are due to Gonçalves et al. Gonçalves et al. (2020).

For (SC), consider the program P={anotp,pnota}P=\{a\leftarrow not\,p,\ p\leftarrow not\,a\}. We have that P𝖧𝖳anotpP\models_{\sf HT}a\leftarrow not\,p, but 𝖿(P,{p})⊧̸𝖧𝖳𝖿({anotp},p)\mathsf{f}(P,\{p\})\not\models_{\sf HT}\mathsf{f}(\{a\leftarrow not\,p\},p), since 𝒯(𝖿(P,{p}))\mathcal{HT}(\mathsf{f}(P,\{p\})) contains ,\langle\emptyset,\emptyset\rangle, therefore 𝖿(P,{p})⊧̸𝖧𝖳a\mathsf{f}(P,\{p\})\not\models_{\sf HT}a\leftarrow, but 𝖿({anotp},{p})\mathsf{f}(\{a\leftarrow not\,p\},\{p\}) is strongly equivalent to {a}\{a\leftarrow\}.

The fact that 𝖥𝖱\mathsf{F}_{\sf R} 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.

𝖥𝖬\mathsf{F}_{\sf M} satisfies (sC), (wE), (SE), (PP), (CP), (wC), (sSP), (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞e{}_{\mathcal{C}_{e}}), but not (W), (SI), (SC), (RC), (NC), (PI), (SP), (wSP), (UP), (UI), (𝐒𝐈𝐮){\bf(SI_{u})}, (E𝒞n{}_{\mathcal{C}_{n}}) and (E𝒞d{}_{\mathcal{C}_{d}}).

Proof 7.38.

Gonçalves et al. Gonçalves et al. (2020) showed that 𝖥𝖬\mathsf{F}_{\sf M} satisfies (sC), (wE), (SE), (PP), (CP), (wC), (sSP), (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞e{}_{\mathcal{C}_{e}}), as well as the negative results for (W), (SI), (SP), (wSP), (E𝒞n{}_{\mathcal{C}_{n}}) and (E𝒞d{}_{\mathcal{C}_{d}}).

In the case of (SC), consider the program P={anotp,pnota}P=\{a\leftarrow not\,p,\ p\leftarrow not\,a\}. We have that P𝖧𝖳anotpP\models_{\sf HT}a\leftarrow not\,p, but 𝖿(P,{p})⊧̸𝖧𝖳𝖿({anotp},p)\mathsf{f}(P,\{p\})\not\models_{\sf HT}\mathsf{f}(\{a\leftarrow not\,p\},p), since 𝖿(P,{p})\mathsf{f}(P,\{p\}) is strongly equivalent to {anotnota}\{a\leftarrow not\,not\,a\} and 𝖿({anotp},{p})\mathsf{f}(\{a\leftarrow not\,p\},\{p\}) is strongly equivalent to {a}\{a\leftarrow\}.

In the case of (RC) consider forgetting about pp from the program P={ap,pnotnotp}P=\{a\leftarrow p,\ p\leftarrow not\,not\,p\}. We have that 𝖿(P,{p})\mathsf{f}(P,\{p\}) is strongly equivalent to {anotnota}\{a\leftarrow not\,not\,a\}. Nevertheless, there is no rule rr^{\prime} over aa and pp such that P𝖧𝖳rP\models_{\sf HT}r^{\prime} and 𝖿({r},{p})𝖧𝖳anotnota\mathsf{f}(\{r^{\prime}\},\{p\})\models_{\sf HT}a\leftarrow not\,not\,a.

For (NC) consider the program P={ap;pnotnotp}P=\{a\leftarrow p;p\leftarrow not\,not\,p\}. Then, for 𝖿𝖥𝖬\mathsf{f}\in\mathsf{F}_{\sf M} we have that 𝖿(P,{p})𝖧𝖳{anotnota}\mathsf{f}(P,\{p\})\equiv_{\sf HT}\{a\leftarrow not\,not\,a\}. Therefore, 𝖿(P,{p})𝖧𝖳anotnota\mathsf{f}(P,\{p\})\models_{\sf HT}a\leftarrow not\,not\,a, but it is not the case that P𝖧𝖳anotnota,notpP\models_{\sf HT}a\leftarrow not\,not\,a,not\,p.

The fact that 𝖥𝖬\mathsf{F}_{\sf M} 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 𝖥𝖬\mathsf{F}_{\sf M} satisfies (CP) but not (UP).

In the case of (𝐒𝐈𝐮){\bf(SI_{u})}, consider a program PP over 𝒜={a,b,p}\mathcal{A}=\{a,b,p\} such that 𝒯(P)={ab,ab,\mathcal{HT}(P)=\{\langle ab,ab\rangle, a,ab,abp,abp\langle a,ab\rangle,\langle abp,abp\rangle, b,abp,a,a,,a,ap,ap}\langle b,abp\rangle,\langle a,a\rangle,\langle\emptyset,a\rangle,\langle ap,ap\rangle\}. By definition, for 𝖿𝖥𝖬\mathsf{f}\in\mathsf{F}_{\sf M}, we have that forgetting pp is such that 𝒯(𝖿(P,p))=\mathcal{HT}(\mathsf{f}(P,p))={ab,ab,\{\langle ab,ab\rangle, b,ab,a,ab,a,a}\langle b,ab\rangle,\langle a,ab\rangle,\langle a,a\rangle\}. Consider RR over 𝒜\{p}\mathcal{A}\text{\textbackslash}\{p\} such that 𝒯(R)={ab,ab\mathcal{HT}(R)=\{\langle ab,ab\rangle, b,ab}\langle b,ab\rangle\}. Then, 𝒯(PR)={ab,ab,abp,abp\mathcal{HT}(P\cup R)=\{\langle ab,ab\rangle,\langle abp,abp\rangle, b,abp}\langle b,abp\rangle\}. Again by definition, for 𝖿𝖥𝖬\mathsf{f}\in\mathsf{F}_{\sf M}, we have that 𝒯(𝖿(PR,p))={ab,ab}\mathcal{HT}(\mathsf{f}(P\cup R,p))=\{\langle ab,ab\rangle\}. On the other hand, 𝒯(𝖿(P,p)R)={ab,ab,b,ab}\mathcal{HT}(\mathsf{f}(P,p)\cup R)=\{\langle ab,ab\rangle,\langle b,ab\rangle\}. This then implies that 𝒜𝒮(𝖿(PR,p))={{a,b}}{}=𝒜𝒮(𝖿(P,p)R)\mathcal{AS}(\mathsf{f}(P\cup R,p))=\{\{a,b\}\}\neq\{\}=\mathcal{AS}(\mathsf{f}(P,p)\cup R), which means that 𝖿(PR,p)u𝖿(P,p)R\mathsf{f}(P\cup R,p)\not\equiv_{u}\mathsf{f}(P,p)\cup R, thus showing that 𝖥𝖬\mathsf{F}_{\sf M} does not satisfy (𝐒𝐈𝐮){\bf(SI_{u})}.

Theorem 7.39.

𝖥𝖴𝖯\mathsf{F}_{\sf UP} satisfies (sC), (wE), (SE), (PI), (CP), (wC), (UP), (UI), (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞e{}_{\mathcal{C}_{e}}), but not (W), (PP), (SI), (SC), (RC), (NC), (SP), (wSP), (sSP), (𝐒𝐈𝐮){\bf(SI_{u})}, (E𝒞n{}_{\mathcal{C}_{n}}) and (E𝒞d{}_{\mathcal{C}_{d}}).

Proof 7.40.

Gonçalves et al. Gonçalves et al. (2019) showed that 𝖥𝖴𝖯\mathsf{F}_{\sf UP} satisfies (sC), (wE), (SE), (PI), (CP), (wC), (UP), (UI) (E𝒞H{}_{\mathcal{C}_{H}}), (E𝒞e{}_{\mathcal{C}_{e}}), and that it does not satisfy (W), (PP), (SI), (SP), (E𝒞n{}_{\mathcal{C}_{n}}) and (E𝒞d{}_{\mathcal{C}_{d}}). 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 𝖥𝖴𝖯\mathsf{F}_{\sf UP} does not satisfy (𝐒𝐈𝐮){\bf(SI_{u})}.

In the case of (SC), consider the program P={anotp,pnota}P=\{a\leftarrow not\,p,\ p\leftarrow not\,a\}. We have that P𝖧𝖳anotpP\models_{\sf HT}a\leftarrow not\,p, but 𝖿(P,{p})⊧̸𝖧𝖳𝖿({anotp},p)\mathsf{f}(P,\{p\})\not\models_{\sf HT}\mathsf{f}(\{a\leftarrow not\,p\},p), since 𝖿(P,{p})\mathsf{f}(P,\{p\}) is strongly equivalent to {anotnota}\{a\leftarrow not\,not\,a\} and 𝖿({anotp},{p})\mathsf{f}(\{a\leftarrow not\,p\},\{p\}) is strongly equivalent to {a}\{a\leftarrow\}.

The negative result for (RC) follows from item 14. of Thm. 1 and the fact that 𝖥𝖴𝖯\mathsf{F}_{\sf UP} satisfies (wC) and (UI).

For (NC) consider the program P={ap;pnotnotp}P=\{a\leftarrow p;p\leftarrow not\,not\,p\}. Then, for 𝖿𝖥𝖴𝖯\mathsf{f}\in\mathsf{F}_{\sf UP} we have that 𝖿(P,{p})𝖧𝖳{anotnota}\mathsf{f}(P,\{p\})\equiv_{\sf HT}\{a\leftarrow not\,not\,a\}. Therefore, 𝖿(P,{p})𝖧𝖳anotnota\mathsf{f}(P,\{p\})\models_{\sf HT}a\leftarrow not\,not\,a, but it is not the case that P𝖧𝖳anotnota,notpP\models_{\sf HT}a\leftarrow not\,not\,a,not\,p.

For (wSP), consider PP such that 𝒯(P)={ab,ab,a,ab,b,abp,abp,abp,a,abp}\mathcal{HT}(P)=\{\langle ab,ab\rangle,\langle a,ab\rangle,\langle b,abp\rangle,\langle abp,abp\rangle,\langle a,abp\rangle\}. Then, by definition 𝒯(𝖿(P,{p}))={ab,ab,a,ab,,ab}\mathcal{HT}(\mathsf{f}(P,\{p\}))=\{\langle ab,ab\rangle,\langle a,ab\rangle,\langle\emptyset,ab\rangle\}. Consider a program RR over {a,b}\{a,b\} such that 𝒯(R)={ab,ab,,ab}\mathcal{HT}(R)=\{\langle ab,ab\rangle,\langle\emptyset,ab\rangle\} (over {a,b}\{a,b\}). Then, 𝒯(PR)=𝒯(P)𝒯(R)={abp,abp,ab,ab}\mathcal{HT}(P\cup R)=\mathcal{HT}(P)\cap\mathcal{HT}(R)=\{\langle abp,abp\rangle,\langle ab,ab\rangle\}, thus {a,b}𝒜𝒮(PR)V\{a,b\}\in\mathcal{AS}(P\cup R)_{\parallel_{V}}, but {a,b}𝒜𝒮(𝖿(P,V)R)\{a,b\}\notin\mathcal{AS}(\mathsf{f}(P,V)\cup R).

For (sSP), consider PP such that 𝒯(P)={ab,ab,a,ab,b,abp,abp,abp}\mathcal{HT}(P)=\{\langle ab,ab\rangle,\langle a,ab\rangle,\langle b,abp\rangle,\langle abp,abp\rangle\}. Then, by definition 𝒯(𝖿(P,{p}))={ab,ab,,ab}\mathcal{HT}(\mathsf{f}(P,\{p\}))=\{\langle ab,ab\rangle,\langle\emptyset,ab\rangle\}. Consider a program RR over {a,b}\{a,b\} s.t. 𝒯(R)={ab,ab,a,ab,b,ab}\mathcal{HT}(R)=\{\langle ab,ab\rangle,\langle a,ab\rangle,\langle b,ab\rangle\} (over {a,b}\{a,b\}). Then 𝖿(P,{p})R\mathsf{f}(P,\{p\})\cup R has an answer set {a,b}\{a,b\}, but this is not an answer set of 𝖿(PR,{p})\mathsf{f}(P\cup R,\{p\}).

Theorem 5. All results in Table 3 hold.

Proof 7.41.

The result is an immediate consequence of Thms. 7.15 to 7.39.

Theorem 6. For Horn programs, the following holds:

  • 𝖥strong\mathsf{F}_{strong}, 𝖥weak\mathsf{F}_{weak}, 𝖥S\mathsf{F}_{S}, 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 𝖥Sas\mathsf{F}_{Sas}, 𝖥𝖲𝖤\mathsf{F}_{\sf SE}, 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, 𝖥𝖬\mathsf{F}_{\sf M}, and 𝖥𝖴𝖯\mathsf{F}_{\sf UP} satisfy (W), (RC), (SP), and (PI);

  • 𝖥sem\mathsf{F}_{sem} satisfies (CP) and (PI);

  • 𝖥W\mathsf{F}_{W} satisfies the same properties as in the general case.

Proof 7.42.

The fact that 𝖥strong\mathsf{F}_{strong}, 𝖥weak\mathsf{F}_{weak}, 𝖥S\mathsf{F}_{S}, 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}}, 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 𝖥Sas\mathsf{F}_{Sas}, 𝖥𝖲𝖤\mathsf{F}_{\sf SE}, 𝖥𝖲𝖯\mathsf{F}_{\sf SP}, 𝖥𝖱\mathsf{F}_{\sf R}, 𝖥𝖬\mathsf{F}_{\sf M}, and 𝖥𝖴𝖯\mathsf{F}_{\sf UP}, when restricted to Horn programs, satisfy (W), (RC), (SP), and (PI) follows easily from Thm. 2, and the fact that 𝖥Sas\mathsf{F}_{Sas} satisfies all these properties.

The fact that 𝖥sem\mathsf{F}_{sem}, 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., 𝒜𝒮(P)={A}\mathcal{AS}(P)=\{A\} or 𝒜𝒮(P)={}\mathcal{AS}(P)=\{\}. Then, for every 𝖿sem𝖥sem\mathsf{f}_{sem}\in\mathsf{F}_{sem}, by definition we have 𝒜𝒮(𝖿sem(P,V))=𝒩(𝒜𝒮(P)V)\mathcal{AS}(\mathsf{f}_{sem}(P,V))=\mathcal{MIN}(\mathcal{AS}(P)_{\parallel V}). Since 𝒜𝒮(P)\mathcal{AS}(P) has at most one element we have 𝒜𝒮(𝖿sem(P,V))={AV}=𝒜𝒮(P)V\mathcal{AS}(\mathsf{f}_{sem}(P,V))=\{A_{\parallel V}\}=\mathcal{AS}(P)_{\parallel V} or 𝒜𝒮(𝖿sem(P,V))={}=𝒜𝒮(P)V\mathcal{AS}(\mathsf{f}_{sem}(P,V))=\{\}=\mathcal{AS}(P)_{\parallel V}. Therefore, 𝖥sem\mathsf{F}_{sem} satisfies (CP) when restricted to Horn programs.

Theorem 7. If a class 𝖥\mathsf{F} of operators over a class 𝒞\mathcal{C} of logic programs satisfies property (CP), then every operator of that class can be used to obtain uniform interpolants w.r.t. \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}.

Proof 7.43.

For that, assume that 𝖿\mathsf{f} satifies (CP), i.e, given PP and V𝒜V\subseteq\mathcal{A}, we have that 𝒜𝒮(𝖿(P,V))=𝒜𝒮(P)V\mathcal{AS}(\mathsf{f}(P,V))=\mathcal{AS}(P)_{\parallel V}. Condition (i)(i) of uniform interpolation follows easily from the fact that every M𝒜𝒮(P)M\in\mathcal{AS}(P) is such that MV𝒜𝒮(𝖿(P,V))M_{\parallel V}\in\mathcal{AS}(\mathsf{f}(P,V)), and therefore M𝖿(P,V)M\models\mathsf{f}(P,V). For condition (ii)(ii), we let RR be a program such that PRP\vdash R and 𝒜(R)𝒜\V\mathcal{A}(R)\subseteq\mathcal{A}\text{\textbackslash}V, and we aim to conclude that 𝖿(P,V)R\mathsf{f}(P,V)\mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}R. Let M𝒜𝒮(𝖿(P,V))M\in\mathcal{AS}(\mathsf{f}(P,V)). Then, since we are assuming that 𝒜𝒮(𝖿(P,V))=𝒜𝒮(P)V\mathcal{AS}(\mathsf{f}(P,V))=\mathcal{AS}(P)_{\parallel V}, we know that there is M𝒜𝒮(P)M^{*}\in\mathcal{AS}(P) such that M=M\VM=M^{*}\text{\textbackslash}V. Given that PRP\vdash R, we can conclude that MRM^{*}\models R, and since RR is a program over 𝒜\V\mathcal{A}\text{\textbackslash}V, we can conclude that MRM\models R.

Theorem 8. Any forgetting operator of the classes 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 𝖥𝖬\mathsf{F}_{\sf M}, 𝖥𝖴𝖯\mathsf{F}_{\sf UP}, and 𝖥𝖱\mathsf{F}_{\sf R} can be used to obtain uniform interpolants with respect to \mathrel{\scalebox{1}[1.5]{$\shortmid$}\mkern-3.1mu\raisebox{0.6458pt}{$\sim$}}.

Proof 7.44.

The case of 𝖥𝖲𝖬\mathsf{F}_{{\sf SM}}, 𝖥𝖬\mathsf{F}_{\sf M}, and 𝖥𝖴𝖯\mathsf{F}_{\sf UP} follows from Thm.7 and the fact that these classes satisfy (CP).

In the case of 𝖥𝖱\mathsf{F}_{\sf R} let PP be a program and V𝒜V\subseteq\mathcal{A}. We start by considering M𝒜𝒮(P)M\in\mathcal{AS}(P). Taking into account the definition of 𝖥𝖱\mathsf{F}_{\sf R}, it is easy to see that, for every 𝖿𝖥𝖱\mathsf{f}\in\mathsf{F}_{\sf R}, we have that M\V,M\V𝒯(𝖿(P,V))\langle M\text{\textbackslash}V,M\text{\textbackslash}V\rangle\in\mathcal{HT}(\mathsf{f}(P,V)). This implies that M\V𝖿(P,V)M\text{\textbackslash}V\models\mathsf{f}(P,V), and since 𝖿(P,V)\mathsf{f}(P,V) is over 𝒜\V\mathcal{A}\text{\textbackslash}V, we also have that M𝖿(P,V)M\models\mathsf{f}(P,V), meaning that condition (i)(i) of uniform interpolation is satisfied. Condition (ii)(ii) is a consequence of 𝖥𝖱\mathsf{F}_{\sf R} satisfying (sC), i.e., 𝒜𝒮(𝖿(P,V))𝒜𝒮(P)V\mathcal{AS}(\mathsf{f}(P,V))\subseteq\mathcal{AS}(P)_{\parallel V}.

Theorem 9. A class 𝖥\mathsf{F} of forgetting operators can be used to obtain uniform interpolants w.r.t. 𝖧𝖳\models_{\sf HT} iff 𝖥\mathsf{F} satisfies both (W) and (PP).

Proof 7.45.

The result follows immediately, since the conditions (i)(i) and (ii)(ii) of uniform interpolation precisely coincide with (W) and (PP), respectively.

Theorem 10. Any forgetting operator of the classes 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} and 𝖥S\mathsf{F}_{S} can be used to obtain uniform interpolants with respect to 𝖧𝖳\models_{\sf HT}.

Proof 7.46.

The proof follows immediately from Thm. 9 and the fact that 𝖥𝖧𝖳\mathsf{F}_{{\sf HT}} and 𝖥S\mathsf{F}_{S} satisfy (W) and (PP).

Lemma 7.47.

Let PP be a disjunctive program over a signature 𝒜\mathcal{A} and v𝒜v\in\mathcal{A}. Then, for every 𝖿𝖥W\mathsf{f}\in\mathsf{F}_{W} we have

𝒯{v}(𝖿(P,v))=𝒯(P{v}).\mathcal{HT}_{\parallel\{v\}}(\mathsf{f}(P,v))=\mathcal{HT}(P\cup\{\leftarrow v\}).
Proof 7.48.

Let PP be a disjunctive program over a signature 𝒜\mathcal{A}, and v𝒜v\in\mathcal{A}. We prove the equality for 𝖿W\mathsf{f}_{W} and the result extends to every 𝖿𝖥W\mathsf{f}\in\mathsf{F}_{W} since these only differ from 𝖿W\mathsf{f}_{W} up to strong equivalence. We prove both inclusions of the equality 𝒯{v}(𝖿W(P,v))=𝒯(P{v})\mathcal{HT}_{\parallel\{v\}}(\mathsf{f}_{W}(P,v))=\mathcal{HT}(P\cup\{\leftarrow v\}). In what follows let A,B,C𝒜{v}A,B,C\subseteq\mathcal{A}\setminus\{v\}.

We start with the left to right inclusion. Let I=X,YI=\langle X,Y\rangle such that I𝒯{v}(𝖿W(P,v))I\in\mathcal{HT}_{\parallel\{v\}}(\mathsf{f}_{W}(P,v)). Since vv does not occur in 𝖿(P,v)\mathsf{f}(P,v) we have that I𝒯(𝖿W(P,v))I\in\mathcal{HT}(\mathsf{f}_{W}(P,v)). Since II does not contain vv, then I𝖧𝖳vI\models_{\sf HT}\leftarrow v. We now show that I𝖧𝖳rI\models_{\sf HT}r, for every rPr\in P. If rPr\in P such that it does not contain vv, then clearly r𝖿(P,v)r\in\mathsf{f}(P,v), and so I𝖧𝖳rI\models_{\sf HT}r. If rPr\in P and it contains vv, then we have the following cases:

  • If rr is a tautology, then clearly I𝖧𝖳rI\models_{\sf HT}r;

  • If v𝑏𝑜𝑑𝑦(r)v\in\mathit{body}(r), then, since II does not contain vv, trivially I𝖧𝖳rI\models_{\sf HT}r;

  • If r=A,vB,notv,notCr=A,v\leftarrow B,not\,v,not\,C then the rule r=AB,notC𝖿W(P,v)r^{*}=A\leftarrow B,not\,C\in\mathsf{f}_{W}(P,v). Suppose I⊧̸𝖧𝖳rI\not\models_{\sf HT}r. Then we have two cases:

    • Y⊧̸rY\not\models r, which is an absurd since vYv\notin Y and I𝖧𝖳rI\models_{\sf HT}r^{*};

    • YC=Y\cap C=\emptyset and X⊧̸A,vBX\not\models A,v\leftarrow B. This is an absurd since vXv\notin X, rY=A,vB{r^{*}}^{Y}=A,v\leftarrow B, and XrYX\models{r^{*}}^{Y}.

  • If r=A,vB,notCr=A,v\leftarrow B,not\,C then r=AB,notC𝖿W(P,v)r^{*}=A\leftarrow B,not\,C\in\mathsf{f}_{W}(P,v). Suppose I⊧̸𝖧𝖳rI\not\models_{\sf HT}r. Then we have two cases:

    • Y⊧̸rY\not\models r, which is an absurd since vYv\notin Y and I𝖧𝖳rI\models_{\sf HT}r^{*};

    • YC=Y\cap C=\emptyset and X⊧̸A,vBX\not\models A,v\leftarrow B. This is an absurd since vXv\notin X, rY=AB{r^{*}}^{Y}=A\leftarrow B, and XrYX\models{r^{*}}^{Y}.

  • If r=AB,notv,notCr=A\leftarrow B,not\,v,not\,C then r=AB,notC𝖿W(P,v)r^{*}=A\leftarrow B,not\,C\in\mathsf{f}_{W}(P,v). Suppose I⊧̸𝖧𝖳rI\not\models_{\sf HT}r. Then we have two cases:

    • Y⊧̸rY\not\models r, which is an absurd since vYv\notin Y and I𝖧𝖳rI\models_{\sf HT}r^{*};

    • YC=Y\cap C=\emptyset and X⊧̸ABX\not\models A\leftarrow B. This is an absurd since in this case rY=AB{r^{*}}^{Y}=A\leftarrow B, and XrYX\models{r^{*}}^{Y}.

We now prove the right to left inclusion. Let I=X,Y𝒯(P{v})I=\langle X,Y\rangle\in\mathcal{HT}(P\cup\{\leftarrow v\}). Since I𝖧𝖳vI\models_{\sf HT}\leftarrow v then clearly II does not contain vv. We prove that for every r𝖿W(P,v)r\in\mathsf{f}_{W}(P,v) we have that I𝖧𝖳rI\models_{\sf HT}r. This immediately implies that 𝒯(P{v})𝒯{v}(𝖿(P,v))\mathcal{HT}(P\cup\{\leftarrow v\})\subseteq\mathcal{HT}_{\parallel\{v\}}(\mathsf{f}(P,v)). Let r𝖿W(P,v)r\in\mathsf{f}_{W}(P,v). We consider the following cases.

  • rCn(P,v)r\in Cn(P,v). In this case, since I𝒯(P{v})I\in\mathcal{HT}(P\cup\{\leftarrow v\}), we have that I𝒯(P)I\in\mathcal{HT}(P), and therefore I𝖧𝖳rI\models_{\sf HT}r;

  • If rCn(P,v)r\notin Cn(P,v) then we have the following three possibilities:

    • r=AB,notCr=A\leftarrow B,not\,C such that r=A,vB,notv,notCCn(P,v)r^{*}=A,v\leftarrow B,not\,v,not\,C\in Cn(P,v). Suppose I⊧̸𝖧𝖳rI\not\models_{\sf HT}r. Then we have two cases:

      • *

        Y⊧̸rY\not\models r, which is an absurd since vYv\notin Y and I𝖧𝖳rI\models_{\sf HT}r^{*};

      • *

        YC=Y\cap C=\emptyset and X⊧̸ABX\not\models A\leftarrow B. This is an absurd since vXv\notin X, rY=A,vB{r^{*}}^{Y}=A,v\leftarrow B, and XrYX\models{r^{*}}^{Y}.

    • r=AB,notCr=A\leftarrow B,not\,C and r=A,vB,notCCn(P,v)r^{*}=A,v\leftarrow B,not\,C\in Cn(P,v). Suppose I⊧̸𝖧𝖳rI\not\models_{\sf HT}r. Then we have two cases:

      • *

        Y⊧̸rY\not\models r, which is an absurd since vYv\notin Y and I𝖧𝖳rI\models_{\sf HT}r^{*};

      • *

        YC=Y\cap C=\emptyset and X⊧̸ABX\not\models A\leftarrow B. This is an absurd since vXv\notin X, rY=A,vB{r^{*}}^{Y}=A,v\leftarrow B, and XrYX\models{r^{*}}^{Y}.

    • r=AB,notCr=A\leftarrow B,not\,C and r=AB,notv,notCCn(P,v)r^{*}=A\leftarrow B,not\,v,not\,C\in Cn(P,v). Suppose I⊧̸𝖧𝖳rI\not\models_{\sf HT}r. Then we have two cases:

      • *

        Y⊧̸rY\not\models r, which is an absurd since vYv\notin Y and I𝖧𝖳rI\models_{\sf HT}r^{*};

      • *

        YC=Y\cap C=\emptyset and X⊧̸ABX\not\models A\leftarrow B. This is an absurd since rY=AB{r^{*}}^{Y}=A\leftarrow B, and XrYX\models{r^{*}}^{Y}.

Lemma 7.49.

Let PP be a disjunctive program over a signature 𝒜\mathcal{A} and V𝒜V\subseteq\mathcal{A}. Then, for every 𝖿𝖥W\mathsf{f}\in\mathsf{F}_{W} we have

𝒯V(𝖿(P,V))=𝒯(P{v:vV}).\mathcal{HT}_{\parallel V}(\mathsf{f}(P,V))=\mathcal{HT}(P\cup\{\leftarrow v:v\in V\}).
Proof 7.50.

The result follows easily by induction on the number of elements of VV, using the definition of 𝖿W(P,V)\mathsf{f}_{W}(P,V) and Lemma 7.51.

Lemma 7.51.

Let PP be a disjunctive program over a signature 𝒜\mathcal{A} and V𝒜V\subseteq\mathcal{A}. Then, for every 𝖿𝖥W\mathsf{f}\in\mathsf{F}_{W}

𝒜𝒮(𝖿(P,V))={X𝒜𝒮(P):VX=}.\mathcal{AS}(\mathsf{f}(P,V))=\{X\in\mathcal{AS}(P):V\cap X=\emptyset\}.
Proof 7.52.

Let 𝖿𝖥W\mathsf{f}\in\mathsf{F}_{W}. We will prove both inclusions.

Let us start with the left to right inclusion. Let X𝒜𝒮(𝖿(P,V))X\in\mathcal{AS}(\mathsf{f}(P,V)). Then X,X𝒯(𝖿(P,V))\langle X,X\rangle\in\mathcal{HT}(\mathsf{f}(P,V)) and there is no XXX^{\prime}\subset X such that X,X𝒯(𝖿(P,V))\langle X^{\prime},X\rangle\in\mathcal{HT}(\mathsf{f}(P,V)). We can conclude that VX=V\cap X=\emptyset, since otherwise XV,X𝒯(𝖿(P,V))\langle X\setminus V,X\rangle\in\mathcal{HT}(\mathsf{f}(P,V)), which contradicts X𝒜𝒮(𝖿(P,V))X\in\mathcal{AS}(\mathsf{f}(P,V)).

Since X,X𝒯V(𝖿(P,V))\langle X,X\rangle\in\mathcal{HT}_{\parallel V}(\mathsf{f}(P,V)), by Lemma 7.49, we have that X,X𝒯(P{v:vV})\langle X,X\rangle\in\mathcal{HT}(P\cup\{\leftarrow v:v\in V\}), and therefore, X,X𝒯(P)\langle X,X\rangle\in\mathcal{HT}(P). We need to prove that there is no XXX^{\prime}\subset X such that X,X𝒯(P)\langle X^{\prime},X\rangle\in\mathcal{HT}(P). Suppose there is. Then X,X𝒯(P{v:vV})\langle X^{\prime},X\rangle\in\mathcal{HT}(P\cup\{\leftarrow v:v\in V\})=𝒯V(𝖿(P,V))=\mathcal{HT}_{\parallel V}(\mathsf{f}(P,V)), thus contradicting the fact that X𝒜𝒮(𝖿(P,V))X\in\mathcal{AS}(\mathsf{f}(P,V)).

Now let us prove the right to left inclusion. Let X𝒜𝒮(P)X\in\mathcal{AS}(P) such that VX=V\cap X=\emptyset. Then X,X𝒯(P)\langle X,X\rangle\in\mathcal{HT}(P) and there is no XXX^{\prime}\subset X such that X,X𝒯(P)\langle X^{\prime},X\rangle\in\mathcal{HT}(P). Since VX=V\cap X=\emptyset we have X,X𝒯(P{v:vV})=𝒯V(𝖿(P,V))\langle X^{\prime},X\rangle\in\mathcal{HT}(P\cup\{\leftarrow v:v\in V\})=\mathcal{HT}_{\parallel V}(\mathsf{f}(P,V)). We just need to prove that there is no XXX^{\prime}\subset X such that X,X𝒯(P{v:vV})\langle X^{\prime},X\rangle\in\mathcal{HT}(P\cup\{\leftarrow v:v\in V\}). Suppose there is. Then, X,X𝒯(P)\langle X^{\prime},X\rangle\in\mathcal{HT}(P), which contradicts X𝒜𝒮(P)X\in\mathcal{AS}(P).

Lemma 7.53.

Let 𝒜\mathcal{A} be a signature and V𝒜V\subseteq\mathcal{A}. Let I=X,YI=\langle X,Y\rangle an HTHT-interpretation over 𝒜\mathcal{A} that does not contain any vVv\in V and II^{*} such that IVII^{*}\sim_{V}I. Then, for every formula φ\varphi over 𝒜\mathcal{A} not containing any vVv\in V, we have that I𝖧𝖳φI\models_{\sf HT}\varphi iff I𝖧𝖳φI^{*}\models_{\sf HT}\varphi.

Proof 7.54.

We prove the result by induction on the structure of the formula φ\varphi. For the base case suppose φ\varphi is a propositional atom p𝒜p\in\mathcal{A}, thus pVp\notin V. Then, I𝖧𝖳pI\models_{\sf HT}p iff pXp\in X iff pXp\in X^{\prime} with XVXX^{\prime}\sim_{V}X (since pVp\notin V) iff I𝖧𝖳pI^{*}\models_{\sf HT}p.

For the induction step we only consider the case φ=φ1φ2\varphi=\varphi_{1}\supset\varphi_{2}. The other cases are straightforward. We have that I𝖧𝖳φI\models_{\sf HT}\varphi iff (i) Y𝖧𝖳φ1φ2Y\models_{\sf HT}\varphi_{1}\supset\varphi_{2} and (ii) I𝖧𝖳φ2I\models_{\sf HT}\varphi_{2} whenever I𝖧𝖳φ1I\models_{\sf HT}\varphi_{1}. From a well known result from classical logic, we have that Y𝖧𝖳φ1φ2Y\models_{\sf HT}\varphi_{1}\supset\varphi_{2} iff YV𝖧𝖳φ1φ2Y\cup V\models_{\sf HT}\varphi_{1}\supset\varphi_{2} (since no vVv\in V occurs in φ1\varphi_{1} nor in φ2\varphi_{2}). The equivalence of condition (ii) with the correspondent one for II^{*} follows easily using induction hypothesis.

Lemma 7.55.

Let 𝒜\mathcal{A} be a signature and V𝒜V\subseteq\mathcal{A}. For every formula φ\varphi over 𝒜\mathcal{A} not containing any vVv\in V we have that 𝒯(φ)=(𝒯V(φ))V\mathcal{HT}(\varphi)=(\mathcal{HT}_{\parallel V}(\varphi))_{\dagger V}

Proof 7.56.

Let us prove both inclusions. For the left to right inclusion, assume that I𝒯(φ)I\in\mathcal{HT}(\varphi). Then, IV𝒯V(φ)I_{\parallel V}\in\mathcal{HT}_{\parallel V}(\varphi). Therefore, I(𝒯V(φ))VI\in(\mathcal{HT}_{\parallel V}(\varphi))_{\dagger V}.

For the reverse inclusion, let I(𝒯V(φ))VI\in(\mathcal{HT}_{\parallel V}(\varphi))_{\dagger V}. Then, IV𝒯V(φ)I_{\parallel V}\in\mathcal{HT}_{\parallel V}(\varphi). Then, there exists I𝒯(φ)I^{*}\in\mathcal{HT}(\varphi) such that IVI{v}I^{*}\sim_{V}I_{\parallel\{v\}}. Using Lemma 7.53 we have that IV𝒯(φ)I_{\parallel V}\in\mathcal{HT}(\varphi). Since IVI{v}I\sim_{V}I_{\parallel\{v\}}, we can conclude, again using Lemma 7.53, that I𝒯(φ)I\in\mathcal{HT}(\varphi).

Lemma 7.57.

Let 𝒜\mathcal{A} be a signature, v𝒜v\in\mathcal{A}, and P1,P2P_{1},P_{2} programs over 𝒜\mathcal{A}, such that P2P_{2} does not contain vv. Then,

(𝒯V(P1P2))V=(𝒯V(P1)𝒯V(P2))V(\mathcal{HT}_{\parallel V}(P_{1}\cup P_{2}))_{\dagger V}=(\mathcal{HT}_{\parallel V}(P_{1})\cap\mathcal{HT}_{\parallel V}(P_{2}))_{\dagger V}
Proof 7.58.

We prove both inclusions. Let us start with the left to right inclusion. Let I(𝒯V(P1P2))VI\in(\mathcal{HT}_{\parallel V}(P_{1}\cup P_{2}))_{\dagger V}. Then, IV𝒯V(P1P2)I_{\parallel V}\in\mathcal{HT}_{\parallel V}(P_{1}\cup P_{2}). Therefore, there exists IVIVI^{\prime}\sim_{V}I_{\parallel V} such that I𝒯(P1P2)I^{\prime}\in{\mathcal{HT}}(P_{1}\cup P_{2}). From this we can conclude that I𝒯(P1)I^{\prime}\in\mathcal{HT}(P_{1}) and I𝒯(P2)I^{\prime}\in\mathcal{HT}(P_{2}), and thus IV𝒯V(P1)I_{\parallel V}\in\mathcal{HT}_{\parallel V}(P_{1}) and IV(P2)I_{\parallel V}\in(P_{2}). Therefore, we have that IV𝒯V(P1)𝒯V(P2)I_{\parallel V}\in\mathcal{HT}_{\parallel V}(P_{1})\cap\mathcal{HT}_{\parallel V}(P_{2}), thus I(𝒯V(P1)𝒯V(P2))VI\in(\mathcal{HT}_{\parallel V}(P_{1})\cap\mathcal{HT}_{\parallel V}(P_{2}))_{\dagger V}.

For the reverse inclusion consider that I(𝒯V(P1)𝒯V(P2))VI\in(\mathcal{HT}_{\parallel V}(P_{1})\cap\mathcal{HT}_{\parallel V}(P_{2}))_{\dagger V}. Then, IV𝒯V(P1)𝒯V(P2)I_{\parallel V}\in\mathcal{HT}_{\parallel V}(P_{1})\cap\mathcal{HT}_{\parallel V}(P_{2}), and thus IV𝒯V(P1)I_{\parallel V}\in\mathcal{HT}_{\parallel V}(P_{1}) and IV𝒯V(P2)I_{\parallel V}\in\mathcal{HT}_{\parallel V}(P_{2}). Therefore, there exists IVIVI^{*}\sim_{V}I_{\parallel V} such that I𝒯(P1)I^{*}\in\mathcal{HT}(P_{1}). Since 𝒯(P2)=(𝒯V(P2))V\mathcal{HT}(P_{2})=(\mathcal{HT}_{\parallel V}(P_{2}))_{\dagger V} (by Lemma 7.55 and since no vVv\in V occurs in P2P_{2}), IV𝒯V(P2)I_{\parallel V}\in\mathcal{HT}_{\parallel V}(P_{2}) and since IVIVI^{*}\sim_{V}I_{\parallel V}, we can conclude that I𝒯(P2)I^{*}\in\mathcal{HT}(P_{2}). Therefore, I𝒯(P1P2)I^{*}\in\mathcal{HT}(P_{1}\cup P_{2}), and then IV𝒯V(P1P2)I_{\parallel V}\in\mathcal{HT}_{\parallel V}(P_{1}\cup P_{2}). We can then conclude that I(𝒯V(P1P2))VI\in(\mathcal{HT}_{\parallel V}(P_{1}\cup P_{2}))_{\dagger V}.

Lemma 7.59.

Let 𝒜\mathcal{A} be a signature and v𝒜v\in\mathcal{A}. Let B1B_{1}, B2B_{2}, C1C_{1}, C2C_{2}, {a}\{a\} sets of atoms over 𝒜{v}\mathcal{A}\setminus\{v\}. Consider the rules

  • r1=aB1,v,notC1r_{1}=a\leftarrow B_{1},v,not\,C_{1}

  • r2=vB2,notC2r_{2}=v\leftarrow B_{2},not\,C_{2}

  • r=aB1,B2,notC1,notC2r=a\leftarrow B_{1},B_{2},not\,C_{1},not\,C_{2}

Then,

𝒯({r1}{r2})𝒯({r}){\mathcal{HT}}(\{r_{1}\}\cup\{r_{2}\})\subseteq{\mathcal{HT}}(\{r\})
Proof 7.60.

Let I=X,Y𝒯({r1}{r2})I=\langle X,Y\rangle\in{\mathcal{HT}}(\{r_{1}\}\cup\{r_{2}\}). Then, we have

OPENi1)i_{1})

YaB1,v,notC1Y\models a\leftarrow B_{1},v,not\,C_{1},

OPENii1)ii_{1})

XaB1,vX\models a\leftarrow B_{1},v whenever C1Y=C_{1}\cap Y=\emptyset,

OPENi2)i_{2})

YvB2,notC2Y\models v\leftarrow B_{2},not\,C_{2},

OPENii2)ii_{2})

XvB2X\models v\leftarrow B_{2} whenever C2Y=C_{2}\cap Y=\emptyset.

Our aim is to prove that I𝒯({r})I\in{\mathcal{HT}}(\{r\}), i.e.,

OPENi)i)

YaB1,B2,notC1,notC2Y\models a\leftarrow B_{1},B_{2},not\,C_{1},not\,C_{2} and

OPENii)ii)

XaB1,B2X\models a\leftarrow B_{1},B_{2} whenever (C1C2)Y=(C_{1}\cup C_{2})\cap Y=\emptyset.

If (C1C2)Y(C_{1}\cup C_{2})\cap Y\neq\emptyset then 𝑂𝑃𝐸𝑁i)i) and 𝑂𝑃𝐸𝑁ii)ii) trivially hold. So, suppose that (C1C2)Y=(C_{1}\cup C_{2})\cap Y=\emptyset. If B1B2YB_{1}\cup B_{2}\not\subseteq Y, then again 𝑂𝑃𝐸𝑁i)i) and 𝑂𝑃𝐸𝑁ii)ii) trivially hold. So assume that B1B2YB_{1}\cup B_{2}\subseteq Y. Then from 𝑂𝑃𝐸𝑁i1)i_{1}) and 𝑂𝑃𝐸𝑁i2)i_{2}) we can conclude that YaY\models a, and so 𝑂𝑃𝐸𝑁i)i) holds. If B1B2XB_{1}\cup B_{2}\not\subseteq X then immediately 𝑂𝑃𝐸𝑁ii)ii) holds. So assume that B1B2XB_{1}\cup B_{2}\subseteq X. Then 𝑂𝑃𝐸𝑁ii1)ii_{1}) and 𝑂𝑃𝐸𝑁ii2)ii_{2}) allow us to conclude that XaX\models a, and so 𝑂𝑃𝐸𝑁ii)ii) holds.

Lemma 7.61.

Let 𝒜\mathcal{A} be a signature, V𝒜V\subseteq\mathcal{A}, and P1,P2P_{1},P_{2} programs over 𝒜\mathcal{A}. Then, (𝒯V(P1))V(𝒯V(P2))V(\mathcal{HT}_{\parallel V}(P_{1}))_{\dagger V}\cap(\mathcal{HT}_{\parallel V}(P_{2}))_{\dagger V} =(𝒯V(P1)𝒯V(P2))V=(\mathcal{HT}_{\parallel V}(P_{1})\cap\mathcal{HT}_{\parallel V}(P_{2}))_{\dagger V}.

Proof 7.62.

Let II be an HTHT-interpretation over 𝒜\mathcal{A}. Consider the following sequence of equivalent sentences:

I(𝒯V(P1))V(𝒯V(P2))VI\in(\mathcal{HT}_{\parallel V}(P_{1}))_{\dagger V}\cap(\mathcal{HT}_{\parallel V}(P_{2}))_{\dagger V} iff

I(𝒯V(Pi))VI\in(\mathcal{HT}_{\parallel V}(P_{i}))_{\dagger V}, for each i{1,2}i\in\{1,2\} iff

IV𝒯V(Pi)I_{\parallel V}\in\mathcal{HT}_{\parallel V}(P_{i}) for each i{1,2}i\in\{1,2\} iff

IV(𝒯V(P1)𝒯V(P2))I_{\parallel V}\in(\mathcal{HT}_{\parallel V}(P_{1})\cap\mathcal{HT}_{\parallel V}(P_{2})) iff

I(𝒯V(P1)𝒯V(P2))VI\in(\mathcal{HT}_{\parallel V}(P_{1})\cap\mathcal{HT}_{\parallel V}(P_{2}))_{\dagger V}.