Th(N, +) is decidable

Similar documents
CS5371 Theory of Computation. Lecture 8: Automata Theory VI (PDA, PDA = CFG)

Equivalence of NTMs and TMs

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,,

Overview. CS389L: Automated Logical Reasoning. Lecture 6: First Order Logic Syntax and Semantics. Constants in First-Order Logic.

Computer Sciences Department

Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution

Theory of Computations Spring 2016 Practice Final Exam Solutions

Chapter 2 & 3: Representations & Reasoning Systems (2.2)

Introductory logic and sets for Computer scientists

Propositional Logic Formal Syntax and Semantics. Computability and Logic

1. Draw the state graphs for the finite automata which accept sets of strings composed of zeros and ones which:

Situation Calculus and YAGI

CSC Discrete Math I, Spring Sets

Introduction to Automata Theory. BİL405 - Automata Theory and Formal Languages 1

Lecture 1: Conjunctive Queries

Automata Theory for Reasoning about Actions

Towards a Logical Reconstruction of Relational Database Theory

1. (10 points) Draw the state diagram of the DFA that recognizes the language over Σ = {0, 1}

Source of Slides: Introduction to Automata Theory, Languages, and Computation By John E. Hopcroft, Rajeev Motwani and Jeffrey D.

Material from Recitation 1

CS21 Decidability and Tractability

DISCRETE MATHEMATICS

Theory of Languages and Automata

Discrete Mathematics Lecture 4. Harper Langston New York University

A set with only one member is called a SINGLETON. A set with no members is called the EMPTY SET or 2 N

Lecture 5: Predicate Calculus. ffl Predicate Logic ffl The Language ffl Semantics: Structures

6.080 / Great Ideas in Theoretical Computer Science Spring 2008

Theory of Computations Spring 2016 Practice Final

CSE 105 THEORY OF COMPUTATION

t!1; R 0! 1; R q HALT

This is already grossly inconvenient in present formalisms. Why do we want to make this convenient? GENERAL GOALS

1.3 Primitive Recursive Predicates and Bounded Minimalization

Formal Definition of Computation. Formal Definition of Computation p.1/28

Propositional Logic. Part I

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter p. 1/27

More on Polynomial Time and Space

Theory of Computation, Homework 3 Sample Solution

Finite automata. We have looked at using Lex to build a scanner on the basis of regular expressions.

MATHEMATICAL STRUCTURES FOR COMPUTER SCIENCE

8 NP-complete problem Hard problems: demo

λ-calculus Lecture 1 Venanzio Capretta MGS Nottingham

CSC 501 Semantics of Programming Languages

CSE 20 DISCRETE MATH. Fall

Symbolic Trajectory Evaluation - A Survey

Principles of AI Planning. Principles of AI Planning. 7.1 How to obtain a heuristic. 7.2 Relaxed planning tasks. 7.1 How to obtain a heuristic

The Big Picture. Chapter 3

Logic as a framework for NL semantics. Outline. Syntax of FOL [1] Semantic Theory Type Theory

Lecture 7: January 15, 2014

ALGORITHMIC DECIDABILITY OF COMPUTER PROGRAM-FUNCTIONS LANGUAGE PROPERTIES. Nikolay Kosovskiy

More Untyped Lambda Calculus & Simply Typed Lambda Calculus

Recursively Enumerable Languages, Turing Machines, and Decidability

Finite Model Generation for Isabelle/HOL Using a SAT Solver

Safe Stratified Datalog With Integer Order Does not Have Syntax

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

Lambda Calculus. Concepts in Programming Languages Recitation 6:

An Evolution of Mathematical Tools

9/19/12. Why Study Discrete Math? What is discrete? Sets (Rosen, Chapter 2) can be described by discrete math TOPICS

CSE 105 THEORY OF COMPUTATION

Regular Languages (14 points) Solution: Problem 1 (6 points) Minimize the following automaton M. Show that the resulting DFA is minimal.

Automated Reasoning. Natural Deduction in First-Order Logic

lec3:nondeterministic finite state automata

CSE 20 DISCRETE MATH. Winter

Finite Automata Part Three

CS314: FORMAL LANGUAGES AND AUTOMATA THEORY L. NADA ALZABEN. Lecture 1: Introduction

Midterm Exam II CIS 341: Foundations of Computer Science II Spring 2006, day section Prof. Marvin K. Nakayama

Limitations of Algorithmic Solvability In this Chapter we investigate the power of algorithms to solve problems Some can be solved algorithmically and

Turing Machines. A transducer is a finite state machine (FST) whose output is a string and not just accept or reject.

Notes. Notes. Introduction. Notes. Propositional Functions. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry.

NP-Completeness of 3SAT, 1-IN-3SAT and MAX 2SAT

Rice s Theorem and Enumeration

Last lecture CMSC330. This lecture. Finite Automata: States. Finite Automata. Implementing Regular Expressions. Languages. Regular expressions

Lecture 2 Finite Automata

CISC 4090 Theory of Computation

DATABASE THEORY. Lecture 18: Dependencies. TU Dresden, 3rd July Markus Krötzsch Knowledge-Based Systems

Pushdown Automata. A PDA is an FA together with a stack.

Model checking pushdown systems

Resolution (14A) Young W. Lim 6/14/14

CS402 - Theory of Automata Glossary By

Decidable Problems. We examine the problems for which there is an algorithm.

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

Computer-Aided Program Design

Chapter 24. Active Database Concepts and Triggers. Outline. Trigger Example. Event-Condition-Action (ECA) Model

Phil 320 Chapter 1: Sets, Functions and Enumerability I. Sets Informally: a set is a collection of objects. The objects are called members or

Introduction to Computers & Programming

Finite Automata. Dr. Nadeem Akhtar. Assistant Professor Department of Computer Science & IT The Islamia University of Bahawalpur

Outline. Language Hierarchy

The Relational Model

6.045J/18.400J: Automata, Computability and Complexity. Practice Quiz 2

Chapter 14: Pushdown Automata

Lexical Analysis. Chapter 2

Structural characterizations of schema mapping languages

LOGIC AND DISCRETE MATHEMATICS

An IPS for TQBF Intro to Approximability

Foundations of Databases

Fundamental Concepts. Chapter 1

Lecture 4: January 12, 2015

Lecture 6: Arithmetic and Threshold Circuits

Languages and Finite Automata

Lecture 4. First order logic is a formal notation for mathematics which involves:

Complete Instantiation of Quantified Formulas in Satisfiability Modulo Theories. ACSys Seminar

Transcription:

Theorem 6.12 Th(N, +) is decidable Presented by: Brian Lee

Two Domains 1. We can give an algorithm to decide truth 2. A problem is undecidable

First Order Logic Also known as First order predicate calculus Uses quantified variables over non-logical objects 1. Infinitely many primes exist. 2. Fermat s Last Theorem 3. Twin prime conjecture

First Order Logic Treat the logical statements as strings and define a language consisting of those statements are true.

Terminology Boolean operations, quantifiers, variables, and relations. Formula Atomic Formula Prenex Normal Form Sentences/Statement Free variables Universe Model Language of a Model theory of M - Th(M)

Boolean Operators Relations (R1,...,Rk) atomic formula: a string of the form R(x1,...,xn) arity: the number of arguments for relation R(x1,...,xn) is a relation taking variables as arguments x1,...,xn are arguments for the R and returns true/false R: x1,...xn -> {TRUE, FALSE}

Formulas Well formed strings over boolean alphabet(a set of strings part of a formal language) It must have the requirements:

Sentences A formula without any free variables Prenex Normal Form Quantifiers are in front of a sentence 1. x2 & x3 are free variables 2. x2 & x3 are free variables 3. Sentence

Variables and Relations First we need to specify 2 things Universe over where variables may take values Assignment of specific relations to relation symbols arity of a relation symbol must match that of its assigned relation

Model A universe with assignment of relations to relation symbols We say that a model M is a tuple of (U,P1,...,Pk) P1,...,Pk are relations assigned to relation symbols R1,...,Rk Language of a Model- collection of formulas that use only the relation symbols the model assigns that use each symbol with the correct arity Phi is a sentence in the language of a model has the value {TRUE,FALSE} if TRUE in model M, then M is a model of Phi

Example 6.10

Example 6.10 Summary M = (N,<=) R1(x,y) is (x <= y) Phi says All natural numbers x and y, there is x >= y or x <= y This sentence is true Using less than <, this sentence will not be in the model because if x == y, then R1 will not work

Example 6.11

Example 6.11 Universe is real numbers R1 is PLUS(a,b,c) = TRUE whenever a + b =c The sentence phi is true using N instead of R(real) universe would not work. We can represent functions like addition by relations.

Theory of M Written as Th(M): This is the collection of true sentences in the language of the model. So any phi that works for all values in the universe. In example 6.10: For Model M = (N, <=) [R1(x,y) or R1(y,x)] is inth(m)

Th(N, +) is decidable What this means theory of model (N,+) is decidable for the universe N. Is Decidable, proof will be shown in the next slides.

Proof Idea We use the finite automata that is capable of doing addition if the input is presented in a special form. The special form is 3 bit value that represents 8 different characters. Instead we use this form in general for i

Proof Idea Let Q s - are quantifiers Psi is a formula without quantifiers has variables: x1,...,xl each quantifier has a variable For each i from 0 to L define:

Proof Idea Also each Phi can take arguments a1,...,an from Natural Numbers writing and substitute them for their respective Xi s.

Proof Idea For each i from 0 to L, Create a finite automaton Ai that recognize strings that represent i-tuples of numbers that make phi(i) true. First construct A(L) directly, iterate i from L to 0 The construct A(i-1) using Ai Check A0 accepts empty string if it does, phi is true and algorithm accepts

Proof i is the size of the column [] is also a symbol ai represents a column

Algorithm to Decide Th(N,+) AL - phil = psi Addition is the atomic formula we are trying to prove is in N FA can be created to compute any of the individual relations use regular language operations to compute the boolean combinations of the atomic formulas

Algorithm to Decide Th(N,+) On input phi, where phi is a sentence Write phi, and define phi(i) for each i from 0 to L. For each i, create finite automaton Ai from phi(i) that accepts strings over whenever phi(a1,...,ai) is true

Construct A i from A i+1

Construct A i from A i+1 Every time Ai reads Fig. 1 It nondeterministically guesses z and simulates Ai+1(Fig. 2)

Construct A i from A i+1

Construct A i from A i+1 Ai nondeterministically guesses the leading bit of a i+1 corresponding to leading 0s in a1 through ai by branching with empty strings it s new start state to all states Ai+1 can reach from its start state with the input strings of the symbols

Final Step A0 accepts any input iff phi(0) is true Final Step: algorithm test if A0 accepts empty string if it does, phi is true and it accepts, else reject

Questions?