http://wrap.warwick.ac.uk/
Original citation:
Gent, I. P. (1991) Finding problems in knowledge bases using modal logics. University of Warwick. Department of Computer Science. (Department of Computer Science
Research Report). (Unpublished) CS-RR-173
Permanent WRAP url:
http://wrap.warwick.ac.uk/60869
Copyright and reuse:
The Warwick Research Archive Portal (WRAP) makes this work by researchers of the University of Warwick available open access under the following conditions. Copyright © and all moral rights to the version of the paper presented here belong to the individual author(s) and/or other copyright owners. To the extent reasonable and practicable the material made available in WRAP has been checked for eligibility before being made available.
Copies of full items can be used for personal research or study, educational, or not-for-profit purposes without prior permission or charge. Provided that the authors, title and full bibliographic details are credited, a hyperlink and/or URL is given for the original metadata page and the content is not changed in any way.
A note on versions:
The version presented in WRAP is the published version or, version of record, and may be cited as it appears here.For more information, please contact the WRAP Team at:
-Research
report
173
FINDING
PROBLEMS
IN
KNOWLEDGE
BASES
USING
MODAL
LOGICS
IAN
P
GENT
(RRu3)
In
this
paper
I
proposethat
it
is
suitableto
consider some statementsthat
an
expertmakes
during
knowtedgeelicitations
as
being
statementsin a
modal
logic.
Thisapproach gives
us
several
advantagesin
finding
inconsistencies betweena
knowledgebase
and an
expert's
intuitions
of
her
field. I
illustrate
this
approachby
using
themodal
logic VC,
a
logic
of
counterfactualconditionals.
In
an
appendix,I
give
brief
details
of
theoremproving
in
VC.Department of Computer Science
University of Warwick
Coventry CV4 7AL
Finding
Problems
in
Knowledge
Bases
Using
Modal
Logics
Ian P. Gent
Department
of
Computer Science, University of Warwick, Coventry CV4 7N-,
United Kingdome-mail ipg@ cs. warwick.ac.uk
Abstract
In
this
paperI
propose thatit
is
suitableto
consider some statements that anexpert
makesduring
knowledge elicitation
asbeing
statementsin
a
modallogic.
This
approachgives us
several advantagesin
finding
inconsistenciesbetween a
knowledge
base and an expert'sintuitions
of
her
field.
I
illustratethis
approach
by
using
the
modal
logic
VC,
a
logic
of
counterfactual
-2-I
Introduction.
How
often doesit
happen that a knowledge engineer, afterbuilding
a knowledge base, isconfronted
with
a
statementfrom hisr
expert such as"But
of
course,if
the moon weremade
of
green
cheese,landing
on
it
would
still
bepossible"
only to
discoverthat
this statement is inconsistentwith
the knowledge base?In
this paper,I
suggest that such events should be taken seriously, andI
propose a wayin
which
this can be donewith logical
rigour.
By
translating such statementsinto
a suitablelqdal
logic, we
can
analyseboth the
knowledge baseand
these statements together.This
technique enables moreof
the expert's knowledgeto
beutilised,
and goes beyondsimply
checking the consistencyof
knowledge bases, asfor
instance doneby
Beauvieuxand Dague
[1990].
Furthermore,
this
analysis doesnot
rely
on
a
human
noticinginconsistencies, since theorem provers are available for modal logics.
In
the
examples
in
this
paper,
I
will
assumethat an expert
makes
counterfactualconditional
statements,following
Bench-Capon's[1989]
suggestion that counterfactualstatements
are
suitable
tools
for
analysing knowledge bases.
A
counterfactualconditional
statementis
one
in
which
the
antecedentto
the conditional
is
false.
Thestatement
about
the moon
in
the first
paragraphabove
is
a
counterfactual.
Unlike
Bench-Capon,
however,I
will
useLrwis's
[1973] logic of counterfactuals VC.The
useof
a particular counterfactuallogic
is not centralto
the idea this paper supports.In
fact,
even the useof
counterfactual statementsis
not central. The cruCialpoini
is
thevery
decision to use alogic for
analysing statements an expert may make thatwill
notfit
into
the
logic
of
the
knowledgebase.
In
different
applications,a
temporallogic, for
example,
may
be more suitable,for
instance,if
the expertis
liable
to
make statementssuch as
"Event
A
always happens before Event8".
Typically
I
would
expect a modallogic
to_be _mostsuit+ble.
Thusmy
paperis
situatedfirrnly
in
the
"neat"or
"logicism"
camp
of
AI
(dependingon
whether
you
prefer
Alan Bundy's
or
Drew
McDermott's
term).
I
urge the use ofa logic
in
this applicationfor
various reasons.Firstly,
given alogic,
wegan c.ol]_ect together
the
statements the expert makes and treatthem-aJa whole.-Using
Bench-Capon's approagh
ye
hlye
,to treat each statement separately.The
same would apply-were w-e to use Matthew Ginsberg's [1986] approach to countehactuals, which canonly
dealwith
single coun^terfactuals. Secondly, we can enforce avery
clean separationbetween
the
statementsof
the knowledge bas6 dre engineerwrites,
aird ttre supponing statementsof
the
expert. That is, we
test
the knowledge basein
the presencb'of
thESSgregate-of-
th9 latter, and
searchfor
inconsistencies.-If
we
fail
to find
any,
and arelupPy
with
thetnowledge
base, we.can discard the supporting statements befdre putting the knowledge baseinto
action. Thirdly,
we get the advantagEs that logicists*"
"l*uyi
happy.
to
claim._That
is,
the
useof
aiogic lrovides clearl!
statedsjmantics. This
issomething
that
Bench-Caponand
Ginsberg -donot give
ui.
This
then
enablesus
to separate.out.the problem.ofwriting
theprogam
to correctly dealwith
this semantics, andthe-application domain
in
which we
use theprogram. Then,
asin
this
paper,we
cananalyse an approach
to
solving a problem
sqparatelyfrom
theimplementatibnil
issues.'l'hus we
have a theoryof
*Sqis
goingonthat
is not-dependent on deep understandingof
implementational issues. Ttris m-akes falsification of sui:h a theory-u"i
i"ii"t.
fPl:,rh|
in
this
paperI
uje
logic
-while the
applicationdomain
is
knowledge
bases,which
usually useonly
a subsetof
alogic. It
may seem that this means thatI afr
using asledgehammer
to
crack
a
nut.
Hoiever,.
my
colleague
David
Randell
qpersofialcomm.unica!'on)
points
out
that
we
uselogic t6 nwdel-a
situation.
n
tfris
caseI
ammodelllng
the processof
finding
inconsistencies betrveen anexpert's intuitions
about at * *- t ""*g, I decided that throughout this paper I would assume that rhe experr and knowledge engincer werc
-3-domain
and
a
knowledge
baseabout
that domain.
However,
it
is
often
possible,in
particular
applications,to
usejust
some featuresof
alogic,
and thus ease computationaliroblems.
In-such a case, we canbuild
an implementation that reflects thecrucial
aspectsbf
ourlogical
model, and performsidentically
to thelogical
model on those aspects.An-example
of
ttriswould
beihe
useof
PROLOG insteadof
a flll_theorym-pr.overfor
setsof
Horn-clauses. Thus
in
this
paper,I
propose an uralysisof
what
should be doneto find
inconsistencies
while
admitting
that the
particular implementation
I
use
may
be inadequate in practice.2
Assumptions and Notation
There are two
primary
assumptions on which this work is based.I
assumethat
it
makes
senseto
divide
the knowledge
baseinto
statementsthat
arenecessarily
true,
andother
statementsthat
are mere contingentfacts.
I
do
not wish
toimply
that
the
necessary statementshave
to
be universally trug
in all
imaginable situations,but merely
that,for
a particular
application,it
is
sensibleto
regard them asunbreakable
rules. This
is a reasonable assumption, sinceif
a knowledge base is releasedto
theworld
for
use,it
is
going tohave
towork in
a widevariety
of
siruations and so its rules should haveapplicability
toall
those situations. Equally,it
is reasonableto
assumethat
a knowledge 6asewill
also contain facts that arenot universally
true, but that mayvary from
one situation toanother.
For example, a knowledge basemay
contain the rule"If
a car hasfour
wheels,it
must have a spare ryre" considered as universally true and thefact
"Metros
havefour
wheels" considered as a contingency since we do notknow
whatMetro
designerswill
do next year.I
also assume that there arevarious
statements an expertmay
make that cannot be putinto
the
knowledge
base.
Such
statementsmight
include modal, counterfactual,
andtemporal
statementswhich could not go
into
a knowledge base using classicallogic.
I
will
call
these statements theexpert's "Hypothetical"
statements. Further,I
assume thatthere
is
alogic
availablefor
dealingwith
such statements, andwhich
contains the logicof
the knowledge base asa subseL This
means thatI
also make the lesser assumptionthat the
knowledge
base usesa
logic.
Although
this
will
not
always
be ffue,
it
is
a reasonable assumption sincethe
only
logical
propertyI
will
be usingis
inconsistency, andit
is reasonable tolook for
inconsistencyin
a knowledge base evenif
the knowledgebase does not use a
full
versionof
some logic.Having
made these assumptions,Iwill
introduce some notation.L will
be thelogic
that the knowledge base is written in.KB
will
be the conjunctionof all
the statements in a knowledge base.K8"
will
be the conjunctionof all
the necessary statementsin
a knowledge base.KB,
will
be the conjunctionof all
the contingent statementsin
a knowledge base.M
will
be the modallogic
that the hypothetical statements may bewritten
in.I
assumethat
one
of
the
connectivesin
M
is
f}
where
"EQ"
is
read as
"$
is necessarily true".. SinceKB"
is
a statement ofL,
and we wish to assert thatK8"
is necessarily true, the approprfate statementin
M
istrKBN.
Hyp
wrll
be the conjunctionof
all
the expert's hypothetical statements.Finally,
the entailment relationsof
L
andM
*
Fl
andF,
respectively.
-4-3
Methodologr
My
suggestion
is
that the
knowledge engineer should keep
a
note
of
the
expert'shypothetical
statements, and translate theminto
M
.
Periodically, the
engineer should test whetherHyp
Fu
--(KBs
&[,KBN
)If
this
isin
fact
so, then the knowledge base is inconsistentwith
the expert's hypotheticalstatements.
In
this
case,the knowledge
base needsrevision.
If
not,
then
thereis
noevidence that the knowledge base
is
inconsistentwith
the hypothetical statements.The
reader
may point out that
I
have said nothing
aboutthe problem
of
knowledgeelicitation
of
the
setof
statementsHyp
.
In
fact,
it
is
clear that
in
generalthe
sarneproblems arise
in trying
toelicit
the hypothetical statements as the knowledge base itself.However,
there are
somefacts
which
alleviate
this
problem,
andjustify
my implicit
assumption that developing the
rel
Hyp
is essentially easy.Firstly,
thereis
no need forHyp
to
bein
any sense complete.We
will
never make Hyp available to the user, andit
doesnot
have to coverall
conceivable situations. Its onlv useis
in
testing the knowledge base. Thus, the problemsof
deciding when a knowledge'base is complete do not arise.Secondly, the sort
of
statements that arise inHyp
arelikely
to be far more natural to thegxpert than the
statementsrequired
for
the knowledge base.
In
effect,
in
askingfor
hypothetical
examples, we expectto
get much closer to the expert'sintuitions
about herfield.
Furthermore, sheis
muchmore
freein
the
statements she canmake.
Thereis
no needto
generalise, since particular examples are satisfactory, and we need not restrict herto a
particular form of
statement, such as rules.Finally,
thereis
one pleasant fact about the methodologyI
proposehere.
That is that thesets
Hyp
and
KB
are
developedcompletely separately.
Their only
interaction
is in
testing. This
means that when the testing has been completed andit
has been found thatHyp
andKB
are consistent(i.e. it
isnot
tue
thatHyp
Fr"
--,(KB7
&
nKB^,\),
KB
is ready
f9{
ttg
as anonnal
knowledge__bgrg.This
meanii'that there"isno
need'to'keep trackof
which
facts have been added toKB
for
testing andwill
have to be removed latei, or any other such complicationin
writing
KA
.4
The
Counterfactual
Logic
VC
Bench-Capon [1989]
has suggestedthat
counterfactual statements are suitablefor
thisapplication,
and that this is so is reflected by-the statement that opened thispaper.
UnlikeBench-_C^apon, ttowever,
I
will
u*
alogic of
counterfactuals. In-panicular,I
'will
use thelogic VC
developed by-trwis
tlg73l.-This
choiceis partly
motivatedby
thefact
thati
fav_e a rheorem proverfor
this
logic
to
hand. In
the rest6f
this section'I
introduce thelogic
VC
very-briefly. Formal
d-etailsof
VC,
including details
of
a
theorem proving method, are includedin
the appendix.f9-sjmp[fy,the
presentationin this
Section,I
will
make oneortwo
silent
assumptionsthat
lrwis
doesnot.
This
will
notaffect
the feelof
the theory, althoughit
would niat e adifference
in
some important cases.Lewis
assumes that there exist, aswell
as the actualworld,
a setof
other possibleworlds.
These
other
worlds
areof
the
samekind
asthe
actualworld:
he doesnot
ascribe anyspecial status to the actual
world,
except thatit
is the one we happen to be in.Nexq, lrwis.syppo.ses that
for
eachworld
i,
there is a relation S, which applies to pairsof
possible
worlds.
'J
.=,
k"
is read as "worldj
is moresimilar
t6world
i-'tf,an*orid
k is".lrwrs
demands
that any two
worlds.j.
and.F
-ryur!
be
comparableby
this
relarion,although
disrinct.j
ungk
may
be
indistinguishable
if
j
<.
r<ina
k
<,
i.
sio."
eitherJ-5,-kjt
I
<i_j,^1,*akes
sense to define a strict versionofthis
relation,'i,,
byj .,
k
iff
l,o^t_(1
-'i
-:).,
Ifl
addition
to
demandingthat
anytwo
worlds
must be"o-f'a.iUi",
lr;;
-5-Given this
apparatus,we
can denne
semanncauywnat
lt
meansror
a
counteracruarconditional t;^be
true at
a
given
world.
The
counterfaEtualconditional
"if
Q were the case theny
would
be the case" iswritten
as"Q
fJ+ y".'
Lewis
considersQ D=+
ry to be true at aworld
i if
ty is truein
all the nearest worldswith
respect
to
<.
where Qis tiue,
and thereis
at least oneworld
accessiblefrom
i
where Q istrue.
On
introspection,
this
theory
seemsattractive.
When-ryin-A
to.-work
out
whether0
tl=+
ry-is true,
I
often
imhgine what the
world
would
p
tike-if
0
ryeretrue.
Theproblem'is
of
coursethat
there areany
numberg{
y.ay^s theworld could
be
if
it
wasdifferent to how
it
is: how can you make senseof
allthis? Typically,
I uy
to imagine theworld
with
asfew
changes as possible to make 0 true, and thenlook
at tyin
that context.This
seemsto
be close tolrwis's
semantics.Lewis also
allows
us
to
make
statementsabout
the
comparative
possibility of
propositions.
That
is
we
can say thingst*"_'ltt
is
morylikely
that thePoon
would
beinade
of green
cheese than purple cheese".He
thengiles
a semanticsfor
comparaqivepossibility
similar
to that for-counterfactuals, and then shows that, given these semantics, thetwo
notions can each be definedin
tenns of the other.5
Example
This
example illustrates the iterative development_of a knowledge_ base, informedby
thg useof
anExpert's hypothetical
statements. Thefirst
knowledge basein
the example- isgiven
by
Bench-Cafon
[1989,
pp 56-57].
However,later
examplesdiverge
from
hisexampld. This
is becauseI
wish toillusrate
features here that could not be reproduced inBench-Capon's approach.
Although
my
examplesta{s
in
the
sameway
as
his,
theprocesses
-involved-
are much more
generalisable,and also
capableof
much
greatersubtlety.
One
point
aboutmy
knowledge baseis
thatfirst
order variables occurin it,
even_thoughVC is
apropositional
logic.
Therefore,in
this case the knowledge baseswould
have to be enteredto
theVC
proverwith
all
relevant individuals replacing thevariables.
This isnot an
important
dodgefor
two reasons. First, my main point is not dependent on featuresof
thelogic
I
amusing.
Secondly,I
can see no obvious problems !n defining a first order analogueof
VC
over and above those found in other modal logics.rNow
for
theexample.
In
all
cases,I
have run the appropriate test using a theorem proverfor VC
thatI
have implemented and in each caseit
gave the response reported here.Suppose
that a
knowledge
engineer hasarrived
at
the
following
knowledge
base, in consultationwith
an expert onmilitary
history.Given this define semantically what
it
meansfor
counterfactualKnowledge
BaseI
Necessities((ruthless(C)
&
available(a-bomb,C)) => used(a-bomb,C))
&
(commandK(C) => available(a-bomb,C))Contingencies
commandK(mcarthur)
And
atthis
poing
the expert says"Of
course,if
Caesar had beenin
commandin
Korea,2 AcoaUy, Lewis prefers another connectivc, "G+". This is read in the sanre wey er "D+", but thc trdh ccnditimr
arc weaker. In this paper "f!+" 6rs my purpose bcttet
! bwfu diclikes $e ides of cr6r world identity of individuelr (oec Lewir tlg73l, $1.9), and for thic reason did not givc
-G
he
would not
have used theatom
bomb".
This
is
clearly a
counterfactual conditional, sincein
fact
Caesardid
not commandin Korea.
Thusit-is
not suitablefor
inclusion
inthe knowledgg
base,so we
put
it
into a
parallel
setof
hypothetical statements.
Thegxpert also
informs
us that Caesar was ruthlesg as a supporiing statement.To
represenrthis we must assert
it
as necessarily true, sinceit
does noivarybver
the situations we areconsidering.
Hypothetical
SetI
-commandK(caesar)
n+
-r
used(a-bomb,caesar)&
fl
ruthless(caesar)We now check whether
Hyp
tru
-.(
KBc
& trKBN
)In
fact,
it
turnsout
thatit
does.This is
becauseHyp
entarls the existenceof
aworld
inwhich
commandK(caesar)is
tme
and
used(a-bomb,caesar)is
false.
But KB^,
&
ruthless(caesar) must hold at that
world,
and together these entail used(a-bomb,caes#).The engineer-concludes that his knowledge base is
flawed.
The knowledge engineer hasto
revisehis
knowledge base-!
hale
no-suggestionsfor
how he may do-this,-butlet
ussuppose that he comes up
with
thefollowing
atrempt.Knowfedge
BaseI
revisedNecessities
^((ruthless(C)
&
available(a-bomb,C)_&-,careful(C)
) => used(a-bomb,C) )&
((ruthless(c) &- available(a-bomb,c)& careful(cj &
understooa(a-uom'uic)) => used(a-bomb,C) )&
(commandK(C) => available(a-bomb,C))Conttngencies
commandK(mcarthur)
Running
the
VC
-theoremproJer
with
the
sanrehypothetical
set but
with
the
newknowledge- bas-e, the engineer discovers that
Hyp
and'DKB^,
areconsiJtent. rherefore
he
concludesthat
the knowledge baseis
consistentwith
t#
expert'"
otf,"i
statements about the subject.4r
t!9
lngineer
discusses atom bombs furtherwith
the experq she may say"It's
not
truethat
if
Einstein
had been ruthless andin
commandin
Kbrea, tre wo'utaiave
used the*:l^,:
T:-,:r!-p:Sng
information
is
that
(acrossall
situarioor
t."
-i
consiaering;Elnstein
would
certainly
have understood the atombomb.
This is
translatedin
vc
a;a
added to thefirst
hypothetical set to produce:Hypothetical
Set 2((ggn-lldK(caesar)
D:+
--.' used(a-bomb,caesar)) )& (n
ruthless(caesar))*
\--
((ruthless(einstein)&
commandK(einstein))n+
used(a-bomb,einstein)))&
(D
understood(a-bomb,einstein))Note
that the second counterfactual statement above isof
adifferent form to
thefirst (in
that
one
assertsthe
truth
of
a
counterfactual,rr4wrqq,
anA 4rrl.tthe
Ltls utrrtrIoidirh;
utg
i;lsiiyj.'-rr,e.e
larsrly,r. rnere ls
is
nono
-7-to get the expert to rephrase her statement.
Now,
however,we
find
thatHyp
is
inconsistentwith
KBu
.
This is
because the revisedknowledge
baseentails that a
ruthlessEinstein would
h'ave usedthe bomb,
which
iscontradicted
by
the hypothetical statementof
theexpert.
However, theproof
that this isso
is
of
some subtlety
andcould
easily
be
missedby
the knowledge
engineer.
HadEinstein
beenin
commandin
Korea,
aswe
areforced
to
consider
by the
connective"[-L+",
wecould
assert that either hewould
have been careful ornot.
In
the former case,the second rule
in
the knowledge base assefts that he would have used the atombomb.
In
the
latter case,
it
is
thefirst rule
that asserts he would have used thebomb.
The nested useof
thelaw of
the excluded middleis
the sortof
argument that a knowledge engineermight miss. The use
of
a theorem prover assures us that lapseslike
thatwill
not occur.Let us assume that the knowledge engineer revises the knowledge base again.
Knowledge
Base 2Necessities
((ruthless(C)
&
available(a-bomb,C)&
--.,scientist(C)&
((ruthless(C)&
available(a-bomb,C)&
scientist(C))&
(commandK(C)=)
available(a-bomb,C))Contingencies
commandK(mcarthur)
) => used(a-bomb,C) )
=)
-rus€d(a-bomb,C) )This
changein
the
knowledge base requiresa
changein
the hypothetical
set,ro
takeaccount
of
the
changefrom
the
conceptof
"understanding"to
"scientist".
Of
courseEinstein is a scientist.
Now
the knowledge base is consistentin VC with
thein
commandin
Korea,
heVC
and adding
it
to
thenot
usethe bomb,
and wasnot
ascientist. This
contradicts the knowledge base, whichasserts that a ruthless non-scientist in command in Korea would trave
useafie-bomb.
At
this
point,
the expert may
say,"But
if
Caesarwould
not
have been
a
scientist".
Translating hypothetical set we getHypothetical
Set 3(commandK (caesar)
fF+
-1 u sed(a-bomb,caesar))&
(D
ruthless(caesar))* l:
((ruthless(einstgin)&
commandK(einstein))!:+
used(a-bomb,einstein)))&
(D
scientist(a-bomb,einstein))&
(commandK(caesar)D=+
-rscientist(caesar))If
we checknow
the Hyp.oth"tiqal.set 3 against the Knowledge Base 2, we discover thattfey.are- inconsistent again.- This_is becau-se the statements a6out Caesar
toiitrrer
dtt
that
in
the nearestworld
where Caesar wasin
commandin
Koiea,
tr"
**
--trtless,
iil
had been
this
into
Hypothetical
Set 2 revised(
(commandK(caesar) l-''L+-
used(a-bomb,caesar)) )& (n
ruthless(caesar))*
(_-
((ruthless(einstein)&
commandK(einstein)) Dtr+ used(a-bomb,einstein)))
-8-This
inconsistency hasonly
been discovered because we preservedall
the statementsof
the expert and then tested them
all
together against the knowledgebase. This
is a directresult
of
the principled
methodology
we
have been
using. Using
a
less
principledmethod, perhaps we
would
have tested statements Ogether,only
to discard the statementabout Caesar when we added the statement about Einstein. Also, we have benefited
from
using the
full
powerof
alogic.
If
we hadonly
acted by adding statements about Caesat,and then Einstein
to
the knowledge
base andthen
testingfor
consistency (andthis
iseffectively what
Bench-Capondid
in
his
paper)
we may
well
have
only
tested onestatement at a time.
Knowledge
Base 3Necessities
((ruthless(C)
&
available(a-bomb,C)&
"-'scientist(C)&
--careful(C)
)=> used(a-bomb,C) )
&
((ruthless(C)&
available(a-bomb,C)&
scientist(C)) => -rused(a-bomb,C) )&
(commandK(C) => available(a-bomb,C))Contingencies
commandK(mcarthur)
Now the
engineer has reestablished consistency betweenthe knowledge
base and thehypothetical statements. The game go€s on.
6
Concluding
Remarks On Computational
IssuesThe
approachoutlined
above suffers
from
one
major
disadvantagethat may not
beignored. This
is
that
theorem
proving
in
these
modal logics
is
usually
extremelyexpensive
computationally
comparedto
typical
inference schemesin
knowledge
basedsystems.
For examp.le, theoremproving
in
the counteractuallogic
VC
usedin
this paperis PsPAcE-completea (see the
Appendix).
Of
course,first
order versionsof
modal logics areundecidable.
These problems cannot be avoided using even the best theorem provers, since they are inherent propertiesof
the logics.Of
course, slow computation is not the most important factor here, since theorem provingis only
done during
knowledgeelicitation,
andnot
when the knowledge baseii
put
touse.
Also,
muchwork is
going onin
finding efficient
theorem proversfor
modal logics,see
for
instancework
byWallen
11987, 19891 and Ohlbach[1988].
However, the sizeof
arealistic
knowledge base and thetruly
awful
computational propertyof
undecidability arelikely
to
combineto
make even the cputime
required during knowledge elicitatioirunacceptable.
It
is narural then to ask what is the pointof
this work?Jhi.s
ryork
attemptsto further
the causeof
logicism
in
AI.
It
does thisby
showing that alogical. analysis
cal
be used to help check knowledge bases.By
using a-logical analysis,we make
it
quite clear what assumptions we-q9
making, and then we need nothing abe.In
this
case,f
only
used the assumptionsof
$2.
Having
done this,we
benefitfrom
thelogical
analysis becausewe now
have a theoryof
the problemwe
areattacking.
Oncethis
theory
is -accepted,it
then remains aproblem t9 put into
practice computa-tionally.However, we have separated out the theory
from
the implementation.{ A problem is xnr<t-cunplete if some algorithm can solve ir using only a polynomial amount of m€rnory rpacg and
-9-It
isinteresting
to compare this approachwith
the one taken by Bench-Capon[1989].
He suggestedthe
ideaof
using counterfactuals as an aidin
knowledgeelicitation.
However,he
wasworking
solely
in
Prolog, and thus thefonn
of
his
assertions were restricted toHorn
clauses, and he had to use negation as failure insteadof
real negation asI
have usedhere.
Also,
his
approachto
testing the counterfactual wasto
addthe
antecedent(for
example
"commandK(caesar)")
to
the
knowledge
baseand
test the result
to
seeif
"used(a-bomb,caesar)" was a consequence.
The contrast
with my
approachis
startling:
I
usedthe
full
logic
insteadof
Prolog'srestriction
of
it;
I
was not restricted to hisparticularly
simple and inextensible analysisof
counterfactuals; and
finally I
was not even restricted to counterfactuals at all!Even
this
one-sidednessis
not
thecrucial point
I
wish
to make.
The point
is
that theconceptual analysis
I
have developedin
this paper applies equally evenif
wedo
acceptProlog's
logrc
and
Bench-Capon's analysisof
counterfactuals.That
is,
the
analysisdeveloped
here
tells
uswhat
to look for
if
we
have a knowledge basewritten
in
somelogic
anda
way of
reasoning about modal statements thatfall
outside thatlogic. In
this case, we have to consider how we would analyse a setof
counterfactual statements usingBench-Capon's
analysis.
Thisis
not atrivial
matter, since he only tells us how to analyseone at a
time.
The problemof
implementing our conceptual analysis has raised an issue that wasnot
obviousin
theoriginal
paper.This is
not to
say
that
analyseslike
Bench-Capon's areworthless.
If,
in
a
particularapplication,
,th",y
retain
the
salient features
of a
more
complex analysis of
counterfactuals,
but
are moreefficient
computationally, then they areworthwhiie.
Theeffort
involved
in
implementing correctly
the tests requiredby
this
papermay
also beworthwhile.
The
point
I
wish to
stressis
thatno
changes are requiredto
the
analysis presentedin
this paper.There
is nothing
special aboutthis
exampleof
a
specialcase. Given
any restrictionof
logic
usedby
a knowledge
base, and some wayof
deciding
statements that are outsidethat
logic
in
someway,
this theory suggests a methodology-that the knowledge engineershould go through.
The use
of VC
in
this paper gave me several advantages,in
thatI
never had to discard theexpert's statements and that different statements
in
tht
hypothetical set interacted withoutme having
to
worry
about
it.
This
does
not
mean
ihat
it
always
be best
to
usecomputatio"."lll
expensive-logics.
As
David Randell pointed
oui
to
me
(personalcommunication),
in
particular
situationswe
should
looli
for
the
theoriesttrai
fit
ttresituation and are cheapest computationally.
Appendix:
Formal
Detaitsof VC
Formal
Semantics
of VC
The
language
of
VC
contains
a
set
of
propositional
constantsA,
B, . ..,
standardpropositional
connectivgs^,
V,--,
J,
OutI
witt !'ive
formal detailsonly
for-
ilnd=)
anAthe extra connectives
f!+
and<. s
is anotherionnective
in
VC
ad<iitionalto
rb.
It
should
not
tle
confused
with
the
semanticrelation
s
which
will
be
introduced
in
amoment.
'A<R"
is read as"It
is at least aslikely
thatA
would be true as thatB
would betrue".
The connective
fF+
is
usedfor counterfictual implication;
"Afl=+B'; is read as"If
A
were.the
case,
then
B
would
be the
cas,e".Howeier, we
needonly
consider theconnective < since t--l==+ can be defined in terms of < by AD=+B
=
-
( ce^_ieii
(A^B)t
The
following
definition
gives the semantics ofVC.
A
modelfor
VC
isa
quadruple (I,
R,
<,
[]
) which satisfies:_10_
(2)
R
is
a binary
relation
on
I,
representingthe mutual accessibility relation
of
possible worlds.
(3)
3
is
a three place relation onI,
s.t.for
eachi e
I
thereis
abinary relation
(i
on I.
Furthermore,
each
<i
must
be
transitive
and
connected
ori {ilj
e
I
andiRj
}.
CIhe latter reqriirement is thatif
iRj
andiRk
then eitherj
<ik
or k
g
j
or
both must be true).(4) []
assignsto
each formulaA
of VC
a subsetIA]
of I,
representing the setof
worlds
whereA
is
true.
[]
must satisfy thefollowing
requirements,for
eachelement
i
of
I:
(4.1)ie[-A]
if
andonlyif ietAl.
(4.2)ietArBl if
andonlyif
ielAl orielBl.
(4.3) ie
tA<Bl
if
and onlyif
for allje tBl s.t
iRj, there is some ke[A]
s.t. k <ij.
(5)
(The Centering Asswnption)R is reflexive
onI;
andif
iRj
and i*
j
then-
j S i,
(and soby
the connectivity of<i
andreflexivity
of R, andin
an obvious notation,i
<ij).
A
formula
A
is
a
theoremof
VC,written "Fvc
A",
if
andonly
if,
in
every
model(
I,
R, S, [ ] )for
VC,
[A]=t.
Theorem
Proving in VC
This
section isonly
the briefestof
summaries. Forfull
details see Gent[l990l.
De Swart
t19831 gave
a
sequent systemfor VC,
but
it
is
incorrect. The following
formula is a
theoremof VC,
but his method fails to proveit
so.( (e
<c)
n(c
s D) n (D < (--D n B)) )=
(A < B)The decision
problem
for VC
is PSPACE-complete.This
can be shownby
first
reducingthe decisio-n problem for the modal logic
T
to thatof
VC.
T is PSPACE-hard, as shown byLadner
U9771. That VC
is
PSPACE-easy canbe
shownby proving
that the
following
method can be implemented in polynomial space.
I
nowgive
avery brief
descriptionof
a sequent basedproof
systemfor VC, which
I
haveimplement"{
in
BROLOG.
To
provea
theorem one mustfind
a treebuilt
according tothe rules given below
in
which
each
leaf
sequentcontains
both
a
formula and
itsne,gation,
with
theroot
node being the negationof
thetheorem.
The sequent rules are asfollows.
T--
S,T-B
S, FB
F-.
S,F-B
S, TBTf
S, TB>CS,FB
I
S,TCFf
S, FB>CS, TB, FC
T<
S, TB<CS, TB<C,
TB
I
S, TB<C, FCF<
S, FB<C
S, FB<C, FB
There
is
oneadditional rule
thatis
considerably morecomplicated.
Its
general name isFs(m,n).
It
appliesto
a setof m
formulasof
th-e formFA<b
andn
formilas of
theform
TUSV.
It
is only
applicableif
m>1, butn
may be_0, Thedefinition
of
Fs(m,n)is
givenbelow.
Note
thatin
therylg
F<(m,n), the seqrl-ent S
-11-different
possible
worlds
and
so
rnany statements about
the original
world
becomeirrelevant.
FS(m,n) S,
FA101,.
.,
FA6<D6,TU1(V1,
. ..,
TTJn<Vn51
lS2l
"'
lS-l(*)
whereSi
=
{FA1,.
..,
FAm, TDi,FV1,.
..,
FVn} forI
<i
<mand where
(*)
is thefollowing
special condition, whichonly
appliesif
n > 1.(*)
There
is a
sequence i1,i2,...,i,,
which is
a
permutationof
1,2,...,n
and issuch that each
of
thefollowing
sequents is derivable.{FAt,...,
FA6,
TUi,
}{FAt,...,
FA6,
TUi,
FVi,
}:::t"'',
FA-,
ruil
FVi,,
FVi'
){FAt,...,
FA*,
TUio,FVi,,
FV2,..., FV*,
}Acknowledgements
I
wish
to
thank
roly
Cgh1,
I9thy
Courtney, Rajeev Gord,
Felix
Hovsepian,David
Randell, Guy Saward, and the Science and Engineering Research Council,
for
their
helpin producing this paper.
References
Alain
Beauvieux, andPiilippe
D.ague,"A
general consistency (checking and restoring) enginefor
kno-wledge bases", Proceedingsof
theEuropein
Conference onArtificili
Intelligence,
1990, pp 77 -82.T J M
Bench-Capon, "Representing Counterfactual
Conditionals",
pp.
51-60
in
Proc.e.edings
of
!ry
Sqtentlt
Conferenceof
the
Societyfor tlu
Stwb'
of Artificiat
Inrelligence
-qrd
thc
Stmulationof
Behaviour, ed.
A-G
Cohn,
Pirnan-/
M6rganKaufmann,
1989.de Swaft,
H.C.M.,
A
Gentzen- Or Beth-Type System, a Practical Decisionhocedure
anda Constructl"g
9qrypleteness Prooffor
the Counterfactual l-ogicsVC
and VCS, ,LSymbolic
lagic
48 (1983), 1-20.Gent,
I.P.,
A ,Sg^qrynt Systemfor_I*wis's
Co.unterfactyntl"ogic
VC,
Research Reportnumber 168, Departrnent
of
Computer Science,University-of Warwick,
1990.Matthew
L
Ginsberg, "counterfactuals",Artificial
Intelligence 30 (19g6)3s-79.
Richard
E
[.adner, "The
computationalcomplexity
of
provabilirv
in
systemsof
modal propositionallogic", SIAM
J Comput 6 (1977) 467:490David
lrwis,
C ounterfactuals, BasilBlackwell, Oxford,
lg7j.
U
J Q!!bach,
"A
resolution
calculusfor
modal
logics", CADE 9,
SpringerVerlag,
pp500-516,