1 / 34

Relational Proofs

Computational Logic Lecture 8. Relational Proofs. Michael Genesereth Autumn 2002. Logical Entailment. A set of premises logically entails a conclusion if and only if every interpretation that satisfies the premises also satisfies the conclusion. Herbrand Summary.

andren
Download Presentation

Relational Proofs

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Computational Logic Lecture 8 Relational Proofs Michael Genesereth Autumn 2002

  2. Logical Entailment A set of premises logically entails a conclusion if and only if every interpretation that satisfies the premises also satisfies the conclusion.

  3. Herbrand Summary Herbrand Method works for Basic Logic and Universal Logic, but there can be many interpretations. Herbrand Method does not work for Existential Logic unless sentences rewritten in Functional Logic. Herbrand Method works for Functional Logic, but infinitely many interpretations Solution: Use formal proofs!

  4. Formal Proofs A formal proof of  from  is a sequence of sentences terminating in  in which each item is either: 1. a premise (a member of ) 2. an instance of an axiom schema 3. the result of applying a rule of inference to earlier items in the sequence.

  5. Old Rules of Inference Modus Ponens (MP) Modus Tolens (MT) And Introduction (AI) And Elimination (AE)

  6. Idea for Universal Instantiation Warning: This is not quite right.

  7. Examples y.hates(jane,y) hates(jane,jill) yjill hates(jane,mother(jane)) ymother(jane) hates(jane,y) yy hates(jane,z) yz x.y.hates(x,y) y.hates(jane,y) xjane y.hates(y,y) xyWrong!!

  8. Inappropriateness A term  is inappropriate for a variable  in  if and only if  contains a variable  and there is some free occurrence of  in  that lies in the scope of a quantifier of . mother(x) is inappropriate for y in x.hates(x,y).

  9. Substitutability A term  is substitutable for  in  if and only if it is not inappropriate with  in . Some texts say “x is free for y in ” instead of “x is substitutable for y in ”. mother(jane) is free for y in hates(jane,y). mother(x) is free for y in hates(jane,y). mother(x) is free for y in z.hates(z,y). mother(x) is not free for y in x.hates(x,y). mother(x) is free for y in (x.y.loves(x,y)  z.hates(z,y)).

  10. Universal Instantiation

  11. Existential Instantiation I

  12. Examples y.p(y) p(c) y.y*y=0 1*1=0 Wrong! y.y*y=x c*c=x Wrong! c*c=4 c*c=6

  13. Existential Instantiation II

  14. Examples y.y*y=x f(x)*f(x)=x f(4)*f(4)=4 f(6)*f(6)=6 y.y*y=x sqrt(x)*sqrt(x)=x log(x)*log(x)=x Wrong!

  15. Formal Proofs A formal proof of  from  is a sequence of sentences terminating in  in which each item is either: 1. a premise (a member of ) 2. an instance of an axiom schema 3. the result of applying a rule of inference to earlier items in the sequence.

  16. Example Everybody loves somebody. Everybody loves a lover. Show that Jack loves Jill.

  17. Harry and Ralph Every horse can outrun every dog. Some greyhounds can outrun every rabbit. Harry is a horse. Ralph is a rabbit. Can Harry outrun Ralph?

  18. Harry and Ralph (continued)

  19. Harry and Ralph (continued)

  20. Standard Axiom Schemata All generalizations* of the following: II:   (  ) ID: (  (  ))  ((  )  (  )) CR: (  )  ((  )  ) (  )  ((  )  ) EQ: (  )  (  ) (  )  (  ) (  )  ((  )  (  )) OQ:(  )  (  ) (  )  (  ) (  )  (  ) *A generalization of  is 1...k., for variables 1,...,k.

  21. Standard Axiom Schemata (concluded) UD: .(  )  (. .) UG:   . where  is not free in  UI: .  [] where  is free for  in  ED: . .

  22. Provability A sentence  is provable from a set of sentences  if and only if there is a finite formal proof of  from  using only Modus Ponens and the standard axiom schemata. Soundness Theorem: If  is provable from , then  logically entails . Completeness Theorem (Godel): If  logically entails , then  is provable from .

  23. Decidability A class of questions is decidable if and only if there is a procedure such that, when given as input any question in the class, the procedure halts and says yes if the answer is positive and no if the answer is negative. Example: For any natural number n, determining whether n is prime.

  24. Semidecidability A class of questions is semidecidable if and only if there is a procedure that halts and says yes if the answer is positive. Obvious Fact: If a class of questions is decidable, it is semidecidable.

  25. Semidecidability of Logical Entailment

  26. Decidability Not Proved • Note that we have not shown that logical entailment for Relational Logic is decidable. • The procedure may not halt. • p(x)  p(f(x)) • p(f(f(a))) • p(f(b))? • We cannot just run procedure on negated sentence because that may not be logically entailed either! • p(x)  p(f(x)) • p(f(f(a))) • p(f(b))?

  27. Undecidability of Logical Entailment Yes No Metatheorem: Logical Entailment for Relational Logic is not decidable. Proof: Suppose there is a machine p that decides the question of logical entailment. Its inputs are  and . We can encode the behavior of this machine and its inputs as sentences and ask whether the machine halts as a conclusion. What happens if we give this description and question to p? It says yes.  p f

  28. Undecidability (continued)  p Halts No It is possible to construct a larger machine p’ that enters an infinite loop if p says yes and halts if p says no. We can also encode a description of this machine as a set of sentences and ask whether the machine halts as a conclusion. What happens if we give this description and question to p’? If p says yes, then p’ runs forever, contradicting the hypothesis that p computes correctly. If p says no, then p’ halts, once again contradicting answer from p. QED

  29. Closure • The closureS* of a set S of sentences is the set of all sentences logically entailed by S. • S*={ | S|=} • Set of Sentences: Closure: • p(a) p(a) • p(x)p(f(x)) p(f(a)) • p(f(f(a))) • p(a)  p(f(a)) • p(x)p(f(x)) • …

  30. Theories A theory is a set of sentences closed under logical entailment, i.e. T is a theory if and only if T*=T. A theory T is finitely axiomatizable if and only if there is a finite set  of sentences such that T=*. A theory Tis complete if and only, for all , either T or T. Note: Not every theory is complete. Consider the theory consisting of all consequences of p(a,b). Does this include p(b,a)? Does it include p(b,a)?

  31. Relationships on Theories Decidable Semidecidable Finitely Axiomatizable

  32. Arithmetization of Logical Entailment The theory of arithmetic is the set of all sentences true of the natural numbers, 0, 1, +, *, and <. Fact: It is possible to assign numbers to sentences such that (1) Every sentence  is assigned a unique number n. (2) The question of logical entailment |= can be expressed as a numerical condition r(n,n). Conclusion: The theory of arithmetic is not decidable.

  33. Incompleteness Theorem Metatheorem (Godel): If  is a finite subset of the theory of arithmetic, then * is not complete. Variant: Arithmetic is not finitely axiomatizable. Proof: If there were a finite axiomatization, then the theory would be decidable. However, arithmetic is not decidable. Therefore, there is no finite axiomatization.

  34. Summary Logical Entailment for Relational Logic is semidecidable. Logical Entailment for Relational Logic is not decidable. Arithmetic is not finitely axiomatizable in Relational Logic.

More Related