Aaai93 062
Aaai93 062
412 Buvac
The General System restrictions on what kinds of structures are allowed as
models, as well as enriching the axiom system.
A propositional logic of context extends classical
Secondly, a context is modelled by a set of truth as-
propositional logic in two ways. Firstly, a new modal-
signments, that describe the possible states of affairs of
ity, ist(K, 4), is introduced. It is used to express that
that context. Therefore the ist modality is interpreted
the sentence, 4, holds in the context K. Secondly, each
as validity: ist(K, p) is true iff the propositional atom
context has its own vocabulary, i.e. a set of proposi-
p is true in all the truth assignments associated with
tional atoms which are defined or meaningful in that
context tc. Treatment of ist as validity corresponds to
context. The vocabulary of one context may or may
Guha’s proposal for context semantics, which was mo-
not overlap with another context.
tivated by the Cyc knowledge base. A system which
Syntax models a context by a single truth assignment, thus
interprets ist as truth, can be obtained by placing
We begin with two distinct countably infinite sets, R simple restrictions on the definition of a model, and
the set of all contexts, and EOthe set of propositional enriching the set of axioms.
atoms. The set, w, of well-formed formulas (wffs) is Thirdly, since different contexts can have different
built up from the propositional atoms, p, using the vocabularies, some propositions can be meaningless in
usual propositional connectives (negation and implica- some contexts, and therefore the truth assignments de-
tion) together with the ist modality. scribing the state of affairs in that context need to be
partial.
Definition (W):
Definition (9X): In this system a model, ??X, will
be a function which maps a context sequence E E lK*
The operations A, V and ++ are defined as abbrevia- to a set of partial truth assignments,
tions in the usual way. The term literal is used to refer
to a propositional atom or the negation of a proposi- .!I2E lEc*--+P P(P +-P 2),
tional atom. We use 4$ to represent either the formula
with the added conditions that
4, or its negation 14. We also use the following abbre-
viations: 1. (VE)(V’vi, z4 E !B@))(Dom(vi) = Dom(v2))
ist(X,qS) := ist(bcl,ist(m,...,ist(h,+))) 2. Dam(m) is a subtree of K* rooted at some context
sequence Kc.
ist*(iZ,+) := fist(6~,fist(z.2,-..
kiiSt(fin,q5)-.-))
We write EM to denote the set of partial truth as-
when E is the context sequence [IE~,~2, . . . , ~~1. In the signments 9X(E). Note that Em can be empty. The
definition of ist * all the ist’s need not be of the same collection of all such models will be denoted by Ml.
parity. PROP is the set of all well formed formulas We could have assumed the existence of a fixed out-
which do not contain ist’s. If $Jis a formula containing ermost context which would result in Dom(fm) being
distinct atoms pi,. . . ,pn, then we write $J(&, . . . , &) a tree rooted at empty sequence E (i.e. the fixed out-
for the formula which results from $Jby simultaneously ermost context). This would result in slightly simpler
replacing all the occurrences of pi in $ by 4;. We say notation and proofs. However, although more com-
that $+A,. . . , Ad is an instance of $. plicated, our definition is based on the intuition that
there is no outermost context.
Semant its
Vocabularies The truth assignments in our model
We begin with a system which makes as few semantic
are partial. The atoms which are given a truth value
restrictions as possible. Other systems are obtained by
in a context are defined by a relation Vocab E lK* x IED.
placing restrictions on the models. The semantics of
the general system has the following three features:
Firstly, the nature of a particular context may itself Definition (Vocub of tm): We define a function
be context dependent. For example, in the context of Vocub : Ml + P(IK* x p) which given a model returns
the 1950’s, the context of car racing is different than the vocabulary of the model:
than the context of car racing viewed from today’s con- Vocub(9X) := {<E, p> ] E E Dom(9X) and p E Dom(!?Q))}
text. This leads naturally to considering sequences of
contexts rather than a solitary context. We refer to this We say that a model iDIis cZussicuZon vocabulary Vocab
feature of the system as non-flatness. It reflects on the iff Vocab C Vocub(?DQ.
intuition that what holds in a context can depend on The notion of vocabulary can also be applied to sen-
how this context has been reached, i.e. from which per- tences. Intuitively, the vocabulary of a sentence relates
spective it is being viewed. For example, non-flatness a context sequence to the atoms which occur in the
will be desirable if we represent the beliefs of an agent scope of that context sequence. In the definition we
as the sentences which hold in a context. A system of also need to take into account that sentences are not
flat contexts can easily be obtained by placing certain given in isolation but in a context.
NonmonotonicLogic 413
Definition (Vocab of 4 in E): We define a function Assuming that our system was limited to only one
Vocab : K* x !4’ + P(K* x P) which given formula context, the rule (CS) would be identical to the rule
in a context, returns the vocabulary of the formula. of necessitation in normal systems of modal logic, and
Vocab(E, 4) is defined inductively by: axiom schema (IX) would be identical to the the stan-
dard axiom schema K. Thus in the single context case,
ignoring axiom schemas (A+) and (A-), our formal
system is identical to what is usually called the normal
system of modal logic, characterized by (PL), (NIP),
(K), and the rule of necessitation. The axiom schemas
(A+) and (A-) are needed in order to accommodate
It is extended to sets of formulas in the obvious way. the validity aspect of the ist modality. It turns that
Note that it is only in the propositional case that they derivable in the system which treats ist as truth
we can carry out this static analysis of the vocabulary and does not allow inconsistent contexts.
of a sentence. It will not be possible in the quantified
Provability A formula q5 is provable in context K
versions. Also note that our definition of vocabulary of
with vocabulary Voca b (formally l-z 4) iff I-, 4 is an in-
a sentence is somewhat different from Guha’s notion of
stance of an axiom schema or follows from provable for-
definedness. Guha proposes to treat ist(K, 4) as false
mulas by one of the inference rules; formally, iff there
if 4 is not in the vocabulary of the context K.
is a sequence [ l-x1 41, . . . , l-z, &] such that En = E,
Satisfaction We can think of partial truth assign- and A = 4 and for each i 5 n either l--z%+i is an
ments as total truth assignments in a three-valued axiom, or is derivable from the earlier elements of the
logic. Our satisfaction relation then corresponds to sequence via one of the inference rules. In the case
Bochvar’s three valued logic [Bochvar, 19721, since an of assumptions, formula 4 is provable from assump-
implication is meaningless if either the antecedent or tions T in context Ee with vocabulary Vocab (formally
the consequent are meaningless. We chose Bochvar’s T ,Joca b or again taking into account that Vocab is
three valued logic because we intend meaningfulness to fixed T &, 4) iff there are formulas 41,. . . ,& E T,
be interpreted as syntactic meaningfulness, rather than such that l-z0 (41 A . . . A &) --+ 4. Note that due to
semantic meaningfulness along the lines of Kleene’s the definedness convention if T l-z, 4 then Vocab(T) E
three valued logic [Kleene, 19521. Voca b.
Formal System
We now present the formal system. To do this we fix
a particular vocabulary, Vocab c K* x P, and define A slightly deeper result is that any formula is prov-
ably equivalent to one in a certain syntactic form. This
a provability relation, t-G
‘Ocab. Since Vocab will re- equivalence plays an important role in the complete-
main fixed throughout we omit explicitly mentioning it ness proof.
and write l-,4 instead. Similarly, to avoid constantly
stating lengthy side conditions we make the following Definition (CNF) : A formula 4 is in conjunctive
convention. normal form (CNF) iff it is of the form Ei A E2 A - - . A
EI,, and each Ei is of the form oil V ai V - - - V aiTz,
Definedness Convention: In the sequel, when- where each oij is either a literal, or ist*(i?, ,0) for some
ever we write l--,4 we will be assuming implicitly that disjunction of literals ,0. Note that i and k can be 1.
Vocab(E, 4) C Vocab.
Axioms and inference rules are given in table 1. Note Lemma (CNF): For any formula 4, context se-
that the rules of inference preserve the (definedness quence E, there exists a formula $* which is in CNF,
convention). such that l-z+ H +*.
414 Buvac
:(PL) )-F 4 provided 4 is an instance ofa tautology.
Theorem (soundness) : If I-F~, then for all mod- extend T to a maximally consistent set To. From To we
els f)32classical on Vocab ?JXk=s;r4. If T I-F 4, then for will construct the model 9X0. For each i? = Ec * C E JK*
all models 9.X classical Vocab if for all 1c,E T 9X j=~ define
$J, then 9X +E 4.
Tic+ := (4 ITo ho ist(?, $), 4 E PROP}.
Completeness
We begin by introducing some concepts needed to state Lemma (T,+): T,+ is closed under logical con-
the completeness theorem. sequence: for all 4 where Vocab(i?, 4) & Vocab, if 4
tautologically follows from T,+ then 4 E T,+.
Definition (satisfiability): A set of formulas T is
satisfiable in context E with vocabulary Vocab iff there
Note that T,+ need not be either maximally consistent
exists a model !JX classical on Vocab, such that for all
or even consistent. Now, using only the sets T,+ of
4 E T, i-m +F 4. formulas from PROP, we will define a model ?JXc for
A formula q5is consis- the set of formulas To. We define the domain of 9X0
Definition (consistency):
tent in ET with Vocab, where Vocab@, 4) C Vocab iff Dom(!JXc) := {El E 5 ito, 32 E Dom(Vocab), TC’5 I?}
not l-x 14. A finite set T is consistent in 7Fwith Vocab
iff /x\ T is consistent in E with Vocab. An infinite set T and for all i? E Dom(!JJZc)
is consistent in in with Vocab iff every finite subset of T i%&(Z) := {v 1Dam(v) = Vocab@), E Tn+,v($)
VC#I = 1).
is consistent in i? with Vocab. A set T is inconsistent
in E with Vocab iff the set T is not consistent in 7Zwith In the above, V is the unique homomorphic extension
Voca b. of v with respect to the propositional connectives. To
A set T is maximally consistent in E with Vocab iff see that 9X0 as defined is a model, we first note that
T is consistent in E with Vocab and for all 4 $ T such it clearly meets condition 1, since all the truth assign-
that Vocab(& 4) 2 Vocab, T U {4} is inconsistent in E ments associated with a context must have the same
with Vocab. domain. Condition 2 is met since Dom(9Xo) as defined ,
As is usual, an important part of the completeness is a subtree rooted at 7~0. Note that if T,+ is empty
proof is the Lindenbaum lemma allowing any consis- (which corresponds to the case where Vocab(K) = S),
tent set of wffs to be extended to a maximally consis- then 9&(E) is a singleton set, whose only member is
tent set. the empty truth assignment. Finally, to establish com-
pleteness we need only prove the truth lemma. The
Lemma (Lindenbaum) : If T is consistent in E proof of the truth lemma is based on the CNF con-
with Vocab, then T can be extended to a maximally struction and is the novel aspect of this completeness
consistent set To in E with Vocab. proof.
Now we proceed to state and prove the completeness
of the system. Lemma (truth):
For any 4 such that Vocab(Ec, 4) E Vocab,
Theorem (completeness) : For any set of formulas
T, T is consistent in Kc with Vocab iff T is satisfiable 4 E To 8 m0 bzo 4.
in i?e with Vocab.
Lemma (930): Let 9.X0be a model as defined from for all 4 satisfying the definedness condition; the proof
To in the completeness proof. Then for all 4 E PROP carries over from normal systems of modal logic. Now
where Vocab(zo * Z, 4) s Vocab, we state a useful consequence of (D,) ‘s.
where x is a disjunction of literals. The context se- Thus, T(zowcl*...wcj)+ is inconsistent, 9720(Ee * ~1 * . a. *
quence c will sometimes be written as pi*. . . * K~. We Kj) = 0, and consequently
will examine two cases, depending on whether or not ist(&i *. . .*Kj, 4) E To iff ?7Xobxo ist(Ki*.. .*Kj, 4)
any of the sets of sentences T(E~*~‘)+ where C 5 2, are
for all 4 such that Vocab(Es * KI* * - - * Kj, 4) E Vocab.
inconsistent. The sets T(E,,*Ft)+, where i3 < 2, are all
Then by reasoning similar to the previous case we get:
consistent iff the formula
ist*(?,;y) E To iff ?3Xabzo ist*(?, x).
(D,) ist(Z, 14) + list@, 4)
Note that in the entire proof of the inductive step for
is in To, for any wff 4 which satisfies the definedness ist, we did not need the inductive hypothesis, making
condition. The proof of this is identical to the sound- use only of the special form of x which is guaranteed
ness and completeness proofs of a context system with because $J is in CNF. qruth-Iemma
416 Buvac
Correspondence Results (VE E JRJ{E))(VVI, v2 E SI(E))(Dom(v~) = Dom(v2))
In this section we provide soundness and completeness The following flatness axiom schemas are sound with
results for several extensions of the general system. respect to the class of flat models Slat:
correspond to certain intuitive principles concerning
the nature of contexts. In each extension the syntax
and semantics is the same as in the general case, and (Fl+) t-z ist(K2, ist(Ki, 4)) f) is+% 4)
the (definedness convention) still holds. Only the (FL) l-z ist(K2, list(&i, 4)) --+ +st(Ki, 4)
class of models and axioms are modified.
Consistency
providing the vocabulary also satisfies the flatness con-
Sometimes it is desirable to ensure that all contexts dition: for any context sequences Tt;iand X2, and any
are consistent. context K,
In this system we examine the class, Gnsistent, of
consistent models. A model 9X E CZonsistentiff for any Vocab(El * K) = Vocab(& * K).
context sequence E E Dom(!JJX),
The backward direction of the flatness axiom
!m(iz) # 0. schemas (Fl+) corresponds of the modal logic axiom
The following axiom schema is sound with respect schema S4 (provided that ~1 is the same as ~2). Sim-
to the class of consistent models Gnsbtent: ilarly, the converse of (FL) corresponds to the modal
logic axiom schema S5. Note that the converse of (FL)
is a theorem in the system.
(D) l-z ist(E, 14) + +.st(K, 4)
It is interesting to observe that in every system with
Axiom schema (D) is also commonly used in modal ($‘I+) and (FL), (H)) is also derivable. In semantic
logic, and is sound and complete for the set of serial terms, this means that any flat model is also a con-
Kripke frames, in which for each world there is another sistent model; a reasonable property for if a context
world from which it is accessible from. Note that axiom was inconsistent, then in that context it would be true
(D) is equivalent to that all other contexts are also inconsistent. Due to
i--z ist(K, 4 A 14). flatness, this would really make all the other contexts
inconsistent.
418 Buvac
contexts to be reified as first class objects in the se- Grosz, Barbara J. 1977. A representation and use of
mantics. This will allow us (in the predicate case) to focus in a system for understanding dialogs. In Pro-
state relations between contexts, define operations on ceedings of the Fifth International Joint Conference
contexts, and specify how sentences from one context on Artificial Intelligence. Morgan Kaufmann Publish-
can be Zifted into another context. ers Inc.
Guha, Ramanathan V. and Lenat, Douglas B. 1990.
Conclusions and Future Work Cyc: A midterm report. AI Magazine 11(3):32-59.
Our goal is to extend the system to a full quantifica- Guha, Ramanathan V. 1991. Contexts: A Formal-
tion logic. One advantage of quantificational system is ization and Some Applications. Ph.D. Dissertation,
that it enables us to express relations between context, Stanford University. Also published as technical re-
operations on contexts, and state lifting rules which port STAN-CS-91-1399-Thesis.
describe how a fact from one context can be used in Halpern, Joseph Y. and Moses, Yoram 1992. A guide
another context. However, in the presence of context to completeness and complexity for modal logics of
variables it might not be possible to define the vocab- knowledge and belief. Artificial Intelligence 54:319-
ulary of a sentence without knowing which object a 379.
variable is bound to. Therefore the first step in this Kleene, Steven C. 1952. Introduction to Metamathe-
direction is to to examine propositional systems with matics. North-Holland Publishing Company.
dynamic definitions of meaningfulness.
We also plan to define non-Hilbert style formal sys- Lifschitz, Vladimir 1986. On formalizing contexts.
Unpublished manuscript.
tems for context. Probably the most relevant is a natu-
ral deduction system, which would be in line with Mc- McCarthy, John 1987. Generality in artificial intelli-
Carthy’s original proposal of treating contextual rea- gence. Comm. of ACM 30(12):1030-1035. Reprinted
soning as a strong version of natural deduction. In such in [McCarthy, 19901.
a system, entering a context would correspond to mak- McCarthy, John 1990. Formalizing Common Sense:
ing an assumption in natural deduction, while exiting Papers by John McCarthy. Ablex Publishing Corpo-
a context corresponds to discharging an assumption. ration, 355 Chesnut Street, Norwood, NJ 07648.
Finally, it would be interesting to show some for- McCarthy, John 1993. Notes on formalizing context.
mal properties of our logic. These include defining a In Proceedings of the Thirteenth International Joint
decision procedure, in the style of [Mints, 19921. Conference on Artificial Intelligence. To appear.
Mints, Grigorii E. 1992. Lewis’ systems and system
Acknowledgements
T (1965-1973). In Selected Papers in Proof Theory.
The authors would like to thank Tom Costello, R. V. Bibliopolis and North-Holland.
Guha, Furio Honsell, John McCarthy, Grigorii Mints Shoham, Yoav 1991. Varieties of context. In Lif-
and Carolyn Talcott for their valuable comments. This schitz, Vladimir, editor 1991, Artificial Intelligence
research is supported in part by the Advanced Re- and Mathematical Theory of Computation: Papers in
search Projects Agency, ARPA Order 8607, monitored Honor of John McCarthy. Academic Press.
by NASA Ames Research Center under grant NAG
2-581, by NASA Ames Research Center under grant
NCC 2-537, NSF grant CCR-8915663 and Darpa con-
tract NAG2-703.
References
Bochvar, D. A. 1972. Two papers on partial pred-
icate calculus. Technical Report STAN-CS-280-72,
Department of Computer Science, Stanford Univer-
sity. Translation of Bochvar’s papers originally pub-
lished in 1938 and 1943.
BuvaE, Saga 1992. Context in AI. Unpublished
manuscript.
de Kleer, Johan 1986. An assumption-based truth
maintenance system. Artificial Intelligence 28:127-
162.
Genesereth, Michael R. and Fikes, Richard E. 1992.
Knowledge interchange format, version 3.0, reference
manual. Technical Report Logic Group Report Logic-
92-1, Stanford University.