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

Similar documents
Introduction to Turing Machines

Decidability: Church-Turing Thesis

Exam Computability and Complexity

Large Numbers, Busy Beavers, Noncomputability and Incompleteness

Computation. Some history...

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

Great Theoretical Ideas

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

Computability and Complexity

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

Computability Theory. CS215, Lecture 6,

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

17.1 The Halting Problem

CS154, Lecture 10: Rice s Theorem, Oracle Machines

Informal Statement Calculus

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

Gödel s Theorem: Limits of logic and computation

There are problems that cannot be solved by computer programs (i.e. algorithms) even assuming unlimited time and space.

Classical Propositional Logic

1 Showing Recognizability

Predicate Logic - Undecidability

Learning Goals of CS245 Logic and Computation

On some Metatheorems about FOL

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

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

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

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

Lecture 13: Foundations of Math and Kolmogorov Complexity

Automata & languages. A primer on the Theory of Computation. Laurent Vanbever. ETH Zürich (D-ITET) October,

Computability Theory

CS154, Lecture 12: Kolmogorov Complexity: A Universal Theory of Data Compression

Class 24: Computability

Understanding Computation

ECS 120 Lesson 18 Decidable Problems, the Halting Problem

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

CS187 - Science Gateway Seminar for CS and Math

Decidable Languages - relationship with other classes.

6-1 Computational Complexity

Turing Machine Recap

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65

Limits of Computability

Before We Start. Turing Machines. Languages. Now our picture looks like. Theory Hall of Fame. The Turing Machine. Any questions? The $64,000 Question

258 Handbook of Discrete and Combinatorial Mathematics

Logic and Computation

CS151 Complexity Theory. Lecture 1 April 3, 2017

uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 1 Turing Reducibility

Most General computer?

The roots of computability theory. September 5, 2016

Church s undecidability result

Epistemological and Computational Constraints of Simulation Support for OR Questions

CS 301. Lecture 17 Church Turing thesis. Stephen Checkoway. March 19, 2018

Friendly Logics, Fall 2015, Lecture Notes 1

Section 14.1 Computability then else

1 The decision problem for First order logic

Cogito ergo sum non machina!

Logic: Propositional Logic Truth Tables

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

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

Automata Theory. Definition. Computational Complexity Theory. Computability Theory

Lecture Notes: The Halting Problem; Reductions

Marie Duží

Turing Machines. Lecture 8

TURING MAHINES

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

Introduction to Turing Machines. Reading: Chapters 8 & 9

DRAFT. Diagonalization. Chapter 4

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.

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

Class 15: Hilbert and Gödel

The Unsolvability of the Halting Problem. Chapter 19

The purpose here is to classify computational problems according to their complexity. For that purpose we need first to agree on a computational

Undecidability and Rice s Theorem. Lecture 26, December 3 CS 374, Fall 2015

Consistency, Optimality, and Incompleteness

CSE355 SUMMER 2018 LECTURES TURING MACHINES AND (UN)DECIDABILITY

Lecture 12: Mapping Reductions

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

The P-vs-NP problem. Andrés E. Caicedo. September 10, 2011

CSE 105 THEORY OF COMPUTATION

Decidability: Reduction Proofs

Answers to the CSCE 551 Final Exam, April 30, 2008

CS21 Decidability and Tractability

Opleiding Informatica

6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, Class 8 Nancy Lynch

On the Computational Hardness of Graph Coloring

Problems, and How Computer Scientists Solve Them Manas Thakur

Recursion Theory. Joost J. Joosten

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

A Note on Turing Machine Design

POLYNOMIAL SPACE QSAT. Games. Polynomial space cont d

Computable Functions

Computer Sciences Department

The Turing Machine. Computability. The Church-Turing Thesis (1936) Theory Hall of Fame. Theory Hall of Fame. Undecidability

Consistency, Optimality, and Incompleteness

1 Acceptance, Rejection, and I/O for Turing Machines

Propositions as Types

Decidability. Linz 6 th, Chapter 12: Limits of Algorithmic Computation, page 309ff

15-251: Great Theoretical Ideas in Computer Science Fall 2016 Lecture 6 September 15, Turing & the Uncomputable

CSE 311: Foundations of Computing. Lecture 27: Undecidability

Complexity Theory Part I

Kvantifikator för en Dag

Transcription:

Decidability and the Undecidability of Predicate Logic IAIK Graz University of Technology georg.hofferek@iaik.tugraz.at 1

Fork of ways Brainteaser: Labyrinth Guards One to salvation One to perdition Two guards One always lies One always tells the truth Can t tell them apart One question What to ask? 2

But Beware! Image source: http://xkcd.com/246/ 3

Game: The Meta Game 1. Two players A, B 2. A starts, turns alternate 3. Always ends (Win or Draw) Examples: Tic-Tac-Toe, Connect-Four, but not Chess Meta-Game One Turn: Player picks a game Game is played (other player starts) Winner gets one point (both if Draw) Ends at 5 points Game? 4

Gödel s Incompleteness Theorem Kurt Gödel Jedes hinreichend mächtige formale System ist entweder widersprüchlich oder unvollständig. 5

Notions of Completeness Theory in Predicate Logic System of Axioms E.g. Theory of Arithmetic Proof System E.g. Natural Deduction 6

Completeness of a Proof System All True Sentences Provable and Nothing else provable Natural Deduction for Predicate Logic 7

Completeness of a Theory All Sentences Φ Provable (Φ is True ) or Negation provable (Φ is False ) (sufficiently complex) Theories in Predicate Logic 8

Enumerable set Σ Decision Problem Function f: Σ, Example: Σ = PPPPPPPPPPPPP FFFFFFFF, ii σ ii sssssssssss f σ = ooooooooo 9

Decidability Decision Problem Σ, f, Algorithm A: Decidable A always halts A computes f σ for all σ Σ Semi-Decidable Iff f σ = A halts A outputs For f σ = A may not halt 10

Example: Decidability Propositional SAT Problem Σ = PPPPPPPPPPPPP FFFFFFFF, ii σ ii sssssssssss f σ = ooooooooo Decidable e.g. A = DDDD Always halts Correct answer 11

Halting Problem Image source: http://xkcd.com/710/ Does program P halt? Decision problem Example programs: while(true){ }; print( Hello World ); while(n!=1) { if(n%2==0) n=n/2; else n=3*n+1; }? 12

Undecidability of HALT Proof by Contradiction Assume A A decides HALT P (A 0 (P) outputs iff P HALTs) Weird Program: weird() { if(a 0 (wwwww)) while(true){ } else exit(); } A 0 : wrong answer for weird() A A decides HALT 13

By Alan Turing (1936) Turing Machine Model of computation Formal notion of Algorithm Subsumes (modern) computers Infinite Memory ( Tape ) Universal Church-Turing Thesis 14

Formal Definition of a Turing Machine Set of States Q Input Alphabet Σ Tape Alphabet Γ Γ Σ Γ Transition Function δ: Q Γ Q Γ L, R Start State q o Q Accept State q aaa Q Reject State q rrr Q 15

Configuration of a Turing Machine State q Position of Head Tape Content uv u q v 16

Decision Problems Problem Reduction f: Σ, g: Δ, f redudes to g f g Use g to solve f h: Σ Γ h effectively computable f σ = g h σ 17

Problem Reduction & Decidability f g, g decidable f decidable Reduce it to g f g, f not decidable g not decidable Deciding f via g not possible 18

Decidability of Predicate Logic Claim: Halting Problem (for Turing Machines) (Validity of Formulas in) Predicate Logic Consequence: HALT not decidable Predicate Logic not decidable 19

Summary Predicate Logic is not decidable Predicate Logic is semi-decidable True statements can be proven Proofs can be checked Try all possible proofs 20