Finite Model Theory Unit 2

Total Page:16

File Type:pdf, Size:1020Kb

Finite Model Theory Unit 2 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Finite Model Theory Unit 2 Dan Suciu Spring 2018 Dan Suciu Finite Model Theory { Unit 2 Spring 2018 1 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types 599c: Finite Model Theory Unit 2: Expressive Power of Logics on Finite Models Dan Suciu Finite Model Theory { Unit 2 Spring 2018 2 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Resources Libkin, Finite Model Theory, Chapt. 3, 4, 11. Gr¨adel,Kolaitis, Libkin, Marx, Spencer, Vardi, Venema, Weinstein: Finite Model Theory and Its Applications, Capt. 2 (Expressive Power of Logics on Finite Models). Dan Suciu Finite Model Theory { Unit 2 Spring 2018 3 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Where Are We Classical model theory is concerned with truth, D ⊧ ', and its implications. Finite model theory is concerned with: ▸ Expressibility: which classes of finite structures can be expressed in a given logic. ▸ Computability: connection between computational complexity and expressibility in that logic. ▸ (Asymptotic) probabilities: study the probability (asymptotic or not) of a sentence. Dan Suciu Finite Model Theory { Unit 2 Spring 2018 4 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Unit 2: Expressibility Ehrenfeuched-Fraisse Games Infinitary logics and Pebble Games Dan Suciu Finite Model Theory { Unit 2 Spring 2018 5 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types The Expressibility Problem Given a property P, can it be expressed in a logic L? Example properties: CONNECTIVITY, EVEN, PLANARITY. Example logics: FO, SO, FO+fixpoint, Datalog. Dan Suciu Finite Model Theory { Unit 2 Spring 2018 6 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Example 1: EVEN Find a sentence ' s.t. G ⊧ ' iff G has an even number of nodes. In class Impossible! µn(') = 0 when n = odd, µn(') = 1 when n = even, violates 0/1-law. Find a sentence ' s.t. G ⊧ ' iff G has an even number of edges. The 0/1 law no longer helps. Dan Suciu Finite Model Theory { Unit 2 Spring 2018 7 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Example 2: CONNECTED 1 ∗ G = (V ; E) is connected if forall a; b ∈ V there exists a path a → b. Find an FO sentence s.t. G ⊧ iff G is connected. ∀x∀yE(x; y)? ∀x∀y∃z(E(x; z) ∧ E(z; y))? ::: Impossible! Let's prove that. 1The correct term is strongly connected. Dan Suciu Finite Model Theory { Unit 2 Spring 2018 8 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Example 2: CONNECTED Suppose G ⊧ iff G is connected. Fix two fresh constants c; d, and, forall n ≥ 1, define: 'n =(¬(∃z1⋯∃zn(E(c; z1) ∧ E(z1; z2) ∧ ⋯ ∧ E(zn; d)))) It says \c; d are not connected by any path of length n". def Σ = { } ∪ {'n S n ≥ 1} is finitely satisfiable why? By Compactness, Σ has a model G On one hand G ⊧ hence it is connected, on the other hand c; d are not connected in G, contradiction. But is Connectivity expressible over finite graphs? This proof does not answer it. Dan Suciu Finite Model Theory { Unit 2 Spring 2018 9 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Isomorphism Assume a relational vocabulary σ = (R1;:::; Rk ; c1;:::; cm) (no functions). A A A A B B B B Fix A = (A; R1 ;:::; Rk ; c1 ;:::; cm), B = (B; R1 ;:::; Rk ; c1 ;:::; cm). Definition An isomorphism f ∶ A → B is a bijection A → B such that: A B Forall R ∈ σ, (a1;:::; ak ) ∈ R iff (f (a1);:::; f (ak )) ∈ R . A B Forall c ∈ σ, f (c ) = c . We write A ≃ B if there exists an isomorphism A → B. Remark: if A ≃ B then for any sentence ' in a \reasonable" logics (like FO, or extensions), A ⊧ ' iff B ⊧ '. Dan Suciu Finite Model Theory { Unit 2 Spring 2018 10 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Elementary Equivalence Definition A and B are elementary equivalent if forall ', A ⊧ ' iff B ⊧ '. We write A ≡ B. Isomorphisms implies elementary equivalence: if A ≃ B then A ≡ B. Over the finite structures, the converse holds too: if A ≡ B, then A ≃ B. We cannot find two finite graphs, one connected and one disconnected, that are elementary equivalent! Dan Suciu Finite Model Theory { Unit 2 Spring 2018 11 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Partial Isomorphism Fix a relational vocabulary σ: relations Ri , constants cj . Let A; B be two σ-structures. Definition k A partial isomorphism is a pair a; b, where a = (a1;;:::; ak ) ∈ A , k a b = (b1;:::; bk ) ∈ B s.t. the substructures ASa, BSb are isomorphic via: A B ∀i; ai ↦bi ∀j; cj ↦ cj a A A ASa consists of the universe {a1;:::; ak ; c1 ;:::; cm}. We write a ≃ b. In other words: Forall i; j, ai = aj iff bi = bj . (Equality is preserved.) A B Forall i; j, ai = cj iff bi = cj . (Constants are preserved.) A A (t1;:::; tn) ∈ R where each ti is either some aj or cj , iff ′ ′ B ′ B (t1;:::; tn) ∈ R where ti is bj or cj respectively. Dan Suciu Finite Model Theory { Unit 2 Spring 2018 12 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Ehrenfeucht-Fraisse Games There are two players, spoiler and duplicator. They play on two structures A; B in k rounds, i = 1;:::; k. Round i: Spoiler places his pebble i on an element ai ∈ A or bi ∈ B. Duplicator places her pebble i on an element bi ∈ B or ai ∈ A. Let a = (a1;:::; ak ), b = (b1;:::; bk ) be the pebbles at the end of the game. Duplicator wins if a; b forms a partial isomorphism; otherwise Spoiler wins. Definition We write A ∼k B if the duplicator has a winning strategy for k rounds. Dan Suciu Finite Model Theory { Unit 2 Spring 2018 13 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Ehrenfeucht-Fraisse Games: Main Result The quantifier rank of a formula ' is defined inductively2: qr(F ) =qr(t1 = t2) = qr(R(t1;:::; tm)) = 0 qr(' → ) = max(qr('); qr( )) qr(∀x(')) =1 + qr(') def FO[k] = FO restricted to formulas with qr ≤ k. Theorem (Ehrenfeucht-Fraisse) A ≡k B (meaning: they agree on FO[k]) iff A ∼k B. We will prove it later. First, let's see examples. 2The number of quantifiers can be exponentially larger than qr(') why? Dan Suciu Finite Model Theory { Unit 2 Spring 2018 14 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Ehrenfeucht-Fraisse on Total Orders Let Lk = ({1; 2;:::; k}; <). Play the Ehrenfeucht-Fraisse game on L6; L7 using k = 2 pebbles: L6 ∼2 L7 Play the Ehrenfeucht-Fraisse game on L6; L7 using k = 3 pebbles: L6 ∼~3 L7 Find ' ∈ FO[3] s.t. L6 ⊧ '; L7 ⊧~ ' b b b b b b <x1 1 1 2 1 2 1 ∀x1∀x2(x2 < x1 → ~~L6 is small L6 L6 L6 L6 L6 L6 (∀x3¬(x3 < x2) ∨ ∀x3¬(x2 < x3 < x1))) >x1 ∨∀x2(x2 > x1 → ~~L6 is small (∀x3¬(x3 > x2) L L L L L L 7 ∨ ∀x3¬(7x1 < x3 < x2))) 7 7 7 7 a1 a1 a2 a1 a2 a1 a3 a2 a1 Dan Suciu Finite Model Theory { Unit 2 Spring 2018 15 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Ehrenfeucht-Fraisse on Total Orders Let Lm = ({1; 2;:::; m}; <). <a def >a def Lm = {x ∈ Lm S x < a} Lm = {x ∈ Lm S x < a} Lemma <a <b >a >b If Lm ∼k Ln and Lm ∼k Ln (duplicator wins), then Lm ∼k Ln. Proof. <a <b If spoiler places pebble in Lm then duplicator answers in Ln . >a >b If spoiler places pebble in Lm then duplicator answers in Ln . If spoiler places pebble on a then duplicator places pebble on b. If spoiler plays in the other structure, duplicator answers similarly. <a <b >a >b If Lm Sc ≃ Ln Sd and Lm Sc ≃ Ln Sd (partial isomorphisms), then c ≃ d Dan Suciu Finite Model Theory { Unit 2 Spring 2018 16 / 66 Introduction Games for FO Games for ∃MSO Games for Recursion FOk Types Ehrenfeucht-Fraisse on Total Orders Theorem Let m; n; k be positive integers. The following are equivalent: Lm ∼k Ln k k m = n or both m ≥ 2 − 1 and n ≥ 2 − 1 k Proof. If m; n ≥ 2 − 1, duplicator has winning strategy. Spoiler plays a ∈ Lm. <a k−1 Case 1: SLm S < 2 − 1 (What do we do?) <a <b Duplicator chooses b s.t. Lm ≃ Ln (i.e. isomorphic). Then: >a >b k−1 >a >b SLm S; SLn S > 2 − 1 (why?), Lm ∼k−1 Ln (why?), Lm ∼k Ln (lemma). >a k−1 Case 2: SLm S < 2 − 1 Symmetric: >a >b Duplicator chooses b s.t. Lm ≃ Ln (i.e. isomorphic). Then: <a <b k−1 <a <b SLm S; SLn S > 2 − 1, Lm ∼k−1 Ln , hence Lm ∼k Ln (lemma). <a >a k−1 Case 3: both SLm S; SLm S ≥ 2 − 1 (Is this possible?) <b >b k−1 Duplicator chooses any b s.t. SLn S; SLn S ≥ 2 − 1. Then: <a <b >a >b k−1 <a <b >a >b SLm S; SLn S; SLm S; SLn S ≥ 2 − 1; Lm ∼k−1 Ln ; Lm ∼k−1 Ln ; Lm ∼k Ln.
Recommended publications
  • Model 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: [email protected] 1 Introduction In mathematical logic, the notions of mathematical structure, language and proof themselves become the subject of mathematical investigation, and are treated as first class mathematical objects in their own right. Model theory is the branch of mathematical logic that is particularly concerned with the relationship between structure and language. It seeks to establish the limits of the expressive power of our formal language (usually the first order predicate calculus) by investigating what can or cannot be expressed in the language. The kinds of questions that are asked are: What properties can or cannot be formulated in first order logic? What structures or relations can or cannot be defined in first order logic? How does the expressive power of different logical languages compare? Model Theory arose in the context of classical logic, which was concerned with resolving the paradoxes of infinity and elucidating the nature of the infinite. The main constructions of model theory yield infinite structures and the methods and results assume that structures are, in general, infinite. As we shall see later, many, if not most, of these methods fail when we confine ourselves to finite structures Many questions that arise in computer science can be seen as being model theoretic in nature, in that they investigate the relationship between a formal language and a structure. However, most structures of interest in computer science are finite. The interest in finite model theory grew out of questions in theoretical computer science (particularly, database theory and complexity theory).
    [Show full text]
  • Reflections on Finite Model Theory
    Reflections on Finite Model Theory Phokion G. Kolaitis∗ IBM Almaden Research Center San Jose, CA 95120, USA [email protected] Abstract model theory, to examine some of the obstacles that were encountered, and to discuss some open problems that have Advances in finite model theory have appeared in LICS stubbornly resisted solution. proceedings since the very beginning of the LICS Sympo- sium. The goal of this paper is to reflect on finite model 2 Early Beginnings theory by highlighting some of its successes, examining ob- stacles that were encountered, and discussing some open In the first half of the 20th Century, finite models were problems that have stubbornly resisted solution. used as a tool in the study of Hilbert’s Entscheidungsprob- lem, also known as the classical decision problem, which is the satisfiability problem for first-order logic: given a 1 Introduction first-order sentence, does it have a model? Indeed, even before this problem was shown to be undecidable by Turing During the past thirty years, finite model theory has devel- and Church, logicians had identified decidable fragments of oped from a collection of sporadic, but influential, early re- first-order logic, such as the Bernays-Schonfinkel¨ Class of sults to a mature research area characterized by technical all ∃∗∀∗ sentences and the Ackermann Class of all ∃∗∀∃∗ depth and mathematical sophistication. In this period, fi- sentences. The decidability of these two classes was estab- nite model theory has been explored not only for its con- lished by proving that the finite model property holds for nections to other areas of computer science (most notably, them: if a sentence in these classes has a model, then it has computational complexity and database theory), but also in a finite model (see [14, Chapter 6] for a modern exposition its own right as a distinct area of logic in computer science.
    [Show full text]
  • A Finitist's Manifesto: Do We Need to Reformulate the Foundations Of
    A Finitist’s Manifesto: Do we need to Reformulate the Foundations of Mathematics? Jonathan Lenchner 1 The Problem There is a problem with the foundations of classical mathematics, and potentially even with the foundations of computer science, that mathematicians have by-and-large ignored. This essay is a call for practicing mathematicians who have been sleep-walking in their infinitary mathematical paradise to take heed. Much of mathematics relies upon either (i) the “existence” of objects that contain an infinite number of elements, (ii) our ability, “in theory”, to compute with an arbitrary level of precision, or (iii) our ability, “in theory”, to compute for an arbitrarily large number of time steps. All of calculus relies on the notion of a limit. The monumental results of real and complex analysis rely on a seamless notion of the “continuum” of real numbers, which extends in the plane to the complex numbers and gives us, among other things, “rigorous” definitions of continuity, the derivative, various different integrals, as well as the fundamental theorems of calculus and of algebra – the former of which says that the derivative and integral can be viewed as inverse operations, and the latter of which says that every polynomial over C has a complex root. This essay is an inquiry into whether there is any way to assign meaning to the notions of “existence” and “in theory” in (i) to (iii) above. On the one hand, we know from quantum mechanics that making arbitrarily precise measure- ments of objects is impossible. By the Heisenberg Uncertainty Principle the moment we pin down an object, typically an elementary particle, in space, thereby bringing its velocity, and hence mo- mentum, down to near 0, there is a limit to how precisely we can measure its spatial coordinates.
    [Show full text]
  • Finite Model Theory and Finite Variable Logics
    University of Pennsylvania ScholarlyCommons IRCS Technical Reports Series Institute for Research in Cognitive Science October 1995 Finite Model Theory and Finite Variable Logics Eric Rosen University of Pennsylvania Follow this and additional works at: https://repository.upenn.edu/ircs_reports Rosen, Eric, "Finite Model Theory and Finite Variable Logics " (1995). IRCS Technical Reports Series. 139. https://repository.upenn.edu/ircs_reports/139 University of Pennsylvania Institute for Research in Cognitive Science Technical Report No. IRCS-95-28. This paper is posted at ScholarlyCommons. https://repository.upenn.edu/ircs_reports/139 For more information, please contact [email protected]. Finite Model Theory and Finite Variable Logics Abstract In this dissertation, I investigate some questions about the model theory of finite structures. One goal is to better understand the expressive power of various logical languages, including first order logic (FO), over this class. A second, related, goal is to determine which results from classical model theory remain true when relativized to the class, F, of finite structures. As it is well known that many such results become false, I also consider certain weakened generalizations of classical results. k k I prove some basic results about the languages L ∃ and L ∞ω∃, the existential fragments of the finite k k k variable logics L and L ∞ω. I show that there are finite models whose L (∃)-theories are not finitely k axiomatizable. I also establish the optimality of a normal form for L ∞ω∃, and separate certain fragments of this logic. I introduce a notion of a "generalized preservation theorem", and establish certain partial k positive results.
    [Show full text]
  • Finite Model Theory
    Finite Model Theory Martin Otto Summer Term 2015 Contents I Finite vs. Classical Model Theory 3 0 Background and Examples from Classical Model Theory 5 0.1 Compactness and Expressive Completeness . 5 0.1.1 Embeddings and extensions . 5 0.1.2 Two classical preservation theorems . 6 0.2 Compactness, Elementary Chains, and Interpolation . 8 0.2.1 Elementary chains and the Tarski union property . 8 0.2.2 Robinson consistency property . 9 0.2.3 Interpolation and Beth's Theorem . 10 0.2.4 Order-invariant definability . 12 0.3 A Lindstr¨omTheorem . 12 0.4 Classical Inexpressibility via Compactness . 15 0.4.1 Some very typical examples . 16 0.4.2 A rather atypical example . 16 1 Introduction 19 1.1 Finite Model Theory: Topical and Methodological Differences . 19 1.2 Failure of Classical Methods and Results . 20 1.3 Global Relations, Queries and Definability . 24 2 Expressiveness and Definability via Games 29 2.1 The Ehrenfeucht-Fra¨ıss´eMethod . 29 2.1.1 The basic Ehrenfeucht{Fra¨ıss´egame; FO pebble game . 30 2.1.2 Inexpressibility via games . 32 2.2 Locality of FO: Hanf and Gaifman Theorems . 33 2.3 Two Preservation Theorems on Restricted Classes . 38 2.3.1Los{Tarski over finite successor strings . 40 2.3.2 Lyndon{Tarski over wide classes of finite structures . 42 2.4 Variation: Monadic Second-Order Logic and Its Game . 44 2.5 Variation: k Variables, k Pebbles . 46 2.5.1 The k-variable fragment and k-pebble game . 46 2.5.2 The unbounded k-pebble game and k-variable types .
    [Show full text]
  • Model Theory Makes Formulas Large
    Model theory makes formulas large Anuj Dawar∗ Martin Grohe∗∗ Stephan Kreutzer∗∗ Nicole Schweikardt∗∗ ∗ University of Cambridge, U.K., Email: anuj.dawar@ cl.cam.ac.uk Humboldt-Universitat¨ zu Berlin, Germany, Email: grohe kreutzer schweika @informatik.hu-berlin.de ∗∗ f j j g Abstract Gaifman's locality theorem states that every first-order sentence is equivalent to a local sentence. We show that there is no elementary bound on the length of the local sentence in terms of the original. Gaifman's theorem is an essential ingredient in several algorithmic meta theorems for first order logic. Our result has direct implications for the running time of the algorithms. The classical Łos-T´ arski theorem states that every first-order sentence preserved under extensions is equivalent to an existential sentence. We show that there is no elementary bound on the length of the existential sentence in terms of the original. Recently, variants of the Łos-T´ arski theorem have been proved for certain classes of finite structures, among them the class of finite trees and more generally classes of structures of bounded tree width. Our lower bound also applies to these variants. The first-order theory of trees is decidable. We prove that there is no elementary decision algorithm. Notably, our lower bounds do not apply to restrictions of the results to structures of bounded degree. For such structures, we obtain elementary upper bounds in all cases. However, even there we can prove at least doubly exponential lower bounds. 1 Introduction Classical results of model theory provide syntactical normal forms for various semantical properties of struc- tures.
    [Show full text]
  • Elements of Finite Model Theory [Book Review]
    Haverford College Haverford Scholarship Faculty Publications Computer Science 2007 Elements of Finite Model Theory [book review] Steven Lindell Haverford College, [email protected] Scott Weinstein Follow this and additional works at: https://scholarship.haverford.edu/compsci_facpubs Repository Citation Lindell, Steven. Rev. of Elements of Finite Model Theory. Journal of Logic, Language and Information 16.2 (2007): 233-39. Print. This Book Review is brought to you for free and open access by the Computer Science at Haverford Scholarship. It has been accepted for inclusion in Faculty Publications by an authorized administrator of Haverford Scholarship. For more information, please contact [email protected]. J Logic Lang Info (2007) 16:233–239 DOI 10.1007/s10849-006-9028-8 BOOK REVIEW Book Review Steven Lindell · Scott Weinstein Leonid, Libkin Elements of Finite Model Theory, Series: Texts in Theoretical Com- puter Science. An EATCS Series, 2004, XIV, 315 p. 24 illus., Hardcover, ISBN: 3-540- 21202-7 Finite model theory studies the expressive power of logical languages over collec- tions of finite structures. Over the past few decades, deep connections have emerged between finite model theory and various areas in combinatorics and computer science, including complexity theory, database theory, formal language theory, and the theory of random graphs. Indeed, the recent surge of interest in finite model theory has, to a large extent, been fueled by the effort to develop tools to address problems that have arisen through pursuit of these connections. Leonid Libkin’s new book, Elements of Finite Model Theory, is a beautiful introduction to these developments, with special emphasis on topics of interest in computer science.
    [Show full text]
  • Open Problems in Finite Model Theory
    Problems in Finite Model Theory Last updated August 21, 2003 Bedlewo 2003 Luminy 2000 Oberwolfach 1998 Luminy 1995 Oberwolfach 1994 ❊❊❊ Maintained by Dietmar Berwanger and Erich Gr¨adel These pages contain a compilation of open problems in finite model theory, and, when solved, their solutions. The most recent version can be obtained on the Finite Model Theory homepage: www-mgi.informatik.rwth-aachen.de/FMT. Subscriptions, new problems and announcements of solu- tions can be sent at any time to Dietmar Berwanger [email protected], or Erich Gr¨adel [email protected]. Contributions should be set preferably in LATEX and not exceed half a page (problems) or a page (solutions). Any other updates are also welcome, e.g., references, when the announced solutions appear in print. Contents 1 Bedlewo 2003 1 1.1 Fixed-pointlogicwithcounting . ... 1 Andreas Blass 1.2 Monadic second-order transductions . .... 1 Bruno Courcelle 1.3 Monadic second-order logic with cardinality predicates ........... 2 Bruno Courcelle 1.4 ESOarityhierarchy .............................. 3 Etienne Grandjean 1.5 A gap in the complexity of natural problems . .... 3 Etienne Grandjean 1.6 Three open problems concerning dynamic complexity . ........ 4 Neil Immerman 1.7 Frail0-1laws .................................. 4 Jean-Marie Le Bars 1.8 Random graphs with specified degree sequence . .... 5 Jim Lynch 1.9 ArityofLFP-queries .............................. 6 Greg McColm 1.10Genericqueries ................................. 7 Luc Segoufin 1.11 Locallygenericqueries . ... 7 Michael Abram Taitslin 1.12 Bracketing-invariantproperties . ...... 8 Jan Van den Bussche 1.13 A partial (negative) answer to Specker’s problem . ......... 8 Janos A. Makowsky, Eldar Fischer 1.14 New results concerning Ash’s Conjecture .
    [Show full text]
  • Finite Model Theory: a Personal Perspective
    Finite Model Theory: A Personal Perspective Moshe Y. Vardi Rice University “We can see further, by standing on the shoulders of giants” – Bernard of Chartres (12C.) Dr. Ronald Fagin From Ron’s CV: • Ph.D. in Mathematics, University of California at Berkeley, 1973 • Thesis: “Contributions to the Model Theory of Finite Structures” • Advisor: Prof. Robert L. Vaught • National Science Foundation Graduate Fellowship 1967-72 • Research Assistantship 1972-73 • Passed Ph.D. Qualifying Exams .With Distinction. (top 5%). 1 “Contributions to the Model Theory of Finite Structures” Foundations of Finite-Model Theory: Three Seminal Results • Generalized first-order spectra and polynomial-time recognizable sets. In Complexity of Computation, ed. R. Karp, SIAM-AMS Proceedings 7, 1974, pp. 43–73. • Monadic generalized spectra. Zeitschr. f. math. Logik und Grundlagen d. Math. 21, 1975, pp. 89–96 • Probabilities on finite models. J. Symbolic Logic 41:1, 1976, pp. 50–58. 2 Finite-Model Theory Model Theory: models(ϕ) = {M : M |= ϕ} • ϕ – 1st-order sentence • M – structure Example: “all graph nodes have at least two distinct neighbors” (∀x)(∃y)(∃z)(¬(y = z) ∧ E(x, y) ∧ E(x, z)) Finite-Model Theory: focus on finite structures! 3 Descriptive-Complexity Theory A complexity-theoretic perspective on finite-model theory: • Fix ϕ and consider models(ϕ) as a decision problem: – Given M, does it satisfy ϕ, i.e., does M |= ϕ hold? Q: What is the complexity? (Data Complexity) A: In LOGSPACE (easy!) 4 Existential Second-Order Logic (ESO) Syntax: (∃R1) ... (∃Rk)ϕ • ϕ – first order 1 Semantics: Σ1 • {models(ψ): ψ ∈ ESO} Data Complexity: NP – guess quantified relations R1 ...Rk and check that ϕ holds 5 Fagin’s Theorem 1 Just observed: Σ1 ⊆ NP 1 Fagin, 1974: Σ1 = NP 1 • In words: Σ1 captures NP Amazing Result! • No Turing machine • No time • No polynomial • Pure logic! 6 Why Second-Order Logic? Vardi, 1981: Why second-order logic? • To simulate nondeterminism.
    [Show full text]
  • Friendly 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 in Computer Science", by Halpern, Harper, Immerman, Kolaitis, Vardi, and Vianu. I recommend that you read this paper at the beginning of this course, and skim it again at the end. I will assume that you already have some background in computability. I may include a couple of problems in the first homework to help you remember. Just in case, I am posting my own notes on computability on the course web page. Do you need to review computability? Here is a short and incomplete checklist that you can use to figure this out. Specifically, do you know the answer to the following questions? • What is a language of strings (words) over an alphabet? • What is an r.e. language? • What is a computable (partial) function? • What is a decidable language? • What is a co-r.e. language? How do r.e. and co-r.e. languages relate to decidable languages? • Is the Halting Problem r.e.? Is it decidable? • Can you think of an undecidable language that is not defined in terms of Turing Machines? • What is a many-one reduction? • What is an r.e.-complete (or co-r.e.-complete) language? In addition to my notes, here are some books that I recommend for computability/complexity: \Introduction to the Theory of Computation", (2nd Ed), Sipser, Thomson 2006. \Introduction to Automata Theory, Languages, and Computability", (2nd Ed), Hopcroft, Motwani, Ullman, Addison-Wesley 2001.
    [Show full text]
  • Finite Model Theory Unit 1
    Basic Definitions Zero-One Law for FO Classical Model Theory Proof of 0/1 Law Non-standard Analysis G¨odel's Theorems Finite Model Theory Unit 1 Dan Suciu Spring 2018 Dan Suciu Finite Model Theory { Unit 1 Spring 2018 1 / 80 Basic Definitions Zero-One Law for FO Classical Model Theory Proof of 0/1 Law Non-standard Analysis G¨odel's Theorems Welcome to 599c: Finite Model Theory Logic is the foundation of Mathematics (see Logicomix). Logic is the foundation of computing (see Turing Machines). Finite Model Theory is Logic restricted to finite models. Applications of FMT: Verification, Databases, Complexity This course is about: ▸ Classic results in Mathematical Logic ▸ Classic results in Finite Model Theory ▸ New results in Finite Model Theory ▸ Most results are negative, but some positive results too. This course is not about: systems, implementation, writing programs. Dan Suciu Finite Model Theory { Unit 1 Spring 2018 2 / 80 Basic Definitions Zero-One Law for FO Classical Model Theory Proof of 0/1 Law Non-standard Analysis G¨odel's Theorems Course Organization Lectures: Regular time: MW 10 - 11:20, CSE 303 Canceled: April 9, 11; May 14, 16. Makeup (all in CSE 303): 4/6 (10-11:20), 4/20 (10-11:20), 5/17 (9:30-10:50), 5/18 (10-11:20) Homework assignment: 6 Homework assignments Short problems, but some require thinking. Email them to me by the due date. Ignore points: I will grade all 6 together as Credit/No-credit. Discussion on the bboard encouraged! Goal: no stress, encourage to participate and think.
    [Show full text]
  • Finite 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 Anuj Dawar February 2008 2 Finite Model Theory In the 1980s, the term finite model theory came to be used to describe the study of the expressive power of logics (from first-order to second-order logic and in between), on the class of all finite structures. The motivation for the study is that problems in computer science (especially in complexity theory and database theory) are naturally expressed as questions about the expressive power of logics. And, the structures involved in computation are finite. Anuj Dawar February 2008 3 Model Theoretic Questions The kind of questions we are interested in are about the expressive power of logics. Given a formula ϕ, its class of models is the collection of finite relational structures A in which it is true. Mod(ϕ)= {A | A |= ϕ} What classes of structures are definable in a given logic L? How do syntactic restrictions on ϕ relate to semantic restrictions on Mod(ϕ)? How does the computational complexity of Mod(ϕ) relate to the syntactic complexity of ϕ? Anuj Dawar February 2008 4 Descriptive Complexity A class of finite structures is definable in existential second-order logic if, and only if, it is decidable in NP. (Fagin) A closs of ordered finite structures is definable in least fixed-point logic if, and only if, it is decidable in P. (Immerman; Vardi) Open Question: Is there a logic that captures P without order? Can model-theoretic methods cast light on questions of computational complexity? Anuj Dawar February 2008 5 Compactness The Compactness Theorem fails if we restrict ourselves to finite structures.
    [Show full text]