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

Similar documents
PROOFS IN PREDICATE LOGIC AND COMPLETENESS; WHAT DECIDABILITY MEANS HUTH AND RYAN 2.3, SUPPLEMENTARY NOTES 2

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

Informal Statement Calculus

Learning Goals of CS245 Logic and Computation

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

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

Propositional and Predicate Logic - XIII

Predicate Calculus. Formal Methods in Verification of Computer Systems Jeremy Johnson

Axiomatic set theory. Chapter Why axiomatic set theory?

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

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

Decidability: Church-Turing Thesis

03 Review of First-Order Logic

INTRODUCTION TO PREDICATE LOGIC HUTH AND RYAN 2.1, 2.2, 2.4

Gödel s Theorem: Limits of logic and computation

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

A Simple Proof of Gödel s Incompleteness Theorems

Lecture 11: Measuring the Complexity of Proofs

GÖDEL S COMPLETENESS AND INCOMPLETENESS THEOREMS. Contents 1. Introduction Gödel s Completeness Theorem

Predicate Calculus. CS 270 Math Foundations of Computer Science Jeremy Johnson

Introduction to Turing Machines

Classical Propositional Logic

Herbrand Theorem, Equality, and Compactness

CMPS 217 Logic in Computer Science. Lecture #17

23.1 Gödel Numberings and Diagonalization

02 Propositional Logic

Logic and Computation

185.A09 Advanced Mathematical Logic

Propositional Logic Language

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

Recursion Theory. Joost J. Joosten

Logic: The Big Picture

About the relationship between formal logic and complexity classes

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:

17.1 The Halting Problem

Institute for Applied Information Processing and Communications (IAIK) Secure & Correct Systems. Decidability

An Intuitively Complete Analysis of Gödel s Incompleteness

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

Friendly Logics, Fall 2015, Lecture Notes 1

Limits of Computability

Propositional Logic: Models and Proofs

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

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

Propositional Logic: Syntax

Intelligent Agents. Formal Characteristics of Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University

3 Propositional Logic

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

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

Introduction to Metalogic

First Order Logic: Syntax and Semantics

Fuzzy Does Not Lie! Can BAŞKENT. 20 January 2006 Akçay, Göttingen, Amsterdam Student No:

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

The Syntax of First-Order Logic. Marc Hoyois

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

Large Numbers, Busy Beavers, Noncomputability and Incompleteness

Propositional and Predicate Logic - VII

06 From Propositional to Predicate Logic

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

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

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

Logic: Propositional Logic Truth Tables

Part I: Propositional Calculus

On some Metatheorems about FOL

Handbook of Logic and Proof Techniques for Computer Science

Propositional logic. First order logic. Alexander Clark. Autumn 2014

Predicate Logic - Undecidability

Gödel s Incompleteness Theorems

Russell s logicism. Jeff Speaks. September 26, 2007

TRUTH-THEORIES FOR FRAGMENTS OF PA

Arithmetical classification of the set of all provably recursive functions

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.

Introduction to Logic and Axiomatic Set Theory

Reminder of Notation. For a variable-free term t, we let t N N stand for the interpretation of t in N. (For example, (SSS0 SS0) N equals 6.

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

Opleiding Informatica

A brief introduction to Logic. (slides from

From Constructibility and Absoluteness to Computability and Domain Independence

Logic via Algebra. Sam Chong Tay. A Senior Exercise in Mathematics Kenyon College November 29, 2012

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

... The Sequel. a.k.a. Gödel's Girdle


KRIPKE S THEORY OF TRUTH 1. INTRODUCTION

Turing Centenary Lecture

2.2 Lowenheim-Skolem-Tarski theorems

First-Order Logic (FOL)

Maximal Introspection of Agents

Predicate Logic: Sematics Part 1

Gödel s Incompleteness Theorems by Sally Cockburn (2016)

Marie Duží

Handout: Proof of the completeness theorem

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

Lecture 2: Syntax. January 24, 2018

Proof Theory and Subsystems of Second-Order Arithmetic

Halting and Equivalence of Program Schemes in Models of Arbitrary Theories

Positive provability logic

A note on fuzzy predicate logic. Petr H jek 1. Academy of Sciences of the Czech Republic

Introduction to Metalogic

CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati

Chapter 2: Introduction to Propositional Logic

Transcription:

PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2 Neil D. Jones DIKU 2005 14 September, 2005 Some slides today new, some based on logic 2004 (Nils Andersen)

OUTLINE, 14 SEPTEMBER, 2005 Gödel s completeness theorem Undecidability Computability Problem reduction Post s correspondence problem Undecidability of predicate logic Implications for the deductive paradigm Gödel s incompleteness theorem Implications for the deductive paradigm 1

SOUNDNESS AND COMPLETENESS Let M be a model (interpretation) for predicate calculus formulas. Definition Formula φ is valid iff M = φ holds for every model M. Definition Proof system is sound iff for any closed predicate formula φ we have: φ implies M = φ for every modelm In brief: any provable formula is valid. Proof system is complete iff for any closed predicate formula φ : φ if M = φ for every modelm In brief: any valid formula is provable. Remark: Validity is a very strong condition to place on a formula φ: φ must hold in all models. In contrast to most mathematical reasoning: about one model at a time. 2

GÖDEL S COMPLETENESS THEOREM The proof system described in Huth and Ryan s book is both sound and complete: If φ is a closed predicate formula, then φ iff it is valid, i.e., M = φ for every model M Proof ideas (Gödel s completeness theorem): 1. Soundness: This is straightforward. 2. Completeness: This is much trickier, as it involves constructing a model of φ just in case φ is not provable. Since Gödel s original proof a variety of simpler alternatives have been devised, but all are too subtle and technically involved to present here. 3

THE DECIDABILITY PROBLEM FOR PREDICATE LOGIC For a sentence φ, obviously either φ is true in all models, or φ is false in some model Now φ is satisfiable if M = φ for some model M, so φ is unsatisfiable if and only if φ is valid. But how can we find out whether or not φ in predicate logic? The truth-table method works for propositional logic: enumerate all possible values of propositional variables. Alas it is no solution for predicate logic, since formula φ will always have infinitely many models, and so infinitely many valuations for individual variables. Surprise: even though provability and validity are equivalent, neither one is decidable. In other words, you cannot find out whether or not φ in predicate logic! 4

COMPUTABLE REDUCTION Definition For two decision problems A over Σ and B over we say that A can be (recursively) reduced to B, sometimes denoted A rec B, if there is a computable function f : Σ such that x Σ (x A f(x) B) f A B Σ Theorem Assume A can be reduced to B. If B is decidable then so is A. If A is undecidable, then so is B. Mother of all problems unsolvable by computer: HALT, program p halts when given p as input (formally: [[p]](p) terminates). This is easily reduced to HALT = {(p, x) [[p]](x) terminates} 5

POST S CORRESPONDENCE PROBLEM Given: a finite sequence (s 1, t 1 ),..., (s k, t k ) of pairs of strings, To decide: is there a non-empty sequence i 1, i 2,..., i n of indices such that s i1 s i2 s in = t i1 t i2 t in? Theorem PCP is undecidable (proven by reducing HALT to it). Without loss of generality we may assume that the strings are over a twoletter alphabet, for instance {0, 1}. Note that PCP is a decision problem; but if we know the answer is positive, the actual sequence of indices can be found in an exhaustive search. Examples of problem instances: and the challenge C = ((1, 101), (10, 00), (011, 11)) D = ((001, 0), (01, 011), (01, 101), (10, 001)) 6

PREDICATE LOGIC IS UNDECIDABLE Proof: Reduce PCP (over the alphabet {0, 1}) to the decision problem for predicate logic. The reduction, i.e., translation, takes an instance to the sentence ((s 1, t 1 ),..., (s k, t k )) P (f s1 (e), f t1 (e))... P (f sk (e), f tk (e)) v w (P (v, w) P (f s1 (v), f t1 (w))... P (f sk (v), f tk (w))) zp (z, z) where f b0 b 1...b l (x) abbreviates f bl (... (f b1 (f b0 (x)))...) (This formula uses a binary predicate symbol P, constant e and two unary function symbols f 0 and f 1.) 7

IMPLICATIONS FOR THE DEDUCTIVE PARADIGM We know: If φ is a closed predicate formula, then φ iff M = φ for every model M. We also know: the question φ is undecidable. Consequence: There exists no perfect theorem-proving system for predicate logic. The set of true (valid) formulas can be enumerated: just enumerate all possible proofs using, for example, Huth and Ryan s proof system. But... there exists no way to enumerate the set of false formulas (else truth would be decidable). 8

GÖDEL S INCOMPLETENESS THEOREM We now know: 1. If φ is a closed predicate formula, then φ if and only if M = φ for every model M. 2. The question φ is undecidable. Why look at all models? In practice, we re more likely interested in a specific model, e.g., the natural numbers (or reals or... ). Alas, the situation gets even worse: Gödel s incompleteness theorem. For any model M that (in a natural sense) includes the natural numbers, and for any logic system M that is sound for M there will exist formulas φ such that φ is true in M but φ is not provable by M. 9

GÖDEL NUMBERING Towards an explicit unprovable statement. Consider this axiomatization N of IN: N1. S(x) = 0 N2. s(x) = S(y) x = y N3. x + 0 = x N4. x + S(y) = S(x + y) N5. x 0 = 0 N6. x S(y) = (x y) + x N7. x < 0 N8. x < S(y) x < y x = y N9. x < y x = y y < x (Gödel used a slightly stronger system with the induction axiom schema φ[0/x] ( x(φ φ[s(x)/x]) xφ) for every formula φ.) Every term, formula and proof can be encoded as a number, its so called Gödel number. (Represent numbers 0, 1, 2,... as numerals 0, S(0), S(S(0)),.... 10

GÖDEL S CONSTRUCTION Via Gödel numbering, properties of and relations between terms, formulas and proofs become number theoretic predicates. In particular, we may consider the contrived predicate W 1 (u, y) holding if and only if u is the Gödel number of a formula φ with x as a free variable, and y is the Gödel number of a proof of φ[s u (0)/x]. W 1 is decidable. It is possible to show that the system N is sufficiently strong to represent W 1, meaning: There is a representing formula W 1 with free variables x and y such that for all a, b IN, if W 1 (a, b) holds, then and if W 1 (a, b) does not hold, then N W 1 [S a (0)/x][S b (0)/y] N W 1 [S a (0)/x][S b (0)/y] 11

AN UNDECIDED STATEMENT Now let m denote the Gödel number of the formula y W 1 (x, y), and let W denote y W 1 [S m (0)/x]. Theorem (Gödel 1931) If N is consistent, then W is true in IN, but N W. Proof: Assume N W, and let k be the Gödel number of a proof of W. Then W 1 (m, k), so N W 1 [S m (0)/x][S k (0)/y], so N is inconsistent. W may be said to express its own unprovability. Modifiying the construction a little, J. Barkley Rosser exhibited a formula R such that neither N R nor N R (provided N is consistent). These constructions can also be carried through for any extension of N. 12

RECURSIVE ENUMERABILITY A set is recursively enumerable (or semi-decidable) if it is the domain of a partial computable function, i.e. if there is a program p such that x is in the set if and only if [[p]](x) terminates. Equivalent: A set is recursively enumerable if it is the range of a computable function, i.e., it can be enumerated (even though it may be decidable.) Theorem A set is decidable if and only if it itself as well as its complement are recursively enumerable. We may conclude that the set of formulas φ such that N φ is not even recursively enumerable. For any reasonable concept of provability, the theorems (the provable formulas) must be recursively enumerable. But: HALT = {(p, x) [[p]](x) does not terminate} is not recursively enumerable. And: Provable = {φ φ} is not recursively enumerable for any sound proof system containing the natural numbers. 13

IMPLICATIONS FOR THE DEDUCTIVE PARADIGM These results have serious implications whenever we want to apply the deductive paradigm to a mathematical theory sufficiently strong to reason about the natural numbers. The set of true statements is undecidable (so nominating each of them as an axiom goes against the deductive principles). Selecting a decidable subset of true statements as the axioms, on the other hand, yields an inherently incomplete system: there will always exist true statements that cannot be proven 14