• Aucun résultat trouvé

Knowledge Compilation in the Modal Logic S5

N/A
N/A
Protected

Academic year: 2022

Partager "Knowledge Compilation in the Modal Logic S5"

Copied!
6
0
0

Texte intégral

(1)

Knowledge Compilation in the Modal Logic S5

Meghyn Bienvenu

Universit¨at Bremen Bremen, Germany

meghyn@informatik.uni-bremen.de

H´el`ene Fargier

IRIT-CNRS, Universit´e Paul Sabatier,

Toulouse, France fargier@irit.fr

Pierre Marquis

CRIL-CNRS, Universit´e d’Artois Lens, France

marquis@cril.univ-artois.fr

Abstract

In this paper, we study the knowledge compilation task for propositional epistemic logicS5. We first extend many of the queries and transformations considered in the classical knowledge compilation map toS5. We then show that the notion of disjunctive normal form (DNF) can be profitably extended to the epistemic case;

we prove that theDNFfragment ofS5, when appropri- ately defined, satisfies essentially the same queries and transformations as its classical counterpart.

1. Introduction

Propositional epistemic logic S5 is a well-known modal logic which is suitable for representing and reasoning about the knowledge of a single agent. For instance, inS5, one can represent the fact that an agent knows the truth value of a propositionawithout stating which one (Ka∨K¬a); such a fact cannot be expressed in classical propositional logic.

Reasoning from such pieces of knowledge is an important issue per se, but is also required when performing the pro- gression of a knowledge state by an epistemic plan. Unfor- tunately, standard reasoning tasks inS5are intractable; for instance, entailment inS5is coNP-complete (Ladner 1977), like in classical propositional logic. Another example is the variable forgetting transformation, which can prove useful in epistemic planning but is intractable in the general case.

A standard approach to coping with the computational in- tractability of reasoning is to employ knowledge compila- tion (KC). The idea underlying KC is to pre-process parts of the available information (i.e., turning them into a compiled form) in order to improve on-line computational efficiency (see (Cadoli and Donini 1998) for a survey). A major is- sue in KC is the selection of an appropriate target language.

In (Darwiche and Marquis 2002), the authors argue that the choice of a target language must be based both on the set of queries and transformations which can be achieved in poly- nomial time when the data are represented in the language, as well as the spatial efficiency of the language. They elabo- rate a KC map which can be viewed as a multi-criteria eval- uation of a number of classical propositional languages, in- cludingDNF, CNF,DNNF, and OBDD. From there, the KC map has been extended to other propositional target lan- guages. There has also been some work on knowledge com-

pilation techniques suited to other formal settings, e.g. belief bases, Bayesian networks, description logics, etc.

In this paper, we study the knowledge compilation task for propositional epistemic logicS5. We introduce a family S5-DNFof subsets of S5 (called “fragments”) which can be seen as the epistemic counterparts ofDNFand evaluate the family with respect to several queries and transforma- tions, including clausal entailment, variable forgetting, and conditioning by an (epistemic) term. Our evaluation shows one of the most promising languages of the family to be S5-DNFDNF,CNF, consisting of those S5 formulae in dis- junctive normal form in which the formulae αin positive epistemic atoms (Kα) are inDNFand those appearing in negative epistemic atoms (¬Kα) are inCNF.

The rest of the paper is organized as follows. Section 2 contains a brief refresher on classical propositional logic and the modal logicS5. Section 3 shows how many queries and transformations considered in the classical case can be ex- tended toS5. In Section 4, we study the properties of the S5-DNFfamily of fragments ofS5; we show in particular that the fragmentS5-DNFDNF,CNF satisfies essentially the same queries and transformations as its propositional coun- terpart. In Section 5, we sketch how our results can be ex- ploited for epistemic planning. Finally, in Section 6 we con- clude the paper with a discussion of our results.

2. Preliminaries

Classical Propositional Logic

The propositional languages which have been considered as target languages for KC are typically subsets of the follow- ingPDAGlanguage:

Definition 1(PDAG). LetP Sbe a finite set of propositional variables (atoms). A formula inPDAGis a rooted, directed acyclic graph (DAG) where each leaf node is labeled with>,

⊥,xor¬x,x∈ P S; each internal node is labeled with∧ or∨and can have arbitrarily many children, or it is labeled with¬and has a single child.

For any subsetV ofP S,LV denotes the subset of (clas- sical) literals generated from the atoms of V, i.e., LV = {x,¬x|x ∈ V}. CL(resp. TE) is the set of (classical) clauses(resp. terms), namely disjunctions (resp. conjunc- tions) of literals. CNF(resp. DNF) is the subset ofPDAG consisting of conjunctions of clauses (resp. disjunctions of

(2)

terms).PDAGand its subsets are classically interpreted: the semantics of a formula is a Boolean function. A valuation (or world) ω is a mapping fromP S to{0,1}. The set of valuations is noted byΩ.

SubsetsL1 andL2of PDAGare said to bedualiff there exists a polytime algorithm f from L1 to L2 and a poly- time algorithmgfromL2toL1such that for everyα∈L1, f(α)≡ ¬α, and for everyα∈L2,g(α)≡ ¬α.

In the following, we consider only subsetsLofPDAGin which every classical clause (resp. term) has a polytime- computable representation inL. This is the case for all the languages considered in (Darwiche and Marquis 2002), ex- cept the explicit model representationMODS.

Modal LogicS5

Let us now consider a more general DAG-based language, suited to propositional epistemic logic:

Definition 2(S5). LetP S be a finite set of propositional variables (atoms). A formula in S5 is a rooted, directed acyclic graph (DAG) where each leaf node is labeled with

>,⊥,xor¬x,x∈P S; each internal node is labeled with

∧or∨and can have arbitrarily many children, or it is labeled withKor by¬and it has a single child; and each path con- tains at most one nodeK. The size of a sentenceΣinS5 denoted|Σ|, is the number of its DAG arcs plus the num- ber of its DAG nodes. V ar(Σ) is the set of propositional symbols fromP Soccurring inΣ.

The semantics ofS5can be defined in a standard way `a la Kripke, but it is well-known (Fagin et al. 1995) that it can also be defined in an equivalent (yet simpler) way us- ing pointed knowledge structures, of the formM =hω, Si whereω ∈ ΩandS is a (non-empty) subset ofΩcontain- ingω. Thesatisfactionof a formulaϕ∈S5by a structure M =hω, Siis defined inductively as follows:

• ifϕis a leaf node, thenhω, Si |=ϕiffω|=ϕ,

• ifϕis of the form¬α, thenhω, Si |=ϕiffhω, Si 6|=α,

• if ϕis of the form Kα, then hω, Si |= ϕiff for every ω0∈S,hω0, Si |=α,

• ifϕis of the form∧(α1, . . . , αk), thenhω, Si |=ϕiff for each1≤i≤k,hω, Si |=αi,

• ifϕis of the form∨(α1, . . . , αk), then hω, Si |= ϕiff there exists1≤i≤ksuch thathω, Si |=αi.

M is a model ofϕwhen it satisfies it. Mod(ϕ)denotes the set of models ofϕ. A formulaϕis said to be consistent (resp. valid) iffMod(ϕ)6=∅(resp.Mod(¬ϕ) =∅). Logical entailment and equivalence are defined as usual:ϕ|=ψiff Mod(ϕ)⊆Mod(ψ), andϕ≡ψiffMod(ϕ) =Mod(ψ).

In our definition ofS5we have chosen to disallow nested modalities. This is without any loss of generality since every formula from S5 can be turned in polynomial time into a flattened equivalent, thanks to the following “flat- tening equivalences”: KKϕ ≡ Kϕ, K¬Kϕ ≡ ¬Kϕ, K(ϕ∧ψ)≡(Kϕ)∧(Kψ),K(ϕ∨Kψ)≡(Kϕ)∨(Kψ) andK(ϕ∨ ¬(Kψ))≡(Kϕ)∨ ¬(Kψ).

PDAGis clearly a proper subset ofS5. It contains the so- calledobjectiveformulae ofS5. Thesubjective fragmentof S5(denoteds-S5) is defined as follows.

Definition 3 (s-S5). s-S5consists of all S5 formulae ϕ such that every path from the root ofϕto a node labeled by l∈LP Scontains exactly one node labeled byK.

s-S5 allows one to represent an agent’s knowledge but not the actual state of the world (unless it is known); for instance, theS5formulaa∧b∧Ka∧ ¬Kbcannot be rep- resented ins-S5.

A formula of the formKϕwithϕ∈PDAGis called an epistemic atom. EachS5 formula Σ can be viewed as a PDAGformula where the leaf nodes are Boolean constants, classical propositional literals or epistemic atoms.

As expected, an epistemic literal is an epistemic atom (also referred to as a positive epistemic literal) or a negated one (a negative epistemic literal). Byliteral, we will mean either a classical literal or an epistemic literal. Clearly enough, epistemic literals are already rather complex and some simple properties from the classical case cannot be ex- tended to S5. Thus, since Kαis consistent (resp. valid) iffαis consistent (resp. valid), the consistency (resp. va- lidity) problem for epistemic literals isNP-complete (resp.

coNP-complete).

Now, taking advantage of the flattening equivalences, one can easily extend the notions of clause andterm, and the languagesCNFandDNF toS5as follows:

Definition 4(S5-CL,S5-TE,S5-CNF,S5-DNF). The set S5-CL (resp. S5-TE) of epistemic clauses (resp. terms) ofS5consists of all those disjunctions (resp. conjunctions) of literals containingat mostone negative (resp. positive) epistemic literal. The languageS5-CNF(resp.S5-DNF) is the subset of formulae fromS5consisting of conjunctions (resp. disjunctions) of epistemic clauses (resp. terms).

Note that the restriction to a single positive (resp. nega- tive) epistemic literal per term (resp. clause) in Definition 4 is without loss of expressiveness because of the equivalence K(ϕ∧ψ)≡Kϕ∧Kψ. Without this restriction, we cannot guarantee that the consistency of a positive epistemic term (resp. the validity of a negative epistemic clause) amounts to the consistency of each positive epistemic literal in it (resp.

the validity of at least one negative epistemic literal in it).

For instance, the positive epistemic termKa∧K¬ais in- consistent despite the fact that each ofKaandK¬ais con- sistent.

The following (folklore) proposition, which characterizes the consistency of S5terms, highlights the interaction be- tween the classical formulae appearing in a term.

Proposition 5. An epistemic termτ∧Kα∧ ¬Kβ1∧. . .∧

¬Kβn (withτ an objective term) is consistent if and only if τ ∧αis consistent and α∧ ¬βi is consistent for every 1≤i≤n.

In what follows, we will often need to refer to fragments of S5 in which the shape of formulae behindK has been restricted. IfL,L0 ⊆PDAGandL is a subset ofS5, then we denote by LL,L0 the subset ofLin which the formulae under the scope ofK(resp.¬K) belong toL(resp.L0). For example,S5-CLCNF,DNF consists of epistemic clauses with CNF formulae behindK andDNF formulae behind ¬K.

Finally, given a subsetL ofS5, we use s-Lto refer to its restriction tos-S5, i.e.,L ∩s-S5.

(3)

3. Towards a KC Map for S5

We show how the notions of expressiveness and succinct- ness (or spatial efficiency) as well as many queries and trans- formations considered in the classical KC map can be ex- tended toS5.

Expressiveness and Succinctness Consider subsetsL1andL2ofS5.

Definition 6(≤e). L1 is at least as expressive asL2, de- notedL1eL2, iff for every formulaα∈ L2, there exists an equivalent formulaβ ∈ L1.

A subsetL1of a languageL2is said to becomplete w.r.t.

L2when it is as expressive asL2. As in the classical case, succinctness is a refinement of expressiveness:

Definition 7(≤s). L1isat least as succinct asL2, denoted L1sL2, iff there exists a polynomialpsuch that for every formulaα∈ L2, there exists an equivalent formulaβ ∈ L1

where|β| ≤p(|α|).

=sand<sare obtained as usual by taking the symmetric and asymmetric parts of≤s.

Queries and Transformations

Most standard queries and transformations straightforwardly extend from classical logic to subsetsLofS5. This is the case forCO(consistency),VA(validity),EQ(equivalence), SE(sentential entailment), and the (possibly bounded) clo- sure transformations with respect to the propositional con- nectives:∧C,∧BC,∨C,∨BC,¬C.

Definition 8.

• LsatisfiesCO (resp. VA) iff there exists a polytime al- gorithm that maps every formulaαfrom Lto1 if αis consistent (resp. valid), and to0otherwise.

• LsatisfiesEQ(resp.SE) iff there exists a polytime algo- rithm that maps every pair of formulaeα,β fromLto1 ifα≡β(resp.α|=β) holds, and to0otherwise.

• Lsatisfies∧C(resp. ∨C) iff there exists a polytime al- gorithm that maps every finite set of formulaeα1, . . . , αn

fromL to a formula ofLthat is logically equivalent to

∧(α1. . . αn)(resp.∨(α1. . . αn)).

• Lsatisfies∧BC(resp. ∨BC) iff there exists a polytime algorithm mapping every pairα, βof formulae fromLto a formula ofLlogically equivalent toα∧β(resp.α∨β).

• Lsatisfies ¬Ciff there exists a polytime algorithm that maps every formulaαfromLto a formula of Lthat is logically equivalent to¬α.

CEandIM.A straightforward generalization of clausal en- tailment (CE) would say thatLsatisfiesCEiff there exists a polytime algorithm mapping every formulaαfromLand every clause γ to 1 if α |= γ holds, and to 0 otherwise.

As we saw earlier, the problems of deciding whether even a single epistemic atom is a tautology or a contradiction is in- tractable, which means that no non-trivial subset ofS5can exhibit polynomial behaviour for the queryCE. A similar argument applies to implication of terms (IM). For this rea- son, we consider the following versions ofCE(resp.IM), in

which restrictions are placed also on the formulae appearing in the epistemic literals of the clause (resp. term):

Definition 9 (CECNF,DNF, IMDNF,CNF). Let L denote any subset ofS5. L satisfiesCECNF,DNF (resp. IMDNF,CNF) iff there exists a polytime algorithm that maps every formulaα from Land every epistemic clause γ fromS5-CLCNF,DNF

(resp. term γ from S5-TEDNF,CNF) to 1 if α |= γ holds (resp. ifγ|=α), and to0otherwise.

Forgetting. Variable forgetting is a fundamental operation from a knowledge representation point of view with a num- ber of applications, including reasoning under inconsistency and planning (cf. Section 5). Forgetting can be used to sim- plify an agent’s epistemic state by discarding information concerning propositional variables which are no longer rele- vant. Forgetting inS5can be defined as follows (Zhang and Zhou 2009):

Definition 10 (Forgetting). We say that a formulaΨ is a forgettingofV ⊆P SfromΦif

(i) Φ|= Ψ,

(ii) V ar(Ψ)∩ V=∅,

(iii) for every formulaΨ0such thatΦ|= Ψ0andV ar(Ψ0)∩ V =∅, we haveΨ|= Ψ0.

A subset L of S5 satisfies FO iff there exists a polytime algorithm that maps every formulaΦ ∈ Land everyV ⊆ P Sto a formulaΨ∈ Lwhich is a forgetting ofVfromΦ.

The result of forgettingV from a formulaΦis the log- ically strongest consequence ofΦwhich does not mention variables fromV, i.e., it is the projection ofΦontoP S\ V.

One should note that in some modal logics, likeS4(Ghilardi and Zawadowski 1995), for some choices ofΦandV, no formula satisfying the above three conditions can be found.

Luckily, such a formula always exists inS5, and item (iii) ensures it is unique up to logical equivalence. We henceforth denote this formula byforget(Φ,V).

Conditioning. Conditioning is a key transformation in a number of representation settings as it permits the incorpo- ration of pieces of evidence into a representation. In many settings (including classical propositional logic), condition- ing is defined as a composition of conjunction with a term and forgetting. InS5, we can proceed similarly provided we restrict the type of terms we allow:

Definition 11(Epistemic conditioning). A subsetL ofS5 satisfieseCDiff there exists a polytime algorithm that maps every formulaΦ∈ Land every satisfiable epistemic termΥ fromS5-TEDNF,CNFto a formulaΦ|Υ∈ Lsuch that

Φ|Υ≡forget(Φ∧Υ, V ar(Υ)).

Note that the restriction to terms from S5-TEDNF,CNF

is harmless from an expressiveness point of view; with- out it, the conditioning of formulae from quite trivial frag- ments ofS5can be shown to be coNP-hard using the fol- lowing reduction: a classical formulaϕis unsatisfiable iff forget(Ka∧K(¬a∨ϕ), V ar(K(¬a∨ϕ))) is unsatisfi- able. Observe that the latter satisfiability check can be done in polytime since it involves aS5formula without proposi- tional variables.

(4)

With our definition, the relationship with clausal entail- ment satisfied in the classical case continues to hold1: Proposition 12. LetLbe a subset ofS5. IfLsatisfies both eCDandCO, then it also satisfiesCECNF,DNF.

In the classical case, the conditioning of a formulaϕby a (classical) termτis equivalent to the formula resulting from replacing all variablesvinϕby>(resp.⊥) ifvappears pos- itively (resp. negatively) inτ. This “syntactic” conditioning is straightforwardly extended toS5:

Definition 13 (Syntactic conditioning). A subset L ofS5 satisfiesCDiff there exists a polytime algorithm that maps every formula Φ ∈ L and every satisfiable objective term τ = v1 ∧. . . ∧vn ∧ ¬vn+1 ∧. . .∧ ¬vm to a formula Φ|Kτ ∈ L such that Φ|Kτ ≡ Φ [v1 ← >, . . . , vn

>, vn+1← ⊥, . . . , vm← ⊥].

Using the same notations for the two versions of condi- tioning is harmless as syntactic conditioning of aS5formula is just regular conditioning by an epistemic atom:

Proposition 14. The following are equivalent:

1. Φ [v1← >, . . . , vn← >, vn+1← ⊥, . . . , vm← ⊥]. 2. forget(Φ∧K(v1∧ · · · ∧vn∧ ¬vn+1∧. . .∧ ¬vm),

{v1, . . . , vm}).

Notice that if we use the more limited, syntactic vari- ant of conditioning, we lose the fact that clausal entailment can be performed by conditioning followed by consistency- checking, a key property from the classical setting. How- ever, syntactic conditioning by a propositional termτis suf- ficient for modelling the change in an agent’s knowledge when learning that the real world satisfiesτ.

Now that a notion of epistemic conditioning is avail- able, we can investigate whether fragments likeOBDDand DNNF which proved very interesting target languages for KC (Darwiche and Marquis 2002) can be extended toS5.

Indeed, Shannon expansion, which is based on case analy- sis and conditioning is key to compiling classical proposi- tional formulae into such fragments (Huang and Darwiche 2007). Basically, for any chosen variable x, the idea is to turn a formulaαinto the equivalent formula (x∧(α | x))∨(¬x∧(α| ¬x)); interestingly, bothx∧(α|x)and

¬x∧(α| ¬x)are decomposable conjunctive formulae since xdoes not occur in α | xor in α | ¬x. The fact that a classical formulaαis equivalent to its Shannon expansion (x∧(α|x))∨(¬x∧(α| ¬x))overxfollows easily from the fact thatx∧(α|x)≡x∧αand¬x∧(α| ¬x)≡ ¬x∧α.

Unfortunately, such a property does not hold inS5, as the following example demonstrates:

Example 15. Considerα=¬K(¬a∨ ¬b)andl=¬K¬a.

It is easily verified thatl∧α≡α, butl∧(α|l)≡(¬K¬a)∧ (¬K¬b), and hencel∧(α|l)6≡l∧α.

This prevents the extension ofOBDD,DNNFand related fragments toS5.

1Proofs have been omitted for lack of space but can be found in the appendix of a long version available atftp://ftp.irit.

fr/IRIT/RPDMP/PapersFargier/aaai10.pdf.

4. The S5-DNF Family

In this section, we investigate the KC properties of the S5-DNFL,L0 fragments of S5, as well as the correspond- ing s-S5-DNFL,L0 fragments of s-S5. We pay particular attention to the fragmentS5-DNFDNF,CNF, in which every positive (resp. negative) epistemic atomKα(resp.¬Kα) is such thatα∈DNF(resp.α∈CNF).

Expressiveness and Succinctness

The completeness ofS5-DNFL,L0w.r.t. S5wheneverLand L0are complete w.r.t.PDAGfollows from:

Proposition 16. If eachPDAG formula admits an at most single-exponential representation inLand inL0, then every S5formula can be transformed into an equivalent formula inS5-DNFL,L0 which is at most single-exponentially larger.

The proof of Proposition 16 yields a procedure for com- piling arbitrary S5 formulae into S5-DNFL,L0, consisting of a first step in which we leverage the distributivity prop- erty of ∧ over ∨ to obtain an equivalent formula in S5- DNF, a second step in which we apply the equivalence K(ϕ∧ψ) ≡ (Kϕ)∧(Kψ) to groupK-literals together in every conjunction, and a final step in which we put the propositional formulae behindKinto the required form.

The following proposition shows how one can take advan- tage of succinctness results given in the classical KC map to derive succinctness results for fragments ofS5-DNF.

Proposition 17. LetL,L0, andL00be complete subsets w.r.t.

PDAG. We have:

L≤sL0iffS5-DNFL,L00sS5-DNFL0,L00

The same holds if we replaceS5-DNFbys-S5-DNF.

Queries and Transformations

Negative results about queries are easily transferred from DNFtoS5-DNFL,L0(even when restricted tos-S5):

Proposition 18. AssumingP6=NP, S5-DNFL,L0 does not satisfyVA,SE,EQ, orIMDNF,CNF. The same is true fors- S5-DNFL,L0.

The remaining two queries, CO and CECNF,DNF, are known to be feasible forDNF. The following proposition shows that under certain conditions, these results can be lifted toS5-DNFL,L0.

Proposition 19.

• LetLandL0 be dual subsets ofPDAG. IfLsatisfiesCO and∧BC, thenS5-DNFL,L0 satisfiesCO. Conversely, if S5-DNFL,L0satisfiesCO, thenLsatisfiesCO.

• IfS5-DNFL,L0satisfiesCOandeCD, then it also satisfies CECNF,DNF.

Both statements also hold fors-S5-DNFL,L0.

We briefly explain the intuition behind the first statement.

According to Proposition 5, to test ifKα∧ ¬Kβ is consis- tent, we must check whether the classical formulaα∧ ¬β is consistent. By requiring that LandL0 be dual, we can transform in polytime¬β into an equivalent formula inL.

We can then use bounded conditioning (∧BC) to conjoin the

(5)

resulting formula withα, and finally leverageCOto test if the resulting formula inLis consistent.

For the closure transformations, we have the following:

Proposition 20.

• S5-DNFL,L0satisfies∨Cand thus∨BC.

• IfLsatisfies∧BC, thenS5-DNFL,L0satisfies∧BC.

• ForL⊆PDAG, letL[∧] denote the conjunctive closure ofL, i.e., the language defined inductively by:L⊆L[∧], and ifα1, . . . , αn∈L[∧], thenVn

i=1αi ∈L[∧].

IfL[∧]<sL,S5-DNFL,L0 satisfies neither∧Cnor¬C.

The above results also hold fors-S5-DNFL,L0.

Thus, we see that closure transformations which hold for DNFcan be lifted toS5-DNFL,L0. Similarly, negative results for∧Cand¬Calso extend toS5-DNFL,L0.

We can obtain polytime forgetting forS5-DNFL,L0 under certain restrictions onLandL0.

Proposition 21.

• If L and L0 are dual, L satisfies CO, ∧BC, and FO, and there is a polytime transformation from L toDNF, thenS5-DNFL,L0 satisfiesFO. We can drop the require- ment of a polytime transformation fromLtoDNFfors- S5-DNFL,L0.

• IfDNF6≤sL, thenFOis not satisfied byS5-DNFL,L0. To understand the need for a polynomial translation from LtoDNFin the first statement, consider an epistemic term τ∧Kα. The forgetting ofVfrom this formula can be shown to be equivalent toforget(τ∧α,V)∧Kforget(α,V). The first conjunct can be computed by puttingτ∧αintoL(using

∧BC), and then employing a polytime forgetting procedure forL. However, the result of this forgetting will be a formula fromL, whereas we require the objective part of it to belong toDNF. This is where the polytime translation fromLto DNFcomes into play. Of course, if we are working with s-S5-DNFL,L0, then the component terms have no objective parts, so this concern does not apply.

The following proposition shows that syntactic condition- ing is easily lifted toS5-DNFL,L0, but considerably more is needed to get the general form of conditioning.

Proposition 22.

• S5-DNFL,L0satisfiesCDif bothLandL0satisfyCD.

• If L and L0 are dual, L satisfies CO, ∧BC, and FO, and there are polynomial translations fromDNFtoLand back, thenS5-DNFL,L0satisfieseCD. We can drop the re- quirement of a polynomial translation fromLtoDNFfor s-S5-DNFL,L0 when conditioning by terms froms-S5.

Applying the preceding results to the specific case where L=DNFandL0=CNF, we obtain the following:

Corollary 23. S5-DNFDNF,CNF satisfies CO,CECNF,DNF,

∧BC,∨C,FO, andeCD, but notVA,SE,EQ, orIM(unless P=NP). It satisfies neither∧Cnor¬C.

Thus,S5-DNFDNF,CNF provides exactly the same poly- time queries and transformations asDNF, a positive result.

The second item of Proposition 21 implies that we cannot use a more succinct language thanDNFforLif we want to

satisfyFO. However, this is only true for fullS5. If we work with the subjective fragment ofS5, then there are other in- teresting choices forL. Suppose thatLsatisfiesCO,∧BC, FO, there is a polytime translation fromDNFtoL, and we defineL0={¬ϕ|ϕ∈L}(i.e., we forceLandL0to be dual).

Thens-S5-DNFL,L0will satisfyCO,CECNF,DNF,∧BC,∨C, FO, andeCD. Some recently introduced languages satisfy these conditions on L, e.g. AFF[∨] andKROM-C[∨] from (Fargier and Marquis 2008), orDNNFT from (Pipatsrisawat and Darwiche 2008). Moreover, these languages are all strictly more succinct than DNF. This means that the s- S5-DNFL,L0 fragments they induce are strictly more suc- cinct thans-S5-DNFDNF,CNF(following Proposition 17).

Zoom on theCECNF,DNFQuery

Associated to each of the results of this section showing that a language satisfies a query or a transformation is a polytime procedure which achieves it. For space reasons, we cannot present all such procedures, so instead we focus on one par- ticular query, epistemic clausal entailmentCECNF,DNFsince it is one of the more fundamental queries in reasoning.

Deciding whether an epistemic clause λ from S5- CLCNF,DNF is entailed by aS5-DNFDNF,CNF formulaα = Wn

i=1γiamounts to checking whetherλis entailed by each epistemic termγi, i.e., whetherγi∧¬λ|=⊥. In order to per- form such consistency tests, we transform each formulaγi

¬λin polytime into an epistemic term fromS5-TEDNF,CNF. To do so, we first turn¬λinto an equivalent termλ¯ from S5-TEDNF,CNFusing classical transformations. Afterwards, we “group” theKliterals fromγi and¯λtogether using the equivalence(Kψ)∧(Kϕ)≡K(ψ∧ϕ)and the fact thatDNF satisfies∧BC. All that remains then is to decide consistency of terms fromS5-TEDNF,CNF. According to Proposition 5, an epistemic termτ∧Kψ∧¬Kχ1∧. . .∧¬Kχnis consistent if and only ifτ∧ψis consistent and eachψ∧ ¬χiis consis- tent. For terms inS5-TEDNF,CNF,ψ∈DNF,χi∈CNFand τ is a classical term. Using the duality ofCNFandDNF, and the fact thatDNFsatisfies∧BC, we can putτ∧ψand theψ∧ ¬χi intoDNF, and then apply the linear time con- sistency procedure forDNF.

As a matter of illustration, suppose we want to show that KaentailsK(a∧b)∨ ¬KbfromS5-CLCNF,DNF. We first conjoinKawith the negation of the clause, yieldingKa∧

¬K(a∧b)∧Kb. Next we combine the twoKatoms:K(a∧

b)∧¬K(a∧b). We then combine the formulae in the positive atom with the negation of the formula in the negative atom:

(a∧b)∧¬(a∧b). The resultingDNF(a∧b∧¬a)∨(a∧b∧¬b) is inconsistent, hence we obtainKa|=K(a∧b)∨ ¬Kb.

5. Application to Epistemic Planning

In this section, we briefly explain how our results can be applied to the problem of epistemic planning, see e.g. (Fa- gin et al. 1995; Brafman, Halpern, and Shoham 1998;

Herzig, Lang, and Marquis 2003). Specifically, we show how progressing an epistemic state by an action can be done in polytime provided that the epistemic state is represented as aS5-DNFDNF,CNF formula and the classical part of the action is represented as aDNFformula.

(6)

We recall that epistemic planning differs from traditional planning by allowingepistemic actions, which change the epistemic state of an agent, in addition to standard ontic (world-altering) actions. The distinction between a property holding and an agentknowingthat a property holds is funda- mental in this setting; indeed, the goal is often for an agent to determine whether or not a given property holds. As a mat- ter of example, consider a simple circuit with two togglest1

andt2and two bulbsb1andb2; the circuit is such thatb1is lit ifft1andt2are both up, andb2is lit ifft1andt2are ei- ther both up or either both down. Suppose we have an agent who knows the circuit description (a static lawstatgiven by stat = ((t1∧t2)⇔b1)∧((t1 ⇔t2)⇔b2)) and wants to determine the status oft2(up or down). If the agent is able to observe each bulb (thanks to the epistemic actionso1,o2) and to switcht1(thanks to the ontic actions1), then she will be able to achieve her goal, using the following knowledge- based program:π=o2; if Kb2 theno1else(s1;o1). The validity ofπcan be proved by showing that the epistemic state which results from the progression of the initial epis- temic state represented by Kstat by π entails the goal Kt2∨K¬t2(Herzig, Lang, and Marquis 2003).

We now discuss how off-line progression can be com- puted. First we consider the case where we want to progress an epistemic state by an epistemic action, which is typi- cally represented by a formula of the form Kα1 ∨. . . ∨ Kαk, expressing the action’s possible effects on what is known. In our example, o1 = Kb1∨ K¬b1 and o2 = Kb2∨K¬b2. The fact thatS5-DNFDNF,CNFsatisfies∧BC shows that progressing an epistemic state (represented by a S5-DNFDNF,CNFformula) by an epistemic action into a new S5-DNFDNF,CNFformula can be done in polynomial time.

Progression of epistemic states by ontic actions can be carried out by considering two time-stamped copiesxb, xa of each propositional symbolx(bstands for “before” anda for “after”) and representing each ontic actionontas an ob- jective formula over the extended alphabet expressing how the action constrains the worlds before and after its execu- tion. The progression of an epistemic stateΦbyontis then given by the formula forget(Φb ∧Kont, B)where eacha subscript has been removed (here,Φb isΦwith each sym- bolxis replaced byxb, andBis the set of all symbols with ab subscript). In our example, the actions1 can be repre- sented by(t1a⇔ ¬t1b)∧(t2a⇔t2b)∧stata. Thanks to our results, onceont has been turned into aDNFformula, the fact thatS5-DNFDNF,CNFsatisfies∧BCandFOensures that computing this progression can be achieved in polynomial time whenΦis represented as aS5-DNFDNF,CNFformula.

Finally, in order to progress conditional actions of the form (if κthen a1else a2), one needs to progress each epistemic term of the epistemic state inS5-DNFby either actiona1ora2 (depending on whether the term entails the knowledge preconditionκ), then take the disjunction of the resulting formulae. It follows from our results that the whole process can be done efficiently provided each epistemic state is represented as aS5-DNFDNF,CNF formula and each con- dition as aS5-CNFCNF,DNF formula. The final goal satis- faction test can also be done in polytime assuming the goal is represented by aS5-CNFCNF,DNFformula.

6. Conclusion

In this paper, we investigated the knowledge compilation task for propositional epistemic logicS5. Counterparts for the well-known classical fragmentDNFhave been studied, leading to the family of languagesS5-DNFL,L0. We identi- fied a number of conditions onL,L0 for which queries and transformations (suitably extended to the epistemic case) are satisfied or not by the languages of the form S5-DNFL,L0. The fragmentS5-DNFDNF,CNFproved particularly interest- ing as it satisfies all of the queries and transformations that are satisfied byDNF. In particular, consistency-testing, for- getting, and suitably generalized forms of clausal entail- ment and conditioning are all feasible in polynomial time forS5-DNFDNF,CNFformulae, whereas none of these tasks is tractable for arbitraryS5formulae. When only the sub- jective part ofS5is of interest, then other recently studied fragments, like DNNFT or (disjunctive closure of) affine or Krom CNF, can be used in place ofDNFin positive epis- temic atoms, offering a gain in succinctness while allow- ing the same polytime queries and transformations. We also showed that no S5 counterparts for OBDD, DNNF, and other fragments based on Shannon expansion can be defined since this property does not hold in this logical setting.

References

Brafman, R.; Halpern, J.; and Shoham, Y. 1998. On the knowledge requirements of tasks. Artificial Intelligence 98(1-2):317–349.

Cadoli, M., and Donini, F. 1998. A survey on knowledge compilation.AI Communications10(3–4):137–150.

Darwiche, A., and Marquis, P. 2002. A knowledge com- pilation map. Journal of Artificial Intelligence Research 17:229–264.

Fagin, R.; Halpern, J.; Moses, Y.; and Vardi, M. 1995.

Reasoning about knowledge. The MIT Press.

Fargier, H., and Marquis, P. 2008. Extending the knowl- edge compilation map: Krom, Horn, affine and beyond. In Proc. of AAAI’08, 442–447.

Ghilardi, S., and Zawadowski, M. W. 1995. Undefinability of propositional quantifiers in the modal system S4.Studia Logica55(2):259–271.

Herzig, A.; Lang, J.; and Marquis, P. 2003. Action repre- sentation and partially observable planning using epistemic logic. InProc. of IJCAI’03, 1067–1072.

Huang, J., and Darwiche, A. 2007. The language of search.

Journal of Artificial Intelligence Research29:191–219.

Ladner, R. E. 1977. The computational complexity of prov- ability in systems of modal propositional logic.SIAM Jour- nal of Computing6(3):467–480.

Pipatsrisawat, K., and Darwiche, A. 2008. New compi- lation languages based on structured decomposability. In Proc. of AAAI’08. 517-522.

Zhang, Y., and Zhou, Y. 2009. Knowledge forgetting:

Properties and applications.Artificial Intelligence173(16- 17):1525–1537.

Références

Documents relatifs

Venn’s table showing shared and unique bacterial OTUs, from the 100 most abundant taxa, between vegetation density classes (A) and plant species (B).. The letter in front of the

By [16], model checking for vectorial modal logic (over arbitrary graphs) reduces in polynomial time to the problem of solving Boolean equation systems with only one type of

Recently Esteban and Tor´ an [11] suggested a measure for the space complexity of refusing an unsatisfiable formula in a proof system called resolution (subsequent work [2]

The goal is to compute the minimum levels of implica- tion of the clauses that are used during the detection of the generalized local autarkies modulo unit propagation.. A level can

We present a SAT-based approach for solving the modal logic S5-satisfiability problem.. That problem being NP-complete, the translation into SAT is not

[r]

The estimate of the non positive spectrum of the Robin Laplacian in the semiclassical limit (or equiva- lently in the strong coupling limit) has given rise to many contributions

For space rea- sons, and motivated by the representations typically needed in planning, we restrict our study to subjective S5, in which one can express statements about the