On the Model Theory of Knowledge

J. McCarthy
jmc@cs.stanford.edu
http://www-formal.stanford.edu/jmc
M. Sato
T. Hayashi
S. Igarashi

Abstract:

Another language for expressing ``knowing that" is given together with axioms and rules of inference and a Kripke type semantics. The formalism is extended to time-dependent knowledge. Completeness and decidability theorems are given. The problem of the wise men with spots on their foreheads and the problem of the unfaithful wives a are expressed in the formalism and solved.

The authors' present addresses are as follows: John McCarthy, Stanford University; Masahiko Sato, University of Tokyo; Takashi Hayashi, Kyushu University; and Shigeru Igarashi, University of Tsukuba.

This research was supported by the Advanced Research Projects Agency of the Department of Defense under ARPA Order No. 2494, Contract MDA9O3.76-C-0206. The views and conclusions contained in this document are those of the authors and should not be interpreted as necessarily representing the official policies, either expressed or implied, of Stanford University, or any agency of the U. S. Government.






Introduction

The need to represent Information about who knows what in intelligence computer programs was the original motivation for this work. For example, a program that plans trips must know that travel agents know who knows the availability of rooms in hotels. An early problem Is how to represent what people know about other people's knowledge of facts, and even the knowledge of propositions treated In this paper presented some problems that were not treated in previous literature.

We started with the following well known puzzle of the three wise men: A king wishing to know which of his three wise men is the wisest, paints a white spot on each of their foreheads, tells them at least one spot is white, and asks each to determine the color of his spot. After a while the smartest announces that his spot is white reasoning as follows: ``Suppose my spot were black. The second wisest of us would then see a black and a white and would reason that if his spot were black, the dumbest would see two black spots and would conclude that his spot is white on the basis of the king's assurance. He would have announced it by now, so my spot must be white."

In formalizing the puzzle, we don't wish to try to formalize the reasoning about how fast other people reason. Therefore, we will imagine that either the king asks the wise men in sequence whether they know the colors of their spots or that he asks synchronously, ``Do you know the color of your spot" getting a chorus of noes. He asks it again with the same result, but on the third asking, they answer that their spots are white. Needless to say, we are also not formalizing any notion of relative wisdom.

We start with a general set of axioms for knowledge based on the notation, axioms, and inference rules of propositional calculus supplemented by the notation S*p standing for, ``Person S knows proposition p." Thus tex2html_wrap_inline260 can stand for, ``The third wise man knows that the second wise man knows that the first wise man does not know that the first wise man's spot is white''.

We use axiom schemata with subscripted S's as person variables, subscripted p's and q's as propositional variables, and a special person constant called ``any fool" and denoted by 0. It is convenient to Introduce ``any fool" because whatever he knows, everyone knows that everyone else knows. ``Any fool" is especially useful when an event occurs in front of all the knowers, and we need sentences like, ``tex2html_wrap_inline268 knows that tex2html_wrap_inline270 knows that tex2html_wrap_inline272 knows etc.". Here are the schemata:

K0: tex2html_wrap_inline274; What a person knows is true.

K1: tex2html_wrap_inline276; Any fool knows that what a person knows is true.

K2: tex2html_wrap_inline278; What any fool knows, any fool knows everyone knows, and any fool knows that.

K3: tex2html_wrap_inline277; Any fool knows everyone can do modus ponens.

There are two optional schemata K4 and K5:

K4: tex2html_wrap_inline282; Any fool knows that what someone knows, he knows he knows.

K5: tex2html_wrap_inline284; Any fool knows that what some doesn't know he knows he doesn't know.

If there is only one person S, the system is equivalent to a system of modal logic. Axioms K1-K3 give a system equivalent to what Hughes and Cresswell[1] called T, and K4 and K5 give the modal systems S4 and S5 respectively. We call K4 and K5 the introspective schemata.

It is convenient to write tex2html_wrap_inline294 as an abbreviation for tex2html_wrap_inline296; it may be read ``S knows whether p".

On the basis of these schemata we may axiomatize the wise man problem as follows:

C0: tex2html_wrap_inline302

C1: tex2html_wrap_inline304

C2: tex2html_wrap_inline303

C2: tex2html_wrap_inline308

C3: tex2html_wrap_inline310

C4: tex2html_wrap_inline312

C5: tex2html_wrap_inline314

From K0-K3 and C1-C5 it is possible to prove tex2html_wrap_inline316. C0 is not used in the proof. In some sense C4 and C5 should not be required. Looking at the problem sequentially, it should follow that tex2html_wrap_inline268 does not know tex2html_wrap_inline320 initially, and that even knowing that, tex2html_wrap_inline270 doesn't know tex2html_wrap_inline324.

In order to proceed further with the problem, model theoretic semantics is necessary. In what follows, however, we will deal with the puzzle of unfaithful wives (cf. Section 4) rather than that of three wise men, because the latter may be considered as a simplified version of the former. To do so we must extend the system K5 to KT5 in which one can treat the notion of time as well. We will use slightly different notations in the following sections since they are convenient to denote time and have similarity to those used in ordinary modal logics.

We briefly describe the Hilbert-type formulation of the system KT5 in Section 2, and its model theory in Section 3. Finally, we will sketch the outline of the solution to the puzzle of unfaithful wives in this formalism in Section 4. The reader is referred to Sato[2] for details.



The Formal Systems




Basic Language

The basic language L is a triple tex2html_wrap_inline323, where
eqnarray25
are denumerable sequence of distinct symbols. tex2html_wrap_inline328 is the set of numerals denoting the corresponding positive integers. tex2html_wrap_inline330 will be denoted by 0 and will be called any fool.




Languages

A language L is a triple (Pr, Sp, T), where
eqnarray31
Elements in Pr, Sp and T denote propositional variables, persons and time, respectively. Our arguments henceforth will, unless states otherwise, always be relative to a language L.




Well formed formulas

The set of well formed formulas is defined to be the least set Wff such that:

(W1) tex2html_wrap_inline346,

(W2) tex2html_wrap_inline348,

(W3) tex2html_wrap_inline347,

(W4) tex2html_wrap_inline352.

The symbols tex2html_wrap_inline354 and tex2html_wrap_inline356 denote false and implication, respectively.

We will make use of the following abbreviations:


tabular38

For any tex2html_wrap_inline410, we define tex2html_wrap_inline412 inductively as follows:

(S1) tex2html_wrap_inline414

(S2) tex2html_wrap_inline416

(S3) tex2html_wrap_inline418

We say tex2html_wrap_inline362 is a subformula of tex2html_wrap_inline360 if tex2html_wrap_inline424.




Hilbert-type system

We now define the modal system KT5. The axiom schemata for KT5 are as follows:

(A1) tex2html_wrap_inline428

(A2) tex2html_wrap_inline427

(A3) tex2html_wrap_inline429

(A4) tex2html_wrap_inline434

(A5) tex2html_wrap_inline436

(A6) tex2html_wrap_inline438, where tex2html_wrap_inline437

(A7) tex2html_wrap_inline442

We have the following two inference rules:
displaymath423
We write tex2html_wrap_inline446 if there exists a proof of tex2html_wrap_inline360. For any tex2html_wrap_inline450 we write tex2html_wrap_inline452 if tex2html_wrap_inline454 for some tex2html_wrap_inline456. tex2html_wrap_inline458 is said to be consistent if tex2html_wrap_inline460.




Kripke-type Semantics




Definition of Kripke-type models

Let W be any non-empty set (of possible worlds). A model M on W is a triple
displaymath462
where
displaymath463
and
displaymath464
Given any model M, we define a relation tex2html_wrap_inline478 as follows:


tabular52

We will write ``tex2html_wrap_inline500'' if we wish to make M explicit. A formula tex2html_wrap_inline360 is said to be valid in M, denoted by tex2html_wrap_inline508, if tex2html_wrap_inline510 for all tex2html_wrap_inline512. (By tex2html_wrap_inline512, we mean tex2html_wrap_inline516.) Furthermore, we will employ the following notation:
displaymath462
A model M is a KT5-model if

(M1) tex2html_wrap_inline520

(M2) tex2html_wrap_inline522 for any tex2html_wrap_inline530 and tex2html_wrap_inline526,

(M3) tex2html_wrap_inline528 for any tex2html_wrap_inline530 and tex2html_wrap_inline532 such that tex2html_wrap_inline534,

(M4) r(S,t) is an equivalence relation for any tex2html_wrap_inline530 and tex2html_wrap_inline526.

A set tex2html_wrap_inline458 of well formed formulas is said to be realizable if there exists a KT-5 model M and tex2html_wrap_inline512 such that tex2html_wrap_inline548.




Soundness of KT5-models

We now wish to show that each formula provable in KT5 is valid in any KT5-model.

Theorem 1. (Soundness Theorem) If tex2html_wrap_inline446 then tex2html_wrap_inline508 for any KT5-model M.

Corollary 2. (Consistency of KT5) tex2html_wrap_inline354 is not provable in KT5.




Completeness of KT5-models

As for the completeness of KT5-models, we have the following theorems.

Theorem 3. (Generalized Completeness Theorem) Any consistent set of well formed formulas is realizable.

Theorem 4. (Completeness and Decidability Theorem) For any tex2html_wrap_inline410, tex2html_wrap_inline360 is a theorem of KT5 if and only if tex2html_wrap_inline360 is valid in all KT5- models whose cardinality tex2html_wrap_inline564, where n is the cardinality of the finite set tex2html_wrap_inline567.




The Puzzle of Unfaithful Wives

We begin by explaining the notions of knowledge base and knowledge set, which are fundamental for our formalization of the puzzle of unfaithful wives.




Knowledge set and knowledge base

Let L be any language. We will make the notion of the totality of one's knowledge explicit by the following definitions:

Definition. tex2html_wrap_inline574 is a knowledge set for St if K satisfies the following conditions:

(KS1) K is consistent.

(KS2) tex2html_wrap_inline581, where tex2html_wrap_inline584.

(KS3) If tex2html_wrap_inline586 then tex2html_wrap_inline588 for some tex2html_wrap_inline608.

Definition. tex2html_wrap_inline592 is a knowledge base for St if B satisfies the following conditions:

(KB1) B is consistent.

(KB2) tex2html_wrap_inline600, where tex2html_wrap_inline602,

(KB3) If tex2html_wrap_inline604 then tex2html_wrap_inline606 for some tex2html_wrap_inline608.

By (KS2) (or (KB2)) we see that any element in K (or B, esp.) has the form tex2html_wrap_inline618. It is easy to see that if B is a knowledge base for St then tex2html_wrap_inline624 is a knowledge set for St.

Let tex2html_wrap_inline450 be consistent. We compare the following three conditions.

  1. If tex2html_wrap_inline630 then tex2html_wrap_inline632.
  2. If tex2html_wrap_inline634 then tex2html_wrap_inline636 for some tex2html_wrap_inline608.
  3. If tex2html_wrap_inline640 then tex2html_wrap_inline452 or tex2html_wrap_inline644.

Then we have the following

Lemma 5. (1), (2) and (3) are equivalent.

We now study the semantical characterization of knowledge sets. Let tex2html_wrap_inline646 be any KT5-model. For any tex2html_wrap_inline648 and tex2html_wrap_inline650, we define tex2html_wrap_inline651 by:
displaymath570
Since, as we will see below, tex2html_wrap_inline654 is a knowledge set for St, we call it the knowledge set for St at w.

Lemma 6. tex2html_wrap_inline654 is a knowledge set for St.

Let K be a knowledge set for St. We say tex2html_wrap_inline670 characterizes K if tex2html_wrap_inline674.

Theorem 7. Any knowledge set is characterizable.




Informal presentation of the puzzle

The puzzle of unfaithful wives is usually stated as follows:

There was a country in which one million married couples inhabited. Among these one million wives, 40 wives were unfaithful. The situation was that each husband knew whether other men's wives were unfaithful but he did now know whether his wife was unfaithful. One day (call it the first day). the King of the country publicized the following decree:

(i) There is at least one unfaithful wife.

(ii) Each husband knows whether other men's wives are unfaithful or not.

(iii) Every night (from tonight) each man must do his deduction, based on his knowledge so far, and try to prove whether his wife is unfaithful or not.

(iv) Each man, who has succeeded in proving that his wife is unfaithful, must chop off his wife's head next morning.

(v) Every morning each man must see whether somebody chops off his wife's head.

(vi) Each man's knowledge before this decree is publicized consists only of the knowledge about other men's wive's unfaithfulness.

The problem is ``what will happen under this situation?" The answer is that on the 41st day 40 unfaithful wives will have their heads chopped off. We will treat this puzzle in a formal manner.




Formal treatment of the puzzle

We will treat this puzzle by assuming that there are tex2html_wrap_inline692 married couples in the country. Then the language L = (Pr, Sp, T) adequate for this puzzle will be:
eqnarray88
where tex2html_wrap_inline702 denotes ith husband, tex2html_wrap_inline700 means that tex2html_wrap_inline702's wife is unfaithful and tex2html_wrap_inline526 denotes ith day.

Let tex2html_wrap_inline708 denote that k-fold cartesian product of the vector space tex2html_wrap_inline711 with addition tex2html_wrap_inline714. We define
displaymath676
by tex2html_wrap_inline716, where tex2html_wrap_inline718 and tex2html_wrap_inline719 denotes tex2html_wrap_inline722, resp.). We put tex2html_wrap_inline724 and tex2html_wrap_inline725. We also use tex2html_wrap_inline728 to denote arbitrary element in tex2html_wrap_inline730. Now, let tex2html_wrap_inline458 denote what the King publicized on the first day, and tex2html_wrap_inline734 denote a knowledge base for tex2html_wrap_inline736 under the situation tex2html_wrap_inline738. Let us put:
displaymath669
and
displaymath670
where tex2html_wrap_inline410. We also put tex2html_wrap_inline746. Then, as a formalization of the puzzle, we postulate the following identities:

tex2html_wrap675

tex2html_wrap676

Since the meta-notions such as knowledge base and provability tex2html_wrap_inline748 cannot be expressed directly in our language, we were forced to interpret the King's decree into tex2html_wrap_inline458 in a somewhat indirect fashion.

Now, if we read Eq(*) as the definition of tex2html_wrap_inline458, then we find that the definition is circular, since in order that tex2html_wrap_inline458 may be definable by Eq(*) it is necessary that tex2html_wrap_inline760 are already defined, whereas tex2html_wrap_inline760 are defined in terms of tex2html_wrap_inline458 in tex2html_wrap_inline765. So, we will treat these equations as a system tex2html_wrap_inline767, tex2html_wrap_inline770, tex2html_wrap_inline772 of equations with the unknowns tex2html_wrap_inline774 and tex2html_wrap_inline458. We will solve tex2html_wrap_inline778 under the following conditions:

(*) For any tex2html_wrap_inline780, tex2html_wrap_inline782 is consistent.

(**) For any tex2html_wrap_inline780 and tex2html_wrap_inline736, tex2html_wrap_inline760 is a knowledge base for tex2html_wrap_inline736.

We think these conditions are natural in view of the intended meanings of tex2html_wrap_inline458 and tex2html_wrap_inline760.

Let us define a norm on tex2html_wrap_inline796 by tex2html_wrap_inline798, where tex2html_wrap_inline799. For any tex2html_wrap_inline802 and tex2html_wrap_inline804, we put
eqnarray113
and for any tex2html_wrap_inline806, we put
eqnarray119
We also put tex2html_wrap_inline808.

We define a KT5-model tex2html_wrap_inline810 as follows:


tabular111

Then we have the following theorem.

Theorem 8. Under the conditions (tex2html_wrap_inline390) and (tex2html_wrap_inline836), tex2html_wrap_inline778 has the unique solution tex2html_wrap_inline840, where the solution is characterized by the condition:
displaymath681
Thus we have seen that tex2html_wrap_inline844 may be regarded as the formal counterpart of the King's decree in our formal system. The puzzle is then reduced to the problem of showing that:
displaymath672
We note that we can moreover prove the following:
displaymath673
It is clear that tex2html_wrap_inline846 and tex2html_wrap_inline848 follow at once from the condition stated in theorem 8.



References

1
G. E. Hughes and M. J. Creswell. An Introduction to Modal Logic. Methuen and Co., Ltd., London, 1968.

2
M. Sato. A study of kripke-type models for some modal logics by gentzen's sequential method. Technical Report Publication 13, RIMS, Kyoto University, 1977.