6
NUMERICAL QUANTIFIERS AND THEIR USE IN REASONING WITH NEGATIVE INFORMATION Stuart C. Shapiro Department of Computer Science State University of New York at Buffalo 4226 Ridge Lea Road Amherst, New York 14226 Numerical quantifiers provide simple means of formalizing such statements as, "at least three people are in that room", "at most fifteen people are in the elevator", and "everybody has exactly two parents". Although numerical quantifiers generalize the existential quantifier, they have different uses in reasoning. The existential quantifier is most useful for supply ing referents for designating phrases w i t h n o previously e x p l i c i t l y m e n t i o n e d referent. Numer ical quantifiers are most useful for reasoning by the process of elimination. Numerical quantifiers would, therefore, be a useful addition to the operators of a reasoning program or deductive questionanswering system. They have been added to SNePS, the Semantic Network Processing System, to further enhance its inference capabilities. 1. INTRODUCTION Logic based reasoning programs, that is reason ing programs based on operators (connectives, quantifiers, modals) which have been studied as part of formal logical systems benefit from the fact that the inferential properties of their operators are clear and well known. They need not be restricted, however, to a minimal set of operators. Minimal sets of operators are useful for proving properties of logical systems such as consistency and completeness, but using a logical system for carrying out inferences is simplified (for people) by enlarging the set of basic operators. This is one reason that natu ral deduction systems like those of [l] , [4] and [11], with reasonable sets of connectives and two rules of inference for each one, are easier to use than axiomatic systems with minimal sets of connectives, rules and axioms. This paper is motivated by a n i n t e r e s t in pro grams that represent knowledge, including the knowledge of rules of reasoning, and that use those rules to perform reasoning. I believe that such programs are enhanced by the availa b i l i t y o f a large set of operators that typify and formally model as many of the modes of human reasoning as possible. This paper dis cusses a set of operators, the numerical quan tifiers, which can be implemented in reasoning *This material is based on work supported in part by a Faculty Research Fellowship from the Research Foundation of State University of New Y o r k , and in part by the National Science Foundation under Grant No. MCS7802274. 791

REASONING WITH NEGATIVE INFORMATIONshapiro/Papers/sha79b.pdfREASONING WITH NEGATIVE INFORMATION ... Lemmon, E.J. Beginning Logic. Hackett, Indianapolis, ... Tarski, A. Introduction

Embed Size (px)

Citation preview

NUMERICAL QUANTIFIERS AND THEIR USE IN REASONING WITH NEGATIVE INFORMATION

S t u a r t C. Shap i ro Department o f Computer Sc ience

S t a t e U n i v e r s i t y o f New York a t B u f f a l o 4226 Ridge Lea Road

Amhers t , New York 14226

Numer i ca l q u a n t i f i e r s p r o v i d e s imp le means o f f o r m a l i z i n g such s ta temen ts a s , " a t l e a s t t h r e e peop le a re i n t h a t r o o m " , " a t most f i f t e e n peop le a re i n the e l e v a t o r " , and "everybody has e x a c t l y two p a r e n t s " . A l t h o u g h n u m e r i c a l q u a n t i f i e r s g e n e r a l i z e the e x i s t e n t i a l q u a n t i f i e r , they have d i f f e r e n t uses i n r e a s o n i n g . The e x i s t e n t i a l q u a n t i f i e r i s most u s e f u l f o r s u p p l y -­i n g r e f e r e n t s f o r d e s i g n a t i n g phrases w i t h n o p r e v i o u s l y e x p l i c i t l y men t ioned r e f e r e n t . Numer-­i c a l q u a n t i f i e r s a re most u s e f u l f o r r e a s o n i n g b y the process o f e l i m i n a t i o n . Numer i ca l q u a n t i f i e r s w o u l d , t h e r e f o r e , be a u s e f u l a d d i t i o n to the o p e r a t o r s o f a r e a s o n i n g program o r d e d u c t i v e q u e s t i o n -­ a n s w e r i n g sys tem. They have been added to SNePS, the Semantic Network P r o c e s s i n g System, t o f u r t h e r enhance i t s i n f e r e n c e c a p a b i l i t i e s .

1. INTRODUCTION

Logic based r e a s o n i n g p rog rams , t h a t i s r e a s o n -­i n g programs based on o p e r a t o r s ( c o n n e c t i v e s , q u a n t i f i e r s , moda ls ) wh ich have been s t u d i e d as p a r t o f f o r m a l l o g i c a l systems b e n e f i t f rom the f a c t t h a t the i n f e r e n t i a l p r o p e r t i e s o f t h e i r o p e r a t o r s a re c l e a r and w e l l known. They need n o t be r e s t r i c t e d , however , to a m i n i m a l se t o f o p e r a t o r s . M i n i m a l se t s o f o p e r a t o r s a re u s e f u l f o r p r o v i n g p r o p e r t i e s o f l o g i c a l systems such as c o n s i s t e n c y and c o m p l e t e n e s s , b u t u s i n g a l o g i c a l system f o r c a r r y i n g o u t i n f e r e n c e s i s s i m p l i f i e d ( f o r p e o p l e ) b y e n l a r g i n g the se t o f bas i c o p e r a t o r s . T h i s i s one reason t h a t n a t u -­r a l d e d u c t i o n systems l i k e those of [l] , [4 ] and [ 1 1 ] , w i t h r easonab le se t s o f c o n n e c t i v e s and two r u l e s o f i n f e r e n c e f o r each one, a re e a s i e r t o use than a x i o m a t i c systems w i t h m i n i m a l s e t s o f c o n n e c t i v e s , r u l e s and ax ioms .

T h i s paper i s m o t i v a t e d b y a n i n t e r e s t i n p r o -­grams t h a t r e p r e s e n t know ledge , i n c l u d i n g the knowledge o f r u l e s o f r e a s o n i n g , and t h a t use those r u l e s to p e r f o r m r e a s o n i n g . I b e l i e v e t h a t such programs a r e enhanced by the a v a i l a -­b i l i t y o f a l a r g e se t o f o p e r a t o r s t h a t t y p i f y and f o r m a l l y model as many of the modes of human r e a s o n i n g as p o s s i b l e . Th i s paper d i s -­cusses a se t o f o p e r a t o r s , the n u m e r i c a l quan-­t i f i e r s , w h i c h can b e implemented i n r e a s o n i n g

* T h i s m a t e r i a l i s based on work suppo r t ed in p a r t by a F a c u l t y Research F e l l o w s h i p f rom the Research Founda t i o n o f S t a t e U n i v e r s i t y o f New Y o r k , and in p a r t by the N a t i o n a l Sc ience Founda t i on under Gran t No. MCS78-­02274.

791

792

793

794

(M13) 9 MSECS * * ; P a t i s i n the h a l l . * (BUILD A PAT R IN 0 HALL) (M14) 11 MSECS * * ; N i c k i s i n the h a l l . * (BUILD A NICK R IN 0 HALL) (M15) 10 MSECS **;Who i s i n the meeting? *(DESCRIBE (DEDUCE A %X R IN 0 MEETING)) (M17 (MIN(O)) (MAX(O)) (ARG(M16))) (M16 (A(PAT)) ( R ( I N ) ) (O(MEETING)))

; Pat is no t in the mee t i ng . (M19 (MIN(O)) (Ml8 (A(NICK))

; N ick is (M20 (A(GABOR)

; Gabor i (M21 (A(JOHN))

; John is (M22 (A(STU))

; Stu i s (DUMPED) 1427 MSECS

(MAX(O)) (ARG(M18))) (R ( IN ) ) (0(MEETING))) no t i n the mee t i ng .

) (R ( IN ) ) (O(MEETING))) s in the mee t i ng .

( R ( I N ) ) (0(MEETING))) i n the mee t i ng .

(R ( IN ) ) (O(MEETING))) i n the mee t i ng .

7 -­ .3 Example 2 We a s s e r t t h a t between two and f ou r dog owner

i n p r e l a t i o n s i n v o l v e s p o i l i n g , and a s s e r t f o u r such s p o i l i n g r e l a t i o n s . SNePS deduces t h a t J im does no t s p o i l L a s s i e .

* * ; O f 5 dog ownership r e l a t i o n s , * ,between 2 and 4 i n v o l v e s p o i l i n g . * , 532Xy member (x ,pe rson) ,Member (y ,dog) ,

Owns(x,y) : S p o i l s ( x , y ) ] •* (BUILD ETOT 5 EMIN 2 EMAX 4 PEVB($X $Y) * 6ANT ((BUILD MEM *X CLASS PERSON) * (BUILD MEM *Y CLASS DOG) * (BUILD A *X R OWNS 0 * Y ) )

CQ (BUILD A *X R SPOILS 0 * Y ) ) (M5) 81 MSECS * * ; J o h n is a person . *(BUILD MEM JOHN CLASS PERSON) (M6) 10 MSECS * * ; J a n e is a person . *(BUILD MEM JANE CLASS PERSON) (M7) 10 MSECS * * ; M a r y is a pe rson . *(BUILD MEM MARY CLASS PERSON) (M8) 9 MSECS * * ; J i m is a person . *(BUILD MEM JIM CLASS PERSON) (M9) 9 MSECS * * ; R o v e r is a dog.

CLASS DOG)

*(BUILD MEM ROVER CLASS DOG (M10) 9 MSECS * * ; S p o t is a dog. *(BUILD MEM SPOT CLASS DOG) (M11) 12 MSECS * * ; L a s s i e is a dog *(BUILD MEM LASSIE (M12) 10 MSECS * * ; J o h n owns Rover. *(BUILD A JOHN R OWNS 0 ROVER) (M13) 11 MSECS * * ; J o h n owns Spot. *(BUILD A JOHN R OWNS 0 SPOT) (M14) 11 MSECS * * ;Mary owns L a s s i e . *(BUILD A MARY R OWNS 0 LASSIE) (M15) 13 MSECS * * ; J a n e owns Spot. *(BUILD A JANE R OWNS 0 SPOT) (M16) 11 MSECS * * ; J i m owns L a s s i e . *(BUILD A JIM R OWNS 0 LASSIE) (M17) 12 MSECS * * ; J o h n s p o i l s Rover. *(BUILD A JOHN R SPOILS 0 ROVER) (M18) 10 MSECS * * ; J o h n s p o i l s Spot. *(BUILD A JOHN R SPOILS 0 SPOT) (M19) 12 MSECS * * ; j a n e s p o i l s Spot . *(BUILD A JANE R SPOILS 0 SPOT) (M20) 12 MSECS * * ;Mary s p o i l s L a s s i e . *(BUILD A MARY R SPOILS 0 LASSIE) (M21) 11 MSECS **;Who s p o i l s whom? *(DESCRIBE (DEDUCE A %X R SPOILS 0 %Y)) (M18 vA(JOHN)) (R(SPOILS)) (0(ROVER)))

;John s p o i l s Rover. (M19 (A(JOHN)) (R(SPOILS)) (O(SPOT)))

;John s p o i l s Spot . (M20 (A(JANE)) (R(SPOILS)) (O(SPOT)))

;Jane s p o i l s Spot. (M21 (A(MARY)) (R(SPOILS)) (O(LASSIE)))

;Mary s p o i l s L a s s i e . (M23 (MIN(O)) (MAX(O)) (ARG(M22))) (M22 (A (J IM) ) (R(SPOILS)) (O(LASSIE)))

;J im does no t s p o i l L a s s i e . (DUMPED) 1341 MSECS

795

8. SUMMARY

We have discussed the r o l e s of e x i s t e n t i a l and numer ica l q u a n t i f i e r s in reasoning programs. The ro les are d i f f e r e n t and both are impo r tan t . The e x i s t e n t i a l q u a n t i f i e r i s most u s e f u l f o r supp ly-­ing r e f e r e n t s f o r des igna t i ng phrases w i t h no p rev ious l y e x p l i c i t l y mentioned r e f e r e n t . Numeri-­c a l l y q u a n t i f i e d r u l e s are concise represen ta -­t i ons of r u l e s t h a t govern reasoning by the process of e l i m i n a t i o n and can in t roduce ex-­p l i c i t negat ives i n t o a data base or can use negat ive statements f o r d e r i v i n g p o s i t i v e s t a t e -­ments. The most genera l schema f o r numer ica l q u a n t i f i e r s t h a t we have discussed is

which says tha t at l eas t i and at most j of the n sequences o f i n d i v i d u a l s t h a t s a t i s f y a lso s a t i s f y Q(X). We showed how r u l e s of t h i s form can be represented in SNePS, the Semantic Network Processing System, and gave examples of SNePS runs t h a t used such r u l e s f o r c a r r y i n g out i n fe rences .

Two aspects of numer ica l q u a n t i f i e r s might l i m i t t h e i r immediate use fu lness . One is the n parameter, r equ i red whenever the min imal para-­meter i s p resen t . I n f o r m u l a t i ng numer i ca l l y q u a n t i f i e d s ta tements , we have found s p e c i f y i n g n to be bothersome. The parameter cou ld be e l i m i n a t e d i f the i n fe rence system had another means of de te rm in ing how many i n d i v i d u a l s s a t i s f y the r e s t r i c t i o n , f o r example i f the c losed wor ld assumption h e l d . The o ther problem is t h a t i nhe ren t in any count ing argument i s the assumption t h a t any two i n d i v i d u a l s a r e , in f a c t , d i s t i n c t . I f t h i s assumption does not h o l d , the use of numer ica l q u a n t i f i e r s depends on a s o l u t i o n to the i d e n t i t y problem mentioned i n Sec. 3. Except f o r these two problems, numer i -­c a l q u a n t i f i e r s seem to be u s e f u l a d d i t i o n s to the t o o l k i t o f r e p r e s e n t a t i o n and i n f e r e n c e .

ACKNOWLEDGEMENTS

The author is g r a t e f u l to Don McKay f o r he lp in SNePS development and to him and Rich F r i t z s o n f o r SNePS and L i sp system suppor t . He is a l so g r a t e f u l to B r i an Funt and Don McKay f o r comments on an e a r l i e r d r a f t .

REFERENCES

[ l ] F i t c h , F.B. Symbolic Log ic :An I n t r o d u c t i o n , Ronald Press Co . , New York , 1952. [2] K leene, S.C. I n t r o d u c t i o n to Metamathe-­

m a t i c s . D. Van Nos t rand , P r i n c e t o n , New Je rsey , 1950.

[3] Lemmon, E . J . Beginning Log ic . Hacke t t , I n d i a n a p o l i s , 1978.

M P r a w i t z , D. N a t u r a l Deduct ion -­ A Proof -­Theore t i ca l Study. A lmqv is t and W i k s e l l , Stockholm, 1965.

[5] R e i t e r , R. On c losed wor l d data bases. In H. G a l l a i r e and J. Minker , eds. Logic and Data Bases, Plenum Press, New York , 1978.

[6] Shapi ro , S.C. Represent ing and l o c a t i n g deduct ion r u l e s in a semantic network. Proc. Workshop on P a t t e r n -­ D i r e c t e d In fe rence Systems. SIGART News le t t e r , 63 (June, 1977), 14-­18.

[7] Shap i ro , S.C. Path-­based and node-­based in fe rence in semantic networks . In D. Wal tz , ed. TINIAP-­2; T h e o r e t i c a l Issues in Na tu ra l Language Process ing-­2 . ACM, New York , 1978, 219-­225.

[8] Shapi ro , S.C. The SNePS semantic network process ing system. In N. F i n d l e r , ed. Associat iva Networks -­ The Representat ion and Use of Knowl-­edge by Computers, Academic Press, New York , 1979, 179-­203.

[9] Shap i ro , S.C. and McKay, D.P. The r e p r e -­s e n t a t i o n and use of deduct ion r u l e s in a seman-­t i c network. Department of Computer Science, SUNY/Buffalo, Amherst, New York , fo r thcoming .

[10] T a r s k i , A. I n t r o d u c t i o n to Logic and to th Methodology of Deduct ive Sciences. Oxford U n i v e r s i t y Press, New York , 1965.

[ l l ] Weyhrauch, R.W. A users manual f o r FOL, Memo A IM-­235 .1 , S tan fo rd A r t i f i c i a l I n t e l l i -­gence Labora to ry , S tan fo rd , C a l i f o r n i a , 1977.

796