The Arithmetical Hierarchy

Similar documents
Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

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

Arithmetical Hierarchy

Gödel s Incompleteness Theorems

Arithmetical Hierarchy

Informal Statement Calculus

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION

The natural numbers. Definition. Let X be any inductive set. We define the set of natural numbers as N = C(X).

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

Math 10850, fall 2017, University of Notre Dame

An Intuitively Complete Analysis of Gödel s Incompleteness

(9-5) Def Turing machine, Turing computable functions. (9-7) Def Primitive recursive functions, Primitive recursive implies Turing computable.

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

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:

Axiomatic set theory. Chapter Why axiomatic set theory?

Herbrand Theorem, Equality, and Compactness

The predicate calculus is complete

(2) Generalize De Morgan s laws for n sets and prove the laws by induction. 1

Logic, Sets, and Proofs

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

258 Handbook of Discrete and Combinatorial Mathematics

ADVANCED CALCULUS - MTH433 LECTURE 4 - FINITE AND INFINITE SETS

Math 13, Spring 2013, Lecture B: Midterm

PHIL 422 Advanced Logic Inductive Proof

TRUTH-THEORIES FOR FRAGMENTS OF PA

Computability Crib Sheet

1. Propositions: Contrapositives and Converses

The constructible universe

Introduction to Metalogic

Contents Propositional Logic: Proofs from Axioms and Inference Rules

CS 125 Section #10 (Un)decidability and Probability November 1, 2016

Propositional Logic, Predicates, and Equivalence

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

NONSTANDARD MODELS AND KRIPKE S PROOF OF THE GÖDEL THEOREM

From Constructibility and Absoluteness to Computability and Domain Independence

Chapter One. The Real Number System

Foundations of Advanced Mathematics, version 0.8. Jonathan J. White

3 The language of proof

A Little Deductive Logic

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland

DR.RUPNATHJI( DR.RUPAK NATH )

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

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ

6-1 Computational Complexity

A Little Deductive Logic

CMPS 217 Logic in Computer Science. Lecture #17

Introduction to Logic and Axiomatic Set Theory

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

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

Lecture 2: Syntax. January 24, 2018

Propositional Logic Truth-functionality Definitions Soundness Completeness Inferences. Modal Logic. Daniel Bonevac.

MAT 243 Test 1 SOLUTIONS, FORM A

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

Propositional Logic: Syntax

Mathematical Preliminaries. Sipser pages 1-28

2 Computable and Computably Enumerable Sets

Unary negation: T F F T

Introducing Proof 1. hsn.uk.net. Contents

Introduction to Turing Machines. Reading: Chapters 8 & 9

KE/Tableaux. What is it for?

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.

SOME TRANSFINITE INDUCTION DEDUCTIONS

Opleiding Informatica

Automata Theory and Formal Grammars: Lecture 1

Lecture 15 The Second Incompleteness Theorem. Michael Beeson

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC

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

Primitive recursive functions: decidability problems

2.23 Theorem. Let A and B be sets in a metric space. If A B, then L(A) L(B).

CMPSCI 601: Tarski s Truth Definition Lecture 15. where

Lecture 11: Measuring the Complexity of Proofs

Algebras with finite descriptions

We have seen that the symbols,,, and can guide the logical

EXAMPLES OF PROOFS BY INDUCTION

15-424/ Recitation 1 First-Order Logic, Syntax and Semantics, and Differential Equations Notes by: Brandon Bohrer

In N we can do addition, but in order to do subtraction we need to extend N to the integers

Final Exam Theory Quiz Answer Page

Today s Topics. Methods of proof Relationships to logical equivalences. Important definitions Relationships to sets, relations Special functions

Logic and Mathematics:

Arithmetic and Incompleteness. Will Gunther. Goals. Coding with Naturals. Logic and Incompleteness. Will Gunther. February 6, 2013

Qualifying Exam Logic August 2005

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Incomplete version for students of easllc2012 only. 94 First-Order Logic. Incomplete version for students of easllc2012 only. 6.5 The Semantic Game 93

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

Russell s logicism. Jeff Speaks. September 26, 2007

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

A Guide to Proof-Writing

Chapter 1. Logic and Proof

Propositions and Proofs

2.2 Lowenheim-Skolem-Tarski theorems

1.1 Statements and Compound Statements

1. Given the public RSA encryption key (e, n) = (5, 35), find the corresponding decryption key (d, n).

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

CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic:

Arithmetical classification of the set of all provably recursive functions

3. Abstract Boolean Algebras

UNIVERSITY OF VICTORIA DECEMBER EXAMINATIONS MATH 122: Logic and Foundations

Lecture 1: The arithmetic hierarchy

About the relationship between formal logic and complexity classes

We begin with a standard definition from model theory.

Transcription:

Chapter 11 The Arithmetical Hierarchy Think of K as posing the problem of induction for computational devices, for it is impossible to tell for sure whether a given computation will never halt. Thus, K is effectively refutable and K is effectively verifiable. We know from the philosophy of science that universal hypotheses are refutable and existential hypotheses are verifiable. This correspondence also holds, if we think of the expressions of the sets in Kleene normal form. Kleene normal form prenex normal form with U as the only predicate. Thus, we have K(x) z U(x, (z) 1, (z) 2, x ) K(x) z U(x, (z) 1, (z) 2, x ) Thus, you may think of K(x) as an existential hypothesis and of K(x) as a universal hypothesis given that instances of U are observable (e.g., the scientist is treating program x as a black box and watching what it does in various numbers of steps of computation on input x. It is also familiar in the philosophy of science that most hypotheses are neither verifiable nor refutable. Thus, Kant s antinomies of pure reason include such statements as that space is infinite, matter is infinitely divisible, and the series of efficient causes is infinite. These hypotheses all have the form ( x)( y) Φ(x, y). For example, infinite divisibility amounts to for every product of fission, there is a time by which attempts to cut it succeed and the infinity of space amounts to for each distance you travel, you can travel farther. Computers face their own non-verifiable and non-refutable questions: T ot(x) φ x is total Inf (x) W x is infinite ( w)( z) U(x, (z) 1, (z) 2, w ); ( w)( z)( y > w) (U(x, (z) 1, (z) 2, y )). 91

92 CHAPTER 11. THE ARITHMETICAL HIERARCHY Things get worse as the quantifier structure of the hypothesis becomes more complex, where complexity is measured as number of blocks of quantifiers: i.e., counts as three blocks. You can count quantifier alternations as follows. 11.1 The Arithmetical Hierarchy Let P be a relation over N. Σ 0 (P ) P is recursive; Σ n+1 (P ) ( R Σ n )( x) (P ( x) ( y) R( x, y)); Π n (P ) Σ n ( P ); n (P ) Σ n (P ) Π n (P ); Arith(P ) ( n) Σ n (P ). Proposition 11.1 (basic structure and closure laws) 1. n = recursive; 2. n, Σ n, Π n are closed downward under ; 3. n is closed under,, ; 4. Σ n is closed under,, ; 5. Π[A] n is closed under,,. Exercise 11.1 Prove it. Hint: use logical rules and some induction on n. 11.2 The Arithmetical Hierarchy Theorem We don t know yet whether the whole hierarchy collapses into some finite level. Recall that W 0, W 1, W 2... is an enumeration of the r.e. sets. and that the halting problem is just K(x) W x (x). Wouldn t it be nice if for each n, Σ n is enumerated by an analogous collection W n 0, W n 1, W n 2... so that when n = 1, W i = Wi 1? Then we could define the nth generalization of the halting problem just as before: K n (x) W n x (x),

11.2. THE ARITHMETICAL HIERARCHY THEOREM 93 and then it would be clear that K n / Σ n. Accordingly, define Wi 1 ( y ) W i ( y ); W n+1 i ( y) ( y) Wi n ( x, y ). The first item is to show that each relation R( x) in Σ n is some W n i ( x ). Proposition 11.2 ( n)( R Σ n )( i)( x) (R( x) W n i ( x )). Proof: by induction on n. Base case: immediate from fundamental theorem for r.e. sets. Induction: let Σ n+1 (R). Then by the definition of Σ n+1, By the induction hypothesis, ( Q Σ n )( x) (R( x) ( y) Q( x, y)). ( i)( x, y) (Q( x, y) W n i ( x, y )). Substituting in the first formula and applying the definition of W n+1 i ( i)( x) (R( x) ( y) Wi n ( x, y )) W n+1 i ( x ). Define the universal relation for Σ n as follows: Then you can show: Proposition 11.3 Σ n (U n ). U n (i, x) W n i (x). Exercise 11.2 Prove the preceding proposition by induction on n. yield Now define K n (x) W n x (x). So by the usual, Cantorian diagonal argument, we have that K n differs from each Wi n and hence is not Σ n. On the other hand, K n (x) U n (x, x), so since Σ n (U n ), you have Σ n (K n ). Hence, Proposition 11.4 (arithmetical hierarchy theorem) Σ n (K n ) and Σ n ( K n ). Exercise 11.3 Why does the hierarchy theorem imply that Σ n (K n+1 )?

94 CHAPTER 11. THE ARITHMETICAL HIERARCHY 11.3 Cubbyhole Mathematics The arithmetical hierarchy provides us with lots of shelves for problems. Recursion theorists are sort of like librarians: they want to locate everything on the right shelf, for all problems on a given shelf share a certain family resemblance that determines the best approach to all of them. Here are some examples. Some of them are familiar from chapter 6. T ot(x) W w = N Und(x) W w = Inf (x) W w is infinite F in(x) W w is finite Cof(x) W w is co-finite Onto(x) E x = N Subset(x) W (x)0 W (x)1 P subset(x) W (x)0 W (x)1 Ident(x) W (x)0 = W (x)1 Rec(x) W w is recursive. 11.4 Upper Bounds Upper bounds are easily found by the Tarski-Kuratowski algorithm: 1. Define the relation in terms of the Kleene predicate. 2. Put the definition into prenex normal form. (a) First eliminate arrows using conjunctions, disjunctions and negations. (b) Then drive in all negations using DeMorgan s rules. (c) Then rename quantified variables so that they are all distinct in order to prevent clashes when the quantifiers are exported. (d) Then export quantifiers to the front of the formula in the most advantageous way (i.e., interleave them to minimize alternations without permuting the order of any quantifiers that were already nested. 3. The first quantifier determines whether the complexity class is Σ or Π. 4. The number of blocks of quantifiers of the same type determines the subscript.

11.5. LOWER BOUNDS 95 11.4.1 Examples T ot(x) W x = N ( z) W x (z) ( z)( w) U(x, (w) 0, (w) 1, z ) R, with R recursive. So Π 2 (T ot). F in(x) W x is finite ( y)( z y) W x (z) ( y)( z y) φ x (z) ( y)( z y)( w) U(x, (w) 0, (w) 1, z ) R, with R recursive. So Σ 2 (F in). These were automatic! Let s do one that requires a little bit of shuffling. Ident(x) W (x)0 = W (x)1 So Π 2 (Ident). ( z) (W (x)0 (z) W (x)1 (z)) ( z) ( (W (x)0 (z) W (x)1 (z)) ( W (x)0 (z) W (x)1 (z)) ) ( z) [ ( w) U((x) 0, (w) 0, (w) 1, z ) ( w) U((x) 1, (w) 0, (w) 1, z )) (( w) U((x) 0, (w) 0, (w) 1, z ) ( w) U((x) 1, (w) 0, (w) 1, z )) ] ( ( ) ( ) ) (notice, the lead makes it most. efficient to put all the quantifiers first). Exercise 11.4 Do three more examples. 11.5 Lower Bounds Lower bounds on arithmetical complexity come by several techniques: diagonalization, reduction, or completeness arguments. We have already seen two ways

96 CHAPTER 11. THE ARITHMETICAL HIERARCHY to do diagonalization in the last chapter, providing us with seed for reduction arguments. Let s begin with a direct completeness argument. Proposition 11.5 F in is Σ 2 -complete. Proof: suppose Σ 2 (P ). So for some recursive R, we have, Define ( x) (P ( x) ( y)( z) R( x, y, z)). ψ(n, w) (µu)( y w)( z) R((n) 0,..., (n) lh(n) 1, y, z). This is partial recursive by the projection theorem. Apply the s-m-n theorem to obtain total recursive f such that: Hence, φ f(n) (w) ψ(n, w). P ( x) ( y)( z) R( x, y, z) φ f( x ) = o W f( x ) = N T ot( x ) Inf ( x ); P (x) W f(x) is finite T ot( x ) F in(x). Notice that the reduction shows more than intended. It projects P into T ot and P into F in. Following Soare, you may summarize this situation by the notation: (P, P ) m (F in, T ot). When P stands for an arbitrary Σ 2 set, you may abbreviate the situation by writing (Σ 2, Π 2 ) m (F in, T ot). Since F in is in the complement of T ot, this reduction also establishes: Corollary 11.6 T ot is Π 2 -complete. Proposition 11.7 Subset is Π 2 -complete. Exercise 11.5 Prove the upper bound by Tarski-Kuratowski computation. Prove the lower bound by reduction of T ot or Inf. Hint: make the subset index be for N and make the superset index depend on the given number.

11.5. LOWER BOUNDS 97 Exercise 11.6 Determine the complexity of Onto in the hierarchy. No hints this time. At the next level of complexity it is understandably more complicated to establish lower bounds. Proposition 11.8 (Σ 3, Π 3 ) M (Cof, Rec). Corollary 11.9 Cof, Rec are Σ 3 -complete. Proof: suppose that Σ 3 (P ). So for some Σ 3 relation R, we have for each x, P ( x) ( y) R( x, y). It has already been shown that there exists a total recursive f such that Hence R( x, y) W f( x,y ) is infinite. P ( x) ( y) R( x, y ) ( y) W f( x,y ) is infinite. We need to construct total recursive g such that P ( x) W g( x) is cofinite; P ( x) W g( x) m K. I sketch the construction, showing how to enumerate S = W g( x) as a function of x: Let x be given. We start out with an infinite sequence of pointers on the natural numbers labelled with the natural numbers. Let pointer x (y, s) be the number pointed to by the pointer labelled with y at stage s. At stage s = 0: the y th pointer is initialized to point to number y: i.e., pointer x (y, 0) = y. At stage s + 1: check for each y s whether either of the following occur: A. φ y (y) halts in exactly s steps (this can happen only once) or B. ( w s) φ f( x,y ) (w) halts in exactly s steps (this happens infinitely often for some y just in case P ( x)). For each such y, add pointer x (y, s) to S. Now move all pointers to the right, without permuting them, so that positions already added to S are not pointed to, but without leaving any other gaps.

98 CHAPTER 11. THE ARITHMETICAL HIERARCHY Case: Suppose P ( x). Then some y satisfies (B) at infinitely many stages. Let y be the least y such that y satisfies (B) at infinitely many stages. So let s be the first stage after which no y < y satisfies (A or B). Let k = pointer x (y, s ). Then for each k k, pointer y eventually points at k and condition (B) is subsequently satisfied, at which point k is added to S. So S = W g( x ) is cofinite and hence g( x ) Cof, as required. Case: Suppose P ( x). Then for each y, y satisfies (A or B) at only finitely many stages. It remains only to show that S = W g( x ) is not recursive. For suppose S were decidable. Then you could decide K as follows. For given n, decide whether n is in S. If not, return 0. If so, then simulate the preceding enumeration of S to determine the stage s at which n was added to S. According to the statement of (A), s provides an upper bound on the time required for φ n (n) to halt, so run φ n (n) for s steps and see whether it halts by then. If so, return 1. Otherwise, return 0. Exercise 11.7 (Bonus question) from Soare, ex. 3.8. Define Ext(x) φ x is extendable to a total recursive function Show that Ext is Σ 3 -complete. Hint: use the preceding technique. Instead of building an r.e. set, W g(x), build a partial recursive function φ g(x). When φ f( x,y ) (w) halts in exactly s steps, define φ g(x) (pointer x (y, s)) to be some value (e.g., 0). Also, if φ y (pointer x (y, s)) is observed to halt in s steps, define φ g(x) (pointer x (y, s)) to have a value different from φ y (pointer x (y, s)). The resulting function is guaranteed to be partial recursive. If some W f( x,y ) is infinite, the function will itself be total recursive. If no W f( x,y ) is infinite, the function differs somewhere from each total recursive function. 11.6 Arithmetical Truth Let A = the set of all Gödel numbers of true sentences of arithmetic. Gödel s incompleteness construction shows only that A is not r.e. One would like to know more than that. For example, if Π 1 (A), then it would at least be possible to have a falsifiable mathematics analogous to the testing of empirical laws in physics, for an empirical mathematician would have the assurance that each falsehood would eventually be shot down by future proofs. In fact, A is infinitely worse than that, for A is not at any level in the arithmetical hierarchy. Proposition 11.10 ( n) Σ n (A). Proof: let Σ n (P ). Then for some recursive relation R, we have P (x) ( y 1 )( y 2 )... ( y n ) R(x, y 1,..., y n )

11.6. ARITHMETICAL TRUTH 99 Using arithmetical representability, choose formula Φ representing R. Then: P (x) the sentence ( y 1 )... y n Φ(x, y 1,..., y n ) is true in arithmetic A( y 1... y n Φ(x, y 1,..., y n ) ) By Church s thesis, there is a total recursive f such that for all x, f(x) = y 1... y n Φ(x, y 1,..., y n ) Thus P m A. Now choose P = K n.