To link to this article : DOI :
10.1016/j.artint.2014.07.004
URL :
https://doi.org/10.1016/j.artint.2014.07.004
To cite this version :
Fargier, Hélène and Marquis, Pierre Disjunctive
closures for knowledge compilation. (2014) Artificial Intelligence, vol.
216 (Nov. 2014). pp. 129-162. ISSN 0004-3702
O
pen
A
rchive
T
OULOUSE
A
rchive
O
uverte (
OATAO
)
OATAO is an open access repository that collects the work of Toulouse researchers and
makes it freely available over the web where possible.
This is an author-deposited version published in :
http://oatao.univ-toulouse.fr/
Eprints ID : 16897
Any correspondence concerning this service should be sent to the repository
administrator:
staff-oatao@listes-diff.inp-toulouse.fr
Disjunctive
closures
for
knowledge
compilation
✩
Hélène Fargier
a,
Pierre Marquis
b,∗aIRIT,CNRS,UniversitéPaulSabatier,Toulouse,France bCRIL,CNRS,Universitéd’Artois,Lens,France
a b s t r a c t
Keywords:
Knowledgerepresentation Knowledgecompilation Computationalcomplexity
Theknowledgecompilation (KC)map[1] canbeviewed as amulti-criteriaevaluationof a number of target classes of representations for propositional KC. Using this map,the choiceofaclassforagivenapplicationcanbemade,consideringboththespaceefficiency ofit (i.e., its ability to represent information using littlespace), and its time efficiency, i.e., thequeries and transformations which can be achieved in polynomial time, among thoseofinterest for theapplicationunderconsideration.Whenno classofpropositional representationsoffersallthetransformationsonewouldexpect,someofthemcanbeleft implicit.Thisisthekeyideaunderlyingtheconceptofclosure introducedhere:insteadof performingcomputationallyexpensivetransformations,onejustremembersthattheyhave tobedone.Inthispaper,weinvestigatethedisjunctiveclosureprinciples,i.e.,disjunction, existential quantification, and their combinations. We provide several characterization results concerning the corresponding closures. We also extend the KC map with new propositionallanguagesobtainedasdisjunctiveclosuresofseveralincompletepropositional languages, including the well-known KROM (the CNF formulae containing only binary clauses), HORN (the CNF formulae containing only Horn clauses), and AFF (the affine language, which is the setof conjunctionsof XOR-clauses). Each introduced languageis evaluatedalongthelinesoftheKCmap.
1. Introduction
Knowledge compilation(KC) consistsof afamily ofapproacheswhich aimatimproving theefficiencyofsome compu-tational tasks–typically,savingon-line computationtime–viapre-processing. Thepre-processingstepconsistsinturning some piecesofavailableinformationintoacompiledform,duringanoff-linecompilationphase.
KCgathersanumberofresearchlines focusingondifferent problems,[5–12], rangingfromtheoreticalones, wherethe key questionis the compilability issue, i.e., determining whether pre-processing can lower the computationalcomplexity of some tasks, to morepractical ones,especially the design of compilation algorithms forsome specific tasks like clausal entailment. Animportant researchline[13,1] isconcernedwith theissue ofchoosinga target classofrepresentations for KC. In [1], the authors argue that the choice ofa target classfor a compilation purpose mustbe based bothon itstime efficiency, definedasthesetofqueriesand transformations whichcanbeachievedinpolynomialtimewhenthepiecesof data to be exploited are represented in the class, aswell as thespace efficiency of theclass, i.e., its ability to represent data usinglittle space. Thus,theKC map[1] isanevaluation ofa dozenofsignificant propositionalclasses L, alsocalled propositional fragments, w.r.t. several dimensions: the space efficiency (aka succinctness) of the fragment and its time
✩ Thispaperisanextendedandrevisedversionof[2,3].Italsoelaboratesonsomeoftheresultspresentedin[4].
*
Correspondingauthor.efficiency(akatractability),i.e.,theclassofqueriesandtransformationsitsupports(ornot)inpolynomialtime,oftenunder standard assumptionsfrom complexity theory.The KC mapisintended toserve asaguidefor selectingthe“right” target classgiventherequirementsimposedbytheapplicationunderconsideration.
The KCmapreported in[1] hasalready been extended toother propositional classes,queries and transformations ina number of subsequent papers, including [14–18,2,4,19–21,3,22]. In all those papers,queries and transformations are also viewed as properties ofclasses ofpropositional representations L. One says that L offers or satisfies a given queryor a transformation when there exists a polynomial-time algorithm to achieve it, provided that the input representations are from L.When suchanalgorithmdoesnotexist forsureorunless P=NP,onesays thatL doesnotofferthequeryorthe transformation.
When no class of propositional representations offers allthe transformations one would expect, an approach consists in leaving some ofthem implicit. This isthe key idea underlying closureprinciples as introduced in this paper: insteadof performingsomecomputationallyexpensivetransformations onrepresentations,onejustremembersintherepresentations that thetransformationshavetobedone.Thisleadstoextend thepreviousclassesto newones, whichareatleast as suc-cinct,andforwhichimplicittransformationsareforfree.Anotherniceeffectofsomeimplicittransformationsonincomplete propositional languagesistorecovercompleteness, i.e.,theabilitytorepresentany Booleanfunction.
Inthispaper,weinvestigate thedisjunctiveclosureprinciples,i.e.,disjunction[∨],existential quantification[∃],and their combinations.Thedisjunctionprinciple[∨]whenappliedtoaclassLofrepresentationsleadstoaclassL[∨],the disjunc-tion closure of L, which qualifiesdisjunctions of representationsfrom L, whiletheexistential quantificationprinciple [∃] applied to aclass L leads to aclass L[∃], the existential closure ofL, which qualifiesexistentially quantified representa-tionsfromL.L[∨,∃],thefulldisjunctiveclosureofL,isobtainedbyapplyingbothdisjunctiveclosureprinciplestoL.We provide a number ofcharacterization results concerning thecorresponding closures. Especially, we show that applying at most once eachdisjunctiveclosure principle on L isenough, inthesense that applyingone ofthem twiceormore leads to classespolynomiallyequivalentto L. Wealsoidentifythequeries andtransformations whicharepreservedbyapplying disjunctiveclosureprinciples.
Inaddition,weextendtheKCmapwithnewclassesofpropositionalrepresentationsobtainedasdisjunctiveclosuresof severalincompletepropositionallanguages,namelythewell-knownKromCNFfragmentKROM(alsoknownasthebijunctive fragment)[23]theHorn CNFfragmentHORN[24],and theaffinefragmentAFF(alsoknownasthebiconditionalfragment)
[25],aswellasK/H(KromorHorn CNFformulae) andrenH, thelanguageofrenamableHorn CNFformulae[26]. Eachof these languages isawell-known polynomial classforthesatisfiability problem sat (i.e., itoffers CO),but none ofthemis fully expressivew.r.t. propositional logic(thereexist propositionalformulaewhich cannotberepresented inany ofthem), which drasticallyrestrictstheirattractiveness fortheKCpurpose.Importantly,switchingfromany ofthoselanguagestoits disjunctionclosureortoitsfulldisjunctiveclosureleadstorecoverafullyexpressivepropositionallanguage.Thisiscrucial formany applications.
The rest of the paper is organized as follows. In Section 2, some formal preliminaries about graph-based, quantified, propositional representations areprovided.In Section 3, wemake precisethequeries and transformationsof interest,and extend thenotions ofexpressiveness, succinctnessand polynomial translations toany subsets of theclassofgraph-based, quantified,propositionalrepresentations.InSection 4,theconceptsofdisjunctiveclosuresofaclassofpropositional repre-sentationsaredefinedandwederiveanumberofcharacterizationresultsaboutthem.InSection5,thedisjunctiveclosures ofKROM,HORN,K/H,renH,andAFFareconsideredandweanalyzethemalongthelines oftheKCmap.Finally,Section6
concludes thepaperbydiscussingtheresults,pointingoutthedisjunctiveclosureswhich appearasthebesttargetclasses fortheKCpurpose;italsogivessomeperspectivesforfurtherresearch.
2. Quantifiedpropositionalrepresentations 2.1. Syntax
In this paper, we consider subsets of the class C -QDAG of quantified propositional representations over a countably infinite setPS ofpropositionalvariables,givenafinitesetC ofpropositionalconnectives.Eachconnectivec∈C issupposed tohaveafixed,finitearity.LeafnodesofsuchDAGsarelabeledbyliterals,wherealiteral(over V⊆PS)isanelementx∈V
(a positive literal) or a negated one ¬x (a negative literal), or aBoolean constant(⊤ and ⊥). LV is theset ofall literals
over V . Literall isthecomplementary literalofliteral l,so that⊤ = ⊥, ⊥ = ⊤, x= ¬x and ¬x=x.Foraliterall different
fromaBooleanconstant,var(l)denotesthecorrespondingvariable:forx∈PS,wehave var(x)=x andvar(¬x)=x.
Formally, C -QDAGisgivenby:
Definition1(C -QDAG).C -QDAGistheset ofallfinite,single-rootedDAGs(alsoreferredtoas“representations”)
α
where:• eachleafnodeof
α
islabeledbyaliterall overPS,• eachinternal nodeof
α
islabeledbyaconnectivec∈C andhasasmany childrenasrequiredbyc (it isthencalledac-node),orislabeledbyaquantification∃x or ∀x (where x∈PS)andhasasinglechild.1
1 Eachbinaryconnectivec whichisassociative(like∧,∨,⊕)correspondstoafamilyofconnectives(withthesamenamec)ofarityi withi≥2.For eachi≥2,theconnectivec ofarityi isdefinedby:foreveryi-tuplehx1,. . . ,xiiofBooleanvalues,c(x1,. . . ,xi)=c(x1,c(x2,c(. . . ,c(xi−1,xi)). . .)).
Fig. 1. A C -QDAGrepresentation with C= {∧, ∨, ¬, ⊕}.
Fig. 2. A C -QDAGformula with C= {∧, ∨, ¬, ⊕}.
Thesize |
α
|ofaC -QDAG representationα
isthenumberofnodesplus thenumberofarcsintheDAG. Var(α
) denotes the set offree variables ofα
, i.e.,those variables x for which thereexists aleaf node Nx ofα
labelled bya literall suchthat var(l)=x and there is a path from the root of
α
to Nx such that no node from it is labelled by ∃x or ∀x. Clearlyenough, determiningwhetheragiven x∈PS belongs toVar(
α
) canbedoneintimepolynomialinthesizeofα
2;similarly, computing Var(α
)canalsobeachievedintimepolynomialinthesizeofα
.Fig. 1presentsaC -QDAGrepresentation
α
with C= {∧,∨,¬,⊕}.Itsset offreevariablesisVar(α
)= {q,r}.As Fig. 1 exemplifies it,a C -QDAG mainlycorresponds to aQuantifiedBoolean Circuit [27]. Abusing words, such DAG-based representationsarealsoreferredto as“formulae”intheKCliterature,and classes ofsuchrepresentationsarecalled “languages”.Inthefollowing,wewillonlyusetheterm“formula”fordesignatingatree-shapedrepresentationofaBoolean function,andtheterm“language”forsetsofformulae.Fig. 2givesa C -QDAGformulawith C= {∧,∨,¬,⊕}.
Many classes of propositional representations considered so far as target classes for KC are subsets of C -QDAG with
C= {∧,∨,¬,⊕}, and typically subsets of C -DAG, the subset of C -QDAG with C= {∧,∨,¬,⊕} where no node labeled by a quantification is allowed.Especially, the propositional DAGs considered in [14] are C -DAG representations with C=
{∧,∨,¬}, and the classes considered in [1] are subsets of DAG-NNF (the non-quantified DAGs with C= {∧,∨}). Clearly enough,foreachnon-quantifiedrepresentation
α
from C -DAG,Var(α
) coincideswiththeset ofvariablesoccurringinα
.In Fig. 1, the DAG rooted at the ∧ node is a C -DAG representation with C= {∧,∨,¬} and the DAG rooted at the ∨ node isa DAG-NNFrepresentation. DNNFis thesubsetof DAG-NNF consisting ofDAGs where each∧-node ∧(
α
1,. . . ,α
k)is decomposable, which means that ∀i,j∈ {1,. . . ,k}, if i6= j then Var(
α
i)∩Var(α
j)= ∅. d-DNNF is the subset of DNNFwhereevery ∨-node∨(
α
1,. . . ,α
k) isdeterministic,whichmeans that∀i,j∈ {1,. . . ,k},if i6= j thenα
i∧α
j isinconsistent.BDD is thesubset of C -DAG with C= {ite} which consists of DAGs
α
such that every leaf node islabelled by a Boolean constant, ⊤ or ⊥. ite is aternary connective (“ite”standsfor “if... then... else ...”). Usually,instead oflabeling adecision node N= hx,N+,N−iofaBDDformulabythenameoftheconnectiveused(i.e.,“ite”)andconsideringthreechildrenforit2 ThealgorithmconsistsinlabelingeachnodeN ofα byasetofvariables V
N;thenodesareconsideredininversetopologicalordering,VN=var(l) whenN isaleafnodelabeledbyl,VN=VM\ {x}whenN isaninternalnodelabeledby∃x or∀x andM isthechildofN,VN=SMichild of VNVMi when
(onefor x,oneforN+ andoneforN−),N islabelledbyx andhasonlytwochildren(one for N+andonefor N−).Givena total, strictordering<over PS,theclassOBDD< isthesubsetofBDD whichconsistsofDAGs
α
suchthateverypath from therootofα
toaleafnodeiscompatiblewith<.As usual,aclause (resp.aterm)isafinitedisjunction(resp.conjunction)ofliterals. CLAUSEisthesubsetofDAG-NNF
consistingofallclauses,andTERMisthesubsetofDAG-NNFconsistingofallterms.NNFisthesubsetofDAG-NNF consist-ingofformulae(i.e.,tree-shapedrepresentations).CNF isthesubsetofNNFconsistingofallconjunctionsofclauses,while
DNF is thesubset of NNF consisting of all disjunctions of terms. PI isthe subset of CNF consisting of prime implicates formulae(alsoknownasBlakeformulae);aPI formulaisaCNFformula,theconjunctionofallclauses fromtheset PI(
α
)for someC -QDAGrepresentation
α
;PI(α
)containstheprimeimplicatesofα
, i.e.,thelogicallystrongestclauses whichare impliedbyα
(onerepresentativeperequivalenceclassisconsidered,only).Anessential primeimplicateofα
isaprime im-plicateδ ofα
suchthatiftheclauseequivalenttoδ isremovedfromPI(α
),theconjunctionoftheclausesfromtheresulting set isnolongerequivalenttoα
.Forinstance,ifα
= (p⇒q)∧ (q⇒r)∧ (p⇒ (r∨s)),thenPI(α
)= {¬p∨q,¬q∨r,¬p∨r}.¬p∨q and ¬q∨r are essentialprime implicates of
α
, while ¬p∨r isnot. An importantpoint is that any CNF formula equivalenttoapropositionalrepresentationα
contains(uptologicalequivalence)everyessentialprimeimplicateofα
.Forspacereasons,wedonotprovidehereafterthedefinitionsofthepropositionalclassesofrepresentationsDNNFT and
IP (see[1,18]forformaldefinitions).
2.2. Semantics
Let usrecallthat aninterpretation(orworld) over V ⊆PS isamapping
ω
from V to BOOL= {0,1}. Interpretationsare sometimes viewed assubsets of PS, consisting of allthe variables that are set to 1 by the interpretations. When a total, strictordering< overPS is considered,therestrictionofaninterpretationω
over afinitesubset{x1,. . . ,xn} ofPS canalsoberepresentedasabitvector;forinstance,therestrictionof
ω
over{a,b,c}suchthatω
(a)=1,ω
(b)=0,andω
(c)=0 can berepresentedas100 whena,b,c aresuchthata<b<c.Foranyx∈V ,ω
−x istheinterpretationover V whichcoincideswith
ω
on everyvariableof V ,exceptonx;formally,ω
−x(y)=ω
(y) if y6=x, =1−ω
(x) if y=x.Wearenowreadytodefinethesemantics ofC -QDAGrepresentationsinaninterpretation
ω
over PS:Definition2(SemanticsofC -QDAGrepresentations).Thesemantics ofaC -QDAGrepresentation
α
inaninterpretationω
overPS is thetruthvalue❏
α
❑(ω
) fromBOOL definedinductivelyasfollows:• If
α
= ⊤,then❏α
❑(ω
)=1.• If
α
= ⊥,then❏α
❑(ω
)=0.• If
α
isapositiveliteral x,then❏α
❑(ω
)=ω
(x).• If
α
isanegativeliteral¬x,then❏α
❑(ω
)=1−ω
(x).• If
α
=c(β1,. . . ,βn), where c∈C has arity n, then ❏α
❑(ω
)= ❏c❑(❏β1❑(ω
),. . . ,❏βn❑(ω
)), where ❏c❑ is the BooleanfunctionfromBOOLn toBOOL,whichisthesemanticsofc.
• If
α
= ∃x.β,then❏α
❑(ω
)=1 iff❏β❑(ω
)=1 or ❏β❑(ω
−x)=1.• If
α
= ∀x.β,then❏α
❑(ω
)=1 iff ❏β❑(ω
)=1 and❏β❑(ω
−x)=1.An interpretation
ω
over PS is said to be amodel ofα
∈C -QDAG, notedω
|Hα
, if and only if ❏α
❑(ω
)=1. Ifα
has a model, thenitisconsistent;if everyinterpretation overPS is amodelofα
,thenα
isvalid. Ifevery modelofα
isamodel of β∈C -QDAG, then β is a logicalconsequence ofα
, notedα
|H β. Mod(α
) denotes the set of models ofα
over Var(α
). Furthermore, whenbothα
|H β and β|Hα
hold,α
andβ arelogicallyequivalent,notedα
≡ β.Forinstance,withC= {∧,∨,¬,⊕},theC -QDAGrepresentationgiveninFig. 1isequivalenttotheC -QDAGformulagiven inFig. 2.
Bystructuralinductiononecaneasilyshowthat thesemanticsofany C -QDAGrepresentation
α
dependsonlyonitsfree variables,in thesense that, foranyinterpretationω
′ over PS whichcoincideswithagiven interpretationω
onallthefree variablesofα
,ω
isamodelofα
ifand onlyifω
′ isamodelofα
.Accordingly,thesemantics ofaC -QDAGrepresentationα
inaninterpretationω
overPS isfullydeterminedbyα
andtherestrictionofω
overVar(α
).Clearlyenough,renamingatthesametimeaquantifiedoccurrenceofavariablex inaquantification∃x or∀x occurring
in a C -QDAG formula
α
, and every occurrence ofx inα
which dependson thequantification leads toa C -QDAGformula equivalenttoα
.Furthermore, sucharenamingprocess canbeachievedintimelinearinthesizeofα
.However, things are much more tricky when general C -QDAG representations (not reduced to formulae) are consid-ered. Consider for instance the quantification ∃q occurring in the C -QDAG representation
α
reported at Fig. 1, whereC= {∧,∨,¬,⊕}.Theoccurrenceofvariableq intheleafof
α
labelledwithliteralq dependsonthisquantification. Replac-ingq bythefreshvariables in∃q andatthisoccurrence wouldnotleadtoarepresentationequivalenttoα
sinces wouldbe afree variableof theresulting representation. Indeed, thereexist fourpaths fromthe rootof
α
to that leaf,and three of themdonot containany quantifiedoccurrence ofq.Thisissalient onthe C -QDAGformula equivalenttoα
reportedatFig. 2,andobtainedby“unfolding”
α
. Thus,whensome variableoccurrencecanbebothfree andbound,renaming quanti-fiedvariableswhilepreservingequivalencecanbeacomputationallydemandingtask(theunfoldingprocessmayeasilylead to anexponential blow-upof theinputrepresentation). Actually, when C⊇ {∧,∨},thepossibility ofhaving some variableoccurrencesbothfreeand bound(ortodependon differentexistentialquantifications)inC -QDAGrepresentationsnot con-taining universal quantifications isenough to simulateuniversal quantifications inthem (see [27]). As a consequence, the correspondingclassofDAGsisstrictlymoresuccinctthanthecorrespondinglanguageofformulae.Ontheotherhand,some problems arecomputationallyeasierwhenformulae(and notDAGs)are considered; forinstance, whenuniversal quantifi-cations aredisabled,themodelchecking problemfor C -QDAG formulaewith C⊇ {∧,∨}is“only” NP-complete, whileitis PSPACE-completewhenthefullclassofC -QDAGrepresentationswithoutuniversalquantificationsisconsidered.
Conventionally, the representation
α
N rooted at a decision node N = hx,N+,N−i over x∈PS in the standardrepre-sentation of an ordered binary decision diagram (i.e., an OBDD< representation) is such that
α
N ≡ite(x,α
N+,α
N−)≡(x∧
α
N+)∨ (¬x∧α
N−).α
N+ (resp.α
N−), the representation associated with node N+ (resp. N−), is the conditioning ofα
byx (resp.¬x),i.e.,therepresentationobtainedbyreplacingeveryoccurrenceofx inα
N by⊤(resp.⊥).Finally,weconsiderthefollowingnotations.If
α
∈C -QDAGand X= {x1,. . . ,xn}⊆PS,then∃X.α
isashortfor∃
x1.
¡∃
x2.(...
∃
xn.
α
)...
¢
and ∀X.
α
isashortfor∀
x1.
¡∀
x2.(...
∀
xn.
α
)...
¢
(these notations are well-founded since whatever the chosen ordering on X , the resulting representations are logically equivalent).
2.3. KROM,HORN,AFF,K/H,andrenH
In the following, we will focuson several well-known propositional languages, namelythe Krom CNF language KROM
(alsoknown asthebijunctive fragment)[23],theHorn CNFlanguageHORN [24], andtheaffinelanguageAFF (alsoknown as the biconditionalfragment) [25], as wellas K/H (Krom or Horn CNF formulae) and renH, the language of renamable Horn CNFformulae[26].
ThelanguagesKROM,HORN,AFF, K/H,andrenHareformallydefinedasfollows:
Definition3(KROM,HORN,AFF,K/H,andrenH).
• ThelanguageKROMisthesubsetofallCNFformulaeinwhicheachclauseisbinary,i.e.,itcontainsatmosttwoliterals.
• ThelanguageHORNisthesubsetofallCNFformulaeinwhicheachclauseisHorn, i.e.,itcontainsatmostonepositive literal.
• ThelanguageK/HistheunionofKROMandHORN.
• The language renH is the subset ofall CNF formulae
α
for which there exists a subset V ofVar(α
) (called aHorn renamingforα
) such that the formulanoted V(α
) obtained bysubstituting inα
every literal l of LV byitscomple-mentaryliteral¯l isaHORNformula.
• ThelanguageAFF isthesubsetofC -DAG withC= {∧,¬,⊕},consistingofconjunctionsofXOR-clauseswherea XOR-clauseisafiniteXOR-disjunctionofliterals(theXORconnectiveisdenotedby⊕).
Herearesomeexamplesofformulaefrom KROM,HORN,renH,andAFF:
• (x∨y)∧ (¬y∨z)isaKROMformula.
• (¬x∨ ¬y∨z)∧ (¬y∨z)isaHORNformula.
• (x∨y∨z)∧ (¬x∨ ¬y∨z)isarenHformula.
V = {x,z}isaHorn renamingforit.
• (x⊕ ¬y⊕ ⊤)∧ (¬x⊕y⊕z) isanAFFformula.
Clearlyenough, determining whether a given C -QDAGrepresentation
α
(for any fixed C ) isa KROM (resp. HORN, K/H,AFF)formulacanbeeasilyachievedintimepolynomialinthesizeof
α
.Notealsothatthereexistslineartimealgorithms for recognizing renHformulae(see e.g.[28,29]); furthermore,such recognitionalgorithmstypicallygiveaHorn renaming whenitexists.KROM, HORN, AFF, K/H,and renHare known aspolynomial classes for the sat problem(i.e., therestriction of sat to any ofthemisinpolynomialtime–statedotherwise,eachofthemsatisfiesCO).However,noneofthemisfullyexpressive w.r.t. propositionallogic(thereexistpropositionalformulae,like(x∨y∨z)∧ (¬x∨ ¬y∨ ¬z),whichcannotberepresented inanyofthem);thisseverelyrestrictstheirattractiveness fortheKCpurpose.
Interestingly, KROM,HORN,andAFFhavesemanticalcharacterizationsintermsofclosuresofsetsofmodels:
• Aset S ofinterpretations over afinite V ⊆PS istheset ofmodels ofaKROM formula
α
suchthat Var(α
)=V if and onlyifitisclosed formajority[30,25],i.e., ∀ω
1,ω
2,ω
3∈S,theinterpretationmaj(ω
1,ω
2,ω
3) over V belongs to S as well.Heremaj(ω
1,ω
2,ω
3)isdefinedby∀x∈V ,maj(ω
1,ω
2,ω
3)(x)=1 ifatleasttwointerpretationsamongω
1,ω
2,ω
3 givethetruthvalue 1 tox.• A set S of interpretations over a finite V ⊆PS is the set of models of a HORN formula
α
such that Var(α
)=V ifandonly ifitisclosed forthebitwiseANDconnective[31,32],i.e., ∀
ω
1,ω
2∈S,theinterpretationand(ω
1,ω
2) over V belongsto S.Hereand(ω
1,ω
2)isdefinedby∀x∈V ,and(ω
1,ω
2)(x)=1 ifω
1(x)=ω
2(x)=1.• Aset S ofinterpretations over afinite V ⊆PS isthe set ofmodelsof anAFF formula
α
suchthat Var(α
)=V if and onlyif S is closedfor theternary ⊕ connective[30,25],i.e., ∀ω
1,ω
2,ω
3∈S,theinterpretation ⊕(ω
1,ω
2,ω
3) over V belongsto S.Here⊕(ω
1,ω
2,ω
3) isdefinedby∀x∈V ,⊕(ω
1,ω
2,ω
3)(x)=ω
1(x)⊕ω
2(x)⊕ω
3(x).Thesecharacterizationresults canbeexploited toshowthat somepropositionalformulaecannotbeexpressedasKROM
(resp.HORN,AFF)formulae.
3. Queries,transformations,expressivenessandsuccinctness
Let usnow briefly recall thesets ofqueries and transformations used for comparing propositionallanguages in [1],as well as thenotions of expressiveness and succinctness; their importance is discussed in depth in [1], so we refrain from recallingithere.
3.1. Queries
Thebasicqueriesconsideredin[1]andsubsequentpapersconcernDAG-NNFrepresentations;theyincludetestsfor con-sistency (CO), validity(VA),clausal entailment(CE),implicants(IM),equivalence (EQ), sententialentailment (SE),counting (CT) and enumerating theorymodels (ME). We extend themto C -QDAG representationsand add to themMC, the model checking query,whichistriviallyofferedbyunquantifiedrepresentations,butnotbyquantifiedrepresentationsinthe gen-eralcase.
Definition4(Queries).LetL denoteanysubsetofC -QDAG.
• LsatisfiesCO,theconsistency query (resp. VA,thevalidity query)ifthereexistsapolynomial-timealgorithmthatmaps everyrepresentation
α
fromLto 1 ifα
isconsistent(resp.valid),andto0 otherwise.• L satisfies CE, the clausalentailment query, if there exists a polynomial-time algorithm that maps every pair h
α
,δi, whereα
isarepresentationfromL andδ isaclause, to1 ifα
|H δ holds,and to0 otherwise.• L satisfies EQ,the equivalence query(resp.SE, thesententialentailment query)if there existsa polynomial-time algo-rithmthatmapsevery pairh
α
,βiofrepresentationsfromLto1 ifα
≡ β (resp.α
|H β)holds,andto 0 otherwise.• LsatisfiesIM,theimplicant query,ifthereexistsapolynomial-timealgorithm thatmapsevery pairh
α
,γ
i,whereα
is arepresentationfrom Landγ
isaterm,to 1 ifγ
|Hα
holds,andto0 otherwise.• L satisfiesCT,themodelcounting query, ifthereexists apolynomial-timealgorithm thatmapsevery representation
α
fromLtoanonnegativeintegerthat representsthenumberofmodelsof
α
over Var(α
) (inbinarynotation).• LsatisfiesME,themodelenumeration query,ifthereexistsapolynomial p(.,).andanalgorithmthatoutputsallmodels ofanarbitrary representation
α
fromL intime p(n,m), wheren is thesize ofα
and m isthe numberofitsmodels overVar(α
).• LsatisfiesMC,themodelchecking query,ifthereexistsapolynomial-timealgorithmthatmapseverypairh
α
,ω
i,whereα
isarepresentationfromLandω
isaninterpretationover Var(α
),to1 if I isamodelofα
,andto 0 otherwise.3.2. Transformations
The basic transformations considered in [1] areconditioning (CD), (possibly bounded)closures under theconnectives3
∧,∨, and¬ (∧C, ∧BC,∨C,∨BC, ¬C)and (possiblybounded)forgettingwhich canbeviewed asaclosure operationunder existential quantification (FO, SFO).Forgetting isan important transformationas it allowsus to focus/projecta represen-tation on a set of variables, which proves helpful in many applications, including model-based diagnosis [33], reasoning about actions[34],andreasoningunderinconsistency[35,36].Allthosetransformations concernDAG-NNFrepresentations. WeextendthemtoC -QDAGrepresentationsandenrichthelist withtwoadditionaltransformations,whicharedualto(FO,
SFO),namely“ensuring” (EN)and theboundedrestriction ofit(SEN).Ensuring amountsto eliminatinguniversal quantifi-cations and allowsustoproject arepresentation on aset ofvariablesina robustway,i.e., independentlyof thevaluesof theremovedvariables.Thistransformationiscentralindecisionmakingunderuncertaintyandnon-deterministicplanning, seee.g.[37].
Definition5(Transformations).Let Ldenoteany subsetofC -QDAG.
• LsatisfiesCD,theconditioning transformation,ifthereexistsapolynomial-timealgorithmthatmapseverypairh
α
,γ
i, whereα
isarepresentationfrom Landγ
isaconsistentterm, toarepresentationfrom Lthat islogicallyequivalent to∃Var(γ
).(α
∧γ
).• L satisfies FO, theforgetting transformation, if there exists apolynomial-time algorithm that mapsevery pair h
α
,Xi, whereα
isarepresentationfromLand X isaset ofvariablesfromPS,toarepresentationfromLequivalentto∃X.α
. Ifthepropertyholdsforeachsingleton X,wesaythatL satisfiesSFO (singletonforgetting).• L satisfies EN, the ensuring transformation, if there exists a polynomial-time algorithm that mapsevery pair h
α
,Xi, whereα
isarepresentation fromLand X isasetofvariablesfromPS,toarepresentation fromLequivalentto∀X.α
. Ifthepropertyholdsforeachsingleton X,wesaythatL satisfiesSEN (singletonensuring).• L satisfies ∧C, the closureunderconjunction transformation (resp. ∨C, the closureunderdisjunction transformation) if thereexistsapolynomial-timealgorithmthatmapseveryfinitesetofrepresentations
α
1,. . . ,α
nfromL toarepresen-tationofLthat isequivalentto
α
1∧ . . . ∧α
n (resp.α
1∨ . . . ∨α
n).• L satisfies ∧BC, the boundedclosureunderconjunction transformation (resp. ∨BC, the boundedclosureunderdisjunction
transformation),ifthereexistsapolynomial-timealgorithmthatmapseverypairofrepresentations
α
and β fromLto arepresentationofL thatisequivalenttoα
∧ β (resp.α
∨ β).• L satisfies ¬C, the closureundernegation transformation, if thereexists apolynomial-time algorithm that maps every representation
α
fromLtoarepresentationofLwhichisequivalentto¬α
.When
α
isaC -DAG representation(i.e.,anon-quantified representation),theconditioningofα
byγ
can bedefined in an equivalent,yet simpler way, astherepresentationα
|γ obtained byreplacing inα
every occurrence ofvariable x by ⊤(resp. ⊥) when x (resp. ¬x) is a literal of
γ
. Such a characterization cannot be extended to C -QDAG representations in thegeneral case.Especially,consideringonly thosevariablesx occurringfree inα
ascandidatesfor thereplacementisnot enough. Indeed, since DAG-basedrepresentations are considered,it canbe thecase that inα
one can finda leafnode Nlabeledbyx such thatone pathfromtherootof
α
tothisleafnodedoesnotcontainanynodelabeledbyaquantification on x,whileotherpathsfromtheroottoN contain suchquantifications(see[27]).3.3. Expressiveness,succinctness,andpolynomialtranslations
Weconsiderthreenotionsoftranslationson classesofpropositionalrepresentations(here,subsets ofC -QDAG),starting fromthelessdemandingone,namelyexpressiveness:
Definition6(Expressiveness). LetL1 and L2 betwosubsets ofC -QDAG. L1 isatleastasexpressiveasL2,denoted L1≤eL2, if foreveryrepresentation
α
∈ L2,thereexistsanequivalentrepresentationβ∈ L1.A first refinement of sucha notion of translatability consists in considering only polynomial-spacetranslations, i.e., the sizeofthetranslatedrepresentationmustremainpolynomialinthesizeoftheinputrepresentation:
Definition7(Succinctness). Let L1 and L2 be two subsets of C -QDAG. L1 is atleastassuccinctas L2, denoted L1≤sL2, if there existsa polynomial p such that forevery representation
α
∈ L2, thereexists anequivalent representation β∈ L1 where |β|≤p(|α
|).Finally,weconsiderstillmoredemandingtranslations,namelypolynomial-timetranslations:
Definition8 (Polynomialtranslation).Let L1 and L2 betwo subsets of C -QDAG. L2 is said to bepolynomiallytranslatable
intoL1,notedL1≤pL2,ifthereexistsa(deterministic)polynomial-time algorithm f suchthat forevery
α
∈ L2,wehavef(
α
)∈ L1 and f(α
)≡α
.Wealsosaythatα
ispolynomiallytranslatableinto f(α
).Clearlyenough, ≤e, ≤s, and ≤p arepre-orders (i.e.,reflexive and transitiverelations)over thesubsets of C -QDAG.
Fur-thermore,wehavetheinclusions:
≤
p⊂ ≤
s⊂ ≤
eFor each relation≤∗ among ≤e, ≤s, and ≤p, therelation ∼∗ denotes the symmetric partof ≤∗,defined byL1∼∗L2 if L1≤∗L2 and L2≤∗L1. By construction, each∼∗ is an equivalence relation(i.e., a reflexive,symmetric and transitive relation). On the other hand,the relation <∗ denotes the asymmetric part of ≤∗, defined by L1<∗L2 if L1≤∗L2 and
L2£∗L1.Byconstruction,each<∗ isastrictorder(i.e.,anirreflexiveandtransitiverelation).
Inthefollowing,L1£∗s L2means thatL1£sL2unlessthepolynomialhierarchy PH collapses(whichisconsideredvery unlikelyincomplexitytheory).
When L1≤eL2 holds, every representation fromL2 can betranslatedinto anequivalentrepresentation from L1. The minimalelementsw.r.t.≤e(i.e.,themostexpressiveelements)ofthesetofallsubsetsofC -QDAGwhenC isanyfunctionally
complete set of connectives (especially, as soon as C contains ∨ and ∧ since leaf nodes of C -QDAG representations are labeledbyliterals)arecalledcomplete propositionalclasses:theycanprovidearepresentation(uptologicalequivalence)of any Booleanfunction.
WhenL1∼eL2(resp.L1∼sL2,L1∼pL2),L1and L2 aresaidtobeequallyexpressive(resp.equallysuccinct, polyno-miallyequivalent).
Whenever L1 is polynomially translatableinto L2, every querywhich can beanswered in polynomial timein L2 can also beanswered in polynomial time in L1; and conversely, every querywhich cannot beanswered in polynomial time in L1 unless P=NP cannotbeanswered in polynomial timein L2, unless P=NP.Furthermore, polynomially equivalent classes areequallyefficientinthesensethat theypossessthesameset oftractablequeriesand transformations.
4. Onclosuresofpropositionalrepresentations
Intuitively, aclosureprincipleappliedto aclassLofpropositional representationsdefines anewclass,calledaclosure of L, through the (implicit) application of “operators” (i.e., connectives from C or quantifications) to the representations from L.Formally:
Definition9(Closure).LetL⊆C -QDAGand △⊆C∪ {∀,∃}.TheclosureL[△]ofLby△isthesubsetofC -QDAGinductively defined asfollows4:
1. if
α
∈ L,thenα
∈ L[△],2. if c∈ △isan n-ary connectiveand
α
1,. . . ,α
n areelementsofL[△] suchthat ∀i,j∈ {1,. . . ,n}, ifi6=j thenα
i andα
jdonotshareanycommon(nonempty) subgraphs,thenc(
α
1,. . . ,α
n)∈ L[△],3. if c∈ △isaquantifier, x∈PS,and
α
∈ L[△],thencx.α
∈ L[△].Each element of L[△] can be viewed as a“tree” which “internal nodes” are labeled by connectives from C or quan-tifications and its “leaf nodes” correspond to “independent” representations from L. Accordingly, the representations
α
iconsideredinitem2.ofDefinition 9donotshareanycommonsubgraphs.
Clearly,ifthereexistsapolynomial-time algorithmfordeterminingwhetheragiven representation
α
∈C -QDAGbelongs ornottoL,thentherealsoexistsapolynomial-timealgorithmfordeterminingwhetheragivenrepresentationα
∈C -QDAGbelongsornottotheclosure L[△]ofLby△.
We have derived the following(easy) proposition, which rulesthe inclusions betweenclosures depending on the way theirsetsofconnectivesarerelated bysetinclusion:
Proposition1.ForeverysubsetL,L′ofC -QDAGandeverysubset△1,△2ofC∪ {∃,∀},wehave: 0. L⊆ L[△1],andifL⊆ L′,thenL[△1]⊆ L′[△1].
1. (L[△1])[△2]⊆ L[△1∪ △2]. 2. (L[△1])[△1]= L[△1].
3. If△1⊆ △2thenL[△1]⊆ L[△2].
4. If△1⊆ △2then(L[△1])[△2]= L[△2]and(L[△2])[△1]= L[△2].
Some additional properties stating how some closures of a class L can be composed, can be derived when bound variablescanbe“freely” renamedintheL representations.Thepropertyofstabilitybyuniformrenaming,given at Defini-tion 10, characterizes thesubsets of C -QDAGfor which, intuitively, thechoiceof variablenames inthe L representations doesnotreallymatter:
Definition10 (Stabilitybyuniformrenaming). Let L beany subsetof C -QDAG. L is stablebyuniformrenaming if for every
α
∈ L,for every non-empty subset V of variablesoccurringinα
,there exist arbitrarilymany distinct bijections ri (i∈ N)from V to subsets Vi of fresh variables from PS (i.e., for each i,j∈ N with i6= j, we have Vi∩Vj=Vi∩V = ∅) such
that therepresentationri(
α
)obtainedbyreplacinginα
(inauniformway)everyoccurrence ofx∈V (either quantifiedornon-quantified)byri(x)belongstoLaswell.
Thiscondition isnotvery demanding:allthe“standard”classes ofpropositional representations(quantified ornot)are stable by uniform renaming (when based on a countably infinite set PS as thisis the case here). Special attention must nevertheless bepaid tothe OBDD< language, and more generally toevery class basedon an ordered set of propositional
4 Inordertoalleviatethenotations,when△= {δ
Fig. 3. AnOBDD<representation of x0∨x1.
variables.FortheOBDD<casewhere<isastrictandcompleteorderingoverPS wemayassumetheorderedset(PS,<)to beofordertype
η
(η
istheordertypeofthesetofrationalnumbersequippedwithitsusualordering[38]).Thisrestriction is harmlesssince thesetof variablesoccurringinany OBDD< representationisfinite.In anutshell,whateverthewaythe variables occurringina given OBDD< representationα
areordered w.r.t. <,one mustbe ableto “insert” inthisordering arbitrarily many fresh variables between two variables ofα
while preserving the way other variables are ordered. Order typeη
clearly allows it (between two distinct rational numbers one can find countably many rationals). To make things clearer,letusgiveacounter-example:letPS= {xi|i∈ N}orderedinsuchawaythatforeveryi∈ N,xi<xi+1.ConsideranOBDD< representationofx0∨x1asgiveninFig. 3.<isnotoftype
η
.Take V = {x0}:x0cannotberenamedintoadifferent variable from PS without questioning the ordering requirement over OBDD<, which shows that OBDD< is not stable by uniformrenaminginthiscase.Straightforwardly,theclosurebyanysetofconnectives/quantifiersofanyclassofpropositionalrepresentations,whichis stablebyuniformrenaming,alsoisstablebyuniformrenaming.
We are now ready to present more specific results. The following polynomial (dual) equivalences, showing that ex-istential quantifications (resp. universal quantifications) when viewed as “operators” “distribute” over disjunctions (resp. conjunctions), arewell-known:
∃
x.(
α
1∨ . . . ∨
α
n)
≡ (∃
x.
α
1)
∨ . . . ∨ (∃
x.
α
n),
∀
x.(
α
1∧ . . . ∧
α
n)
≡ (∀
x.
α
1)
∧ . . . ∧ (∀
x.
α
n).
Itcanthenbeshownthat:
Proposition2.LetLbeanysubsetofC -QDAGs.t.Lisstablebyuniformrenaming.Wehave:
• (L[∃])[∨]∼p(L[∨])[∃]∼pL[∨,∃].
• (L[∀])[∧]∼p(L[∧])[∀]∼pL[∧,∀].
Fig. 4illustratesthepolynomialequivalencesbetweendisjunctiveclosuresgiven atProposition 2.
Proposition 1 and Proposition 2show togetherthat when △= {∨,∃}(resp. {∧,∀})closing L[△] bysubsets of △ inan iterativefashiondoesnotleadtoa“new”class,i.e.,aclasswhichisnotpolynomiallyequivalenttoL.Especially,wehave
¡
L
[∨, ∃]¢[∃] ∼
p¡
L[∨, ∃]¢[∨] ∼
pL[∨, ∃].
Thisshows,sotosay,thatthe“sequential”closureofapropositionalclass,stablebyuniformrenaming,byasetofoperators among{∨,∃}(resp.among{∧,∀})ispolynomiallyequivalenttoits“parallel”closure.Nosimilarresultcanbesystematically guaranteedforarbitrarychoicesofclassesandoperators.Forinstance,ifListhesetofliteralsoverPS,thenthe“sequential” closure (L[∨])[∧]istheset ofallCNFformulae,the“sequential” closure(L[∧])[∨]isthesetofallDNFformulae,andthe “parallel”closure L[∨,∧]isthesetofallNNFrepresentations.Itiswell-knownthatthosethreelanguagesarenotpairwise polynomiallyequivalent(indeed,wehaveCNF£sDNF,DNF£sCNF, NNF<sCNF,andNNF<sDNF,seee.g.[39]).Similarly,
ifL= CLAUSE,then(L[∧])[∃] andL[∧,∃]arepolynomiallyequivalenttoCNF[∃],but(L[∃])[∧]ispolynomiallyequivalent toCNF,whichisnotpolynomiallyequivalenttoCNF[∃].Indeed,whateverC ,C -DAGispolynomiallytranslatableintoCNF[∃]
using Tseitin’s extension principle [40], while CNF is not atleast as succinct as C -DAG as soonas C⊇ {∧,∨,¬} (indeed,
CNF isnotatleastassuccinctasthesubsetDNFofNNF,whichisitselfasubsetofC -DAGinthiscase).
We have derived thefollowing proposition, which relates the queries and the transformations offered by L, with the queries and transformations offered by its disjunctive closures L[∨] (the disjunction closure of L), L[∃] (theexistential closure ofL),andL[∨,∃](thefulldisjunctiveclosureofL).
Proposition3.LetLbeanysubsetofC -QDAGs.t.Lisstablebyuniformrenaming.
• IfLsatisfiesCO (resp.CD),thenL[∨],L[∃]andL[∨,∃]satisfyCO (resp.CD).
• IfLsatisfiesCO andCD,thenLsatisfiesCE andME.
• IfLsatisfiesCO andCD,thenL,L[∨],L[∃]andL[∨,∃]satisfyMC.
Fig. 4. Polynomial equivalences between disjunctive closures. Therepresentation α at the top of the picture belongs toL[∨,∃]. β1[X,Y,Z,T] and
β2[X,Y,Z,T]denote propositionalrepresentations(not necessarilytree-structured ones)from Lsuchthat Var(β1)=Var(β2)=X∪Y∪Z∪T ,where X ,Y ,Z ,andT arepairwisedisjoint,finitesubsetsofPS.Therepresentationα∃∨atthebottom,left-handsideofthepictureisan(L[∨])[∃]representation into whichα canbepolynomiallytranslated.Therepresentationα∨∃atthebottom, right-handside ofthepictureisan(L[∃])[∨]representationinto whichαcanbepolynomiallytranslated.
• IfLsatisfiesFO (resp.SFO),thenL[∨]satisfiesFO (resp.SFO).
• IfLsatisfies∧C (resp.∧BC,∨C,∨BC),thenL[∃]satisfies∧C (resp.∧BC,∨C,∨BC).
Notethat applyingdisjunctiveclosuresdonotpreserveotherqueriesortransformationsinthegeneral case.Thus:
• If L satisfies VA (resp. IM, CT, EQ,and SE), thenit canbe thecasethat L[∨] doesnot satisfyit. For instance, TERM
satisfieseachofVA,IM,CT,EQ,and SE,butTERM[∨]= DNFdoesnotsatisfyany ofthemunlessP=NP[1].
• IfLsatisfiesVA (resp.IM,CT,EQ,andSE),thenitcanbethecasethat L[∃]doesnotsatisfyit.Thus,L= CNFsatisfies
VA andIM but CNF[∃] does not satisfyany of themunless P=NP; indeed, DNF (whichdoes not offer any ofthem) ispolynomiallytranslatable intoCNF[∃] usingTseitin’s transformation[40]. Similarly,L= HORN satisfiesbothEQ and SE, but HORN[∃] does not offer any of them (see Proposition 5). Finally, the subset L= d-DNF of DNF consisting of deterministic DNF formulae (i.e., the DNF formulae
α
=Wni=1
γ
i such that for each i,j∈1,. . . ,n, if i6= j, then theterms
γ
i andγ
j aresuchthatγ
i∧γ
j isinconsistent)satisfies CT,but d-DNF[∃] doesnot.Indeed, DNFispolynomiallytranslatable into d-DNF[∃]: with each DNF formula
α
=Wni=1
γ
i we can associate in polynomial time the equivalentd-DNF[∃]formula∃{y1,. . . ,yn}.Win=1(yi∧Vij−=11¬yj∧
γ
i),where {y1,. . . ,yn} isasetoffreshvariables(disjoint fromVar(
α
)).• IfLsatisfies∧C,thenitcanbethecasethatL[∨]doesnotsatisfyit.Thus,L= TERMsatisfies∧C,butTERM[∨]= DNF
doesnot,unless P=NP[1].
• If L satisfies ¬C, then it can be the case that none of L[∨] and L[∃] satisfies it. Thus, L= OBDD< satisfies ¬C,
but none of OBDD<[∨] and OBDD<[∃] satisfies ¬C unless P=NP. As to OBDD<[∨], this comes from the fact that
TERM≥pOBDD<, which impliesthat DNF≥pOBDD<[∨]. Sinceevery CNF formula
α
is polynomiallytranslatable into thenegation ofa DNF formula β, if OBDD<[∨]would satisfy ¬C, then theconsistency ofα
could betested in poly-nomialtimebycomputingfirst anOBDD<[∨]representationequivalenttoβ,then“negating”ittoreachanOBDD<[∨]representation equivalent to
α
. Indeed, since OBDD< satisfies CO, OBDD<[∨] also satisfies CO (see Proposition 3). As to OBDD<[∃], we canmake arather similar proofgiven that OBDD<[∃] also satisfies CO (seeagain Proposition 3).Togettheproof, itisenoughto showthat OBDD<[∨]≥pOBDD<[∃]:let
α
=Wni=1α
i beanOBDD<[∨]representation;lety1,. . . ,yn be variablesfrom PS\Var(
α
) suchthat each yi (i∈1,. . . ,n) precedesevery variablefrom Var(α
).Fromα
,wecangenerateinpolynomialtimetheOBDD< representation
β
=
y1,
α
1,
y2,
α
2, . . . ,
h
yn,
α
n,
⊥, i . . .
®®.
Toconcludetheproofitisenoughtoobservethat
α
isequivalenttotheOBDD<[∃]representation∃{y1,. . . ,yn}.β.• IfLsatisfiesEN,thenitcanbethecasethatL[∨]doesnotsatisfyit.Thus,L= TERMsatisfiesEN,butTERM[∨]= DNF
does not, unless P=NP, since a DNF formula
α
is valid iff its universal closure ∀Var(α
).α
is valid iff ∀Var(α
).α
is consistent(since∀Var(α
).α
hasno freevariable,it isequivalentto⊤ orto ⊥, henceitisconsistent preciselywhenit isvalid),and DNFsatisfiesCO.• IfLsatisfies EN,thenitcanbethecasethatL[∃]doesnotsatisfyit.Thus,L= CNFsatisfiesEN,but CNF[∃]doesnot, unless PH collapses.Thiscomeseasily fromthefactthatthevalidityproblemforCNF[∃]formulaeoftheform∃X.
α
isΠ2p-complete.Indeed,∃X.
α
isvalidiffthe(closed)quantifiedBooleanformula∀Var(α
)\X.(∃X.α
)isvalid.5. OnthedisjunctiveclosuresofKROM,HORN,AFF,K/H,andrenH
Letusnowfocuson thedisjunctiveclosuresofKROM,HORN,AFF,K/H,andrenH.
Firstofall,itisobviousthatthefourlanguagesKROM,HORN,K/H,andAFFarestablebyuniformrenaming.Thisisalso thecaseforrenH:ifV isaHornrenamingforarenHformula
α
,andifα
′X istheCNFformulaobtainedbysubstitutingin
auniformwayin
α
everyoccurrenceofavariablev from X⊆PS by thefreshvariable v′,thenα
′X alsoisarenHformula
and V′= {v∈Var(
α
′)|v∈V\X}∪ {v′∈Var(α
′)|v∈V∩X} isaHornrenamingforit.Now,thankstoPropositions 1 and 2,itisenoughtoconsiderthethreedisjunctiveclosuresL[∃],L[∨],andL[∨,∃]with
L being any on thefiveabove languages. Clearlyenough,the disjunction(resp.existential,full disjunctive)closure ofany languageamong KROM,HORN,K/H,renH,and AFFisalsostablebyuniformrenaming.
Applying thedisjunctiveclosureprinciples [∨],[∃],and [∨,∃] tothe fivelanguagesKROM, HORN,K/H,renH, and AFF
leads toconsiderfifteen additionallanguages.Thefollowingeasyresultshowsthat someoftheresultinglanguagesdonot needtobeconsideredseparately,becausetheyarepolynomiallyequivalent.
Proposition4.
• KROM ∼pKROM[∃].
• KROM[∨]∼pKROM[∨,∃].
• AFF ∼pAFF[∃].
• AFF[∨]∼pAFF[∨,∃].
As adirect consequence, we have that KROM and KROM[∃] (resp.AFF and AFF[∃], KROM[∨] and KROM[∨,∃], AFF[∨]
and AFF[∨,∃])areboth(pairwise) equallysuccinctand equallyexpressive.
Accordingly, we focus in the following on the sixteen languages: KROM, HORN, K/H, renH, AFF, HORN[∃], K/H[∃],
renH[∃],KROM[∨],HORN[∨],K/H[∨],renH[∨],AFF[∨],HORN[∨,∃],K/H[∨,∃],andrenH[∨,∃]. FromProposition 1,wegetthat:
KROM
⊆ KROM[∨] ⊆ KROM[∨, ∃]
HORN
⊆ HORN[∃] ⊆ HORN[∨, ∃]
HORN
⊆ HORN[∨] ⊆ HORN[∨, ∃]
K/H
⊆ K/H[∃] ⊆ K/H[∨, ∃]
K
/H
⊆ K/H[∨] ⊆ K/H[∨, ∃]
renH
⊆ renH[∃] ⊆ renH[∨, ∃]
renH
⊆ renH[∨] ⊆ renH[∨, ∃]
AFF
⊆ AFF[∨]
Obviously enough, from the definitions of the languages KROM, HORN, K/H, and renH, we also have the following inclusions:
KROM
⊆ K/H
HORN
⊆ K/H
HORN
⊆ renH
Table 1
KROM, HORN, K/H, AFF, renH, theirdisjunction, existentialand full dis-junctiveclosuresandthecorrespondingpolynomial-timequeries.√means “satisfies”and◦means“doesnotsatisfyunlessP=NP”.
CO VA CE IM EQ SE CT ME MC renH[∨, ∃] √ ◦ √ ◦ ◦ ◦ ◦ √ √ K/H[∨, ∃] √ ◦ √ ◦ ◦ ◦ ◦ √ √ HORN[∨, ∃] √ ◦ √ ◦ ◦ ◦ ◦ √ √ AFF[∨] √ ◦ √ ◦ ◦ ◦ ◦ √ √ renH[∨] √ ◦ √ ◦ ◦ ◦ ◦ √ √ K/H[∨] √ ◦ √ ◦ ◦ ◦ ◦ √ √ HORN[∨] √ ◦ √ ◦ ◦ ◦ ◦ √ √ KROM[∨] √ ◦ √ ◦ ◦ ◦ ◦ √ √ renH[∃] √ √ √ √ ◦ ◦ ◦ √ √ K/H[∃] √ √ √ √ ◦ ◦ ◦ √ √ HORN[∃] √ √ √ √ ◦ ◦ ◦ √ √ AFF √ √ √ √ √ √ √ √ √ renH √ √ √ √ √ √ ◦ √ √ K/H √ √ √ √ √ √ ◦ √ √ HORN √ √ √ √ √ √ ◦ √ √ KROM √ √ √ √ √ √ ◦ √ √
Fromsuchresults,weimmediatelyderivethat:
KROM
[∨] ⊆ K/H[∨]
HORN
[∨] ⊆ K/H[∨]
HORN
[∨] ⊆ renH[∨]
HORN
[∃] ⊆ K/H[∃]
HORN
[∃] ⊆ renH[∃]
HORN
[∨, ∃] ⊆ K/H[∨, ∃]
HORN
[∨, ∃] ⊆ renH[∨, ∃]
In addition, since every consistent KROM formula is a renH formula5 and since KROM satisfies CO, with every K/H
formulawecanassociateinpolynomialtimeanequivalentrenHformula,i.e.,K/H≥prenH.Asaconsequence,wealsoget
that
K
/H
[∨] ≥
prenH
[∨]
K
/H
[∃] ≥
prenH
[∃]
K
/H
[∨, ∃] ≥
prenH
[∨, ∃]
Finally,sinceforeverysubsetLofC -QDAG,L⊆ L[∨]⊆ L[∨,∃],⊆isincludedinto≥p,andboth⊆and≥paretransitive
relations, a number of additional inclusions/polynomial translatability results can be directly obtained from the results above;theywillbeexploitedinsomeforthcomingproofs.
5.1. Queriesandtransformations
Astoqueries,wehaveobtainedthefollowingresults:
Proposition5.TheresultsinTable 1hold.
Astotransformations, wehaveobtainedthefollowingresults:
Proposition6.TheresultsinTable 2hold.
5 ThisisadirectconsequenceofthefactthataCNFformulaαisrenamableHornpreciselywhenthereexistsaninterpretationωsuchthatatmostone literalperclauseofαisfalseinω[26];indeed,whenαisaKROMformula,thislaststatementexactlymeansthatαisconsistent.
Table 2
KROM,HORN,K/H,AFF,renH,theirdisjunction,existentialandfulldisjunctiveclosures and thecorrespondingpolynomial-time transformations. √means“satisfies,”• means “doesnot satisfy,” while ◦means“doesnot satisfyunless P=NP.”! means that the transformationisnotalwaysfeasiblewithinthelanguage.
CD FO SFO EN SEN ∧C ∧BC ∨C ∨BC ¬C renH[∨, ∃] √ √ √ ◦ ◦ ◦ ◦ √ √ ◦ K/H[∨, ∃] √ √ √ ◦ √ ◦ ◦ √ √ ◦ HORN[∨, ∃] √ √ √ ◦ √ ◦ √ √ √ ◦ AFF[∨] √ √ √ ◦ √ ◦ √ √ √ ◦ renH[∨] √ • √ ◦ ◦ ◦ ◦ √ √ ◦ K/H[∨] √ • √ ◦ √ ◦ ◦ √ √ • HORN[∨] √ • √ ◦ √ ◦ √ √ √ • KROM[∨] √ √ √ ◦ √ ◦ √ √ √ • renH[∃] √ √ √ √ √ ! ! ! ! ! K/H[∃] √ √ √ √ √ ! ! ! ! ! HORN[∃] √ √ √ √ √ √ √ ! ! ! AFF √ √ √ √ √ √ √ ! ! ! renH √ • √ √ √ ! ! ! ! ! K/H √ • √ √ √ ! ! ! ! ! HORN √ • √ √ √ √ √ ! ! ! KROM √ √ √ √ √ √ √ ! ! ! 5.2. Expressiveness
It is well-known that none of the languages KROM, HORN, K/H, renH, orAFF iscomplete for propositional logic. For instance, there is no formula from any of these languages which is equivalent to the CNF formula (x∨ y∨z)∧ (¬x∨
¬y∨ ¬z).This isproblematicformany applications; indeed,what canbedonewhen theavailableinformation cannotbe represented inthetargeted language?Approximatingitisnotalwaysanoption,especially becausethebest approximation of theavailableinformationcan berough andthemissingpiecesof informationintheapproximation canbecrucial ones forreasoningand/ordecisionmaking.Inthefollowing,wearegoingtoprovethatwhileconsideringtheexistentialclosure ofany ofthoselanguagesdoesnotincreaseitsexpressiveness, switchingtoitsdisjunctionclosure(ortoitsfulldisjunctive closure) is enough to recovera completepropositional language, thus escaping from theabove mentioned expressiveness problem.
Let us start with the existential closures of KROM, HORN, K/H, renH, and AFF. First, since KROM (resp. AFF) is polynomially equivalent to KROM[∃] (resp. AFF[∃]), it turns out that those languages are (pairwise) equally expressive:
KROM[∃]∼eKROM, and AFF[∃]∼eAFF. Similarly, we have derived the following expressiveness results, showing that the
existential closureofanylanguageL amongHORN,K/H,and renHisnotmoreexpressivethanL itself.
Proposition7.
• HORN[∃]∼eHORN.
• K/H[∃]∼eK/H.
• renH[∃]∼erenH.
Now, from the definitions of KROM, HORN, K/H, renH, thefact that K/H≥prenH, and the fact that x∨y is a KROM
formula,which isnotequivalenttoa HORNone, ¬x∨ ¬y∨ ¬z is aHORNformulawhichisnot equivalenttoaKROM one,
x∨y∨z isarenHformulawhichisnotequivalenttoaK/Hone, weeasily getthat:
KROM
£
eHORN
andHORN
£
eKROM
renH
<
eK/H <
eHORN
K/H <
eKROM
In addition, AFF and any of KROM, HORN, K/H, renH are incomparable w.r.t. ≤e. Indeed, there is no renH formula
equivalent to theAFF formulax⊕y⊕z. Thiscomes from the factthat every CNF formulaequivalent to x⊕y⊕z must
containthefourclausesx∨y∨z, ¬x∨ ¬y∨z,x∨ ¬y∨ ¬z, ¬x∨y∨ ¬z sincethoseclausesareessentialprimeimplicates ofx⊕y⊕z,plusthefactthatbyconstruction,everyCNFformulacontainingtheclausesx∨y∨z,¬x∨ ¬y∨z,x∨ ¬y∨ ¬z,
¬x∨y∨ ¬z isnotrenamableHorn(renamingatleasttwovariablesinthefirstclausetomakeitaHornclausealsochanges oneoftheremainingthreeclausesintoanon-Hornone).Conversely,thereisnoAFFformulaequivalentto¬x∨ ¬y,which isbothinKROMandinHORN.ThisisadirectconsequenceofthesemanticalcharacterizationresultconcerningAFFrecalled in Section2.3:with x<y,
ω
1=00,ω
2=01, andω
3=10 aremodels of¬x∨ ¬y,but ⊕(ω
1,ω
2,ω
3)=11 isnot amodel of¬x∨ ¬y.Fig. 5. Theexpressivenesspicturefordisjunctiveclosures.AnarrowfromL1toL2meansthatL1isstrictlymoreexpressivethanL2,sothatalackof arrowmeansthattheexpressivenessofL1andtheexpressivenessofL2areincomparable.
Fig. 6. Thesuccinctnesspictureforincompletelanguages.AnarrowfromL1toL2meansthatL1isstrictlymoresuccinctthanL2,i.e.,L1<sL2.The arrowisthickinthespecificcasewhenthefactthatL2£sL1comesfromthefactthatL2£eL1.A lackofarrowmeansthatthesuccinctnessofL1 andthesuccinctnessofL2areincomparable.
Let us finallyswitch to the disjunctionclosures and the full disjunctive closures ofKROM, HORN, K/H, renH, or AFF; interestingly, theeightlanguagesdefinedassuchareequally,andfully,expressive:
Proposition8. KROM[∨], HORN[∨],K/H[∨],renH[∨],AFF[∨],HORN[∨,∃],K/H[∨,∃],renH[∨,∃] arecompletepropositional languages.
Fig. 5depictstheexpressivenessrelationshipsidentifiedintheabovepropositions.
5.3. Succinctness
As to incomplete languages, since KROM (resp. AFF) is polynomially equivalent to KROM[∃] (resp. AFF[∃]), those lan-guages are (pairwise) equally succinct: KROM[∃]∼sKROM, and AFF[∃]∼sAFF. More interestingly, we have obtained the
following succinctness results, showing that the existential closure of any language L among HORN, K/H, and renH is strictlymoresuccinctthanL itself.
Proposition9.
• HORN[∃]<sHORN.
• K/H[∃]<sK/H.
• renH[∃]<srenH.
• renHandK/H[∃]areincomparablew.r.t.≤s.
• K/HandHORN[∃]areincomparablew.r.t.≤s.
Fig. 6 summarizes thesuccinctness relationships among incomplete languages identified in Proposition 9. We observe that itdoesnotcoincidewiththecorrespondingexpressiveness picture,restrictedtoincompletelanguages(seeFig. 5).