CMPS 217 Logic in Computer Science. Lecture #17
|
|
- Homer Haynes
- 5 years ago
- Views:
Transcription
1 CMPS 217 Logic in Computer Science Lecture #17 1
2 The Complexity of FO-Truth on a Structure Structure A Complexity of Th(A) Structure of the natural numbers N = (N, +,, 0, 1) Undecidable Structure of the real numbers R = (R, +,, 0, 1) Decidable in EXPSPACE; PSPACE-hard Non-trivial finite structure PSPACE-complete 2
3 Reminder: Decidable and Undecidable Problems Definition: Let Q be a decision problem. Q is decidable (solvable) if there is an algorithm (Turing machine, via Church s Thesis) for solving the membership problem for the language associated with it. Q is undecidable (unsolvable) if no such algorithm exists 1 ( yes ) Input x Q? 0 ( no ) 3
4 Semi-Decidable Problems Definition: Let Q be a decision problem. Q is semi-decidable (recursively enumerable) if there is an algorithm (Turing machine, via Church s Thesis) such that if If x is a yes input to Q (i.e., a member of the language associated with Q), then the algorithm halts and outputs 1. If x is a no input to Q, then the algorithm does not halt. 1 ( yes ) Input x Q? 4
5 Semi-Decidable Problems The Halting Problem: Given a Turing machine M and an input x, does M halt on x? Fact: The Halting Problem is semi-decidable. Algorithm: Use a universal Turing machine to run M on x. Hilbert s 10 th Problem: Given a polynomial p(x 1,,x n ) with integer coefficients, does it have an all-integer solution? Fact: Hilbert s 10 th Problem is semi-decidable. Algorithm: Evaluate p(x 1,..,x n ) on every tuple a 1,,a n until you find a tuple such that p(a 1,,a n ) = 0. 5
6 Semi-Decidable Problems Theorem: Let Q be a decision problem. Then the following statements are equivalent: 1. Q is semi-decidable. 2. There is an algorithm that enumerates all yes inputs of Q (i.e., all members of the language associated with Q), and nothing else. Proof: (Sketch) Run the algorithm for the semi-decidability of Q on progressively more inputs and for progressively increasing intervals of time Given an input, run the enumeration algorithm until the input is produced by the enumeration algorithm. 6
7 Decidable vs. Semi-Decidable Problems Theorem: Let Q be a decision problem. Then the following statements are equivalent: 1. Q is decidable. 2. Both Q and the complement Q c of Q are semi-decidable Proof: (Sketch) Easy exercise Given an input, run the semi-decidability algorithm for Q and the semi-decidability algorithm for Q c in parallel. Exactly one of these two algorithms must terminate. If the semi-decidability algorithm for Q terminates, return 1; If the semi-decidability algorithm for Q c terminates, return 0. 7
8 Decidable vs. Semi-Decidable Problems Theorem: Let Q be a decision problem. Then the following statements are equivalent: 1. Q is decidable. 2. Both Q and the complement Q c of Q are semi-decidable Corollary: If Q is an undecidable problem, then at least one of Q and Q c is not semi-decidable. Corollary: 1. The complement of the Halting problem is not semi-decidable. 2. The complement of Hilbert s 10 th Problem is not semi-decidable. 8
9 The Finer Structure of Undecidable Problems Fact: Suppose that Q is an undecidable decision problem. Then exactly one of the following three possibilities holds: 1. Q is semi-decidable, but its complement Q c is not. 2. Q is not semi-decidable, but its complement Q c is. 3. Neither Q nor its complement Q c is semi-decidable. Examples: The Halting Problem is semi-decidable, but its complement is not. Total Turing Machine Problem: Given a Turing maching M, does it halt on every input? Neither the Total Turing Machine Problem nor its complement is semi-decidable. Neither Th(N) nor its complement is semi-decidable. 9
10 Validities and Finite Validities Recall the two main undecidability results about FO-logic: Theorem (Gödel, Church, Tarski 1930s): Let S be a signature containing a relation symbol of arity at least 2. The Validity Problem is undecidable, i.e., there is no algorithm to solve the following problem: given a FO-sentence ψ over S, is it valid? Theorem (Trakhtenbrot 1949): Let S be a signature containing a relation sumbol of arity at least 2. The Finite Validity Problem is undecidable, i.e., there is no algorithm to solve the following problem: given a FO-sentence ψ over S, is it finitely valid? Question: What can we say about the semi-decidability of these two problems? 10
11 Finite Validities Theorem: The Complement of the Finite Validity Problem is semi-decidable. Proof: Given a FO-sentence ψ, consider its negation ( ψ) and search for a finite structure A such that A ( ψ). If such a finite structure is found, then ψ is not finitely valid. Corollary: The Finite Validity Problem is not semi-decidable. Equivalently, there is no algorithm that enumerates all finitely valid FO-sentences. 11
12 Validities Theorem (Gödel s Completeness Theorem): The Validity Problem is semi-decidable. Equivalently, there is an algorithm that enumerates all valid FO-sentences. Note: The semi-decidability of the Validity Problem yields a proof procedure for proving all valid FO-sentences (the proof of a valid FO-sentence is the run of the algorithm for semi-decidability). Corollary: The complement of the Validity Problem is not semi-decidable. 12
13 The Undecidability of FO-Logic Problem Decidable Semi-decidable Semi-decidable Complement Validity No Yes No Finite Validity No No Yes Th(N) No No No 13
14 Validities Theorem (Gödel s Completeness Theorem): The Validity Problem is semi-decidable. Equivalently, there is an algorithm that enumerates all valid FO-sentences. In what follows, we will give a proof of this theorem for the special case of FO-sentences without the equality symbol =. The proof will be carried out in three steps. Step 1: We will prove Skolem s Theorem for FO-sentences. Step 2: We will prove Herbrand s Theorem for FO-sentences without the equality symbol = Step 3: We will show that the semi-decidablity of the Validity Problem for FO-sentences without the equality symbol follows from Step 1, Step 2, and the Compactness Theorem for Propositional Logic. 14
15 Skolem s Theorem and Herbrand s Theorem Skolem s Theorem: There is a polynomial-time algorithm such that, given a FO-sentence ϕ, it returns a Π 1 -sentence ϕ over a signature expanded with additional function symbols such that ϕ is satisfiable if and only if ϕ* is satisfiable. Moreover, if the equality symbol = does not occur in ϕ, then it does not occur in ϕ* either. Herbrand s Theorem: For every Π 1 -sentence ψ without the equality symbol =, there is a (perhaps infinite) set H(ψ) of propositional formulas such that ψ is satisfiable if and and only if H(ψ) is satisfiable. Moreover, there is an algorithm that, given ψ, it enumerates H(ψ) (i.e., it produces a list of all elements of H(ψ). 15
16 Skolem s Theorem and Herbrand s Theorem Fact: The Completeness Theorem for FO-sentences without = can be obtained by combining Skolem s Theorem, Herbrand s Theorem, and the Compactness Theorem for Propositional Logic. Let ϕ be a FO-sentence without =. We now have that: ϕ is valid if and only if ( ϕ) is unsatisfiable if and only if (by Skolem s Theorem) ( ϕ)* is unsatisfiable if and only if (by Herbrand s Theorem) H(( ϕ)*) is unsatisfiable if and only if (by the Compactness Theorem for Prop. Logic) there is a finite subset H 0 of H(( ϕ)*) that is unsatisfiable. 16
17 Quantifiers and Functions Consider a FO-sentence of the form x y θ, where θ is quantifier-free. Suppose that A is a structure such that A x y θ. This means that for every element a in A, there is an element b in A such that A, a, b θ (i.e. A, s θ, where s(x) =a, s(y) =b) Now, suppose that for every a in A, we select such a b. This means that there is a function f*: A A such that for every a in A, we have that A, a, f*(a) θ. (Note: If A is an infinite set, then this step uses the Axiom of Choice). In turn, this means that A f x θ(y/f(x)), where f is a new unary function symbol and θ(y/f(x)) is the quantifier-free formula obtained from ψ by replacing each occurrence of y by the term f(x). Conversely if A f x θ(y/f(x)), then A x y θ. Consequently, x y θ f x θ(y/f(x)). Note: f x ψ(y/f(x)) is a formula of Second-Order Logic. 17
18 Quantifiers and Functions So, we saw that x y θ f x θ(y/f(x)), where f is a new unary function symbol. This extends to sentence of the form x 1 x k y θ, namely, x 1 x k y θ f x 1 x k θ(y/f(x 1,,x k )), where f is new k-ary function symbol. This transformation plays an key role in the proof of Skolem s Theorem. 18
19 Skolem s Theorem Theorem: There is a polynomial-time algorithm such that, given a FO-sentence ϕ, it returns a Π 1 -sentence ϕ over a signature expanded with additional function symbols f 1, f 2,, f k such that ϕ f 1 f 2 f k ϕ*. In particular, ϕ is satisfiable if and only if ϕ* is satisfiable. Moreover, if the equality symbol = does not occur in ϕ, then it does not occur in ϕ* either. Proof: Step 1: Bring ϕ to prenex normal form. Step 2: If ϕ begins with, then apply repeatedly the transformation x 1 x k yθ f x 1 x k θ(y/f(x 1,,x k )). Step 3: If ϕ begins with, then apply the transformation z θ f w θ(z/f(w)) (to see that these two formulas are logically equivalent: - left to right: take a witness c for z and let f be the constant function f(w) = c. - right to left: if b is any element, then f(b) is a witness for z.) 19
20 Skolem s Theorem: Examples Example 1: x 1 y 1 x 2 θ f 1 x 1 x 2 θ(y 1 /f 1 (x 1 )) Example 2: x 1 x 2 y 1 y 2 x 3 y 3 θ f 1 x 1 x 2 y 2 x 3 y 3 θ(y 1 /f 1 (x 1,x 2 )) f 1 f 2 x 1 x 2 x 3 y 3 θ(y 1 /f 1 (x 1,x 2 ), y 2 /f 2 (x 1,x 2 ) f 1 f 2 f 3 x 1 x 2 x 3 θ(y 1 /f 1 (x 1,x 2 ), y 2 /f 2 (x 1,x 2 ),y 3 /f 3 (x 1,x 2,x 3 )) 20
21 Skolem s Theorem: Examples Example 3: x 1 y 1 x 2 θ f 1 w 1 y 1 x 2 θ(x 1 /f 1 (w 1 )) f 1 f 2 w 1 y 1 θ(x 1 /f 1 (w), x 2 /f 2 (w 1,y 1 )) 21
22 Towards Herbrand s Theorem Let ψ be a Π 1 -sentence without equality =. As a stepping stone to Herbrand s Theorem, we will show that the following statements are equivalent: ψ is satisfiable (i.e., there is a structure A such that A ψ) ψ is satisfiable by some Herbrand structure (i.e., there is a Herbrand structure A such that A ψ). Key idea behind Herbrand structures: Use the syntax of first-order logic to build structures. In particular, use the terms as elements of the universe of structures. 22
23 Herbrand Universe and Herbrand Structures Definition. Let ψ be a FO-sentence. The Herbrand Universe U(ψ) of ψ is the set of all possible terms obtained from the function symbols and the constant symbols occurring in ψ. If ψ has no function or constant symbols, then U(ψ) consists of a new constant symbol c and all terms obtained from c and the function symbols occurring in ψ. A Herbrand structure associated with ψ is a structure A such that the universe of A is the Herbrand universe U(ψ). the terms are interpreted on A by themselves there no restrictions on the relations of A. Thus, to define a Herbrand structure, it suffices to define its relations. 23
24 Herbrand Structures Example: Let ψ be the formula x (R(x,c) Ç R(x,f(d)) The Herbrand Universe is the following infinite set U(ψ) = { c, d, f(c), f(d), f(f(c)), f(f(d)), f(f(f(c))), } Herbrand Structure A = (U(ψ), R, f, c, d) with f (c) = f(c), f (d) = f(d), (more generally, f (t) = f(t)). R = {(c,c), (d,c)} Different Herbrand structures can be obtained by changing the relation R, while keeping everything else the same. For example, consider the Herbrand structure B in which the relation symbol R is interpreted by the relation R = {(c,d), (d,d), (d, f(d)), (f(f(c)), f(f(f(d)))} 24
25 Herbrand Structures Theorem A: Let ψ be a Π 1 -sentence without equality. Then the following statements are equivalent: 1. ψ is satisfiable. 2. ψ is satisfiable by some Herbrand structure. Proof: Only the direction is not obvious. Let f 1,,f n, R 1,,R m, c 1,,c k be the non-logical symbols occurring in ψ. Assume that there is a structure A = (A, f* 1,,f* n,r* 1,,R* m, c* 1,,c* k ) such that A ψ. Let B be the Herbrand structure with universe U(ψ) and with relations R 1,,R m defined as follows: if R i is a relation symbol of arity r and t 1,,t r are closed terms, then (t 1, t r ) R i if and only if A R* i (t A 1,,t A r), where t A j is the interpretation of the term t j on A. We will show that B ψ. 25
26 Herbrand Structures Lemma: Let θ be a quantifier-free formula with variables x 1, x n and without equality =. For all closed terms t 1,,t n, the following statements are equivalent: 1. B θ(x 1 /t 1,,x n /t n ) 2. A θ(x 1 /t A 1,,x n /t A n). Proof: By induction on the construction of quantifier-free formulas. The base case of atomic formulas is true because of the way B was defined. Note: This lemma fails if we equalities = are allowed. For example, A may satisfy c* 1 = f* 2 (c 3 ), while B does not. 26
27 Herbrand Structures Proof (continued): Since ψ is a Π 1 -sentence, it is of the form x 1 x n θ, where θ is quantifier-free. We have to show that B x 1 x n θ. Take n elements from the universe U(ψ) of B. They must be closed terms t 1,,t n. Since A x 1 x n θ, we have that A θ(x 1 /t A 1,,x n /t A n). Hence, by the Lemma, we have that B θ(x 1 /t 1,,x n /t n ). This completes the proof that B x 1 x n θ. 27
28 Illustration Example (continued): Let ψ be the formula x (R(x,c) Ç R(x,f(d)) The Herbrand Universe is the following infinite set U(ψ) = { c, d, f(c), f(d), f(f(c)), f(f(d)), f(f(f(c))), } ψ is satisfiable. For example, A ψ, where A = ({a}, f*, R*, a,a), f*(a) = a, and R* = {(a,a)}. Note that f*(f*(a)) = a, f*(f*(f*(a))) = a, etc. Thus, for every closed term t, we have that t A = a. Let B = (U(ψ), f, R, c, d) be the Herbrand model such that (t 1,t 2 ) R if and only if (t A 1,tA 2) R*. This means that R = {(t 1,t 2 ): t 1, t 2 are closed terms}. Clearly, B ψ. 28
29 Herbrand s Theorem Recall that our goal is to establish Herbrand s Theorem: For every Π 1 -sentence ψ without the equality symbol =, there is a (perhaps infinite) set H(ψ) of propositional formulas such that ψ is satisfiable if and and only if H(ψ) is satisfiable. Moreover, there is an algorithm that, given ψ, it enumerates H(ψ) (i.e., it produces a list of all elements of H(ψ). Definition: Let ψ is a Π 1 -sentence of the form x 1 x n θ, where θ is quantifier-free. The Herbrand expansion H(ψ) of ψ is the set H(ψ) = { θ(x 1 /t 1,,x n /t n ): t 1,, t n are in U(ψ) } 29
30 Herbrand Expansions Definition: Let ψ is a Π 1 -sentence of the form x 1 x n θ, where θ is quantifier-free. The Herbrand expansion H(ψ) of ψ is the set H(ψ) = { θ(x 1 /t 1,,x n /t n ): t 1,, t n are in U(ψ) } Note: On the face of it, H(ψ) is a set of quantifier-free sentences. However, it can be identified, and it will be identified, with a set of propositional formulas obtained from the sentences of H(ψ) by replacing each distinct atomic sentence R(t 1,,t m ) by a distinct propositional variable. Fact: There is an algorithm that, given a Π 1 -sentence ψ, it enumerates all members of the Herbrand expansion H(ψ) of ψ. 30
31 Herbrand Expansions Example 1: Let ψ be the formula x (R(c,x) Ç R(x,f(c)) H(ψ) contains the quantifier-free sentences: R(c,c) Ç R(c,f(c)) x/c R(c,f(c)) Ç R(f(c),f(c)) x/f(c) R(c,f(f(c)) Ç R(f(f(c)), f(c)) x/f(f(c)) As a set of propositional formulas, H(ψ) contains the formulas P 1 Ç P 2 P 2 Ç P 3 P 4 Ç P 5 31
32 Herbrand Expansions Example 2: Let ψ be the formula x (P(x) Ç P(f(c)) H(ψ) contains the quantifier-free sentences: P(c) Ç P(f(c)) x/c P(f(c)) Ç P(f(c)) x/f(c) P(f(f(c)) Ç P(f(c)) x/f(f(c)) As a set of propositional formulas, H(ψ) contains the formulas P 1 Ç P 2 P 2 Ç P 2 P 3 Ç P 2 32
33 Herbrand s Theorem Herbrand s Theorem: Let ψ be a Π 1 -sentence ψ without the equality symbol = and let H(ψ) be its Herbrand expansion. Then the following statements are equivalent ψ is satisfiable H(ψ) is satisfiable (as a set of propositional formulas) Proof: By Theorem A, ψ is satisfiable if and only if ψ is satisfiable by some Herbrand structure A. Recall that in defining a Herbrand structure A, we need only define the relations of A. This means that we only need to decide which atomic sentences R(t 1,,t n ) are true on A or, equivalently, we need to decide the truth values of the propositional variables occurring in H(ψ). It follows that the Herbrand structures that satisfy ψ are in a one-to-one correspondence with the satisfying truth assignments of H(ψ). In particular, ψ is satisfiable if and only if H(ψ) is satisfiable. 33
First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms
First-Order Logic 1 Syntax Domain of Discourse The domain of discourse for first order logic is FO structures or models. A FO structure contains Relations Functions Constants (functions of arity 0) FO
More information1 FUNDAMENTALS OF LOGIC NO.10 HERBRAND THEOREM Tatsuya Hagino hagino@sfc.keio.ac.jp lecture URL https://vu5.sfc.keio.ac.jp/slide/ 2 So Far Propositional Logic Logical connectives (,,, ) Truth table Tautology
More informationHerbrand Theorem, Equality, and Compactness
CSC 438F/2404F Notes (S. Cook and T. Pitassi) Fall, 2014 Herbrand Theorem, Equality, and Compactness The Herbrand Theorem We now consider a complete method for proving the unsatisfiability of sets of first-order
More informationPropositional and Predicate Logic - XIII
Propositional and Predicate Logic - XIII Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - XIII WS 2016/2017 1 / 22 Undecidability Introduction Recursive
More informationFINITE MODEL THEORY (MATH 285D, UCLA, WINTER 2017) LECTURE NOTES IN PROGRESS
FINITE MODEL THEORY (MATH 285D, UCLA, WINTER 2017) LECTURE NOTES IN PROGRESS ARTEM CHERNIKOV 1. Intro Motivated by connections with computational complexity (mostly a part of computer scientice today).
More informationPREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2
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,
More informationFirst-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig
First-Order Logic First-Order Theories Roopsha Samanta Partly based on slides by Aaron Bradley and Isil Dillig Roadmap Review: propositional logic Syntax and semantics of first-order logic (FOL) Semantic
More informationAbout the relationship between formal logic and complexity classes
About the relationship between formal logic and complexity classes Working paper Comments welcome; my email: armandobcm@yahoo.com Armando B. Matos October 20, 2013 1 Introduction We analyze a particular
More informationPeano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now
CSC 438F/2404F Notes (S. Cook) Fall, 2008 Peano Arithmetic Goals Now 1) We will introduce a standard set of axioms for the language L A. The theory generated by these axioms is denoted PA and called Peano
More informationMathematical Logic (IX)
Mathematical Logic (IX) Yijia Chen 1. The Löwenheim-Skolem Theorem and the Compactness Theorem Using the term-interpretation, it is routine to verify: Theorem 1.1 (Löwenheim-Skolem). Let Φ L S be at most
More informationInformal Statement Calculus
FOUNDATIONS OF MATHEMATICS Branches of Logic 1. Theory of Computations (i.e. Recursion Theory). 2. Proof Theory. 3. Model Theory. 4. Set Theory. Informal Statement Calculus STATEMENTS AND CONNECTIVES Example
More informationCHAPTER 2. FIRST ORDER LOGIC
CHAPTER 2. FIRST ORDER LOGIC 1. Introduction First order logic is a much richer system than sentential logic. Its interpretations include the usual structures of mathematics, and its sentences enable us
More informationPropositional and Predicate Logic - VII
Propositional and Predicate Logic - VII Petr Gregor KTIML MFF UK WS 2015/2016 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - VII WS 2015/2016 1 / 11 Theory Validity in a theory A theory
More informationSyntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.
First-Order Logic Syntax The alphabet of a first-order language is organised into the following categories. Logical connectives:,,,,, and. Auxiliary symbols:.,,, ( and ). Variables: we assume a countable
More informationOverview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang
Overview of Topics Finite Model Theory Part 1: Introduction 1 What is finite model theory? 2 Connections to some areas in CS Qing Wang qing.wang@anu.edu.au Database theory Complexity theory 3 Basic definitions
More informationClassical First-Order Logic
Classical First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) First-Order Logic (Classical) MFES 2008/09
More informationPROOFS IN PREDICATE LOGIC AND COMPLETENESS; WHAT DECIDABILITY MEANS HUTH AND RYAN 2.3, SUPPLEMENTARY NOTES 2
PROOFS IN PREDICATE LOGIC AND COMPLETENESS; WHAT DECIDABILITY MEANS HUTH AND RYAN 2.3, SUPPLEMENTARY NOTES 2 Neil D. Jones DIKU 2005 12 September, 2005 Some slides today new, some based on logic 2004 (Nils
More informationPrimitive recursive functions: decidability problems
Primitive recursive functions: decidability problems Armando B. Matos October 24, 2014 Abstract Although every primitive recursive (PR) function is total, many problems related to PR functions are undecidable.
More informationGreat Theoretical Ideas
15-251 Great Theoretical Ideas in Computer Science Gödel s Legacy: Proofs and Their Limitations Lecture 25 (November 16, 2010) The Halting Problem A Quick Recap of the Previous Lecture Is there a program
More informationOn some Metatheorems about FOL
On some Metatheorems about FOL February 25, 2014 Here I sketch a number of results and their proofs as a kind of abstract of the same items that are scattered in chapters 5 and 6 in the textbook. You notice
More informationUndecibability. Hilbert's 10th Problem: Give an algorithm that given a polynomial decides if the polynomial has integer roots or not.
Undecibability Hilbert's 10th Problem: Give an algorithm that given a polynomial decides if the polynomial has integer roots or not. The problem was posed in 1900. In 1970 it was proved that there can
More informationThe Church-Turing Thesis and Relative Recursion
The Church-Turing Thesis and Relative Recursion Yiannis N. Moschovakis UCLA and University of Athens Amsterdam, September 7, 2012 The Church -Turing Thesis (1936) in a contemporary version: CT : For every
More informationExample. Lemma. Proof Sketch. 1 let A be a formula that expresses that node t is reachable from s
Summary Summary Last Lecture Computational Logic Π 1 Γ, x : σ M : τ Γ λxm : σ τ Γ (λxm)n : τ Π 2 Γ N : τ = Π 1 [x\π 2 ] Γ M[x := N] Georg Moser Institute of Computer Science @ UIBK Winter 2012 the proof
More informationIntroduction to Model Theory
Introduction to Model Theory Charles Steinhorn, Vassar College Katrin Tent, University of Münster CIRM, January 8, 2018 The three lectures Introduction to basic model theory Focus on Definability More
More informationFirst-Order Logic (FOL)
First-Order Logic (FOL) Also called Predicate Logic or Predicate Calculus 2. First-Order Logic (FOL) FOL Syntax variables x, y, z, constants a, b, c, functions f, g, h, terms variables, constants or n-ary
More information1 Completeness Theorem for Classical Predicate
1 Completeness Theorem for Classical Predicate Logic The relationship between the first order models defined in terms of structures M = [M, I] and valuations s : V AR M and propositional models defined
More informationHandbook of Logic and Proof Techniques for Computer Science
Steven G. Krantz Handbook of Logic and Proof Techniques for Computer Science With 16 Figures BIRKHAUSER SPRINGER BOSTON * NEW YORK Preface xvii 1 Notation and First-Order Logic 1 1.1 The Use of Connectives
More informationif t 1,...,t k Terms and P k is a k-ary predicate, then P k (t 1,...,t k ) Formulas (atomic formulas)
FOL Query Evaluation Giuseppe De Giacomo Università di Roma La Sapienza Corso di Seminari di Ingegneria del Software: Data and Service Integration Laurea Specialistica in Ingegneria Informatica Università
More informationIntroduction to Logic in Computer Science: Autumn 2006
Introduction to Logic in Computer Science: Autumn 2006 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Plan for Today Today s class will be an introduction
More informationLecture 2: Syntax. January 24, 2018
Lecture 2: Syntax January 24, 2018 We now review the basic definitions of first-order logic in more detail. Recall that a language consists of a collection of symbols {P i }, each of which has some specified
More information6-1 Computational Complexity
6-1 Computational Complexity 6. Computational Complexity Computational models Turing Machines Time complexity Non-determinism, witnesses, and short proofs. Complexity classes: P, NP, conp Polynomial-time
More informationClassical First-Order Logic
Classical First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2009/2010 Maria João Frade (DI-UM) First-Order Logic (Classical) MFES 2009/10
More information2.2 Lowenheim-Skolem-Tarski theorems
Logic SEP: Day 1 July 15, 2013 1 Some references Syllabus: http://www.math.wisc.edu/graduate/guide-qe Previous years qualifying exams: http://www.math.wisc.edu/ miller/old/qual/index.html Miller s Moore
More information1 The decision problem for First order logic
Math 260A Mathematical Logic Scribe Notes UCSD Winter Quarter 2012 Instructor: Sam Buss Notes by: James Aisenberg April 27th 1 The decision problem for First order logic Fix a finite language L. Define
More informationBasics of Model Theory
Chapter udf Basics of Model Theory bas.1 Reducts and Expansions mod:bas:red: defn:reduct mod:bas:red: prop:reduct Often it is useful or necessary to compare languages which have symbols in common, as well
More informationMore Model Theory Notes
More Model Theory Notes Miscellaneous information, loosely organized. 1. Kinds of Models A countable homogeneous model M is one such that, for any partial elementary map f : A M with A M finite, and any
More informationApplied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw
Applied Logic Lecture 1 - Propositional logic Marcin Szczuka Institute of Informatics, The University of Warsaw Monographic lecture, Spring semester 2017/2018 Marcin Szczuka (MIMUW) Applied Logic 2018
More informationIntelligent Agents. Formal Characteristics of Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University
Intelligent Agents Formal Characteristics of Planning Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University Extensions to the slides for chapter 3 of Dana Nau with contributions by
More informationFirst Order Logic (FOL) 1 znj/dm2017
First Order Logic (FOL) 1 http://lcs.ios.ac.cn/ znj/dm2017 Naijun Zhan March 19, 2017 1 Special thanks to Profs Hanpin Wang (PKU) and Lijun Zhang (ISCAS) for their courtesy of the slides on this course.
More information03 Review of First-Order Logic
CAS 734 Winter 2014 03 Review of First-Order Logic William M. Farmer Department of Computing and Software McMaster University 18 January 2014 What is First-Order Logic? First-order logic is the study of
More informationThe Syntax of First-Order Logic. Marc Hoyois
The Syntax of First-Order Logic Marc Hoyois Table of Contents Introduction 3 I First-Order Theories 5 1 Formal systems............................................. 5 2 First-order languages and theories..................................
More informationFinal Exam (100 points)
Final Exam (100 points) Honor Code: Each question is worth 10 points. There is one bonus question worth 5 points. In contrast to the homework assignments, you may not collaborate on this final exam. You
More informationDecision Problems with TM s. Lecture 31: Halting Problem. Universe of discourse. Semi-decidable. Look at following sets: CSCI 81 Spring, 2012
Decision Problems with TM s Look at following sets: Lecture 31: Halting Problem CSCI 81 Spring, 2012 Kim Bruce A TM = { M,w M is a TM and w L(M)} H TM = { M,w M is a TM which halts on input w} TOTAL TM
More informationA1 Logic (25 points) Using resolution or another proof technique of your stated choice, establish each of the following.
A1 Logic (25 points) Using resolution or another proof technique of your stated choice, establish each of the following. = ( x)( y)p (x, y, f(x, y)) ( x)( y)( z)p (x, y, z)). b. (6.25 points) Γ = ( x)p
More informationComputational Models Lecture 9, Spring 2009
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Computational Models Lecture 9, Spring 2009 Reducibility among languages Mapping reductions More undecidable
More informationAbstract model theory for extensions of modal logic
Abstract model theory for extensions of modal logic Balder ten Cate Stanford, May 13, 2008 Largely based on joint work with Johan van Benthem and Jouko Väänänen Balder ten Cate Abstract model theory for
More information5. Peano arithmetic and Gödel s incompleteness theorem
5. Peano arithmetic and Gödel s incompleteness theorem In this chapter we give the proof of Gödel s incompleteness theorem, modulo technical details treated in subsequent chapters. The incompleteness theorem
More informationLarge Numbers, Busy Beavers, Noncomputability and Incompleteness
Large Numbers, Busy Beavers, Noncomputability and Incompleteness Food For Thought November 1, 2007 Sam Buss Department of Mathematics U.C. San Diego PART I Large Numbers, Busy Beavers, and Undecidability
More informationOverview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method
Overview CS389L: Automated Logical Reasoning Lecture 7: Validity Proofs and Properties of FOL Agenda for today: Semantic argument method for proving FOL validity Işıl Dillig Important properties of FOL
More informationLimits of Computability
Limits of Computability Wolfgang Schreiner Wolfgang.Schreiner@risc.jku.at Research Institute for Symbolic Computation (RISC) Johannes Kepler University, Linz, Austria http://www.risc.jku.at Wolfgang Schreiner
More informationFrom Constructibility and Absoluteness to Computability and Domain Independence
From Constructibility and Absoluteness to Computability and Domain Independence Arnon Avron School of Computer Science Tel Aviv University, Tel Aviv 69978, Israel aa@math.tau.ac.il Abstract. Gödel s main
More information23.1 Gödel Numberings and Diagonalization
Applied Logic Lecture 23: Unsolvable Problems in Logic CS 4860 Spring 2009 Tuesday, April 14, 2009 The fact that Peano Arithmetic is expressive enough to represent all computable functions means that some
More informationBetween proof theory and model theory Three traditions in logic: Syntactic (formal deduction)
Overview Between proof theory and model theory Three traditions in logic: Syntactic (formal deduction) Jeremy Avigad Department of Philosophy Carnegie Mellon University avigad@cmu.edu http://andrew.cmu.edu/
More informationDecidability: Church-Turing Thesis
Decidability: Church-Turing Thesis While there are a countably infinite number of languages that are described by TMs over some alphabet Σ, there are an uncountably infinite number that are not Are there
More informationRecursion Theory. Joost J. Joosten
Recursion Theory Joost J. Joosten Institute for Logic Language and Computation University of Amsterdam Plantage Muidergracht 24 1018 TV Amsterdam Room P 3.26, +31 20 5256095 jjoosten@phil.uu.nl www.phil.uu.nl/
More informationLogic for Computer Scientists
Logic for Computer Scientists Pascal Hitzler http://www.pascal-hitzler.de CS 499/699 Lecture, Winter Quarter 2011 Wright State University, Dayton, OH, U.S.A. [final version: 03/10/2011] Contents 1 Propositional
More informationLogic for Computer Scientists
Logic for Computer Scientists Pascal Hitzler http://www.pascal-hitzler.de CS 499/699 Lecture, Spring Quarter 2010 Wright State University, Dayton, OH, U.S.A. Final version. Contents 1 Propositional Logic
More informationReminder 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.
Reminder of Notation Language is always L NT = (0, S, +,, E,
More informationTheorem 4.18 ( Critical Pair Theorem ) A TRS R is locally confluent if and only if all its critical pairs are joinable.
4.4 Critical Pairs Showing local confluence (Sketch): Problem: If t 1 E t 0 E t 2, does there exist a term s such that t 1 E s E t 2? If the two rewrite steps happen in different subtrees (disjoint redexes):
More informationTheory of Computation
Thomas Zeugmann Hokkaido University Laboratory for Algorithmics http://www-alg.ist.hokudai.ac.jp/ thomas/toc/ Lecture 14: Applications of PCP Goal of this Lecture Our goal is to present some typical undecidability
More informationInfinite and Finite Model Theory Part II
Infinite and Finite Model Theory Part II Anuj Dawar Computer Laboratory University of Cambridge Lent 2002 3/2002 0 Finite Model Theory Finite Model Theory motivated by computational issues; relationship
More informationcse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska
cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 1 Course Web Page www3.cs.stonybrook.edu/ cse303 The webpage contains: lectures notes slides; very detailed solutions to
More informationVAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0. Contents
VAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0 BENJAMIN LEDEAUX Abstract. This expository paper introduces model theory with a focus on countable models of complete theories. Vaught
More informationΠ 0 1-presentations of algebras
Π 0 1-presentations of algebras Bakhadyr Khoussainov Department of Computer Science, the University of Auckland, New Zealand bmk@cs.auckland.ac.nz Theodore Slaman Department of Mathematics, The University
More informationFinite Model Theory: First-Order Logic on the Class of Finite Models
1 Finite Model Theory: First-Order Logic on the Class of Finite Models Anuj Dawar University of Cambridge Modnet Tutorial, La Roche, 21 April 2008 2 Finite Model Theory In the 1980s, the term finite model
More informationArithmetical Hierarchy
Arithmetical Hierarchy Klaus Sutner Carnegie Mellon University 60-arith-hier 2017/12/15 23:18 1 The Turing Jump Arithmetical Hierarchy Definability Formal Systems Recall: Oracles 3 We can attach an orcale
More information258 Handbook of Discrete and Combinatorial Mathematics
258 Handbook of Discrete and Combinatorial Mathematics 16.3 COMPUTABILITY Most of the material presented here is presented in far more detail in the texts of Rogers [R], Odifreddi [O], and Soare [S]. In
More informationUndecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65
Undecidable Problems Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, 2018 1/ 65 Algorithmically Solvable Problems Let us assume we have a problem P. If there is an algorithm solving
More informationCompleteness for FOL
Completeness for FOL Overview Adding Witnessing Constants The Henkin Theory The Elimination Theorem The Henkin Construction Lemma 12 This lemma assures us that our construction of M h works for the atomic
More informationCS21 Decidability and Tractability
CS21 Decidability and Tractability Lecture 14 February 7, 2018 February 7, 2018 CS21 Lecture 14 1 Outline Gödel Incompleteness Theorem February 7, 2018 CS21 Lecture 14 2 Background Hilbert s program (1920
More informationCS156: The Calculus of Computation Zohar Manna Winter 2010
Page 3 of 35 Page 4 of 35 quantifiers CS156: The Calculus of Computation Zohar Manna Winter 2010 Chapter 2: First-Order Logic (FOL) existential quantifier x. F [x] there exists an x such that F [x] Note:
More informationFriendly Logics, Fall 2015, Lecture Notes 1
Friendly Logics, Fall 2015, Lecture Notes 1 Val Tannen 1 Some references Course Web Page: http://www.cis.upenn.edu/~val/cis682. I have posted there the remarkable On the Unusual Effectiveness of Logic
More informationLecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem. Michael Beeson
Lecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem Michael Beeson The hypotheses needed to prove incompleteness The question immediate arises whether the incompleteness
More informationPropositional logic. First order logic. Alexander Clark. Autumn 2014
Propositional logic First order logic Alexander Clark Autumn 2014 Formal Logic Logical arguments are valid because of their form. Formal languages are devised to express exactly that relevant form and
More information1. Propositional Calculus
1. Propositional Calculus Some notes for Math 601, Fall 2010 based on Elliott Mendelson, Introduction to Mathematical Logic, Fifth edition, 2010, Chapman & Hall. 2. Syntax ( grammar ). 1.1, p. 1. Given:
More informationHarmonious Logic: Craig s Interpolation Theorem and its Descendants. Solomon Feferman Stanford University
Harmonious Logic: Craig s Interpolation Theorem and its Descendants Solomon Feferman Stanford University http://math.stanford.edu/~feferman Interpolations Conference in Honor of William Craig 13 May 2007
More informationUndecidability of the validity problem
Undecidability of the validity problem We prove the undecidability of the validity problem for formulas of predicate logic with equality. Recall: there is an algorithm that given a formula of predicate
More informationSeminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)
http://math.sun.ac.za/amsc/sam Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics 2009-2010 Lecture notes in progress (27 March 2010) Contents 2009 Semester I: Elements 5 1. Cartesian product
More informationCombining Decision Procedures
Combining Decision Procedures Ashish Tiwari tiwari@csl.sri.com http://www.csl.sri.com/. Computer Science Laboratory SRI International 333 Ravenswood Menlo Park, CA 94025 Combining Decision Procedures (p.1
More informationResolution for Predicate Logic
Logic and Proof Hilary 2016 James Worrell Resolution for Predicate Logic A serious drawback of the ground resolution procedure is that it requires looking ahead to predict which ground instances of clauses
More informationLecture 1: The arithmetic hierarchy
MODEL THEORY OF ARITHMETIC Lecture 1: The arithmetic hierarchy Tin Lok Wong 8 October, 2014 [These theorems] go a long way to explaining why recursion theory is relevant to the study of models of arithmetic.
More informationAlgebras with finite descriptions
Algebras with finite descriptions André Nies The University of Auckland July 19, 2005 Part 1: FA-presentability A countable structure in a finite signature is finite-automaton presentable (or automatic)
More informationArithmetical Hierarchy
Arithmetical Hierarchy 1 The Turing Jump Klaus Sutner Carnegie Mellon University Arithmetical Hierarchy 60-arith-hier 2017/12/15 23:18 Definability Formal Systems Recall: Oracles 3 The Use Principle 4
More informationHalting and Equivalence of Program Schemes in Models of Arbitrary Theories
Halting and Equivalence of Program Schemes in Models of Arbitrary Theories Dexter Kozen Cornell University, Ithaca, New York 14853-7501, USA, kozen@cs.cornell.edu, http://www.cs.cornell.edu/~kozen In Honor
More informationLecture 11: Gödel s Second Incompleteness Theorem, and Tarski s Theorem
Lecture 11: Gödel s Second Incompleteness Theorem, and Tarski s Theorem Valentine Kabanets October 27, 2016 1 Gödel s Second Incompleteness Theorem 1.1 Consistency We say that a proof system P is consistent
More information4 Predicate / First Order Logic
4 Predicate / First Order Logic 4.1 Syntax 4.2 Substitutions 4.3 Semantics 4.4 Equivalence and Normal Forms 4.5 Unification 4.6 Proof Procedures 4.7 Implementation of Proof Procedures 4.8 Properties First
More informationBjorn Poonen. MSRI Introductory Workshop on Rational and Integral Points on Higher-dimensional Varieties. January 18, 2006
University of California at Berkeley MSRI Introductory Workshop on Rational and Integral Points on Higher-dimensional Varieties January 18, 2006 The original problem H10: Find an algorithm that solves
More informationThe Turing Machine. Computability. The Church-Turing Thesis (1936) Theory Hall of Fame. Theory Hall of Fame. Undecidability
The Turing Machine Computability Motivating idea Build a theoretical a human computer Likened to a human with a paper and pencil that can solve problems in an algorithmic way The theoretical provides a
More informationLogic for Computer Scientists
Logic for Computer Scientists Pascal Hitzler http://www.pascal-hitzler.de CS 499/699 Lecture, Winter Quarter 2012 Wright State University, Dayton, OH, U.S.A. [version: 03/01/2012] Contents 1 Propositional
More informationOn the decidability of termination of query evaluation in transitive-closure logics for polynomial constraint databases
Theoretical Computer Science 336 (2005) 125 151 www.elsevier.com/locate/tcs On the decidability of termination of query evaluation in transitive-closure logics for polynomial constraint databases Floris
More informationIntroduction to Turing Machines
Introduction to Turing Machines Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 12 November 2015 Outline 1 Turing Machines 2 Formal definitions 3 Computability
More informationDatabase Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler
Database Theory Database Theory VU 181.140, SS 2018 5. Complexity of Query Evaluation Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 17 April, 2018 Pichler
More information17.1 The Halting Problem
CS125 Lecture 17 Fall 2016 17.1 The Halting Problem Consider the HALTING PROBLEM (HALT TM ): Given a TM M and w, does M halt on input w? Theorem 17.1 HALT TM is undecidable. Suppose HALT TM = { M,w : M
More informationCSE 555 HW 5 SAMPLE SOLUTION. Question 1.
CSE 555 HW 5 SAMPLE SOLUTION Question 1. Show that if L is PSPACE-complete, then L is NP-hard. Show that the converse is not true. If L is PSPACE-complete, then for all A PSPACE, A P L. We know SAT PSPACE
More information3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.
1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is
More informationOpleiding Informatica
Opleiding Informatica Tape-quantifying Turing machines in the arithmetical hierarchy Simon Heijungs Supervisors: H.J. Hoogeboom & R. van Vliet BACHELOR THESIS Leiden Institute of Advanced Computer Science
More informationThe following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof
Ch. 1.6 Introduction to Proofs The following techniques for methods of proofs are discussed in our text - Vacuous proof - Trivial proof - Direct proof - Indirect proof (our book calls this by contraposition)
More informationWhat are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos
What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos armandobcm@yahoo.com February 5, 2014 Abstract This note is for personal use. It
More informationModel Theory on Finite Structures
Model Theory on Finite Structures Anuj Dawar Department of Computer Science University of Wales Swansea Swansea, SA2 8PP, U.K. e-mail: a.dawar@swansea.ac.uk 1 Introduction In mathematical logic, the notions
More informationThe Arithmetical Hierarchy
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
More information