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

关于关系数据库上可折叠为二阶逻辑的高阶查询语言

On Higher Order Query Languages which on Relational Databases Collapse to Second Order Logic

Flavio Ferrarotti, Loredana Tec, José María Turull-Torres

摘要:

在数据库理论中的可计算查询框架中,有许多对关系数据库实例(的属性)的查询的示例,这些查询可以由简单而优雅的三阶逻辑($\mathrm{TO}$)公式表示。在这些性质中,$\mathrm{TO}$的表达能力是不需要的,但是等效二阶逻辑($\mathrm{SO}$)公式可能非常复杂或不直观。从研究高表达性查询语言的观点来看,识别具有$\mathrm{SO}$等价公式的$\mathrm{TO}$的片段(以及一般地,高阶$\geq 3$逻辑的片段)是相关的。在这篇文章中,我们研究这个精确的问题如下。首先,我们定义了一个一般模式的$\exists$ TO公式,其中包括存在性量化的三阶线性有向图的多项式长度,也就是说,一个序列的结构,表示一个计算,通过明确说明哪些操作是可以参与建设一个给定的结构序列中,当应用到前一个。然后构造性地证明了该模式的所有$\exists$ TO子公式都可以转化为等价的SO公式。其次,为了形式化地刻画可转化为SO的TO片段,我们对多项式TO定义了TO的一个限制,记为TO $^{P}$,并给出了它坍缩为SO的构造性证明.我们将TO $^{P}$定义为TO的片段,其中赋值只能将基数由依赖于量词的多项式限定的TO关系赋值给TO关系变量。此外,我们对每一个高阶$i \geq 4$逻辑定义了一个类似的限制,记为$\mathrm{HO}^{i,P}$,并给出了对所有的$i \geq 4$,$\mathrm{HO}^{i,P}$坍缩为SO的构造性证明.

英文摘要:

In the framework of computable queries in Database Theory, there are many examples of queries to (properties of) relational database instances that can be expressed by simple and elegant third order logic ($\mathrm{TO}$) formulae. In many of those properties the expressive power of $\mathrm{TO}$ is not required, but the equivalent second order logic ($\mathrm{SO}$) formulae can be very complicated or unintuitive. From the point of view of the study of highly expressive query languages, it is then relevant to identify fragments of $\mathrm{TO}$ (and, in general, of higher-order logics of order $\geq 3$) which do have an $\mathrm{SO}$ equivalent formula. In this article we investigate this precise problem as follows. Firstly, we define a general schema of $\exists$TO formulas which consists of existentially quantifying a third-order linear digraph of polynomial length, that is, a sequence of structures that represents a computation, by explicitly stating which operations are the ones which can be involved in the construction of a given structure in the sequence, when applied to the previous one. Then we give a constructive proof of the fact that all $\exists$TO sub formulas of that schema can be translated into an equivalent SO formula. Secondly, aiming to formally characterize the fragment of TO which can be translated to SO, we define a restriction of TO, which we denote TO$^{P}$, for polynomial TO, and we give a constructive proof on the fact that it collapses to SO. We define TO$^{P}$ as the fragment of TO where valuations can assign to TO relation variables only TO relations whose cardinalities are bounded by a polynomial that depends on the quantifier. Moreover, we define a similar restriction for every higher order logic of order $i \geq 4$, which we denote $\mathrm{HO}^{i,P}$, and give a constructive proof of the fact that for all $i \geq 4$, $\mathrm{HO}^{i,P}$ collapses to SO.

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

↑