arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.07626cs.LO
收藏

图形连接符

Graphical Conjunctive Queries

Filippo Bonchi, Jens Seeber, Pawel Sobocinski

摘要:

合取运算(CCQ)在数据库理论中具有基础性地位。Chandra和Merlin的一个著名定理指出CCQ查询包含是可判定的。它的证明将逻辑公式转换为图:每个查询都有一个自然模型-一种图-并且查询包含减少到自然模型之间的图同态的存在。我们介绍了图形语言图形连接符(GCQ),并表明它具有相同的表达CCQ。GCQ术语是字符串图,它们的代数结构允许我们推导出一个健全的和完整的公理化的查询包含,这原来正是Carboni和Walters的概念的carbonitebicategory的关系。我们的完备性证明利用了超图(的某些cospans)的弦图的组合性质:钱德拉和梅林的见解启发了一个定理,将这种cospans与跨度联系起来。GCQ的(非)方程理论的完备性和可判定性作为推论遵循。范畴地说,我们的贡献是一个模型理论的完备性定理的自由carbonatebicategories(关系签名)的类别的集合和关系。

英文摘要:

The Calculus of Conjunctive Queries (CCQ) has foundational status in database theory. A celebrated theorem of Chandra and Merlin states that CCQ query inclusion is decidable. Its proof transforms logical formulas to graphs: each query has a natural model - a kind of graph - and query inclusion reduces to the existence of a graph homomorphism between natural models. We introduce the diagrammatic language Graphical Conjunctive Queries (GCQ) and show that it has the same expressivity as CCQ. GCQ terms are string diagrams, and their algebraic structure allows us to derive a sound and complete axiomatisation of query inclusion, which turns out to be exactly Carboni and Walters' notion of cartesian bicategory of relations. Our completeness proof exploits the combinatorial nature of string diagrams as (certain cospans of) hypergraphs: Chandra and Merlin's insights inspire a theorem that relates such cospans with spans. Completeness and decidability of the (in)equational theory of GCQ follow as a corollary. Categorically speaking, our contribution is a model-theoretic completeness theorem of free cartesian bicategories (on a relational signature) for the category of sets and relations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑