An exercise in proving undecidability Balder ten Cate Bertinoro 15/12/2006.

Slides:



Advertisements
Similar presentations
NP-Hard Nattee Niparnan.
Advertisements

Information Integration Using Logical Views Jeffrey D. Ullman.
Lecture 19. Reduction: More Undecidable problems
Lecture 11: Datalog Tuesday, February 6, Outline Datalog syntax Examples Semantics: –Minimal model –Least fixpoint –They are equivalent Naive evaluation.
Relational Algebra Jianlin Feng School of Software SUN YAT-SEN UNIVERSITY courtesy of Joe Hellerstein for some slides.
1 Conjunctions of Queries. 2 Conjunctive Queries A conjunctive query is a single Datalog rule with only non-negated atoms in the body. (Note: No negated.
ISOM Distributed Databases Arijit Sengupta. ISOM Learning Objectives Understand the concept and necessity of distributed databases Understand the types.
Data Structures and Algorithms Data Structures and Algorithms (CS210/ESO207/ESO211) Lecture 12 Application of Stack and Queues Application of Stack and.
Complexity 25-1 Complexity Andrei Bulatov #P-Completeness.
Complexity 15-1 Complexity Andrei Bulatov Hierarchy Theorem.
1 Introduction to Computability Theory Lecture15: Reductions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
Tirgul 12 Algorithm for Single-Source-Shortest-Paths (s-s-s-p) Problem Application of s-s-s-p for Solving a System of Difference Constraints.
By relieving the brain of all unnecessary work, a good notation sets it free to concentrate on more advanced problems, and, in effect, increases the mental.
By relieving the brain of all unnecessary work, a good notation sets it free to concentrate on more advanced problems, and, in effect, increases the mental.
By relieving the brain of all unnecessary work, a good notation sets it free to concentrate on more advanced problems, and, in effect, increases the mental.
Data Exchange & Composition of Schema Mappings Phokion G. Kolaitis IBM Almaden Research Center.
Modern Information Retrieval Chapter 2 Modeling. Can keywords be used to represent a document or a query? keywords as query and matching as query processing.
1 Matrix Addition, C = A + B Add corresponding elements of each matrix to form elements of result matrix. Given elements of A as a i,j and elements of.
Halting Problem. Background - Halting Problem Common error: Program goes into an infinite loop. Wouldn’t it be nice to have a tool that would warn us.
IS 325 Notes for Wednesday September 18, 2013.
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
Extra slides for Chapter 3: Adequacy of connectives Based on Prof. Lila Kari’s slides For CS2209A, 2009 By Dr. Charles Ling;
Boolean Algebra – the ‘Lingua Franca’ of the Digital World The goal of developing an automata is based on the following (loosely described) ‘ideal’: if.
Theoretical basis of GUHA Definition 1. A (simplified) observational predicate language L n consists of (i) (unary) predicates P 1,…,P n, and an infinite.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
M Taimoor Khan Course Objectives 1) Basic Concepts 2) Tools 3) Database architecture and design 4) Flow of data (DFDs)
Complexity 25-1 Complexity Andrei Bulatov Counting Problems.
CS1Q Computer Systems Lecture 7
Module #9: Matrices Rosen 5 th ed., §2.7 Now we are moving on to matrices, section 7.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesBoolean Algebra.
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
Umans Complexity Theory Lectures Lecture 2b: A P-Complete Problem.
CMPT 258 Database Systems Relational Algebra (Chapter 4)
Lecture 7: Foundations of Query Languages Tuesday, January 23, 2001.
1 First order theories (Chapter 1, Sections 1.4 – 1.5) From the slides for the book “Decision procedures” by D.Kroening and O.Strichman.
1/32 This Lecture Substitution model An example using the substitution model Designing recursive procedures Designing iterative procedures Proving that.
. Perfect Phylogeny Tutorial #10 © Ilan Gronau Original slides by Shlomo Moran.
Fundamentals of Informatics Lecture 13 Reduction Bas Luttik.
Adding Two and Three Digit Numbers
Overview of the theory of computation Episode 3 0 Turing machines The traditional concepts of computability, decidability and recursive enumerability.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesBoolean Algebra.
1 Finite Model Theory Lecture 5 Turing Machines and Finite Models.
Complexity 24-1 Complexity Andrei Bulatov Counting Problems.
Extensions of Datalog Wednesday, February 13, 2001.
Lecture 9: Query Complexity Tuesday, January 30, 2001.
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
CS4432: Database Systems II
Bell Work.
Automata, Grammars and Languages
Karnaugh Maps.
CSE 105 theory of computation
Karnaugh Mapping Karnaugh Mapping Digital Electronics
Steven Lindell Scott Weinstein
Karnaugh Mapping Digital Electronics
ECE 331 – Digital System Design
Karnaugh Mapping Karnaugh Mapping Digital Electronics
This Lecture Substitution model
Lecture 10: Query Complexity
Constraint satisfaction problems
This Lecture Substitution model
Equivalence We have already introduced the idea of equivalence
Basic circuit analysis and design
Bell Work.
This Lecture Substitution model
CSE 105 theory of computation
Constraint satisfaction problems
Presentation transcript:

An exercise in proving undecidability Balder ten Cate Bertinoro 15/12/2006

Query answering under GAV mappings Input:a GAV mapping m: S  T a source instance I a target query  Output:the “certain answers”  (I,J) |= m J(  )

Complexity For conjunctive queries , the problem is in LOGSPACE (by “unfolding”) For FO queries , it’s undecidable. This talk: There a fixed FO query  for which computing the certain answers is undecidable. (Corrolary: CERT(m,  ) is not definable in FO/datalog/...)

More precisely Fact: There is a GAV mapping m: S  T and a Boolean FO query  over T such that the following is undecidable: Given a source instance I, is “Yes” a certain answer to  ? Proof: by reduction from an undecidable tiling problem.

Periodic tiling An undecidable problem: Given a finite set of tile types Can we tile any n  n square with these tiles so that (a) neighboring tiles match, (b) the first and last column coincide, and (c) the first and last row coincide (n > 1) ?...

Reduction to GAV answering Basic idea: –The source instance I specifies the set of tile types –The GAV mapping m (which is fixed) simply copies all the information –The FO query  (which is fixed) describes a periodic tiling with the given tile types. “Yes” is a certain answer to  on source instance I iff the set of tile types specified by I admits no periodic tiling.

First attempt Source schema: –A unary relation TT listing tile types –Binary relations COMP H and COMP V specifying horizontal and vertical compatibility The GAV mapping:  x (TTx  TT’x)  x (R H x  R H ’ x)  x (R V x  R V ’ x) Before we continue: What is wrong with this attempt?

Bug fix We need to make sure that... no compatibilities are added in the target Solution: represent incompatibilities no new tile types are added in the target Solution: use extra relations so that “tampering can be detected”

The correct reduction: Source schema: –A unary relation TT listing tile types –Binary relations INCOMP H and INCOMP V specifying horizontal and vertical incompatibility –Two binary relations coding a linear ordering of the tile types and a corresponding successor relation. The GAV mapping copies everything (as before) The target query  describes a periodic tiling using the given tile types (homework exercise, for the solution see Börger- Grädel-Gurevich).

Added in print Prof. Kolaitis found a simpler and more elegant proof by reduction of the undecidable embedding problem for finite semi-groups: “given a partial binary function, can it be extended to a semi-group (over a possible larger but finite carrier set)?” –Source schema: a single ternary relation R –Target schema: a single ternary relation R’ –GAV mapping:  xyz (Rxyz  R’xyz) –The target query  expresses that R’ is an associative total function (this can be expressed in FO logic, even using only  -formulas). “Yes” is a certain answer to  on source instance I iff the I(R) cannot be extended to a finite semi-group.