首页> 外文会议>ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems >Functional database query languages as typed lambda calculi of fixed order (extended abstract)
【24h】

Functional database query languages as typed lambda calculi of fixed order (extended abstract)

机译:功能数据库查询语言为固定顺序的键入的lambda计算(扩展的摘要)

获取原文

摘要

We present a functional framework for database query languages, which is analogous to the conventional logical framework of first-order and fixpoint formulas over finite structures. We use atomic constants of order 0, equality among these constants, variables, application, lambda abstraction, and let abstraction; all typed using fixed order (≤ 5) functionalities. In this framework, proposed in [21] for arbitrary order functionalities, queries and databases are both typed lambda terms, evaluation is by reduction, and the main programming technique is list iteration. We define two families of languages: TLI=i or simply-typed list iteration of order i+3 with equality, and MLI=i or ML-typed list iteration of order i+3 with equality; we use i+3 since our list representation of databases requiresat least order 3. We show that: FO-queries ⊆TLI=0 ⊆MLI=0 ⊆LOGSPACE-queries ⊆TLI=1 =MLI=1 = PTIME-queries TLI2, where equality is no longer a primitive in TLI2. We also show that ML type inference, restricted to fixed order, is polynomial in the size of the program typed. Since programming by using low order functionalities and type inference is common in functional languages, our results indicate that such programs suffice for expressing efficient computations and that their ML-types can be efficiently inferred.

机译:

我们提供了一种用于数据库查询语言的功能框架,该框架类似于有限结构上的一阶和定点公式的常规逻辑框架。我们使用0阶原子常数,这些常数,变量,应用程序,lambda抽象和 let 抽象之间的相等性;全部使用固定顺序(≤5)的功能键入。在[21]中提出的针对任意顺序功能的框架中,查询和数据库都是lambda项,评估是通过归约,而主要的编程技术是列表迭代。我们定义了两种语言: TLI = i 或简单类型的订单列表迭代 i +3相等,并且 MLI = i 或相等的 i +3阶的ML类型列表迭代;我们使用 i +3,因为我们的数据库列表表示至少需要3阶。我们证明:FO查询 ⊆TLI = 0 ⊆MLI = 0 ⊆LOGSPACE查询 ⊆TLI = 1 = MLI = 1 = PTIME查询 TLI 2 ,其中相等不再是TLI 2 中的基元。我们还表明,限于固定顺序的ML类型推断是所键入程序大小的多项式。由于使用低阶功能和类型推断进行编程在功能语言中很常见,因此我们的结果表明,此类程序足以表示有效的计算,并且可以有效地推断其ML类型。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号