Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

This chapter proposes a general framework for handling inconsistency under any monotonic logic. Basically, our approach to reason with an inconsistent knowledge base (KB) is a process which follows three steps:

  1. 1.

    Determining consistent “subbases”;

  2. 2.

    Selecting among all the subbases the ones that are preferred;

  3. 3.

    Applying entailment on the preferred subbases.

Throughout the rest of this chapter, we assume that we have an arbitrary, but fixed monotonic logic (, CN).

The basic idea behind our framework is to construct what we call options, and then to define a preference relation on these options. The preferred options are intended to support the conclusions to be drawn from the inconsistent knowledge base. Intuitively, an option is a set of formulas that is both consistent and closed w.r.t. consequence in logic (, CN).

FormalPara Definition 2.1 (Options). 

An option is any set \(\mathcal{O}\) of elements of such that:

  • \(\mathcal{O}\) is consistent.

  • \(\mathcal{O}\) is closed, i.e., \(\mathcal{O} = \mathsf{CN}(\mathcal{O})\).

We use to denote the set of all options that can be built from (, CN).

Note that the empty set is not necessarily an option. This depends on the value of CN(∅) in the considered logic (, CN). For instance, in propositional logic, it is clear that ∅ is not an option since all the tautologies will be inferred from it. Indeed, it is easy to see that ∅ is an option iff CN(∅) = ∅.

Clearly, for each consistent subset X of , it holds that CN(X) is an option (as CN(X) is consistent and Idempotence axiom entails that CN(X) is closed). Since we are considering generic logic, we can show that options do not always exist.

FormalPara Proposition 2.1.

The set \(\mathtt{Opt}(\mathcal{L})=\emptyset \) iff

  1. 1.

    \(\forall \psi\in \mathcal{L},\) CN({ψ}) is inconsistent, and

  2. 2.

    CN(∅) ≠ ∅.

FormalPara Proof.

( ⇒ ) Let us assume that \(\mathtt{Opt}(\mathcal{L}) = \emptyset \). Let us also assume by contradiction that \(\exists \psi\in \mathcal{L}\) such that CN({ψ}) is consistent. Since CN({ψ}) is closed by the Idempotence axiom, CN({ψ}) is an option, which is a contradiction.

Assume now that CN(∅) = ∅. This means that ∅ is an option since it is closed and consistent (CN(∅) ≠ ), which is a contradiction.

( ⇐ ) Let us assume that (i) \(\forall \psi\in \mathcal{L}\), CN({ψ}) is inconsistent, and (ii) CN(∅) ≠ ∅. Assume also by contradiction that \(\mathtt{Opt}(\mathcal{L})\neq \emptyset \) and let \(\mathcal{O}\in \mathtt{Opt}(\mathcal{L})\). There are two cases:

Case 1::

\(\mathcal{O} = \emptyset \). Consequently, CN(∅) = ∅, which contradicts assumption (ii).

Case 2::

\(\mathcal{O}\neq \emptyset \). Since \(\mathcal{O}\) is consistent, \(\exists \psi\in \mathcal{O}\) s.t. {ψ} is consistent and thus CN({ψ}) is consistent. This contradicts assumption (i).   

So far, we have defined the concept of option for any logic (, CN) in a way that is independent of a knowledge base. We now show how to associate a set of options with an inconsistent knowledge base.

In most approaches for handling inconsistency, the maximal consistent subsets of a given inconsistent knowledge base have an important role. This may induce one to think of determining the options of a knowledge base as the closure of its maximal consistent subsets. However, this approach has the side effect of dropping entire formulas, whereas more fine-grained approaches could be adopted in order to preserve more information of the original knowledge base. This is shown in the following example.

FormalPara Example 2.1.

Consider the propositional knowledge base \(\mathcal{K} =\{ (a\, \wedge \, b);\neg b\}\). There are two maximal consistent subsets, namely MCS 1 = { a  ∧ b} and MCS 2 =  ¬{b}. However, one could argue that MCS 2 is too weak, since we could have included a by “weakening” the formula (a  ∧ b) instead of dropping it altogether.

The “maximal consistent subset” approach, as well as the one suggested in the previous example, can be seen as a particular case of a more general approach, where one considers consistent “relaxations” (or weakenings) of a given inconsistent knowledge base. The ways in which such weakenings are determined might be different, as the following examples show.

FormalPara Example 2.2.

Consider again the temporal knowledge base of Example 1.2. An intuitive way to “weaken” the knowledge base might consist of replacing the ◯ (next moment in time) connective with the ◊ (sometime in the future) connective. So, for instance, ◯processed ← received might be replaced by ◊processed ← received, thus saying that if received is true at time t, then processed is true at some subsequent time t′ ≥ t (not necessarily at time t + 1). This would lead to a consistent knowledge base, whose closure is clearly an option. Likewise, we might weaken only (1.6), obtaining another consistent knowledge base whose closure is an option.

FormalPara Example 2.3.

Consider the probabilistic knowledge base of Example 1.3. A reasonable way to make a probabilistic formula ϕ : [, u] weaker, might be to replace it with another formula ϕ : [ℓ′ , u′] where [, u] ⊆ [ , u′].

The preceding examples suggest that a flexible way to determine the options of a given knowledge base should be provided, since what is considered reasonable to be an option might depend on the logic and the application domain at hand, and, more importantly, it should depend on the user’s preferences. The basic idea is to consider weakenings of a given knowledge base \(\mathcal{K}\) whose closures yield options. For instance, as said before, weakenings might be subsets of the knowledge base. Although such a weakening mechanism is general enough to be applicable to many logics, more tailored mechanisms could be defined for specific logics. For instance, the two reasonable approaches illustrated in Examples 2.2 and 2.3 above cannot be captured by considering subsets of the original knowledge bases; as another example, let us reconsider Example 2.1: by looking at subsets of the knowledge base, it is not possible to get an option containing both a and ¬b. We formally introduce the notion of weakening  as follows.

FormalPara Definition 2.2.

Given an element ψ of ,

$$weakening(\psi ) = \left\{\begin{array}{ll} \mathsf{CN}(\{\psi \})&if\ \psi \ is\ consistent\\ \emptyset&otherwise \end{array} \right.$$
FormalPara Definition 2.3.

Given a knowledge base \(\mathcal{K}\),

$$weakening(\mathcal{K}) =\{ \mathcal{K}^{\prime}\subseteq \mathcal{L}\ \vert \ \forall \psi ^{\prime} \in \mathcal{K}^{\prime}\ (\exists \psi\in \mathcal{K}.\ \psi ^{\prime} \in weakening(\psi ))\}$$

According to the preceding definitions, to weaken a knowledge base intuitively means to weaken formulas in it; to weaken a formula ψ means to take some formulas in CN({ψ}) if ψ is consistent, or to otherwise drop ψ altogether (note that a consistent formula could also be dropped). The set \(weakening(\mathcal{K})\) can be computed by first finding weakening(ψ) for all \(\psi\in \mathcal{K}\) and then returning the subsets of \(\bigcup _{\psi \in \mathcal{K}}weakening(\psi )\). It is easy to see that if \(\mathcal{K}^{\prime}\in weakening(\mathcal{K})\), then \(\mathsf{CN}(\mathcal{K}^{\prime}) \subseteq \mathsf{CN}(\mathcal{K})\).

Observe that although a knowledge base in \(weakening(\mathcal{K})\) does not contain any inconsistent formulas, it could be inconsistent.

FormalPara Definition 2.4.

A weakening mechanism is a function \(\mathcal{W} : {2}^{\mathcal{L}}\rightarrow{2}^{{2}^{\mathcal{L}} }\) such that \(\mathcal{W}(\mathcal{K}) \subseteq weakening(\mathcal{K})\) for any \(\mathcal{K}\in{2}^{\mathcal{L}}\).

The preceding definition says that a weakening mechanism is a function that maps a knowledge base into knowledge bases that are weaker in some sense. For instance, an example of a weakening mechanism is \(\mathcal{W}(\mathcal{K}) = weakening(\mathcal{K})\). This returns all the weaker knowledge bases associated with \(\mathcal{K}\). We use \(\mathcal{W} _{all}\) to denote this weakening mechanism.

We now define the set of options for a given knowledge base (w.r.t. a selected weakening mechanism).

FormalPara Definition 2.5.

Let \(\mathcal{K}\) be a knowledge base in logic (, CN) and \(\mathcal{W}\) a weakening mechanism. We say that an option \(\mathcal{O}\in \mathtt{Opt}(\mathcal{L})\) is an option for \(\mathcal{K}\) (w.r.t. \(\mathcal{W}\)) iff there exists \(\mathcal{K}^{\prime}\) in \(\mathcal{W}(\mathcal{K})\) such that \(\mathcal{O} = \mathsf{CN}(\mathcal{K}^{\prime})\).

Thus, an option for \(\mathcal{K}\) is the closure of some weakening \(\mathcal{K}^{\prime}\) of \(\mathcal{K}\). Clearly, \(\mathcal{K}^{\prime}\) must be consistent because \(\mathcal{O}\) is consistent (by virtue of being an option) and because \(\mathcal{O} = \mathsf{CN}(\mathcal{K}^{\prime})\). In other words, the options for \(\mathcal{K}\) are the closure of consistent weakenings of \(\mathcal{K}\). We use \(\mathtt{Opt}(\mathcal{K},\mathcal{W})\) to denote the set of options for \(\mathcal{K}\) under the weakening mechanism \(\mathcal{W}\). Whenever \(\mathcal{W}\) is clear from the context, we simply write \(\mathtt{Opt}(\mathcal{K} )\) instead of \(\mathtt{Opt}(\mathcal{K},\mathcal{W})\).

Note that if we restrict \(\mathcal{W}(\mathcal{K})\) to be \(\{\mathcal{K}^{\prime}\ \vert \ \mathcal{K}^{\prime}\subseteq \mathcal{K}\}\), Definition 2.5 corresponds to that presented in Subrahmanian and Amgoud (2007) (we will refer to such a weakening mechanism as \(\mathcal{W} _{\subseteq }\)). Moreover, observe that every option for a knowledge base w.r.t. this weakening mechanism is also an option for the knowledge base when \(\mathcal{W} _{all}\) is adopted, that is, the options obtained in the former case are a subset of those obtained in the latter case.

FormalPara Example 2.4.

Consider again the knowledge base of Example 2.1 and let \(\mathcal{W} _{all}\) be the adopted weakening mechanism. Our framework is flexible enough to allow the set CN({a,  ¬b}) to be an option for \(\mathcal{K}\). This weakening mechanism preserves more information from the original knowledge base than the classical “maximal consistent subsets” approach.

In Chap. 4 we will consider specific monotonic logics and show more tailored weakening mechanisms.

The framework for reasoning about inconsistency has three components: the set of all options for a given knowledge base, a preference relation between options, and an inference mechanism.

FormalPara Definition 2.6 (General framework). 

A general framework for reasoning about inconsistency in a knowledge base \(\mathcal{K}\) is a triple \(\langle \mathtt{Opt}(\mathcal{K},\mathcal{W} ),\succcurlyeq,\,\mid \sim \,\rangle\) such that:

  • \(\mathtt{Opt}(\mathcal{K},\mathcal{W} )\) is the set of options for \(\mathcal{K}\) w.r.t. the weakening mechanism \(\mathcal{W}\).

  •  ≽  ⊆ \(\mathtt{Opt}(\mathcal{K},\mathcal{W} ) \times \mathtt{Opt}(\mathcal{K},\mathcal{W} )\). ≽ is a partial (or total) preorder (i.e., it is reflexive and transitive).

  •  ∣∼ : \({2}^{\mathtt{Opt}(\mathcal{K},\mathcal{W})}\) → \(\mathtt{Opt}(\mathcal{L})\).

The second important concept of the general framework above is the preference relation ≽ among options. Indeed, \(\mathcal{O}_{1}\) ≽ \(\mathcal{O}_{2}\) means that the option \(\mathcal{O}_{1}\) is at least as preferred as \(\mathcal{O}_{2}\). This relation captures the idea that some options are better than others because, for instance, the user has decided that this is the case, or because those preferred options satisfy the requirements imposed by the developer of a conflict management system. For instance, in Example 1.1, the user chooses certain options (e.g., the options where the salary is minimal or where the salary is maximal based on his needs). From the partial preorder ≽ we can derive the strict partial order ≻ (i.e., it is irreflexive and transitive) over \(\mathtt{Opt}(\mathcal{K},\mathcal{W} )\) as follows: for any \(\mathcal{O}_{1},\mathcal{O}_{2} \in \mathtt{Opt}(\mathcal{K},\mathcal{W} )\) we say \(\mathcal{O}_{1} \succ \mathcal{O}_{2}\) iff \(\mathcal{O}_{1} \succcurlyeq \mathcal{O}_{2}\) and \(\mathcal{O}_{2}\succcurlyeq \mathcal{O}_{1}\). Intuitively, \(\mathcal{O}_{1} \succ \mathcal{O}_{2}\) means that \(\mathcal{O}_{1}\) is strictly preferable to \(\mathcal{O}_{2}\). The set of preferred options in \(\mathtt{Opt}(\mathcal{K},\mathcal{W} )\) determined by ≽ is \({\mathtt{Opt}}^{\succcurlyeq }(\mathcal{K},\mathcal{W}) =\{ \mathcal{O}\ \vert \ \mathcal{O}\in \mathtt{Opt}(\mathcal{K},\mathcal{W} ) \wedge\nexists \mathcal{O}^{\prime}\) ∈ \(\mathtt{Opt}(\mathcal{K},\mathcal{W} )\) with \(\mathcal{O}^{\prime}\) ≻ \(\mathcal{O}\}\). Whenever \(\mathcal{W}\) is clear from the context, we simply write \({\mathtt{Opt}}^{\succcurlyeq }(\mathcal{K} )\) instead of \({\mathtt{Opt}}^{\succcurlyeq }(\mathcal{K},\mathcal{W})\).

In the following three examples, we come back to the example theories of Chap. 1 to show how our framework can handle them.

FormalPara Example 2.5.

Let us consider again the knowledge base S of Example 1.1. Consider the options \(\mathcal{O}_{1} = \mathsf{CN}(\{(1.1),(1.3)\}),\) \(\mathcal{O}_{2} = \mathsf{CN}(\{(1.1),(1.2)\}),\) \(\mathcal{O}_{3} = \mathsf{CN}(\{(1.2)\), (1. 3)}), and let us say that these three options are strictly preferable to all other options for S; then, we have to determine the preferred options among these three. Different criteria might be used to determine the preferred options:

  • Suppose the score \(sc(\mathcal{O}_{i})\) of option \(\mathcal{O}_{i}\) is the sum of the elements in the multiset \(\{S\;\vert \;salary(John,S) \in \mathcal{O}_{i}\}\). In this case, the score of \(\mathcal{O}_{1}\) is 50K, that of \(\mathcal{O}_{2}\) is 110K, and that of \(\mathcal{O}_{3}\) is 60K. We could now say that \(\mathcal{O}_{i} \succcurlyeq \mathcal{O}_{j}\) iff \(sc(\mathcal{O}_{i}) \leq sc(\mathcal{O}_{j})\). In this case, the only preferred option is \(\mathcal{O}_{1}\), which corresponds to the bank manager’s viewpoint.

  • On the other hand, suppose we say that \(\mathcal{O}_{i} \succcurlyeq \mathcal{O}_{j}\) iff \(sc(\mathcal{O}_{i}) \geq sc(\mathcal{O}_{j})\). In this case, the only preferred option is \(\mathcal{O}_{2}\); this corresponds to the view that the rule saying everyone has only one salary is wrong (perhaps the database has John being paid out of two projects simultaneously and 50K of his salary is charged to one project and 60K to another).

  • Now consider the case where we change our scoring method and say that \(sc(\mathcal{O}_{i}) = \mathsf{min}\{S\;\vert \;salary(John,S) \in \mathcal{O}_{i}\}\). In this case, \(sc(\mathcal{O}_{1}) =\) 50K, \(sc(\mathcal{O}_{2}) = 50\mathrm{K},sc(\mathcal{O}_{3}) =\) 60K. Let us suppose that the preference relation says that \(\mathcal{O}_{i} \succcurlyeq \mathcal{O}_{j}\) iff \(sc(\mathcal{O}_{i}) \geq sc(\mathcal{O}_{j})\). Then, the only preferred option is \(\mathcal{O}_{3}\), which corresponds exactly to the tax agency’s viewpoint.

FormalPara Example 2.6.

Let us consider the temporal logic theory T of Example 1.2. We may choose to consider just three options for determining the preferred ones: \(\mathcal{O}_{1} = \mathsf{CN}(\{(\mbox{1.4}),(\mbox{1.5})\}),\) \(\mathcal{O}_{2} = \mathsf{CN}(\{(\mbox{1.4}),(\mbox{1.6})\}),\) \(\mathcal{O}_{3} = \mathsf{CN}(\{(\mbox{ 1.5}),(\mbox{ 1.6})\})\). Suppose now that we can associate a numeric score with each formula in T, describing the reliability of the source that provided the formula. Let us say these scores are 3, 1, and 2 for formulas (1.4), (1.5) and (1.6), respectively, and the weight of an option \(\mathcal{O}_{i}\) is the sum of the scores of the formulas in \(T\, \cap \,\mathcal{O}_{i}\). We might say \(\mathcal{O}_{i} \succcurlyeq \mathcal{O}_{j}\) iff the score of \(\mathcal{O}_{i}\) is greater than or equal to the score of \(\mathcal{O}_{j}\). In this case, the only preferred option is \(\mathcal{O}_{2}\).

FormalPara Example 2.7.

Consider the probabilistic logic theory P of Example 1.3. Suppose that in order to determine the preferred options, we consider only options that assign a single non-empty probability interval to p, namely options of the form CN({p : [, u]}). For two atoms A 1 = p : [ 1, u 1] and A 2 = p : [ 2, u 2], let \(\mathit{diff }(A_{1},A_{2}) = abs(\ell_{1} -\ell_{2}) + abs(u_{1} - u_{2})\). Let us say that the score of an option \(\mathcal{O} = \mathsf{CN}(\{A\})\), denoted by \(score(\mathcal{O})\), is given by A′ ∈ P diff(A, A′). Suppose we say that \(\mathcal{O}_{i} \succcurlyeq \mathcal{O}_{j}\) iff \(score(\mathcal{O}_{i}) \leq score(\mathcal{O}_{j})\). Intuitively, this means that we are preferring options that change the lower and upper bounds in P as little as possible. In this case, CN({p : [0. 41, 0. 43]}) is a preferred option.

Thus, we see that our general framework for managing inconsistency is very powerful – it can be used to handle inconsistencies in different ways based upon how the preference relation between options is defined. In Chap. 4, we will consider more logics and illustrate more examples showing how the proposed framework is suitable for handling inconsistency in a flexible way.

The following definition introduces a preference criterion where an option is preferable to another if and only if the latter is a weakening of the former.

FormalPara Definition 2.7.

Consider a knowledge base \(\mathcal{K}\) and a weakening mechanism \(\mathcal{W}\). Let \(\mathcal{O}_{1},\mathcal{O}_{2} \in \mathtt{Opt}(\mathcal{K},\mathcal{W} )\). We say \(\mathcal{O}_{1}\succcurlyeq W\mathcal{O}_{2}\) iff \(\mathcal{O}_{2} \in weakening(\mathcal{O}_{1})\).

FormalPara Proposition 2.2.

Consider a knowledge base \(\mathcal{K}\) and a weakening mechanism \(\mathcal{W}\) . Let \(\mathcal{O}_{1},\mathcal{O}_{2} \in \mathtt{Opt}(\mathcal{K},\mathcal{W} )\) \(\mathcal{O}_{1}\succcurlyeq W\mathcal{O}_{2}\) iff \(\mathcal{O}_{1} \supseteq \mathcal{O}_{2}.\)

FormalPara Proof.

( ⇒ ) Let \(\psi _{2} \in \mathcal{O}_{2}\). By definition of ≽ W, there exists \(\psi _{1} \in \mathcal{O}_{1}\) s.t. ψ 2 ∈ weakening(ψ 1); that is ψ 2 ∈ CN({ψ 1}). Since \(\{\psi _{1}\} \subseteq \mathcal{O}_{1}\), it follows that CN({ψ 1}) \(\subseteq \mathcal{O}_{1}\) (by Monotonicity and the fact that \(\mathcal{O}_{1}\) is closed). Hence, \(\psi _{2} \in \mathcal{O}_{1}\).

( ⇐ ) Let \(\psi _{2} \in \mathcal{O}_{2}\). Clearly, ψ 2 ∈ weakening(ψ 2), since ψ 2 is consistent and ψ 2 ∈ CN({ψ 2}) (Expansion axiom). As \(\psi _{2} \in \mathcal{O}_{1}\), the condition expressed in Definition 2.3 trivially holds and \(\mathcal{O}_{1}\succcurlyeq W\mathcal{O}_{2}\).   

The following corollary states that ≽ W is indeed a preorder (in particular, a partial order).

FormalPara Corollary 2.1.

Consider a knowledge base \(\mathcal{K}\) and a weakening mechanism \(\mathcal{W}\) . ≽W is a partial order over \(\mathtt{Opt}(\mathcal{K},\mathcal{W} ).\)

FormalPara Proof.

Straightforward from Proposition 2.2.

If the user’s preferences are expressed according to ≽ W , then the preferred options are the least weak or, in other words, in view of Proposition 2.2, they are the maximal ones under set inclusion.

The third component of the framework is a mechanism for selecting the inferences to be drawn from the knowledge base. In our framework, the set of inferences is itself an option. Thus, it should be consistent. This requirement is of great importance, since it ensures that the framework delivers safe conclusions. Note that this inference mechanism returns an option of the language from the set of options for a given knowledge base. The set of inferences is generally computed from the preferred options. Different mechanisms can be defined for selecting the inferences to be drawn. Here is an example of such a mechanism.

FormalPara Definition 2.8 (Universal Consequences). 

Let \(\langle \mathtt{Opt}(\mathcal{K},\mathcal{W}),\succcurlyeq,\,\mid \sim \,\rangle\) be a framework. A formula \(\psi\in \mathcal{L}\) is a universal consequence of \(\mathcal{K}\) iff \((\forall \mathcal{O}\in {\mathtt{Opt}}^{\succcurlyeq }\) \((\mathcal{K},\mathcal{W}))\) \(\psi\in \mathcal{O}\).

We can show that the set of inferences made using the universal criterion is itself an option of \(\mathcal{K}\), and thus the universal criterion is a valid mechanism of inference. Moreover, it is included in every preferred option.

FormalPara Proposition 2.3.

Let \(\langle \mathtt{Opt}(\mathcal{K},\mathcal{W}),\succcurlyeq,\,\mid \sim \,\rangle\) be a framework. The set {ψ | ψ is a universal consequence of \(\mathcal{K}\}\) is an option in \(\mathtt{Opt}(\mathcal{L})\)

FormalPara Proof.

Let \(\mathcal{C}\) = {ψ | ψ is a universal consequence of \(\mathcal{K}\}\). As each \(\mathcal{O}_{i} \in {\mathtt{Opt}}^{\succcurlyeq }\) \((\mathcal{K},\mathcal{W})\) is an option, \(\mathcal{O}_{i}\) is consistent. Thus, \(\mathcal{C}\) (which is a subset of every \(\mathcal{O}_{i}\)) is also consistent. Moreover, since \(\mathcal{C}\) ⊆ \(\mathcal{O}_{i}\), thus \(\mathsf{CN}(\mathcal{C})\) ⊆ \(\mathcal{O}_{i}\) (by Monotonicity and Idempotence axioms), \(\forall \mathcal{O}_{i} \in {\mathtt{Opt}}^{\succcurlyeq }(\mathcal{K},\mathcal{W})\). Consequently, \(\mathsf{CN}(\mathcal{C})\) ⊆ \(\mathcal{C}\) (according to the above definition of universal consequences). In particular, \(\mathsf{CN}(\mathcal{C}) = \mathcal{C}\) because of the expansion axiom. Thus, \(\mathcal{C}\) is closed and consistent, and is therefore an option in \(\mathtt{Opt}(\mathcal{L})\).   

However, the following criterion

$$\mathcal{K}\,\mid \sim \,\psi \mbox{ iff }\exists \mathcal{O}\in {\mathtt{Opt}}^{\succcurlyeq }(\mathcal{K},\mathcal{W})\mbox{ such that }\psi\in \mathcal{O}$$

is not a valid inference mechanism since the set of consequences returned by it may be inconsistent, thus, it is not an option.