1 / 24

Properties of Relational Logic

Computational Logic Lecture 8. Properties of Relational Logic. Michael Genesereth Autumn 2010. Structures. We can view an interpretation as vector consisting of a universe of discourse and values for the items in the signature of the language (when the signature is ordered).

harva
Download Presentation

Properties of Relational Logic

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 Properties of Relational Logic Michael Genesereth Autumn 2010

  2. Structures We can view an interpretation as vector consisting of a universe of discourse and values for the items in the signature of the language (when the signature is ordered). In what follows, we call such vectors structures.

  3. Example Interpretation: |i| ={1, 2} i(a) = 1 i(b) = 2 i(f) = {12, 21} i(r) = {1,2, 1,1, 2,2} Signature: a, b, f,r Structure: {1, 2}, 1, 2, {12, 21}, {1,2, 1,1, 2,2}

  4. Elementary Equivalence Two structures are elementarily equivalent if and only if they satisfy the same set of sentences for all signatures. NB: There are pairs of structures that cannot be distinguished from each other in Relational Logic.

  5. Examples {1,2},1, 2, {1,2, 2,1} {3,4}, 3, 4, {3,4, 4,3} {1,2},1, 2, {1,2, 2,1} {1,2}, 2, 1, {1,2, 2,1} Q, < R, <

  6. Lowenheim Skolem Tarski Theorem If there is a model of a set of first-order sentences of any infinite cardinality, then there is a model of every infinite cardinality.

  7. Transitivity Theorem It is not possible in first-order logic to define transitive closure in first-order logic. More precisely, it is not possible characterize the set of structures consisting of an arbitrary universe, an arbitrary binary relation, and the transitive closure of that relation.

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

  9. 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. 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, Universal Generalization, and the Mendelson axiom schemata.

  10. Soundness and Completeness Soundness Theorem: If  is provable from , then  logically entails . Completeness Theorem (Godel): If  logically entails , then  is provable from .

  11. 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.

  12. 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.

  13. Semidecidability of Logical Entailment

  14. 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))?

  15. 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

  16. 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 leading to contradiction. QED

  17. 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)) • …

  18. Theories A theory is a set of sentences closed under logical entailment, i.e. T is a theory if and only if T*=T.

  19. Axiomatizability A theory T is finitely axiomatizable if and only if there is a finite set  of sentences such that T=*.

  20. Theory Completeness 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)? Note: There is one and only inconsistent theory, viz. the set of all sentences in the language.

  21. Relationships on Theories Decidable Semidecidable Finitely Axiomatizable

  22. 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.

  23. 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.

  24. 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