Definitionadvanced
Universal solution
Also called universal solution of data exchange.
A solution to a data exchange problem that maps homomorphically into every other solution; the chase computes one when it ends.
A universal solution of a data exchange problem is a solution that has a homomorphism into every solution, so it holds what the mapping forces and nothing more. When the chase with the mapping stops without failure, its result is a universal solution. This page defines the notion and shows which solutions have it. The data exchange problem page states the tasks that use it, and core computation picks the smallest universal solution.
Definition
Fix a schema mapping and a source instance . Target instances hold constants and labeled nulls , and set semantics holds.
- A solution for is a target instance such that satisfies .
- A homomorphism maps the values of to values of , is the identity on constants, and maps each fact of to a fact of .
- A universal solution for is a solution such that, for every solution for , there is a homomorphism .
Facts that follow from the definition and from the theory of the chase:
- Two universal solutions have homomorphisms each way. So they are homomorphically equivalent, and they give the same null-free answers to each conjunctive query.
- If is universal and is a solution with homomorphisms each way with , then is universal too.
- If a chase of with stops without failure, the result is a universal solution (theorem, Fagin, Kolaitis, Miller and Popa). If it fails, has no solution.
- All universal solutions have the same core up to a renaming of nulls, and this core is the smallest universal solution (theorem, Fagin, Kolaitis and Popa).
- For a union of conjunctive queries , the certain answers are the null-free tuples of for any universal solution (theorem, Fagin, Kolaitis, Miller and Popa).
Examples and non-examples
The mapping has and , with no target dependencies, and .
Universal: the canonical solution. The chase gives
For any solution , gives values with in , and gives with . The map , , , is a homomorphism .
Universal: the core. is a solution, because and also satisfy . It is a subset of , so it maps into each solution, and it is universal. It is the smallest universal solution.
A solution that is not universal: a guess made concrete. sets the stops to and . It is a solution. The map , is a homomorphism . But has no homomorphism into , because a homomorphism fixes constants and is not in . So claims more than the mapping says. The query "is there a loop " is true on and false on .
A solution that is not universal: a new constant. , where is a constant, is a solution. It does not map into , since would have to stay as it is. On , the query returns , which is not a certain answer.
Solutions exist but no universal solution. Take the source-to-target tgd , the target tgd , and . The instance is a solution. A finite solution must contain a walk of edges from that never ends, so it has a cycle reached from by a path of some length . For , the instance is a solution whose only cycle is the loop at , at distance from . A homomorphism maps to , so it maps the end of the path to the node at distance from , which is not , and it maps the cycle to a closed walk that starts there. No closed walk of starts there. So no finite solution is universal. Here the chase runs forever, and the target tgd is not weakly acyclic.
Related definitions
- Solution. Any target instance that satisfies the mapping; see data exchange problem.
- Canonical universal solution. The result of the oblivious chase with source-to-target tgds, where each trigger fires one time with fresh nulls.
- Core. The smallest universal solution, unique up to a renaming of nulls; see core computation for data exchange. It is the analogue for instances of the minimal query of the Chandra-Merlin theorem.
- Certain answers. The answers true in all solutions; universal solutions compute them for unions of conjunctive queries; see certain answers.
- Closed world solutions. Universal solutions that also hold only what the mapping justifies. They give a different, stricter semantics for queries with negation.
References
- Ronald Fagin, Phokion G. Kolaitis, Renée J. Miller and Lucian Popa, Data exchange: semantics and query answering, Theoretical Computer Science 336(1), 2005, universal solutions, the chase and certain answers
- Marcelo Arenas, Pablo Barceló, Leonid Libkin and Filip Murlak, Foundations of Data Exchange, Cambridge University Press, 2014, Chapter 6, Good solutions
- Ronald Fagin, Phokion G. Kolaitis and Lucian Popa, Data exchange: getting to the core, ACM TODS 30(1), 2005, pages 174-210, the core of the universal solutions
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag D6WF2Z Edit this page History Report an error Markdown