Properties of Relational Logic

Similar documents
Computational Logic Lecture 3. Logical Entailment. Michael Genesereth Autumn Logical Reasoning

2.2 Lowenheim-Skolem-Tarski theorems

On some Metatheorems about FOL

Informal Statement Calculus

Lecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem. Michael Beeson

Decidability: Church-Turing Thesis

Abstract model theory for extensions of modal logic

Propositional and Predicate Logic - XIII

CHAPTER 2. FIRST ORDER LOGIC

Propositional Resolution

Marie Duží

Lecture 11: Gödel s Second Incompleteness Theorem, and Tarski s Theorem

Decision Problems with TM s. Lecture 31: Halting Problem. Universe of discourse. Semi-decidable. Look at following sets: CSCI 81 Spring, 2012

Modal Logic: Exercises

Motivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory

Part II Logic and Set Theory

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method

Gödel s First Incompleteness Theorem (excerpted from Gödel s Great Theorems) Selmer Bringsjord Intro to Logic May RPI Troy NY USA

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

23.1 Gödel Numberings and Diagonalization

Introduction to Model Theory

Lecture Notes: The Halting Problem; Reductions

What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos

Final Exam (100 points)

Classical Propositional Logic

Hilbert s problems, Gödel, and the limits of computation

ON COMPUTAMBLE NUMBERS, WITH AN APPLICATION TO THE ENTSCHENIDUGSPROBLEM. Turing 1936

FINITE MODEL THEORY (MATH 285D, UCLA, WINTER 2017) LECTURE NOTES IN PROGRESS

Gödel s Incompleteness Theorem. Overview. Computability and Logic

6.825 Techniques in Artificial Intelligence. Logic Miscellanea. Completeness and Incompleteness Equality Paramodulation

Gödel s Incompleteness Theorem. Overview. Computability and Logic

Lecture 2: Axiomatic semantics

Logic: Propositional Logic Truth Tables

Hilbert s problems, Gödel, and the limits of computation

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

185.A09 Advanced Mathematical Logic

overview overview proof system for basic modal logic proof systems advanced logic lecture 8 temporal logic using temporal frames

by Yurii Khomskii There is a weaker notion called semi-representability:

Chapter 3. Formal Number Theory

CST Part IB. Computation Theory. Andrew Pitts

Undecidability. Andreas Klappenecker. [based on slides by Prof. Welch]

About the relationship between formal logic and complexity classes

We will now make precise what is meant by a syntactic characterization of the set of arithmetically true sentences.

Great Theoretical Ideas

Notes for Math 601, Fall based on Introduction to Mathematical Logic by Elliott Mendelson Fifth edition, 2010, Chapman & Hall

Gödel s Incompleteness Theorems

CMPSCI 601: Tarski s Truth Definition Lecture 15. where

Axiomatic set theory. Chapter Why axiomatic set theory?

Cogito ergo sum non machina!

Logic Michælmas 2003

Lecture 9. Model theory. Consistency, independence, completeness, categoricity of axiom systems. Expanded with algebraic view.

Philosophy 240: Symbolic Logic

CS21 Decidability and Tractability

Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Logic, Human Logic, and Propositional Logic. Human Logic. Fragments of Information. Conclusions. Foundations of Semantics LING 130 James Pustejovsky

PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2

Recursion Theory. Joost J. Joosten

This is logically equivalent to the conjunction of the positive assertion Minimal Arithmetic and Representability

Introduction to Metalogic

CHAPTER 11. Introduction to Intuitionistic Logic

A1 Logic (25 points) Using resolution or another proof technique of your stated choice, establish each of the following.

1. (B) The union of sets A and B is the set whose elements belong to at least one of A

Victoria Gitman and Thomas Johnstone. New York City College of Technology, CUNY

We begin with a standard definition from model theory.

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Expressiveness of predicate logic: Some motivation

Computation. Some history...

Logic. Propositional Logic: Syntax. Wffs

03 Review of First-Order Logic

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

Modal Logic. UIT2206: The Importance of Being Formal. Martin Henz. March 19, 2014

Gödel s Completeness Theorem

Overview of Today s Lecture

Introduction to Model Theory

CDM FOL Theories. Klaus Sutner Carnegie Mellon University. Fall 2017

Logic and Computation

Identity. "At least one dog has fleas" is translated by an existential quantifier"

Warm-Up Problem. Please fill out your Teaching Evaluation Survey! Please comment on the warm-up problems if you haven t filled in your survey yet.

Logic: The Big Picture

A Simple Proof of Gödel s Incompleteness Theorems

1. Propositional Calculus

Logic and Probability Lecture 3: Beyond Boolean Logic

Krivine s Intuitionistic Proof of Classical Completeness (for countable languages)

MCS-236: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, Methods of Proof

LGIC 310/MATH 570/PHIL 006 Fall, 2010 Scott Weinstein 9

CSCI3390-Lecture 6: An Undecidable Problem

Learning Goals of CS245 Logic and Computation

The Legacy of Hilbert, Gödel, Gentzen and Turing

CSE 1400 Applied Discrete Mathematics Proofs

The Syntax of First-Order Logic. Marc Hoyois

Basic Algebraic Logic

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

Announcements & Such

Steeple #3: Goodstein s Theorem (glimpse only!)

Class 24: Computability

Computational Logic. Recall of First-Order Logic. Damiano Zanardini

Transcription:

Computational Logic Lecture 8 Properties of Relational Logic Michael Genesereth Autumn 2011 Programme Expressiveness What we can say in First-Order Logic And what we cannot Semidecidability and Decidability Using Godel s Completeness Theorem Complexity of Arithmetic Godel s Incompleteness Theorem 2 1

Structures A structure is a vector consisting of a universe of discourse and values for the items in the signature of a language (when the signature is ordered). Interpretation: Signature Structure Note that there is no additional information in a structure. It is just a different (but useful) way of thinking about an interpretation. 3 Signature: a, b, f, r 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 } Structure: {1, 2}, 1, 2, {1 2, 2 1}, { 1,2, 1,1, 2,2 } 4 2

Definability One of the roles of logic is to define classes of structures, distinguishing those that are in the class from those that are not. Example - Open Partial Orders: r(x,x) r(x,y) r(y,x) r(x,y) r(y,z) r(x,z) Examples: Non-Examples: { {a,b,c}, { a,b, b,c, a,c } { {a,b,c}, { a,a, a,b, a,c } { {a,b,c}, { a,b, a,c } { {a,b,c}, { a,b, b,a } { {a,b,c}, {} { {a,b,c}, { a,b, b,c } 5 Example Definition of Open Partial Orders: r(x,x) r(x,y) r(y,x) r(x,y) r(y,z) r(x,z) Examples: { {a,b,c}, { a,b, b,c, a,c } { {a,b,c}, { a,b, a,c } { {a,b,c}, {} Non-Examples: { {a,b,c}, { a,a, a,b, a,c } { {a,b,c}, { a,b, b,a } { {a,b,c}, { a,b, b,c } 6 3

Elementary Equivalence NB: There are pairs of structures that cannot be distinguished from each other in Relational Logic. Two structures are elementarily equivalent if and only if they satisfy the same set of sentences for all signatures. 7 Examples {1,2}, 1, 2, { 1,2, 2,1 } {1,2}, 2, 1, { 1,2, 2,1 } {3,4}, 3, 4, { 3,4, 4,3 } {, },,, {,,, } Note, however, that these structures are isomorphic - they have the same structure. Q, < R, < 8 4

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 U,p,r consisting of an arbitrary universe U, an arbitrary binary relation p, and the transitive closure r of that relation. NB: This is similar to the open partial orders problem earlier except that (1) we do not care about reflexivity and antisymmetry and (2) we care about the relationship between two relations (p and r). 9 Counterargument and Rebuttal Really? What about this definition? r(x,z) p(x,z) y.(r(x,y) r(y,z)) Counterexample 1: 1 2 3 Counterexample 2: 1 2 3 4 In other words, there is a point between every pair of points between 3 and 4. Require infinite universe. 10 5

Size of the Universe Models with universes of at least size 2: x. y.(p(x) p(y)) x. y.(x y) Models with universes of at most size 2: x. y. z.(z=x z=y) Models with infinite universes: x. z.(r(x,z) p(x,z) y.(r(x,y) r(y,z))) x. y.(p(x,y) r(x,z)) 11 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. 12 6

Programme Expressiveness What we can say in First-Order Logic And what we cannot Semidecidability and Decidability Using Godel s Completeness Theorem Complexity of Arithmetic Godel s Incompleteness Theorem 13 Logical Entailment A set of premises logically entails a conclusion if and only if every interpretation that satisfies the premises also satisfies the conclusion. 14 7

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. 15 Soundness and Completeness Soundness Theorem: If ϕ is provable from Δ, then Δ logically entails ϕ. Completeness Theorem (Godel): If Δ logically entails ϕ, then ϕ is provable from Δ. 16 8

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. 17 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. 18 9

Semidecidability of Logical Entailment goal kb rules proof <- kb goal in proof? Success r <- choose(rules) p <- choose(proof) q <- choose(proof) c <- apply(r,p,q) proof <- proof c 19 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))? 20 10

Undecidability of Logical Entailment 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 ϕ. Δ φ p Yes No 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. 21 Undecidability (continued) It is possible to construct a larger machine p that enters an infinite loop if p says yes and halts if p says no. Δ Halts p 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 22 11

Closure The closure S* 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)) 23 Theories A theory is a set of sentences closed under logical entailment, i.e. T is a theory if and only if T*=T. 24 12

Finite Axiomatizability A theory T is finitely axiomatizable if and only if there is a finite set Δ of sentences such that T=Δ*. 25 Theory Completeness A theory T is 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. 26 13

Relationships on Theories Decidable Semidecidable Finitely Axiomatizable 27 Programme Expressiveness What we can say in First-Order Logic And what we cannot Semidecidability and Decidability Using Godel s Completeness Theorem Complexity of Arithmetic Godel s Incompleteness Theorem 28 14

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

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