complete knowledge assumption
play

Complete Knowledge Assumption Often you want to assume that your - PowerPoint PPT Presentation

Complete Knowledge Assumption Often you want to assume that your knowledge is complete. Example: assume that a database of what students are enrolled in a course is complete. We dont want to have to state all negative enrolment facts! The


  1. Complete Knowledge Assumption Often you want to assume that your knowledge is complete. Example: assume that a database of what students are enrolled in a course is complete. We don’t want to have to state all negative enrolment facts! The definite clause language is monotonic: adding clauses can’t invalidate a previous conclusion. Under the complete knowledge assumption, the system is non-monotonic: adding clauses can invalidate a previous conclusion. � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 1

  2. Equality Equality is a special predicate symbol with a standard domain-independent intended interpretation. Suppose interpretation I = � D , φ, π � . t 1 and t 2 are ground terms then t 1 = t 2 is true in interpretation I if t 1 and t 2 denote the same individual. That is, t 1 = t 2 if φ ( t 1 ) is the same as φ ( t 2 ). t 1 � = t 2 when t 1 and t 2 denote different individuals. � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 2

  3. Equality Equality is a special predicate symbol with a standard domain-independent intended interpretation. Suppose interpretation I = � D , φ, π � . t 1 and t 2 are ground terms then t 1 = t 2 is true in interpretation I if t 1 and t 2 denote the same individual. That is, t 1 = t 2 if φ ( t 1 ) is the same as φ ( t 2 ). t 1 � = t 2 when t 1 and t 2 denote different individuals. Example: D = { ✂ , ☎ , ✎ } . φ ( phone ) = ☎ , φ ( pencil ) = ✎ , φ ( telephone ) = ☎ What equalities and inequalities hold? � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 3

  4. Equality Equality is a special predicate symbol with a standard domain-independent intended interpretation. Suppose interpretation I = � D , φ, π � . t 1 and t 2 are ground terms then t 1 = t 2 is true in interpretation I if t 1 and t 2 denote the same individual. That is, t 1 = t 2 if φ ( t 1 ) is the same as φ ( t 2 ). t 1 � = t 2 when t 1 and t 2 denote different individuals. Example: D = { ✂ , ☎ , ✎ } . φ ( phone ) = ☎ , φ ( pencil ) = ✎ , φ ( telephone ) = ☎ What equalities and inequalities hold? phone = telephone , phone = phone , pencil = pencil , telephone = telephone pencil � = phone , pencil � = telephone � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 4

  5. Equality Equality is a special predicate symbol with a standard domain-independent intended interpretation. Suppose interpretation I = � D , φ, π � . t 1 and t 2 are ground terms then t 1 = t 2 is true in interpretation I if t 1 and t 2 denote the same individual. That is, t 1 = t 2 if φ ( t 1 ) is the same as φ ( t 2 ). t 1 � = t 2 when t 1 and t 2 denote different individuals. Example: D = { ✂ , ☎ , ✎ } . φ ( phone ) = ☎ , φ ( pencil ) = ✎ , φ ( telephone ) = ☎ What equalities and inequalities hold? phone = telephone , phone = phone , pencil = pencil , telephone = telephone pencil � = phone , pencil � = telephone Equality does not mean similarity! � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 5

  6. Properties of Equality Equality is: Reflexive: X = X Symmetric: if X = Y then Y = X Transitive: if X = Y and Y = Z then X = Z For each n -ary function symbol f f ( X 1 , . . . , X n ) = f ( Y 1 , . . . , Y n ) if X 1 = Y 1 and · · · and X n = Y n . For each n -ary predicate symbol p p ( X 1 , . . . , X n ) if p ( Y 1 , . . . , Y n ) and X 1 = Y 1 and · · · and X n = Y n . � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 6

  7. Unique Names Assumption Suppose the only clauses for enrolled are enrolled ( sam , cs 222) enrolled ( chris , cs 222) enrolled ( sam , cs 873) To conclude ¬ enrolled ( chris , cs 873), what do we need to assume? � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 7

  8. Unique Names Assumption Suppose the only clauses for enrolled are enrolled ( sam , cs 222) enrolled ( chris , cs 222) enrolled ( sam , cs 873) To conclude ¬ enrolled ( chris , cs 873), what do we need to assume? ◮ All other enrolled facts are false ◮ Inequalities: sam � = chris ∧ cs 873 � = cs 222 The unique names assumption (UNA) is the assumption that distinct ground terms denote different individuals. � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 8

  9. Completion of a knowledge base: propositional case Suppose the rules for atom a are a ← b 1 . . . . a ← b n . equivalently a ← b 1 ∨ . . . ∨ b n . Under the Complete Knowledge Assumption, if a is true, one of the b i must be true: a → b 1 ∨ . . . ∨ b n . Thus, the clauses for a mean a ↔ b 1 ∨ . . . ∨ b n � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 9

  10. Clark Normal Form The Clark normal form of the clause p ( t 1 , . . . , t k ) ← B . is the clause p ( V 1 , . . . , V k ) ← ∃ W 1 . . . ∃ W m V 1 = t 1 ∧ . . . ∧ V k = t k ∧ B . where V 1 , . . . , V k are k variables that did not appear in the original clause W 1 , . . . , W m are the original variables in the clause. � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 10

  11. Clark Normal Form The Clark normal form of the clause p ( t 1 , . . . , t k ) ← B . is the clause p ( V 1 , . . . , V k ) ← ∃ W 1 . . . ∃ W m V 1 = t 1 ∧ . . . ∧ V k = t k ∧ B . where V 1 , . . . , V k are k variables that did not appear in the original clause W 1 , . . . , W m are the original variables in the clause. When the clause is an atomic clause, B is true . Often can be simplified by replacing ∃ W V = W ∧ p ( W ) with P ( V ). � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 11

  12. Clark normal form For the clauses student ( mary ) . student ( sam ) . student ( X ) ← undergrad ( X ) . the Clark normal form is student ( V ) ← V = mary . student ( V ) ← V = sam . student ( V ) ← ∃ X V = X ∧ undergrad ( X ) . � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 12

  13. Clark’s Completion Suppose all of the clauses for p are put into Clark normal form, with the same set of introduced variables, giving p ( V 1 , . . . , V k ) ← B 1 . . . . p ( V 1 , . . . , V k ) ← B n . which is equivalent to p ( V 1 , . . . , V k ) ← B 1 ∨ . . . ∨ B n . Clark’s completion of predicate p is the equivalence ∀ V 1 . . . ∀ V k p ( V 1 , . . . , V k ) ↔ B 1 ∨ . . . ∨ B n If there are no clauses for p , � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 13

  14. Clark’s Completion Suppose all of the clauses for p are put into Clark normal form, with the same set of introduced variables, giving p ( V 1 , . . . , V k ) ← B 1 . . . . p ( V 1 , . . . , V k ) ← B n . which is equivalent to p ( V 1 , . . . , V k ) ← B 1 ∨ . . . ∨ B n . Clark’s completion of predicate p is the equivalence ∀ V 1 . . . ∀ V k p ( V 1 , . . . , V k ) ↔ B 1 ∨ . . . ∨ B n If there are no clauses for p , the completion results in ∀ V 1 . . . ∀ V k p ( V 1 , . . . , V k ) ↔ false Clark’s completion of a knowledge base consists of the completion of every predicate symbol along the unique names assumption. � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 14

  15. Completion example p ← q ∧ ∼ r . p ← s . q ← ∼ s . r ← ∼ t . t . s ← w . � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 15

  16. Completion Example Consider the recursive definition: passed each ([ ] , St , MinPass ) . passed each ([ C | R ] , St , MinPass ) ← passed ( St , C , MinPass ) ∧ passed each ( R , St , MinPass ) . In Clark normal form, this can be written as � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 16

  17. Completion Example Consider the recursive definition: passed each ([ ] , St , MinPass ) . passed each ([ C | R ] , St , MinPass ) ← passed ( St , C , MinPass ) ∧ passed each ( R , St , MinPass ) . In Clark normal form, this can be written as passed each ( L , S , M ) ← L = [ ] . passed each ( L , S , M ) ← ∃ C ∃ R L = [ C | R ] ∧ passed ( S , C , M ) ∧ passed each ( R , S , M ) . Here we renamed the variables as appropriate. Thus, Clark’s completion of passed each is � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 17

  18. Completion Example Consider the recursive definition: passed each ([ ] , St , MinPass ) . passed each ([ C | R ] , St , MinPass ) ← passed ( St , C , MinPass ) ∧ passed each ( R , St , MinPass ) . In Clark normal form, this can be written as passed each ( L , S , M ) ← L = [ ] . passed each ( L , S , M ) ← ∃ C ∃ R L = [ C | R ] ∧ passed ( S , C , M ) ∧ passed each ( R , S , M ) . Here we renamed the variables as appropriate. Thus, Clark’s completion of passed each is ∀ L ∀ S ∀ M passed each ( L , S , M ) ↔ L = [ ] ∨ ∃ C ∃ R L = [ C | R ] ∧ passed ( S , C , M ) ∧ passed each ( R , S , M ) . � D. Poole and A. Mackworth 2016 c Artificial Intelligence, Lecture 13.4, Page 18

Recommend


More recommend