1. 1、本文档共50页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Inference rules Logical inference is used to create new sentences that logically follow from a given set of predicate calculus sentences (KB). An inference rule is sound if every sentence X produced by an inference rule operating on a KB logically follows from the KB. (That is, the inference rule does not create any contradictions) An inference rule is complete if it is able to produce every expression that logically follows from (is entailed by) the KB. (Note the analogy to complete search algorithms.) Sound rules of inference Here are some examples of sound rules of inference. Each can be shown to be sound using a truth table: A rule is sound if its conclusion is true whenever the premise is true. RULE PREMISE CONCLUSION Modus Ponens A, A => B B And Introduction A, B A ^ B And Elimination A ^ B A Double Negation ~~A A Unit Resolution A v B, ~B A Resolution A v B, ~B v C A v C Soundness of modus ponens A B A → B OK? True True True ? True False False ? False True True ? False False True ? Soundness of the resolution inference rule Proving Things Consider a KB consisting of the following rules and facts (collectively called premises) (Ho ^ Hu) => R “If it is hot and humid, then it is raining” Hu => Ho “If it is humid, then it is hot” Hu “It is humid.” We want to prove that it is raining Proving things A proof is a sequence of sentences, where each sentence is either a premise or a sentence derived from earlier sentences in the proof by one of the rules of inference. The last sentence is the theorem (also called goal or query) that we want to prove. Example for the “weather problem” given above. 1 Hu Premise “It is humid” 2 Hu=>Ho Premise “If it is humid, it is hot” 3 Ho Modus Ponens(1,2) “It is hot” 4 (Ho^Hu)=>R Premise “If it’s hot & humid, it’s raining” 5 Ho^Hu And Introduction(1,2) “It is hot and humid” 6 R Modus Ponens(4,5) “It is raining” Entailment and derivation Entailment: KB |= Q Q is entailed by KB (a set of premi

文档评论(0)

liuxiaoyu99 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档