Home

On the Use of Epistemic Ordering Functions as

image

Contents

1. Blackbeard was educated triggers belief revision Educated Blackbeard A contradiction was detected within context default defaultct The contradiction involves the proposition you want to assert wff6 Educated Blackbeard lt hyp wff6 gt and the previously existing proposition wff7 Educated Blackbeard lt der wff2 wff 5 gt lt der wff1 wff5 gt You have the following options 1 a to attempt to resolve the contradiction automatically 2 c to continue anyway knowing that a contradiction is derivable 3 r to revise the inconsistent part of the context manually 4 d to discard this contradictory new assertion from the context please type a c r or d 42 gt lt a Please choose from the following hypotheses the one that you would least like to keep Ls wff2 all x Criminal x gt Educated x lt hyp w 2 gt 2 supported propositions wff7 wff2 2 i wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt 4 supported propositions wff7 wff5 wff4 wff3 3 wff6 Educated Blackbeard lt hyp wff6 gt 1 supported proposition wff6 ll Please choose from the following hypotheses the one that you would least like to keep Lit wff1 all x Pirate x gt Educated x lt hyp wff1 gt 2 supported propositions wff7 wff1 Da wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp
2. The knowledge base thus far list asserted wffs wff7 Educated Blackbeard lt der wff2 wff5 gt lt der w f 1 wff5 gt wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt wff4 Criminal Blackbeard lt der wff5 gt wff3 Pirate Blackbeard lt der wff5 gt wff2 all x Criminal x gt Educated x lt hyp w 2 gt wff1 all x Pirate x gt Educated x lt hyp wff1 gt Blackbeard was educated triggers belief revision Educated Blackbeard A contradiction was detected within context default defaultct The contradiction involves the proposition you want to assert wff6 Educated Blackbeard lt hyp wff6 gt and the previously existing proposition wff7 Educated Blackbeard lt der wff2 wff 5 gt lt der wff1 wff5 gt You have the following options 1 a to attempt to resolve the contradiction automatically 2 c to continue anyway knowing that a contradiction is derivable 3 r to revise the inconsistent part of the context manually 4 d to discard this contradictory new assertion from the context please type a c r or d 36 gt lt Y In order to make the context consistent you must delete at least one hypothesis from each of the following sets of hypotheses wff6 wff5 wff1 w f6 wff5 wf 2 The hypotheses listed below are included in more than one set Removing one of these will make m
3. Contents Acknowledgments iii Abstract x 1 Introduction 1 1 1 Belief Revision ca A A A a we a 1 LIT UD lt a A AI EA OY 1 AN AMA III 2 LEX Theory Change o Finite Bases cisco aia 6 1 1 4 Epistemic Entrenchment oaa a 7 LLS PARECE 2 2 2 oa Sia ria ri iudi ma iaaa A 8 LA SaleContacton lt se scai eam aa e a RS AA AA A 8 1 1 7 Assumption based Truth Maintenance Systems 9 IILS Kamel Common lt lt 9 1 1 9 Prioritized Versus Non Prioritized Belief Revision 10 La ONG ee raras 12 iv 12 1 Description of the Systemi ici AAA 1 2 2 BelefChange iiS NePS es ces rs See eS ee ORE PES SE RS kas MOE zp ink e e a a e a a a n AA 2 New Belief Revision Algorithms ZA Problem Statement ENEE 2 1 1 Nonprioritized Belief Revision a oa 2 1 2 Prioritized Belief Revision lt lt isa carr aia A 2 2 Common Requirements for a Rational Belief Revision Algorithm 22 1 Primary Requirements lt lt eso is ERA A A 222 Supplementary R quireme t s e je A oa AA 2 3 Implementation co eee hee Ree EME SRE da HSE Zoo VARIOS So SSS OES ERS OER SS ESSE SS 23 2 SOG S total AMAN 2 3 3 Characterization 2 4 The Recovery Postulate 15 27 COMICIOS e dr ARA ARA 22 3 Changes to SNePS Manual 22 31 Now 5SNePSLOG Commands es es rss e A A 22 SLIT WNE o n ER CK RR POE PR are ana re 22 ob WHO rs mia a ea ee a Td Bee See A 23 S19 br emod 2 5 indeed edheGiaegGiaeGheGiud te Gass 26
4. There is simply no mechanism in place to do this So the procedures above do not in general satisfy the recovery postulate for belief revision Recovery would only be possible in the case where p was originally asserted solely as a hypothesis In this case the only beliefs lost during the initial revision would be those derived from p Those beliefs would be recovered as soon as p is reasserted as long as the rest of their origin sets are intact 21 2 5 Conjunctiveness Since only hypotheses are considered for removal by these procedures the conjunctiveness postu late EE3 is unnecessary If we have a and b as hypotheses and from these we derive a b then it is meaningless to compare a and a b because we do not consider the entrenchment of derived beliefs This is similarly true if we believe a b as a hypothesis and use it to derive a and to derive b 3 Changes to SNePS Manual 3 1 New SNePSLOG Commands 3 1 1 br mode Syntax br mode auto manual The br mode command is used to query or set the default behavior of belief revision e Default Setting In modes 1 and 2 the default setting for br mode is manual In mode 3 the the default setting for br mode is auto e br mode auto will cause SNeBR to always attempt automatic belief revision when a con tradiction is detected While this mode is active SNeBR will always resolve contradictions using the currently selected automated belief revision algorithm
5. A more practical model would include operations to be performed on finite belief sets or belief bases Such operators would be useful in supporting computer based implementa tions of revision systems Williams 1994 Hansson 1997 1999b discusses finite base analogues to the AGM operators An important dif ference between these two paradigms is the fact that the finite base operators cannot satisfy the closure and recovery postulates for AGM contraction Dixon 1993 Williams 1994 Obviously satisfaction of the closure postulate is not desirable since that would result in infinite theories Some argue that satisfaction of the recovery postulate is not desirable because it is inextricably tied to the consequence relation Williams 1994 Makinson 1987 Defense of recovery on the other hand is predicated upon the notion that contractions of a belief set should cause a minimal removal of information so minimal in fact that expansion by a contracted belief should be sufficient to recapture the original beliefs In this vein Johnson makes a compelling point that re covery is desirable in the case of belief revision with reconsideration Johnson 2006 35 42 i e iterated belief revision whereby a belief removed at one step no longer has a reason to be absent after the last step My new procedures do not satisfy the recovery postulate see 2 4 1 1 4 Epistemic Entrenchment Consider again the four scenarios in section 1 1 9
6. You automatically prioritized the new information over your existing beliefs So you were performing prioritized belief revision on your belief set 1 2 SNePS Except where otherwise noted all material in this section comes from Shapiro and The SNePS Implementation Group 2010 12 1 2 1 Description of the System SNePS is a logic frame and network based knowledge representation reasoning and acting system Its logic is based on Relevance Logic Shapiro 1992 a paraconsistent logic in which a contradiction does not imply anything whatsoever Shapiro and Johnson 2000 SNePS is di vided into several packages a few of which I discuss here SNePSLOG is an interface to SNePS in which information is entered in a predicate logic nota tion It is the interface through which my demonstrations are performed see 84 SNeRE the SNePS Rational Engine provides an acting system for SNePS based agents whose beliefs must change to keep up with a changing world Of particular interest is the believe ac tion which is used to introduce beliefs that take priority over all other beliefs at the time of their introduction 1 2 2 Belief Change in SNePS Every belief in a SNePS belief base has one or more support sets each of which consists of an origin tag and an origin set The origin tag will identify a belief as either being introduced as a hypothesis or derived note that it is possible for a belief to be both intro
7. be strictly minimally entrenched whenever multiple propositions are minimally en trenched within a minimally inconsistent set during the revision process For more information on how to set the epistemic ordering of propositions see the set order SNePSLOG command The portion of 8 5 2 Shapiro and The SNePS Implementation Group 2010 76 that reads as follows 29 2 The user may choose to continue in an inconsistent context That situation is not disastrous since SNePS uses a paraconsistent logica contradiction does not imply ir relevant other propositions will be modified to read 2 The user may choose to continue in an inconsistent context That situation is not disastrous since SNePS uses a paraconsistent logica contradiction does not imply ir relevant other propositions Once the user chooses to continue in an inconsistent con text the SNePSLOG prompt will be prefixed with an asterisk until consistency is restored 4 Annotated Demonstrations 4 1 Old Belief Revision Behavior 4 1 1 Manual Revision Example 1 Up until now belief revision in SNePS was performed manually A typical interaction might have gone like this Show supports expert 5 Ask the user what to do when belief revision is triggered br mode manual Automatic belief revision must now be manually selected All pirates are uneducated 30 all x Pirate x gt Educated x All criminals are uneducated
8. 27 break out of ModifyLoop 28 end if 29 end for 30 end loop 20 2 3 3 Characterization These algorithms perform an operation similar to incision functions Hansson 1994 since they select one or more propositions to be removed from each minimally inconsistent set Their output seems analogous to o 11 p A p where O is the incision function 1 is the kernel set operator from Hansson 1994 and p is a proposition But we are actually incising 2 the set of known no goods The known no goods are of course a subset of all no goods i e XC Dil p p This happens because SNeBR resolves contradictions as soon as they are discovered rather than performing inference first to discover all possible sources of contradictions The type of contraction eventually performed is similar to safe contraction Alchourron and Makinson 1985 except that there are fewer restrictions on our epistemic ordering 2 4 The Recovery Postulate When a contradiction occurs between a proposition p and another proposition p and p is retracted we also retract one or more beliefs from which p is derived as well as all beliefs that are derived from p If we were to immediately reassert p let us ignore for the moment that this will trigger belief revision again then while the beliefs derived from p may be reasserted any beliefs from which p was derived that were removed previously will not automatically be reasserted recovered
9. E and Makinson D 1982 On the logic of theory change Contraction functions and their associated revision functions Theoria 48 14 37 Alchourron C E and Makinson D 1985 On the logic of theory change Safe contraction Studia Logica 44 405 422 Cravo M R and Martins J P 1993 SNePSwD A newcomer to the SNePS family Journal of Experimental and Theoretical Artificial Intelligence 5Q 3 135 148 de Kleer J 1986 An assumption based TMS Artificial Intelligence 28 127 162 Dixon S 1993 A finite base belief revision system In Proceedings of ACSC 16 16th Australian Computer Science Conference volume 15 of Australian Computer Science Communications pages 445 451 Queensland University of Technology Brisbane Australia G rdenfors P 1982 Rules for rational changes of belief In Pauli T editor Philosophical Es says Dedicated to Lennart Aqvist on His Fiftieth Birthday number 34 in Philosophical Studies pages 88 101 Uppsala Sweden The Philosophical Society and the Department of Philosophy University at Uppsala G rdenfors P 1988 Knowledge in Flux Modeling the Dynamics of Epistemic States The MIT Press Cambridge Massachusetts G rdenfors P and Rott H 1995 Belief revision In Gabbay Hogger and Robinson editors Epistemic and Temporal Reasoning volume 4 of Handbook of Logic in Artificial Intelligence and Logic Programming pages 35 131 Clarendon Press Oxford H
10. It is worthwhile to examine the mechanism by which you decided exactly which belief s to retract in the scenarios presented In fact there is a similar mechanism at play in all of them Let us assume that the decision on which beliefs to retract from a belief set is made is based on the relative importance of each belief which is called its degree of epistemic entrenchment G rdenfors 1988 Then we need an ordering lt with which to compare the entrenchment of individual beliefs This ordering may be used to determine a selection function y with which to define a partial meet revision function It is because a different epistemic ordering is used in scenarios 2 and 3 from the one used in scenarios 4 and 5 that different choices are made on which belief to retract In fact prioritized revision is just the special case where new beliefs are always more entrenched than all existing beliefs Gardenfors 1988 presents rationality postulates for an epistemic ordering lt K is a belief set and A B and C are beliefs represents the contradictory belief set Such an ordering is a noncircular total preorder on all propositions EE1 For any A B and C if A lt Band B lt C then A lt C Transitivity EE2 For any A and B if A B then A lt B Dominance 7 EE3 For all A and B in K A lt A B or B lt A AB Conjunctiveness EE4 When K 4 1 A K iff A lt B for all B Minimality EES If B lt A for all B t
11. RemoveLoop or ModifyLoop will do work In the worst case only one will do work each time And they each may do work at most E times So the total running time for the procedure is O 2 s2 7 Conclusions My modified version of SNeBR provides decision procedures for belief revision in SNePS By pro viding a single resulting knowledge base these procedures essentially perform maxichoice revision for SNePS These procedures work equally well for both prioritized and nonprioritized belief re vision with subtle changes to the epistemic ordering required to perform the latter Using a well preorder belief revision can be performed completely automatically Given a total preorder it may be necessary to consult the user in order to simulate a well preorder The simulated well preorder need only be partially specified it is only necessary to query the user when multiple beliefs are minimally epistemically entrenched within a no good and even then only in the case where no other belief in the no good is already being removed In any event the epistemic ordering itself is user supplied My algorithm for revision given a well preorder uses asymptotically less time and space than the other algorithm which uses a total preorder 70 References Alchourron C E Gardenfors P and Makinson D 1985 On the logic of theory change Partial meet contraction and revision functions Journal of Symbolic Logic 20 510 530 Alchourron C
12. a proposition x the revision of A by x denoted A x is equal to Cn A gt x u x Revision of A by x therefore accomplishes the addition of x to A ina fashion that is guaranteed not to produce an inconsistent theory The mathematical reduction of revision to the form of contraction expressed above is called the Levi Identity Levi 1977 Gardenfors 1982 presents rationality postulates for revision functions 1 A is always a theory 2 xeA x 3 If x Cn A then A x Cn A U x 4 If x Cn then A x is consistent under Cn 5 If Cn x Cn y then A x A y 6 A x AA A x whenever A is a theory Postulate 1 is self explanatory Postulate 2 states that the revision of a belief set by a proposition results in a belief set containing that proposition Postulate 3 states that when the negation of a belief is not a consequence of a belief set then revision of that belief set by that belief will be the theory resulting from the closure under logical consequence of the expansion of the belief set by that belief Postulate 4 states that the revision of a belief set by a non contradictory proposition results in a consistent belief set It should be noted that this would hold even when the original belief set is contradictory since the contradic tory information would be contracted Otherwise x could be rederived since every belief is derivable from a contradictory set and so the contract
13. capture the essence of belief revision as seen in the papers mentioned above by using well specified epistemic ordering functions The demos have been edited for formatting and clarity The commands br tie mode auto and br tie mode manual indicate that Algorithm 1 and Algorithm 2 should be used respectively A wff is a well formed formula A wff followed by a period indicates that the wff should be asserted i e added to the knowledge base A wff followed by an exclamation point indicates that the wff should be asserted and that forward inference should be performed on it 4 3 1 SNePSwD I present a demonstration on how the automated belief revision behavior of Cravo and Martins 1993 can easily be duplicated by my new system Cravo and Martins 1993 uses a predeter mined manual ordering of propositions to do belief revision The ordering was constructed using a separate command that recorded metainformation about existing propositions outside of the object language of SNePS That behavior is replicated by the ordering function explicit The following demo is an adaptation of the automated belief revision demo from Cravo and Martins 1993 The descriptions are by and large taken from that article Formulae stating en trenchment orderings have been omitted from the output for clarity Show supports expert Always use automatic belief revision br mode auto Automatic belief revision will now be automatically se
14. guaranteed that at least one set o containing the current culprit is removed from X And we know that the cur rent culprit for that iteration is minimally entrenched in O We also know from EEsyeps2 that 64 each subsequently chosen culprit will be minimally entrenched in some set From lines 2 5 and AddLoop we know that subsequently chosen culprits will be less entrenched than the current cul prit From lines 2 5 we also see that all the other elements in o have higher entrenchment than the current culprit Therefore subsequent culprits cannot be elements in O So they cannot be used to eliminate O Obviously previous culprits were also not members of o Therefore if we exclude the current culprit from 7 then there will be a set in 2 that does not contain any element of T That is YT T c T gt JoloeLa Jt te T n 0 WIT c T gt J0 7 6 e a 3t Te 7 n0 WT UT c T gt Jo 0 v 31 1 T n0 or T c T gt 4o o gt 3tq te T n0 NT T CT gt Vo oe gt 4At te T a 0 Q E D 5 1 4 Decidability We see that DeleteLoop is executed once for each element in 2 which is a finite set So it always terminates We see that AddLoop terminates when 2 is empty And from lines 8 and 13 we see that at least one set is removed from 2 during each iteration of AddLoop So AddLoop always terminates Lines 2 4 involve finding a minimum element which is
15. or i for instructions please type a number OR d a r q or i gt lt gq In order to make the context consistent you must delete at least one hypothesis from the set listed below An inconsistent set of hypotheses T wff6 Educated Blackbeard lt hyp wff6 gt 2 supported propositions wff8 wff6 38 23 wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt 5 supported propositions wff8 wff7 wff5 wff4 wff3 3 wff2 all x Criminal x gt Educated x lt hyp w 2 gt 2 supported propositions wff7 wff2 Enter the list number of a hypothesis to examine or d to discard some hypothesis from this list a to see ALL the hypotheses in the full context r to see what you have already removed q to quit revising this set or i for instructions please type a number OR d a r q or i gt lt d Enter the list number of a hypothesis to discard cl to cancel this discard or q to quit revising this set gt lt sS ul The consistent set of hypotheses dos wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt 4 supported propositions wff7 wff5 wff4 wff3 Pipe wff2 all x Criminal x gt Educated x lt hyp w 2 gt 2 supported propositions wff7 wff2 Enter the list number of a hypothesis to examine or d to discard some hypothesis from this list a to see ALL the hypoth
16. right Blackbeard was a pirate Pirate Blackbeard All pirates are uneducfated Vx Pirate x gt Educated x Using the rules of classical first order logic the following fact is derivable Blackbeard was uneducated Educated Blackbeard But you know in your heart that Blackbeard was indeed an educated man Blackbeard was educated Educated Blackbeard If you choose to accept all of the above information as fact then you hold a contradictory set of beliefs That is you believe that Blackbeard both is and is not educated Educated Blackbeard A Educated Blackbeard We would say that your belief set is inconsistent In order to restore consistency you would need to contract some belief or remove a belief from your belief set The result would be a revision of your beliefs G rdenfors and Rott 1995 The problem of belief revision is that logical considerations alone do not tell you which beliefs to give up but this has to be decided by some other means What makes things more complicated is that beliefs in a database have logical consequences So when giving up a belief you have to decide as well which of its consequences to retain and which to retract G rdenfors and Rott 1995 In later sections I will discuss in detail how to make a choice of belief s to retract when presented with an inconsistent belief set 1 1 2 AGM Paradigm In G rdenfors 1982 Alchourron et al 1985 operators and rationality pos
17. 1 attends m2 p attends m1 p amp gt in afternoon m2 lt gt in morning m1 lt hyp w 4 gt w f3 all m meeting m gt xor in afternoon m in morning m lt hyp wf 3 gt wff2 all m work m gt attends m John and attends m Peter and attends m Philip lt hyp wff2 gt wff1 all m meeting m gt xor social m work m class m official m lt hyp wff1 gt As in Cravo and Martins 1993 we see that the meeting takes place in the morning according to Peter s preference Here unlike in Cravo and Martins 1993 the information about entrenchment orderings is contained in propositions in the object language of SNePS namely propositions of the form IsLessEntrenched This was done to take advantage of SNePS s reasoning capabilities when determining orderings 4 3 2 Says Who I present a demonstration on how the source credibility based revision behavior from Johnson and Shapiro 1999 is generalized by my changes to SNeBR In the following example the command set order source sets the epistemic ordering used by SNeBR to be a lisp function that compares two propositions based on the relative credibility of their sources Unsourced propositions are assumed to have maximal credibility The sources as well as their relative credibility are represented as meta knowledge in the SNePS knowledge base This was also done in Johnson and Shapiro 1999 and Shapiro an
18. 17 gt wff16 all x old x gt smart x lt hyp wff16 gt wff15 HasSource all x grad x gt smart x prof lt hyp wff15 gt wff14 all x grad x gt smart x lt hyp w 14 gt wff13 HasSource all x female x gt smart x sexist lt hyp w 13 gt wff12 all x female x gt smart x lt hyp w 12 gt wff11 HasSource all x jock x gt smart x nerd lt hyp wff11 gt wff10 all x jock x gt smart x lt hyp wff10 gt wff9 IsBetterSource fran sexist lt der wff3 wff4 wff5 gt wff8 IsBetterSource prof sexist lt der wff2 wff3 wff5 gt wff7 IsBetterSource holybook sexist lt der wff1 wff2 wff3 wff5 gt wff6 IsBetterSource holybook nerd lt der wff1 wff2 wff5 gt wff5 all z y x IsBetterSource y z IsBetterSource x y amp gt IsBetterSource x z lt hyp wf 5 gt wff4 IsBetterSource fran nerd lt hyp wff4 gt wff3 IsBetterSource nerd sexist lt hyp wff 3 gt wff2 IsBetterSource prof nerd lt hyp wff2 gt wff1 IsBetterSource holybook prof lt hyp wff1 gt Fran is an old female jock who is a graduate student asserted with forward inference and jock fran grad fran female fran old fran wff50 all x jock x gt smart x lt ext wff16 wff22 gt 59 lt ext w 14 wff22 gt wff24 smart fr
19. 32 New SNePSUL Commands ooo oco a soma soe a eee ee a OS 21 321 Demode o er deac eS SEES POMEROY ee ee eR 27 pe BOI eea ae ane E O T 28 LAr MOE r See dM Bi a RH BS HR a SI BS 28 A oe ee he SER Ree KEE KE SKE KS HERE R EES 29 4 Annotated Demonstrations 30 4 1 Old Belief Revision Behavior 462442 cansar 30 4 1 1 Manual Revision Example 1 o 30 4 1 2 Manual Revision Example 2 naoa a 35 vi 4 2 New Belief Revision Behavior 505005 eee 41 121 Algorithm 2 Example l ecos PERRERA 41 2a SACO 2 Example a ir AA AD ARA 44 4 2 3 Algorithm Example 2 42445 ecos 47 4 2 4 Prioritized Belief Revision Example 49 4 3 Capturing Old Results ond eed ee eH NR RR AE 51 43 1 SNePSwD occo geata ee ei See esi eee She eke dd S28 52 MAR ODSAD RARA ARA RAR RARAS 56 4 3 3 We World one oe ee sec so wea ae a 61 5 Analysis of Algorithm 1 64 5 1 Proofs of Satisfaction of Requirements by Algorithm 1 64 31 1 EEsyersl UCERO 2 ck kee RG ORS s RS ORS ESE ESS 64 5 1 2 EEsneps2 Minimal Entrenchment 2004 64 5 1 3 EEsneps3 Information Preservation 0 00002 eee 64 Mid Dee lt gt rs Seu pra SHE SEK SSE SEE SSS RHE See Oe 65 vii 5 1 5 Supplementary Requirement 6 4 6 cd ee de eh ord eee eee as 65 5 2 Complexity of Algorithm oe s ea he eh PR reso rs bind untana 66 zdl ADSL oo ee Ee OR RHR S EEO e OES HERES 66 52 2 Time C
20. Blackbeard and Criminal Blackbeard lt hyp w 5 gt Criminal Blackbeard lt der wff5 gt Pirate Blackbeard lt der wff5 gt all x Criminal x gt Educated x lt hyp w 2 gt all x Pirate x gt Educated x lt hyp wff1 gt Blackbeard was educated triggers belief revision Educated Blackbeard The revised knowledge base list asserted wffs wff9 wff8 wff6 wff5 wff4 wff3 all x Criminal x gt Educated x lt ext wff5 wff6 gt all x Pirate x gt Educated x lt ext wff5 wff6 gt Educated Blackbeard lt hyp wff6 gt Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt Criminal Blackbeard lt der w 5 gt Pirate Blackbeard lt der w 5 gt We see that wffl and wff2 being of minimal lexicographic rank were also least epistemically entrenched As a result they were chosen as culprits to restore consistency to the no goods in which they appeared Though it is not necessarily apparent nonprioritized belief revision was performed here as well 48 4 2 4 Prioritized Belief Revision Example In the following example prioritized belief revision is demonstrated Algorithm 2 is used Show supports expert Use mode 3 of SNePSLOG see manual set mode 3 Always attempt automatic belief revision br mode auto Automatic belief revisi
21. Manual belief revision will not be available e br mode manual will cause SNeBR to present the user with a list of options specifying how 22 to proceed when a contradiction is detected The user will be able to select manual belief revision ignore the contradiction and proceed with an inconsistent knowledge base or use the currently selected automated belief revision algorithm e br mode without any arguments will inform the user which of the above two modes is cur rently active 3 1 2 set order Syntax set order lt function name gt The set order command is used to choose the epistemic ordering function used by SNeBR during automated belief revision function name must be the name of a lisp function visible to the snepslog package The function referred to by function name must be a function of two arguments hs and rhs as follows func lhs rhs true iff Ihs lt rhs i e Ihs is not strictly more entrenched than rhs Ihs and rhs are wffs The user may define his her own ordering functions for use with set order or use one of the several built in functions described below e Default Setting In modes 1 and 2 the default order is null order In mode 3 the the default order is fluent e set order null order will cause all propositions to be equally entrenched 353 An order in which all propositions are equally entrenched defun null order lhs rhs 23 declare ignore lhs rhs t e set orde
22. ON THE USE OF EPISTEMIC ORDERING FUNCTIONS AS DECISION CRITERIA FOR AUTOMATED AND ASSISTED BELIEF REVISION IN SNEPS by Ari Ilan Fogel A thesis submitted to the Faculty of the Graduate School of the University at Buffalo State University of New York in partial fulfillment of the requirements for the degree of Master of Science Department of Computer Science and Engineering June 1 2011 UMI Number 1495431 All rights reserved INFORMATION TO ALL USERS The quality of this reproduction is dependent on the quality of the copy submitted In the unlikely event that the author did not send a complete manuscript and there are missing pages these will be noted Also if material had to be removed a note will indicate the deletion UMI Dissertation Publishing UMI 1495431 Copyright 2011 by ProQuest LLC All rights reserved This edition of the work is protected against unauthorized copying under Title 17 United States Code ProQuest LLC 789 East Eisenhower Parkway P O Box 1346 Ann Arbor MI 48106 1346 Copyright by Ari Fogel 2011 11 Acknowledgments I would like to express my deepest thanks to my major professor Dr Stuart Shapiro who has been a wonderful mentor these past two years It was he who introduced me to knowledge repre sentation and he has been extremely influential in shaping the direction of my academic career Throughout our interactions I have always taken his comments to heart H
23. Source holybook nerd lt der wff1 wff2 wff5 gt wff5 all z y x IsBetterSource y z IsBetterSource x y amp gt IsBetterSource x z lt hyp wf 5 gt wff4 IsBetterSource fran nerd lt hyp wff4 gt wff3 IsBetterSource nerd sexist lt hyp wff 3 gt wff2 IsBetterSource prof nerd lt hyp wff2 gt 60 wff1 IsBetterSource holybook prof lt hyp wff1 gt We see that the statements that all jocks are not smart and that all females are not smart are no longer asserted at the end These statements supported the statement that Fran is not smart The statements that all old people are smart and that all grad students are smart supported the statement that Fran is smart The contradiction was resolved by contracting Fran is not smart since the sources for its supports were less credible than the sources for Fran is smart 4 3 3 Wumpus World I present a demonstration on how the state constraint based revision behavior from Shapiro and Kandefer 2005 1s generalized by my changes to SNeBR The command set order fluent says that propositional fluents are strictly less entrenched than non propositional fluents The fluent order was created specifically to replace the original belief revision behavior of the SNeRE believe act In the version of SNeBR used in Shapiro and Kandefer 2005 propositions of the form andor lt 0 1 gt 1 p1 p2 were assumed to be state contraints while th
24. a decision procedure Line 5 performs sorting which is also a decision procedure Since every portion of Algorithm 1 always terminates itis a decision procedure Q E D 5 1 5 Supplementary Requirement Algorithm 1 is a fully automated procedure that makes no queries of the user Q E D 65 5 2 Complexity of Algorithm 1 5 2 1 Space Complexity Algorithm 1 can be run completely in place i e it can use only the memory allocated to the input with the exception of the production of the set of culprits T Let us assume that the space needed to store a single proposition is O 1 memory units Since we only need to remove one proposition from each no good to restore consistency algorithm 1 uses O 2 memory units 5 2 2 Time Complexity The analysis for time complexity is based on a sequential procesing system Let us assume that we implement lists as array structures Let us assume that we may determine the size of an array in O 1 time Let us also assume that performing a comparison using lt lt takes O 1 time Then in lines 2 4 for each array O we find the minimum element o and perform a swap on two elements at most once for each element in O If we let Smax be the cardinality of the largest o in 2 then lines 2 4 will take O X Smax time In line 5 we sort the no goods positions in using their first elements as keys This takes O Z log 2 time Lines 7 16 iterate through the elements of at most once for e
25. a subset of the total preorder we are given then algorithm 1 will be suitable Otherwise we can simulate a well preorder lt through an iterative construction by querying the user for the minimally entrenched proposition of a particular set of propositions at appropriate times in the belief revision process Algorithm 2 accomplishes just this 19 Algorithm 2 Algorithm to compute T given a total preorder Input 2 lt Output 7 T gG 2 MainLoop 3 loop 4 5 6 ListLoop for all o 2 1 lt i lt El do Make a list lo of all minimally entrenched propositions i e propositions that are not strictly more entrenched than any other among those in oj using lt as a comparator 7 end for 8 RemoveLoop 9 for all 0 2 1 lt i lt do 10 if According to O has exactly one minimally entrenched proposition p AND the other propositions in O are not minimally entrenched in any other no good via an g 1 lt j lt i A j then 11 T lt TU p 12 for all Ocurrent X do 13 if p Ocurrent then 14 2 lt E Ocurrent 15 end if 16 end for 17 if then 18 return T 19 end if 20 end if 21 end for 22 ModifyLoop 23 forall o do 24 if o has multiple minimally entrenched propositions then 25 query which proposition of the minimally entrenched propositions is least desired 26 Modify lt so that is strictly less entrenched than those other propositions
26. ach element in 2 During each such iteration a search is performed for an element within a no good Also during each iteration through all the no goods at least one O is removed though this does not help asymptotically Since the no goods are not sorted the search takes linear time in smax So lines 7 16 take O z Smax time Therefore the running time is O Z 7 Snax time Note that the situation changes slightly if we sort the no goods instead of just placing the minimally entrenched proposition at the front as in lines 2 4 In this case each search through a no good will take O og Smax time yielding a new total time of O El max 108 Smax 66 log Smax 6 Analysis of Algorithm 2 6 1 Proofs of Satisfaction of Requirements by Algorithm 2 I show that Algorithm 2 satisfies the requirements established in section 2 6 1 1 EEsvepsl Sufficiency Since every set of propositions must contain at least one proposition that is minimally entrenched at least one proposition is added to the list in each iteration of ListLoop In the worst case assume that for each iteration of MainLoop only either RemoveLoop or ModifyLoop do any work We know that at least this much work is done for the following reasons if ModifyLoop cannot operate on any no good during an iteration of MainLoop then all no goods have only one minimally entrenched proposition So either RemoveLoop s condition at line 10 would hold or 1 A no
27. all x Criminal x gt Educated x Blackbeard was a pirate and a criminal and Pirate Blackbeard Criminal Blackbeard The knowledge base thus far list asserted wffs wff7 Educated Blackbeard lt der wff2 wff5 gt lt der w f 1 wff5 gt wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt wff4 Criminal Blackbeard lt der wff5 gt wff3 Pirate Blackbeard lt der wff5 gt wff2 all x Criminal x gt Educated x lt hyp w 2 gt wff1 all x Pirate x gt Educated x lt hyp wff1 gt Blackbeard was educated triggers belief revision Educated Blackbeard A contradiction was detected within context default defaultct The contradiction involves the proposition you want to assert wff6 Educated Blackbeard lt hyp wff6 gt and the previously existing proposition wff7 Educated Blackbeard lt der wff2 wff 5 gt lt der wff1 wff5 gt You have the following options 1 a to attempt to resolve the contradiction automatically 2 c to continue anyway knowing that a contradiction is derivable 3 r to revise the inconsistent part of the context manually 4 d to discard this contradictory new assertion from the context please type a c r or d 31 gt lt Y In order to make the context consistent you must delete at least one hypothesis from each of the following sets of hyp
28. an lt der wff16 wff22 gt lt der w f14 w 22 gt The resulting knowledge base list asserted wffs wff50 all x jock x gt smart x lt ext wff16 wff22 gt lt ext wf 14 wff22 gt wff37 all x female x gt smart x lt ext wff16 wff22 gt wff24 smart fran lt der wff16 wff22 gt lt der wff14 wff22 gt wff23 HasSource old fran and female fran and grad fran and jock fran fran lt hyp w 23 gt wff22 old fran and female fran and grad fran and jock fran lt hyp w 22 gt wff21 old fran lt der w 22 gt wff20 female fran lt der w 22 gt wff19 grad fran lt der w 22 gt wff18 jock fran lt der w 22 gt wff17 HasSource all x old x gt smart x holybook lt hyp wff17 gt wff16 all x old x gt smart x lt hyp wff16 gt wff15 HasSource all x grad x gt smart x prof lt hyp wff15 gt wff14 all x grad x gt smart x lt hyp wff14 gt wff13 HasSource all x female x gt smart x sexist lt hyp w 13 gt wff11 HasSource all x jock x gt smart x nerd lt hyp wff11 gt wff9 IsBetterSource fran sexist lt der wff3 wff4 wff5 gt wff8 IsBetterSource prof sexist lt der wff2 wff3 wff5 gt wff7 IsBetterSource holybook sexist lt der wff1 wff2 wff3 wff5 gt wff6 IsBetter
29. ansson S O 1994 Kernel contraction The Journal of Symbolic Logic 39 3 845 859 71 Hansson S O 1997 Semi revision Journal of Applied Non Classical Logics 7 2 151 175 Hansson S O 1999a A survey of non prioritized belief revision Erkenntnis 50 413 427 Hansson S O 1999b A Textbook of Belief Dynamics Theory Change and Database Updating Kluwer Academic Publishers Dordrecht Boston Johnson F L 2006 Dependency directed reconsideration an anytime algorithm for hindsight knowledge base optimization PhD thesis State University of New York at Buffalo Buffalo NY USA Johnson F L and Shapiro S C 1999 Says Who Incorporating Source Credibility Issues into Belief Revision Technical Report 99 08 Department of Computer Science and Engineering and Center for Multisource Information Fusion and Center for Cognitive Science State University of New York at Buffalo Buffalo NY Lakemeyer 1991 On the relation between explicit and implicit beliefs In Proceedings of the Second International Conference on Principles of Knowledge Representation and Reasoning pages 368 375 Morgan Kaufmann Levi I 1977 Subjunctives dispositions and changes Synthese 34 423 455 Makinson D 1987 On the status of the postulate of recovery in the logic of theory change Journal of Philosophical Logic 16 383 394 Martins J P and Shapiro S C 1988 A model for belief revision Artificial Int
30. ase choose from the following hypotheses the one that you would least like to keep Ti wff1 all x Pirate x gt Educated x lt hyp wff1 gt 2 supported propositions wff7 wff1 2 i wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt 4 supported propositions wff7 wff5 wff4 wff3 E wff6 Educated Blackbeard lt hyp wff6 gt 1 supported proposition wff6 gt lt 3 The revised knowledge base list asserted wffs wff7 Educated Blackbeard lt der wff2 wff5 gt lt der wff1 wff5 gt wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt wff4 Criminal Blackbeard lt der wff5 gt wff3 Pirate Blackbeard lt der wf 5 gt wff2 all x Criminal x gt Educated x lt hyp w 2 gt wff1 all x Pirate x gt Educated x lt hyp wff1 gt Again the user was only asked to provide enough information necessary to resolve the contra diction and was not given complete power to alter the knowledge base More importantly SNeBR was able to recognize after the second query that it was not necessary to remove wff2 the proposi tion selected as minimal in the first query This is because wff6 the proposition selected as minimal 46 in the second query was present in both no goods Also note that wff6 the last proposition to be asserted was contracted This is a therefore a prime example of no
31. believe that Your belief set S consists of e Blackbeard was a pirate Pirate Blackbeard e All pirates are uneducated 10 Vx Pirate x gt Educated x e Consequently Blackbeard was not educated Educated Blackbeard Now consider these five scenarios 1 You are told that Blackbeard was educated You weigh this notion against your previous beliefs end up deciding that it is not reasonable and reject it Your belief set S has not changed 2 You are told that Blackbeard was educated You weigh this notion against your previous beliefs end up deciding that it is reasonable and accept it as fact As a result you abandon your prejudice and discontinue holding the belief that all pirates are uneducated That is you retract Educated Blackbeard from your belief set S using a selection function y as in 1 1 2 part 4 that removes Vx Pirate x gt Educated x over Pirate Blackbeard 3 You are told that Blackbeard was educated You weigh this notion against your previous beliefs end up deciding that it is reasonable and accept it as fact You are a persistent bigot so you discontinue holding the belief that Blackbeard was ever a real pirate you prefer to believe that no pirate is educated That is you retract Educated Blackbeard from your belief set S using a selection function y as in section 1 1 2 part 4 that removes Pirate Blackbeard over Vx Pirate x gt Educated x 4 You are
32. ce A _ x lhs source rhs tell askwh _HasSource A x rhs cond and source lhs source rhs let source lhs term cdr assoc x first source lhs source rhs term cdr assoc x first source rhs not tell ask IsBetterSource A _ A source lhs term source rhs term source rhs nil t t 23 e set order fluent will cause all propositions to be equally entrenched except as follows If pred sym is contained in the fluents list in lisp then any proposition whose predicate symbol is pred sym will be strictly less entrenched than every proposition whose predicate symbol is not contained in the f uents list Note that this ordering uses meta information outside of the object language of SNePS in order to determine relative entrenchment of propositions 55 Description An ordering function that causes propositional fluents to oe be less epistemically entrenched than non fluent vee Propositions is a fluent or the rhs argument is not defun fluent lhs rhs or is fluent lhs not is fluent rhs 33 Description Returns t iff the function symbol for n is a fluent 33 Arguments n a node defun is fluent n let pred relation predicate n when and pred listp pred setf pred get node name car pred member pred xfluents 3 1 3 br tie mode Syntax br tie mode auto manual The br tie mode command is
33. consistent but every known derivation of an inconsistency has been eliminated If the SNeRE believe act is performed on the proposition p it is assumed that belief in p is to take priority over any contradictory belief Therefore SNeBR behaves as follows 1 If andor 0 0 p is believed as an hypothesis it is chosen as the culprit If it is a derived belief assisted culprit choosing is done 2 If andor i 1 p q G is either 0 or 1 is believed and q is believed as an hypoth esis then q is chosen as the culprit If q is a derived belief assisted culprit choosing is done Shapiro and The SNePS Implementation Group 2010 So automatic belief revision in this incarnation of SNeBR is heavily dependent on syntax Ad ditionally it is not extensible My modified SNeBR addresses these limitations andor 0 0 means that every proposition within the braces is false p is represented in SNePS as an dor 0 0 p andor i 1 means that at least i and at most 1 of the propositions within the braces is true 14 2 New Belief Revision Algorithms 2 1 Problem Statement 2 1 1 Nonprioritized Belief Revision Suppose we have a knowledge base that is not known to be inconsistent and suppose that at some point we add a contradictory belief to that knowledge base Either that new belief directly contra dicts an existing belief or we derive a belief that directly contradicts an existing one as a result of perfo
34. d Johnson 2000 As with explicit the source function makes SNePSLOG queries to determine sources of propositions and credibility of sources using the askwh and ask commands Shapiro and The SNePS Implementation Group 2010 seen in quotes This allows it to perform inference in making these determinations 56 Here we see that the nerd and the sexist make the generalizations that all jocks are not smart and all females are not smart respectively while the holy book and the professor state that all old people are smart and all grad students are smart respectively Since Fran is an old female jock graduate student there are two sources that would claim she is smart and two that would claim she is not However the sources claiming she is smart are more credible than those claiming otherwise So the generalizations about jocks and females are discarded In fact their negations are asserted since belief revision in SNePS provides a mechanism for negation introduction Show supports expert br mode auto Automatic belief revision will now be automatically selected br tie mode manual The user will be consulted when an entrenchment tie occurs Use source credibilities as epistemic ordering criteria set order source The holy book is a better source than the professor IsBetterSource holybook prof The professor is a better source than the nerd IsBetterSource prof nerd The nerd is a better s
35. direction x define frame Facing nil onfloor Use an entrenchment ordering that favors non fluents over luents set order fluent Establish what kinds of propositions are fluents specifically iii That the agent is facing some direction is a fact that may NAL change over time setf fluentsx Facing The agent is Facing west Facing west At any given time the agent is facing either north south east or west asserted with forward inference xor Facing north Facing south Facing east Facing west 62 The knowledge base as it stands list asserted wffs wff8 Facing north lt der wff1 wff5 gt wff7 Facing south lt der wff1 wff5 gt wfif6 Facing east lt der wff1 wff 5 gt wff5 xor Facing east Facing south Facing north Facing west lt hyp w 5 gt wffl Facing west lt hyp wff1 gt Tell the agent to believe it is now facing east perform believe Facing east The resulting knowledge base list asserted wffs wff10 Facing west lt ext wff4 wff5 gt wff8 Facing north lt der wffl wff5 gt lt der wff4 wff5 gt wff7 Facing south lt der wffl wff5 gt lt der wff4 wff5 gt wff5 xor Facing east Facing south Facing north Facing west lt hyp wff5 gt wff4 Facing east lt hyp wff4 gt There are three propositions in the no
36. duced as a hypothesis and derived from other beliefs The origin set contains those hypotheses that were used to derive the belief In the case of the origin tag denoting a hypothesis the corresponding origin set would be a singleton set containing only the belief itself The contents of the origin set of a derived belief are computed by the implemented rules of inference at the time the inference is drawn Martins and Shapiro 1988 Shapiro 1992 The representation of beliefs in SNePS lends itself well to the creation of processes for con 13 traction and revision Specifically in order to contract a belief one must merely remove at least one hypothesis from each of its origin sets Similarly prioritized revision by a belief b where b 1s already believed is accomplished by removing at least one belief from each origin set of b Non prioritized belief revision under this paradigm is a bit more complicated I discuss both types of revision in more detail in 82 1 2 3 SNeBR SNeBR The SNePS Belief Revision subsystem is responsible for resolving inconsistencies in the knowledge base as they are discovered In the current release of SNePS version 2 7 1 SNeBR is able to automatically resolve contradictions under a limited variety of circumstances Otherwise assisted culprit choosing is performed where the user must manually select culprits for removal After belief revision is performed the knowledge base might still be in
37. e Minimally inconsistent sets of formulae 4 On each of which is a subset of O the no goods e A set X 01 On the set of all the no goods The algorithm should produce a culprit set T that satisfies the following conditions EEsneprs1 Volo e X gt At t e T n 0 Sufficiency EEsneps2 VT TET gt Jol oe XaAtEGAYwW wE oO gt T lt w Minimal Entrenchment EEsneps3 VT T c T gt Vo o L gt 31 7 T a 0 Information Preservation Condition EEsyepsl states that T contains at least one formula from each set in X Condition EEsneps2 states that every formula in T is a minimally entrenched formula of some set in 2 Condition EEsyeps3 states that if any formula is removed from T then Condition EEsyepsl will no longer hold In addition to the above conditions the algorithm must terminate on all possible inputs i e it must be a decision procedure 2 2 2 Supplementary Requirement In any case where queries must be made of the user in order to determine the relative epistemic ordering of propositions the number of such queries must be kept to a minimum 17 2 3 Implementation I present algorithms to solve the problem as stated Where I refer to lt below I am using the prioritized entrenchment ordering from 82 1 In the case of nonprioritized revision we may assume that P 2 3 1 Using a well preorder Let lt lt be the output of a function f whose input is a total p
38. e inner propositions P1 p2 etc were assumed to be fluents The fluents were less entrenched than the state constraints We see that the ordering was heavily syntax dependent In my new version the determination of which propositions are fluents is made by checking for membership of the predicate symbol of an atomic proposition in a list called xfluents which 1s defined by the user to include the predicate symbols of all propositional fluents So the entrench ment ordering defined here uses metaknowledge about the knowledge base that is not represented in the SNePS knowledge base The command br tie mode manual indicates that Algorithm 2 should be used Note that the xor connective Shapiro 2010 used below replaces instances of an dor 1 1 from Shapiro and Kandefer 2005 The command perform believe wff is identical to the command wf f except that the former causes wf f to be strictly more entrenched 61 than every other proposition during belief revision That is wf f is guaranteed to be safe unless wf is itself a contradiction So we would be using prioritized belief revision Show supports expert Always use automatic belief revision br mode auto Automatic belief revision will now be automatically selected Use algorithm 2 br tie mode manual Entrenchment ties will now be automatically broken The user will be consulted when an entrenchment tie occurs 2 Facing x The agent is facing
39. elligence 35 1 25 79 Shapiro S C 1992 Relevance logic in computer science Section 83 of Alan Ross Anderson and Nuel D Belnap Jr and J Michael Dunn et al Entailment Volume IT pages 553 563 Princeton University Press Princeton NJ 12 Shapiro S C 2010 Set oriented logical connectives Syntax and semantics In Lin F Sattler U and Truszczynski M editors Proceedings of the Twelfth International Conference on the Principles of Knowledge Representation and Reasoning KR2010 pages 593 595 AAAI Press Shapiro S C and Johnson F L 2000 Automatic belief revision in SNePS In Baral C and Truszczynski M editors Proceedings of the 8th International Workshop on Non monotonic Reasoning NMR2000 unpaginated 5 pages Shapiro S C and Kandefer M 2005 A SNePS Approach to the Wumpus World Agent or Cassie Meets the Wumpus In Morgenstern L and Pagnucco M editors IJCAI 05 Workshop on Nonmonotonic Reasoning Action and Change NRACO5 Working Notes pages 96 103 Shapiro S C and The SNePS Implementation Group 2010 SNePS 2 7 1 USER S MANUAL Department of Computer Science and Engineering University at Buffalo The State University of New York 201 Bell Hall Buffalo NY 14260 2000 Williams M A 1994 On the logic of theory base change In MacNish C Pearce D and Pereira L editors Logics in Artificial Intelligence volume 838 of Lecture Notes in Computer Science pag
40. enchment tie occurs Use an entrenchment ordering where every proposition is 44 1 r minimally entrenched set order null order All pirates are uneducated all x Pirate x gt Educated x All criminals are uneducated all x Criminal x gt Educated x Blackbeard was a pirate and a criminal andor Pirate Blackbeard Criminal Blackbeard The knowledge base thus far list asserted wffs wff7 wff5 wff4 wff3 wff2 wff1 Blackbeard was educated Pirate Blackbeard and Criminal Blackbeard Criminal Blackbeard lt der wff5 gt all x Criminal x gt Educated x Educated Blackbeard all x Pirate x gt Educated x Pirate Blackbeard lt der wff5 gt triggers belief revision Educated Blackbeard lt der wff2 wff5 gt lt der wff1 wff5 gt lt hyp w 5 gt lt hyp wff2 gt lt hyp wff1 gt Please choose from the following hypotheses the one that you would least like to keep wff2 all x Criminal x gt Educated x lt hyp w 2 gt 2 supported propositions wff7 wff2 wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt 4 supported propositions w 7 wff5 wff4 wff3 45 Bn wff6 Educated Blackbeard lt hyp wff6 gt 1 supported proposition wff6 gt lt 1 Ple
41. es 86 105 Springer Berlin Heidelberg 13
42. eses in the full context r to see what you have already removed q to quit revising this set or 39 i for instructions please type a number OR d a r q or i gt lt d Enter the list number of a hypothesis to discard c to cancel this discard or ql to quit revising this set gt 2 The consistent set of hypotheses TA wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp wff5 gt 3 supported propositions wff5 wff4 wff3 Enter the list number of a hypothesis to examine or d to discard some hypothesis from this list a to see ALL the hypotheses in the full context r to see what you have already removed q to quit revising this set or i for instructions please type a number OR d a r q or i gt q Do you want to add a new hypothesis no The revised knowledge base list asserted wffs wff10 nand Educated Blackbeard all x Criminal x gt Educated x lt ext wff5 gt wff5 and Pirate Blackbeard Criminal Blackbeard lt hyp w 5 gt wff4 Criminal Blackbeard lt der wff5 gt wff3 Pirate Blackbeard lt der w 5 gt 40 This example is even more problematic The user removed far more than was necessary in order to resolve the contradiction Further on that note the user chose to remove wff6 from the second no good after removing a proposition from the first no good Had the no goods been presented i
43. esis from this list a to see ALL the hypotheses in the full context r to see what you have already removed q to quit revising this set or i for instructions please type a number OR d a r q or i gt lt gq In order to make the context consistent you must delete at least one hypothesis from the set listed below An inconsistent set of hypotheses T wff6 Educated Blackbeard lt hyp wff6 gt 2 supported propositions wff8 wff6 33 23 wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt 5 supported propositions wff8 wff7 wff5 wff4 wff3 3 wff2 all x Criminal x gt Educated x lt hyp w 2 gt 2 supported propositions wff7 wff2 Enter the list number of a hypothesis to examine or d to discard some hypothesis from this list a to see ALL the hypotheses in the full context r to see what you have already removed q to quit revising this set or i for instructions please type a number OR d a r q or i gt lt d Enter the list number of a hypothesis to discard cl to cancel this discard or q to quit revising this set gt lt 2 The consistent set of hypotheses dos wff6 Educated Blackbeard lt hyp wff6 gt 1 supported proposition wff6 Pipe wff2 all x Criminal x gt Educated x lt hyp w 2 gt 1 supported proposition wff2 Enter the list number of a h
44. good has multiple minimally entrenched propositions causing ModifyLoop to do work This contradicts our assumption that ModifyLoop could not do any work during this iteration of MainLoop so we set this possibility aside 2 Some proposition p is a non minimally entrenched proposition in some no good On and a minimally entrenched one in another no good Om In this case either p is removed during the iteration of RemoveLoop where Om is considered or there is another proposition p in Om that is not minimally entrenched in Om but is in O This chaining must eventually terminate at a no good Om Final since lt is transitive and 2 is finite And the final proposition in the chain P final must be the sole minimally entrenched proposition in Ofingi since otherwise ModifyLoop would 67 have been able to do work for this iteration of MainLoop which is a contradiction ModifyLoop can only do work once for each no good so eventually its work is finished If ModifyLoop has no more work left to do then RemoveLoop must do work at least once for each iteration of MainLoop And in doing so it will create a list of culprits of which each no good contains at least one Q E D 6 1 2 EEsyeps2 Minimal Entrenchment Since propositions are only added to T when the condition in line 10 is satisfied it is guaranteed that every proposition in T is a minimally entrenched proposition in some no good o 6 1 3 EEsveps3 Information Preservation From li
45. good when revision is performed Facing west Facing east and xor 1 1 Facing Facing east is not considered for re moval since it was prioritized by the believe action The state constraint xor 1 1 Facing remains in the knowledge base at the end because it is more entrenched than Facing west a propositional fluent which is ultimately removed 63 5 Analysis of Algorithm 1 5 1 Proofs of Satisfaction of Requirements by Algorithm 1 I show that Algorithm 1 satisfies the requirements established in section 2 5 1 1 EEsvepsl Sufficiency During each iteration of AddLoop an element T is added to T from some o 2 Then each set O containing T is removed from 2 The process is repeated until 2 is empty Therefore each removed set o in contains some T in T Note that each o will be removed from by the end of the process So Vo o E gt Jt te T n 0 Q E D 5 1 2 EEsneps2 Minimal Entrenchment From lines 8 9 we see that T is comprised solely of first elements of sets in 2 And from lines 2 4 we see that those first elements are all minimal under lt lt relative to the other elements in each set Since Ve e2 lt e lt ez gt e1 lt e2 those first elements are minimal under lt as well That is VT TET gt JI0 OELATEO AVwW we O gt 7 lt w QED 5 1 3 EEsneps3 Information Preservation From the previous proof we see that during each iteration of AddLoop we are
46. hen A EE1 is self explanatory EE2 states that we should prefer to remove a belief from which a second belief may be derived than to remove the second derived belief The reason is that the derived belief may be rederived otherwise EE3 when combined with EE1 and EE2 states that we must remove either A or B to remove A B EE4 states that propositions that are less entrenched than all other propositions are not in K unless K is contradictory EE5 states that propositions with maximal entrenchment are theorems Postulate EE3 does not apply to SNeBR see 2 5 due to the distinction between hypotheses and derived beliefs Postulate EE4 does not apply to SNeBR since only propositions within a belief base are ever considered for removal when an inconsistency is detected 1 1 5 Ensconcements Ensconcements introduced in Williams 1994 consist of a set of forumlae together with a to tal preorder on that set They can be used to construct epistemic entrenchment orderings and determine theory base change operators 1 1 6 Safe Contraction In Alchourron and Makinson 1985 the operation safe contraction is introduced Let lt be a non circular relation over a belief set A An element a of A is safe with respect to x iff a is not a minimal element of any minimal subset B of A such that x e Cn B Let A x be the set of all 8 elements of A that are safe with respect to x Then the safe contraction of A by x den
47. inimally inconsistent set e br tie mode without any arguments will inform the user which algorithm is currently being used for automated belief revision 3 2 New SNePSUL Commands 3 2 1 br mode Syntax br mode t nil 27 e Default Setting The default setting for br mode in SNePSUL is nil e br mode t in SNePSUL will do the equivalent of entering br mode auto in SNePSLOG e br mode nil in SNePSUL will do the equivalent of entering br mode manual in SNePSLOG 3 2 2 set order Syntax set order lt function name gt function name must be the name of a lisp function visible to the sneps package In order to use one of the built in ordering functions function name must be prefixed with snep slog e g snepslog fluent e Default Setting The default setting for set order in SNePSUL is snepslog null order e set order function name will do the equivalent of entering set order function name in SNeP SLOG 3 2 3 br tie mode Syntax br tie mode t nil e Default Setting The default setting for br tie mode in SNePSUL is nil e br tie mode t in SNePSUL will do the equivalent of entering br tie mode auto in SNeP SLOG e br tie mode nil in SNePSUL will do the equivalent of entering br tie mode manual in SNePSLOG 28 3 3 Updates If the SNeRE believe act is performed on the proposition p it is assumed that belief in p is to take priority over any contradictory belief Therefore SNeBR behaves as foll
48. ion seen in the Levi Identity would not really have occurred Postulate 5 states that if we may conclude the same things from two propositions by logical consequence then the belief set resulting from revision of a belief set by either one those propositions will be the same Postulate 6 states that the common elements of A and the revision of A by x are in fact the elements of the contraction of A by x when A is a theory This follows trivially from the Levi Identity The type of revision accomplished by the above operator may be thought of as prioritized its RHS argument is added to the LHS belief set at the possible expense of pre existing beliefs That is it prioritizes the RHS over other beliefs in the belief set This follows from postulate 2 I will discuss this notion in more detail in section 1 1 9 Partial Meet Contraction and Revision Let Alx be the set of all maximal subsets B of A such that B x Alchourron et al 1985 We say that a maxichoice contraction function maxi is one such that A maxi x is an arbitrary member of Ax when the latter is nonempty or else equal to A itself Alchourron and Makinson 1982 The full meet contraction A gt fm x is defined as A_Lx when A is nonempty or else A itself In Alchourron and Makinson 1982 it is shown that the result of full meet contraction is generally far too small to be of use Let y be a function such that for all A x y ALx is a nonempty subset of Ax
49. is wisdom and scholar ship and patience have been an example to me qualities I can only hope someday to attain to a similar degree I would like to thank Prof William Rapaport for serving on my thesis committee His comments have been invaluable in the course of my research He also opened up the world of teaching to me as a green TA He has been a great boss a veritable instructor in instruction I have since had the opportunity to teach my own courses for which I owe him a debt of gratitude I offer sincerest thanks to Prof Russ Miller who provided excellent critique on my algorithmic analysis days before a deadline His comments have been integrated into this thesis and are much appreciated I also want to thank Prof Alan Selman He taught the first course I attended in graduate school which was incidentally the most difficult course I have ever taken in my life And thus he prepared me for everything to follow Mom and Dad you have been a constant source of encouragement in my life You have always taught me to hold education in the highest regard to give it the highest priority My accomplish ments are a testament to your values Ayelet you were always there for me in hard times growing up Yoni you are quite literally the reason I am a computer scientist Daniel Pve always appre ciated your advice over the years even especially when I haven t taken it You ve all made me who I am today I love you all 111
50. lected 32 Use algorithm 2 br tie mode manual The user will be consulted when an entrenchment tie occurs Use an entrenchment ordering where relative entrenchment is manually specified set order explicit There are four kinds of meetings official meetings classes work Meetings and social meetings Any meeting will be of exactly one of these types all m meeting m gt xorf official m class m work m social m Philip Peter and John will attend work meetings all m work m gt and attends m Philip attends m Peter attends m John Any meeting will be either in the morning or the afternoon but not both all m meeting m gt xor in morning m in afternoon m If the same person attends two different meetings then one of the meetings has to be in the morning and the other in the afternoon all m1 m2 p attends m1 p attends m2 p amp gt in morning m1 lt gt in afternoon m2 Peter prefers meetings in the morning all m attends m Peter gt in morning m John prefers meetings in the afternoon all m attends m John gt in afternoon m i7 Philip prefers meetings in the morning all m attends m Philip gt in morning m 53 1 5 wisa meeting w 5 wisa work w Philip IsLessEn John s IsLessEn The pr inform IsLes
51. lief revision Alchourron et al 1985 the input sentence is always accepted This is clearly an unrealistic feature and several models of belief change have been proposed in which no absolute priority is assigned to the new information due to its novelty One way to construct non prioritized belief revision is to base it on the following two step process First we decide whether to accept or reject the input After that if the input was accepted it is incorporated into the belief state Hansson 1999a Hansson goes on to describe several other models of nonprioritized belief revision but they all have one unifiying feature distinguishing them from prioritized belief revision the input i e the RHS argument to the revision operator is not always accepted To reiterate Prioritized belief re vision is revision in which the proposition by which the set is revised is always present in the result as long as it is not a contradiction Non prioritized belief revision is revision in which the RHS argument to the revision operator is not always present in the result even if it is not a contradiction The closest approximation of revision in SNePS by Hansson is the operation of semi revision Hansson 1997 Semi revision is a type of non prioritized belief revision that may be applied to belief bases So it is a bridge between the AGM paradigm and SNePS revision as we shall see in 1 2 Let us revisit the example from 81 1 1 You
52. max units of time where is the set of distinct minimally inconsistent sets and Smax 18 the number of propositions in the largest minimally inconsistent set The second procedure uses O Z s2 space and O E sZ ax time The examples provided herein demonstrate that the new procedures generalize previous work on belief revision in SNePS 1 Introduction 1 1 Belief Revision At its most basic level belief revision refers to the general problem of changing belief states Gardenfors and Rott 1995 Several varieties of belief revision have appeared in the literature over the years AGM revision typically refers to the addition of a belief to a belief set at the expense of its negation and any other beliefs supporting its negation Alchourron et al 1985 Alternatively revision can refer to the process of resolving inconsistencies in a contradictory knowledge base or one known to be inconsistent Martins and Shapiro 1988 This is accomplished by removing one or more beliefs responsible for the inconsistency or culprits This is the task with which I am concerned In particular I have devised a means of automatically resolving inconsistencies by discarding the least preferred beliefs in a belief base according to some epistemic ordering G rdenfors 1988 Williams 1994 G rdenfors and Rott 1995 1 1 1 Motivation Let us say that you are told to believe the following information the logical formalization appears on the
53. n the opposite order and wff6 was removed initially then 1t would not have been necessary to even look at the other no good both would have been made consistent by the removal of wff6 4 2 New Belief Revision Behavior We shall see that the problems with manual belief revision discussed in 84 1 are remedied by the new procedures 4 2 1 Algorithm 2 Example 1 The example below corresponds to that in 84 1 1 but now automatic belief revision is performed using Algorithm 2 Show supports expert Use algorithm 2 br tie mode manual The user will be consulted when an entrenchment tie occurs Use an entrenchment ordering where every proposition is minimally entrenched set order null order All pirates are uneducated 4 all x Pirate x gt Educated x All criminals are uneducated all x Criminal x gt Educated x Blackbeard was a pirate and a criminal and Pirate Blackbeard Criminal Blackbeard The knowledge base thus far list asserted wffs wff7 Educated Blackbeard lt der wff2 wff5 gt lt der w f 1 wff5 gt wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt wff4 Criminal Blackbeard lt der wff5 gt wff3 Pirate Blackbeard lt der wff5 gt wff2 all x Criminal x gt Educated x lt hyp w 2 gt wff1 all x Pirate x gt Educated x lt hyp wff1 gt
54. ne 10 we see that when a proposition p is removed none of the other propositions in its no good are minimally entrenched in any other no good That means none of the other propositions could be a candidate for removal So the only way to remove the no good in which p appears is by removing p So if p were not removed then EEsyeps1 would not be satisfied Q E D 6 1 4 Decidability ListLoop creates lists of minimal elements of lists This is a decision procedure since the com parator is a total preorder From the proof of EEsyeps1 above we see that either RemoveLoop or ModifyLoop must do work for each iteration of MainLoop ModifyLoop cannot operate more than once on the same no good because there are no longer multiple minimally entrenched propositions in the no good after it does its work Nor can RemoveLoop operate twice on the same no good since the no good is removed when ModifyLoop does work So eventually ModifyLoop has no more work to do and at that point RemoveLoop will remove at least one no good for each iteration 68 of MainLoop By lines 17 18 when the last no good is removed the procedure terminates So it always terminates Q E D 6 1 5 Supplementary Requirement RemoveLoop attempts to compute T each time it is run from MainLoop If the procedure does not terminate within RemoveLoop then we run ModifyLoop on at most one no good Afterwards we run RemoveLoop again Since the user is only queried when the procedu
55. nprioritized belief revision in action 4 2 3 Algorithm 1 Example When algorithm 1 is used the user is not consulted when there is a question about which propo sition is uniquely minimally entrenched in a no good Algorithm 1 attempts to figure this out using the supplied ordering none is provided here and when a question remains it arbitrarily but deterministically chooses a proposition to be minimally entrenched In the current implementa tion SNePS will use the lexicographic rank of the name of the proposition wff1 wff2 etc to determine its relative epistemic ordering Lexicographic comparison yields a well preorder Show supports expert Always use automatic belief revision br mode auto Automatic belief revision will now be automatically selected Use algorithm 1 br tie mode auto Entrenchment ties will now be automatically broken Use an entrenchment ordering where every proposition is minimally entrenched set order null order All pirates are uneducated all x Pirate x gt Educated x 47 All criminals are uneducated all x Criminal x gt Educated x Blackbeard was a pirate and a criminal and Pirate Blackbeard Criminal Blackbeard The knowledge base as thus far list asserted wffs wff7 wff5 wff4 wff3 wff2 wff1 Educated Blackbeard lt der wff2 wff5 gt lt der wff1 wff5 gt Pirate
56. omplexity s so ec de bb webct dobar caeceedacds 66 6 Analysis of Algorithm 2 67 6 1 Proofs of Satisfaction of Requirements by Algorithm 2 67 61 1 EEsyepsl Sufficiency e one caia AAA RR eM A 67 6 1 2 EEsyeps2 Minimal Entrenchment 68 6 1 3 EEsyeps3 Information Preservation 68 Ci II ri APA APA AI E EOS 68 6 1 5 Supplementary Requirement lt o o o o 69 6 2 Complexity of Algorithm 2 lt lt lt eee ee eee 69 Gal ADIOS LOGIN sica is A AAA 69 622 TimeComplexity gt core A 70 7 Conclusions 70 viii References 71 Abstract In this thesis I implement belief revision in SNePS based on a user supplied epis temic ordering of propositions I provide a decision procedure that performs revi sion completely automatically when given a well preorder I also provide a decision procedure that when given a total preorder performs revision with a minimal num ber of queries to the user when multiple propositions within a minimally inconsistent set are minimally epistemically entrenched These procedures are implemented in SNePS as options alongside the old belief revision subsystem wherein revision must be done entirely by hand I implement both prioritized and nonprioritized belief revi sion by adjusting the epistemic ordering function passed to the new procedures The first procedure uses O E units of space and completes within O E s
57. on will now be automatically selected Use algorithm 2 br tie mode manual The user will be consulted when an entrenchment tie occurs 55 Initialize believe action see manual attach primaction believe believe Use an order in which every proposition is minimally entrenched set order null order Walk prep obj It walks prep a obj define frame Walk verb prep obj Talk prep obj It talks prep a obj define frame Talk verb prep obj We will use x to range over the above frames define frame x verb prep obj 49 Isa obj It is a obj define frame Isa verb obj If it x s like a y it is a ly all x y x like y gt Isa y It walks like a duck Walk like duck It talks like a duck Talk like duck The knowledge base thus far list asserted wffs wff4 Talk like duck lt hyp w 4 gt wff3 Isa duck lt der wff1 wff2 gt lt der wff1 wff4 gt wff2 Walk like duck lt hyp w 2 gt wffl all y x x like y gt Isa y lt hyp wff1 gt It s not a duck triggers belief revision perform believe Isa duck Please choose from the following hypotheses the one that you would least like to keep Le wff1 all y x x like y gt Isa y lt hyp wff1 gt 2 supported propositions wff3 wff1 2 wff2 Walk like duck lt hyp wff2 gt 2 supported pr
58. opositions wff3 wff2 gt lt 2 50 Please choose from the following hypotheses the one that you would least like to keep 1 wff1 all y x x like y gt Isa y lt hyp wff1 gt 2 supported propositions wff3 wff1 204 wff4 Talk like duck lt hyp wff4 gt 2 supported propositions wff4 wff3 gt lt 2 The revised knowledge base list asserted wffs wff8 Walk like duck lt ext wff1 wff5 gt wff7 Talk like duck lt ext wff1 wff5 gt wff5 Isa duck lt hyp wff5 gt wffl all y x x like y gt Isa y lt hyp wff1 gt Note that the final assertion was made by performing a believe act This invoked prioritized belief revision causing the statement that was just believed to be strictly more entrenched than every other proposition This is why wff5 the assertion that it s not a duck did not even appear as an option during queries to the user SNeBR knew it could not be minimally entrenched in any no good As a result it was guaranteed to remain asserted at the conclusion of the revision process 4 3 Capturing Old Results A significant feature of my work is that it generalizes previous published work on belief revision in SNePS Cravo and Martins 1993 Johnson and Shapiro 1999 Shapiro and Johnson 2000 Shapiro 31 and Kandefer 2005 The following demonstrations showcase the new features I have introduced to SNeBR and
59. ore than one set consistent w f6 w 5 In order to make the context consistent you must delete at least one hypothesis from the set listed below An inconsistent set of hypotheses 1 3 wff6 Educated Blackbeard lt hyp wff6 gt 1 supported proposition wff6 Divs wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt 4 supported propositions wff7 wff5 wff4 wff3 Bs wff1 all x Pirate x gt Educated x lt hyp wff1 gt 2 supported propositions wff7 wff1 Enter the list number of a hypothesis to examine or d to discard some hypothesis from this list a to see ALL the hypotheses in the full context r to see what you have already removed q to quit revising this set or i for instructions 37 please type a number OR d a r q or i gt lt d Enter the list number of a hypothesis to discard c to cancel this discard or ql to quit revising this set 234313 The consistent set of hypotheses Le wff6 Educated Blackbeard lt hyp wff6 gt 1 supported proposition wff6 Des wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt 3 supported propositions wff5 wff4 wff3 Enter the list number of a hypothesis to examine or d to discard some hypothesis from this list a to see ALL the hypotheses in the full context r to see what you have already removed q to quit revising this set
60. oted A x is defined to be A Cn A x 1 1 7 Assumption based Truth Maintenance Systems In an assumption based truth maintenance system ATMS the system keeps track of the assump tions base beliefs underlying each belief de Kleer 1986 One of the roles of an conventional TMS is to keep the database contradiction free In an assumption based ATMS contradictions are removed as they are discovered When a contradiction is detected in an ATMS then there will be one or more minimally inconsistent sets of assumptions underlying the contradiction Such sets are called no goods Martins and Shapiro 1988 presented SNeBR an early implementation of an ATMS that uses the logic of SNePS In that paper sets of assumptions supporting a belief are called origin sets They correspond to antecedents of a justification from de Kleer 1986 The focus of this thesis is modifications to the modern version of SNeBR 1 1 8 Kernel Contraction In Hansson 1994 the operation kernel contraction is introduced A kernel set Alla is defined to be the set of all minimal subsets of A that imply a A kernel set is like a set of origin sets from Martins and Shapiro 1988 Let o be an incision function for A Then for all o A S U ALO and if X Aua then X 1 o AlLa The kernel contraction of A by a based on O denoted A o is equal to A o Aua 1 1 9 Prioritized Versus Non Prioritized Belief Revision In the AGM model of be
61. otheses wff6 wff5 wff1 w f6 wff5 wf 2 The hypotheses listed below are included in more than one set Removing one of these will make more than one set consistent w f6 w 5 In order to make the context consistent you must delete at least one hypothesis from the set listed below An inconsistent set of hypotheses 1 3 wff6 Educated Blackbeard lt hyp wff6 gt 1 supported proposition wff6 Divs wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt 4 supported propositions wff7 wff5 wff4 wff3 Bs wff1 all x Pirate x gt Educated x lt hyp wff1 gt 2 supported propositions wff7 wff1 Enter the list number of a hypothesis to examine or d to discard some hypothesis from this list a to see ALL the hypotheses in the full context r to see what you have already removed q to quit revising this set or i for instructions 32 please type a number OR d a r q or i gt lt d Enter the list number of a hypothesis to discard c to cancel this discard or ql to quit revising this set 234313 The consistent set of hypotheses Le wff6 Educated Blackbeard lt hyp wff6 gt 1 supported proposition wff6 Des wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt 3 supported propositions wff5 wff4 wff3 Enter the list number of a hypothesis to examine or d to discard some hypoth
62. ource than the sexist IsBetterSource nerd sexist Fran is a better source than the nerd IsBetterSource fran nerd 57 Better Source is a transitive relation all x y z IsBetterSource x y IsBetterSource y z amp gt IsBetterSource x z All jocks are not smart all x jock x gt smart x wff 10 The source of the statement All jocks are not smart is the 55 nerd HasSource wff10 nerd All females are not smart all x female x gt smart x wff 12 The source of the statement All females are not smart is the pi sexist HasSource wff12 sexist All graduate students are smart all x grad x gt smart x wff14 The source of the statement All graduate students are smart is the professor HasSource wff14 prof 777 All old people are smart all x old x gt smart x wff16 The source of the statement All old people are smart is the i77 holy book HasSource wff 16 holybook 58 The source of the statement Fran is an old female jock who is a graduate student is fran HasSource and jock fran grad fran female fran old fran fran The KB thus far list asserted wffs wff23 HasSource old fran and female fran and grad fran and jock fran fran lt hyp w 23 gt wff17 HasSource all x old x gt smart x holybook lt hyp wff
63. ows 1 If andor 0 0 p is believed as an hypothesis it is chosen as the culprit If it is a derived belief assisted culprit choosing is done 2 If andor i 1 p q G is either 0 or 1 is believed and q is believed as an hypoth esis then q is chosen as the culprit If q is a derived belief assisted culprit choosing is done 88 5 1 of the SNePS 2 7 1 manual Shapiro and The SNePS Implementation Group 2010 76 quoted above is no longer an accurate description of how SNeBR works This text will be re moved and replaced with the text below If the SNeRE believe act is performed on the proposition p it is assumed that belief in p is to take priority over any contradictory belief Thus if andor 0 0 p is believed it is chosen as the culprit Therefore SNeBR behaves as follows 1 If br mode is set to manual then the user will be given a choice to perform assisted culprit choosing to attempt automated belief revision or to continue in an inconsistent context 2 If br mode is set to auto then automated belief revision will be attempted Automated belief revision can proceed in one of two ways 1 If br tie mode is set to manual then SNeBR will query the user which proposi tion is strictly minimally entrenched whenever multiple propositions are minimally entrenched within a minimally inconsistent set during the revision process 2 If br tie mode is set to auto then SNeBR will arbitrarily choose a proposition to
64. r explicit will cause all propositions to be equally entrenched except as follows If IsLessEntrenched x y is asserted in the knowledge base then x will be strictly less en trenched than y Note that this ordering function uses statements in the object language of SNePS to determine relative entrenchment of propositions 24 33 Description An ordering function relying on explicit statements of SaS relative entrenchment of propositions using the Pas IsLessEntrenched predicate for checks 33 IsLessEntrenched x y x is strictly less entrenched than y defun explicit lhs rhs not tell ask IsLessEntrenched A _ A rhs lhs set order source will cause all propositions to be equally entrenched except as follows If HasSource x s1 HasSource y s2 and IsBetterSource s2 s1 are asserted in the knowl edge base then x will be strictly less entrenched than y Note that this ordering function uses statements in the object language of SNePS to determine relative entrenchment of proposi tions 333 Description An ordering function that causes propositions with more sae reliable sources to be more epistemically entrenched than an Propositions with less reliable sources Also unsourced wes Propositions are more entrenched than sourced ones 33 HasSource x y The source of x is y 33 IsBetterSource x y x is a better source than y defun source lhs rhs or and let source lhs tell askwh _HasSour
65. re cannot automatically determine any propositions to remove we argue that this means minimal queries are made of the user Q E D 6 2 Complexity of Algorithm 2 6 2 1 Space Complexity As before let Smax be the cardinality of the largest no good in 2 In the worst case all propositions are minimally entrenched so ListLoop will recreate X So ListLoop will use O 2 Smax space RemoveLoop creates a culprit list which we stated before takes O Z space ModifyLoop may be implemented in a variety of ways We will assume that it creates a list of pairs of which the first and second elements range over propositions in the no goods In this case ModifyLoop uses 2 max O Z 7 s2 space So the total space requirement is O Z s ie memory units 69 6 2 2 Time Complexity The analysis for time complexity is based on a sequential procesing system For each no good O in the worst case ListLoop will have to compare each proposition in O agains every other So for each iteration of MainLoop ListLoop takes O X s24 time There are at most O Smax elements 2 in each list created by ListLoop So checking the condition in line 10 takes O sax time Lines 12 16 can be executed in O 2 Smax time Therefore RemoveLoop takes O s time We assume that all the work in lines 24 27 can be done in constant time So ModifyLoop takes O X time We noted earlier that during each iteration of MainLoop
66. reorder lt such that lt lt lt lt The idea is that f creates the well preorder lt lt from lt by removing some pairs from the total preorder lt Note that in the case where lt is already a well preorder lt lt lt Then we may use Algorithm 1 to solve the problem Algorithm 1 Algorithm to compute T given a well preorder Input 2 lt lt Output 7 1 TH for all o 2 do Move minimally entrenched belief in o to first position in 0 using lt lt as a comparator end for Sort elements of 2 into descending order of the values of the first element in each O using lt lt as a comparator 6 AddLoop 7 while x 4 do 8 9 currentCulprit 0 T lt T vu currentCulprit 10 DeleteLoop 11 for all Ocurrent L do 12 if currentCulprit Ocurren then 13 2 Ocurrent 14 end if 15 end for 16 end while 17 return T 18 2 3 2 Using a total preorder Unfortunately it is easy to conceive of a situation in which the supplied entrenchment ordering is a total preorder but not a well preorder For instance let us say that when reasoning about a changing world propositional fluents propositions that are only true of a specific time or situation are abandoned over non propositional fluents It is not clear then how we should rank two distinct propositional fluents nor how to rank two distinct non propositional fluents If we can arbitrarily specify a well preorder that is
67. rming forward and or backward inference on the new belief Now the knowledge base is known to be inconsistent We will refer to the contradictory beliefs as p and p Contraction of either p or p from the knowledge base will resolve the contradiction Since SNePS tags each belief with one or more origin sets or sets of supporting hypotheses we can identify the underlying beliefs that support each of the two contradictory beliefs In the case where p and p each have one origin set OS and OS respectively we may resolve the contradiction by removing at least one hypothesis from OS thereby removing p or at least one hypothesis from OS thereby removing p Since we only need to remove one of these propo sitions the contradiction may be resolved by removing at least one belief from OS U OSp a no good If there are m origin sets for p and n origin sets for p then there will be at most m x n distinct no goods some unions may be duplicates of others To resolve a contradiction in this case we must retract at least one hypothesis from each no good Sufficiency I will present an algorithm that will select the hypotheses for removal from the set of no goods The first priority will be that the hypotheses selected should be minimally epistemically entrenched Minimal Entrenchment according to some total preorder lt The second priority will be not to 15 remove any more hypotheses than are necessary in order to resolve
68. s m Peter and attends m Philip lt hyp wff2 gt all m meeting m gt xor social m work m class m official m lt hyp wff1 gt i7 When will the meeting w take place when w The revised knowledge base list asserted wffs wff93 wff38 wff37 wff36 wff35 wff31 wff29 wEf27 wff25 wff24 wff22 wff20 wff18 wff9 wff8 all m attends m John gt in afternoon m lt ext w f2 wff3 wff5 wff8 wff9 gt attends w lt der wff 2 wff9 gt attends w John and attends w Peter and attends w Philip lt der wff2 wff9 gt xor social w class w official w work w lt der w f 1 wff8 gt xor in afternoon w in morning w lt der wff3 wff 8 gt in morning w lt der w 2 wff5 wff9 gt lt der w f 2 wff7 wff9 gt attends w John lt der wff2 wff9 gt attends w Peter lt der wff 2 wff9 gt attends w Philip lt der wff 2 wff9 gt social w lt der wff1 wff8 wff9 gt class w lt der wff1 wff8 wftf9 gt official w lt der wff1 wff8 wff9 gt all z y x IsLessEntrenched y z IsLessEntrenched x y amp gt IsLessEntrenched x z lt hyp wff18 gt work w lt hyp wff 9 gt meeting w lt hyp w 8 gt 55 wff5 all m attends m Peter gt in morning m lt hyp wff5 gt wff4 all p m2 m
69. sEn IsLessEn IsLessEn IsLessEn IsLessEn IsLessEn IsLess all x y The kn meeting es work meeting s preference is less important than John s trenched wff7 wff6 preference is less important than Peter s trenched wff6 wff5 eferences of people are less important than the remaining ation in the problem trenched wff5 wff1 trenched wff 5 wff2 trenched w 5 w 3 trenched wff5 wff4 trenched wff5 wff8 trenched wff5 wff9 Entrenched is a transitive relation z IsLessEntrenched x y IsLessEntrenched y z amp gt IsLessEntrenched x z owledge base thus far list asserted wffs wff18 wff9 wff8 wff7 wff6 all z y x IsLessEntrenched y z IsLessEntrenched x y amp gt IsLessEntrenched x z lt hyp wff18 gt work w lt hyp wff9 gt meeting w lt hyp w 8 gt all m attends m Philip gt in morning m lt hyp wff 7 gt all m attends m John gt in afternoon m lt hyp wff6 gt 54 wff5 wff4 wff3 wff2 wff1 all m attends m Peter gt in morning m lt hyp wff5 gt all p m2 m1 attends m2 p attends m1 p amp gt in afternoon m2 lt gt in morning m1 lt hyp w 4 gt all m meeting m gt xor in afternoon m in morning m lt hyp w 3 gt all m work m gt attends m John and attend
70. the contradiction Information Preservation while still satisfying priority one 2 1 2 Prioritized Belief Revision The process of Prioritized Belief Revision in SNePS occurs when a contradiction is discovered after a belief is asserted explicitly using the believe act of SNeRE The major difference from non prioritized belief revision is that a subtle change is made to the entrenchment ordering lt If lt ponpri is the ordering used for nonprioritized belief revision then for prioritized belief revision we use an ordering lt p as follows Let P be the set of beliefs asserted by a believe action Then Ve1 e2 1 E PA ep EP gt 1 lt pri 2 A 2 Spri e1 Ve1 e2 1 PA 2 P gt e1 Spri 2 1 Snompri 2 Ve e2le1 EPA e Pp e1 Spri e2 gt Snonpri e2 That is a proposition asserted by a believe action takes priority over any other proposition When either both or neither propositions being compared have been asserted by the believe action then we use the same ordering as we would for nonprioritized revision 2 2 Common Requirements for a Rational Belief Revision Algorithm 2 2 1 Primary Requirements The inputs to the algorithm are e A set of formulae OD the current belief set which is known to be inconsistent 16 e A total preorder lt on an epistemic entrenchment ordering that can be used to compare the relative desirability of each belief in the current belief set
71. told that Blackbeard was educated You assume that this is true because it is the last thing you have been told As a result you abandon your prejudice and discontinue holding the belief that all pirates are uneducated That is you retract Educated Blackbeard from your belief set S using a selection function y as in section 1 1 2 part 4 that removes Vx Pirate x gt Educated x over Pirate Blackbeard 11 5 You are told that Blackbeard was educated You assume that this is true because it is the last thing you have been told You are a persistent bigot so you discontinue hold ing the belief that Blackbeard was ever a real pirate you prefer to believe that no pirate is educated That is you retract Educated Blackbeard from your belief set S using a selection function y as in section 1 1 2 part 4 that removes Pirate Blackbeard over Vx Pirate x gt Educated x In scenarios 1 2 and 3 you considered whether the new information you were just told was true or false You did not automatically prioritize the new information over your existing beliefs In sce narios 2 and 3 in particular the decision to keep the new belief was made after weighing it against all the previously held beliefs rather than on the basis of its novelty So you were performing non prioritized belief revision on your belief set Hansson 1999a In scenarios 4 and 5 you took as fact the new information you were given without considering its veracity
72. tulates for theory change are discussed Let Cn A refer to the closure under logical consequence of a set of propo sitions A A theory is defined to be a set of propositions closed under logical consequence Thus 2 for any set of propositions A Cn A is a theory We will use the terms belief and proposition interchangeably and likewise belief set and set of propositions It is worth noting that theories are infinite sets Alchourron et al 1985 discusses operations that may be performed on theories The following operations are part of what is referred to as the AGM paradigm 1 Expansion Given a set of propositions A and a new proposition x the expansion of A by x is equal to Cn A u x Expansion of A by x is therefore the closure under logical consequence of the set theoretic addition of x to A 2 Contraction Given a set of propositions A and a proposition x the contraction of A by x de noted A x is equal to a maximal subset of A that fails to imply x Alchourron and Makinson 1982 So when contracting A by x in addition to removing x from A we remove additional propositions as necessary to ensure that x may not be rederived under logical consequence G rdenfors 1982 presents rationality postulates for contraction functions 1 A xis a theory whenever A is a theory closure 2 A x CA inclusion 3 Ifx Cn A then A x A vacuity 4 If x Cn then x Cn A x success 5 If Cn
73. used to select the algorithm used for automated belief revision e Default Setting In modes and 2 the default setting for br tie mode is manual In mode 3 the the default setting for br tie mode is auto 26 e br tie mode auto will cause SNeBR to arbitrarily break entrenchment ties when multiple propositions are minimally entrenched within a minimally inconsistent set This mode uses a more time and space efficient algorithm to perform belief revision than manual mode As such it is preferable whenever the user supplied ordering is known to be a well preorder no arbitrary decisions will be made or when the user simply does not care how entrenchment ties are broken In the current implementation of SNePS a proposition whose name e g wff1 wff2 etc has minimal lexicographic rank will be considered to be strictly less entrenched than all other propositions within a minimally inconsistent set as long as no other propositions within the set are strictly less entrenched according to the user supplied ordering This has the effect of making propositions that were conceived of later more entrenched than those that are otherwise equally entrenched but conceived of earlier The order of conception should not be confused with the order of assertion which may differ e br tie mode manual will cause SNeBR to query the user which proposition is strictly mini mally entrenched when multiple propositions are minimally entrenched within a m
74. w 5 gt 4 supported propositions wff7 wff5 wff4 wff3 Be wff6 Educated Blackbeard lt hyp wff6 gt 1 supported proposition wff6 T The revised knowledge base list asserted wffs wff9 all x Criminal x gt Educated x lt ext wff5 wff6 gt 43 wff8 all x Pirate x gt Educated x lt ext wff5 wff6 gt wff6 Educated Blackbeard lt hyp wff6 gt wff5 Pirate Blackbeard and Criminal Blackbeard lt hyp w 5 gt wff4 Criminal Blackbeard lt der wff5 gt wff3 Pirate Blackbeard lt der w f5 gt Notice that the user was merely asked which proposition was minimally entrenched within each no good not to actually remove propositions As a result SNeBR was able to correctly identify wffl and wff2 as the culprits remove them and assert their negations The user did not get an opportunity to unnecessarily remove more propositions Also note that wff6 the last proposition to be asserted was an option Therefore this is an example of nonprioritized belief revision 4 2 2 Algorithm 2 Example 2 The following example shows a vast improvement in behavior over the example in 84 1 2 using Algorithm 2 777 Show supports expert Always attempt automatic belief revision br mode auto Automatic belief revision will now be automatically selected Use algorithm 2 br tie mode manual The user will be consulted when an entr
75. when the latter is nonempty or else the former is equal to A y is called a selection function The operation defined by A x y ALx is called the partial meet contraction over A determined by y Alchourron et al 1985 Note that full meet contraction is equivalent to the special case of partial meet contraction where y 4A Lx Alx and maxichoice contraction is the special case where y A_Lx is a singleton set Partial meet revision is simply revision using partial meet contraction as the contraction function seen in the Levi Identity The se lection function y is used as a way to choose the most desirable members of ALx Such a selection function could possibly be used in determining how to proceed from the situation presented in section 1 1 1 However it is rather impractical to attempt to use any of the pure AGM operations presented in this section since they tend to involve infinite theories The next section brings us closer to something practical I conclude by noting that partial meet contraction and revision satisfy all of the above postulates for AGM contraction and revision respectively Alchourron et al 1985 1 1 3 Theory Change on Finite Bases It is widely accepted that agents because of their limited resources believe some but by no means all of the logical consequences of their beliefs Lakemeyer 1991 A major issue with the AGM paradigm is that it defines operations to be performed on infinite sets theories
76. x Cn y then A x A y preservation 6 A S Cn A gt x U x whenever A is a theory recovery The closure postulate 1 states that the contraction of a theory is still a theory The inclu sion postulate 2 states that contraction of a belief set cannot yield a belief set with any new beliefs The vacuity postulate 3 states that contraction of a belief set by a proposition which the belief set neither contains nor implies as a result of logical consequence yields the original belief set The success postulate 4 states that the belief set resulting from con traction by a non tautological proposition will not imply that proposition as a result of logical 3 consequence The preservation postulate 5 states that if we may conclude the same things from two propositions by logical consequence then the belief sets resulting from contraction of a belief set by either one of those propositions will be the same Finally we come to the recovery postulate 6 This postulate states that if we contract a proposition from a belief set then expand the resulting belief set by that same proposi tion to form a third belief set there will be nothing in the original belief set that cannot be concluded from the information in the third belief set There is extensive argument in the literature about the rationality of this particular postulate I will discuss some particulars in AA Revision Given a set of propositions A and
77. ypothesis to examine or d to discard some hypothesis from this list la to see ALL the hypotheses in the full context r to see what you have already removed q to quit revising this set or 34 i for instructions please type a number OR d a r q or i gt lt q Do you want to add a new hypothesis no The revised knowledge base list asserted wffs wff9 nand Criminal Blackbeard Pirate Blackbeard lt ext wff2 wff6 gt wff6 Educated Blackbeard lt hyp wff6 gt wff2 all x Criminal x gt Educated x lt hyp w 2 gt We see that the user is given total control of how to manipulate the knowledge base to restore consistency Notice that in the example above the user was given advice about which propositions to remove to minimize information loss but that the advice was ignored Also notice that there was no information whatsoever about the relative entrenchment of the culprit hypotheses 4 1 2 Manual Revision Example 2 Now see the example below Show supports expert Ask the user what to do when belief revision is triggered br mode manual Automatic belief revision must now be manually selected All pirates are uneducated 35 all x Pirate x gt Educated x All criminals are uneducated all x Criminal x gt Educated x Blackbeard was a pirate and a criminal and Pirate Blackbeard Criminal Blackbeard

Download Pdf Manuals

image

Related Search

Related Contents

Assembly, Operator`s and Parts - 2012  ユーザーズガイド(TSシリーズ)  Owner`s Manual - PatientLiftDeals.com  Nokia 9357715 Cell Phone User Manual  Avaya IVR Configuration Guide  RosetteSep™ HLA Total Lymphocyte Enrichment Cocktail ENGLISH  USER'S GUIDE TO ADD NEW SURFACE VARIABLES OR NEW  User Guide /X /S  Herunterladen  Philips 69101/14/PH  

Copyright © All rights reserved.
Failed to retrieve file