paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Strongly-Normalizing Higher-Order Relational Queries

强规范化的高阶关系查询
LMCS vol.Volume 18, Issue 32022匹配度 1/10 · 该论文是语言集成查询与高阶关系演算的强规范化证明,属于纯 PL/定理证明主题,与用户关注的 LLM/Agent、静态分析、浮点程序分析或贝叶斯程序分析没有直接交集;仅在形式化验证与 PL 理论背景上可能略有间接关联。引用 5 inbox
Wilmer Ricciotti, James Cheney
crossref: 2026-09-10

AI 速览

一句话:为高阶关系查询到 SQL 的翻译所依赖的重写系统补上强规范化证明,并把证明扩展到集合/多重集合异质查询。

语言集成查询允许数据库查询与普通程序代码安全互操作,其技术依赖嵌套关系演算可被算法翻译为 SQL 的经典结果。高阶嵌套关系演算被用作 Links、F# 等函数式语言中语言集成查询的基础,但把高阶关系查询翻译到 SQL 所依赖的重写系统一直缺少强规范化证明;已有证明尝试未能正确处理复制子项的规则。本文厘清该证明尝试的困难,扩展 Lindley 与 Stark 的 ⊤⊤-lifting 方法以容纳复制型重写,从而给出缺失的强规范化证明,并进一步把证明推广到新近提出的、混合集合与多重集合语义的异质查询演算。

问题
高阶关系查询到 SQL 的翻译依赖一个重写系统,但其强规范化性质尚无正确证明,已有尝试对复制子项的重写规则处理有误。
方法
论文分析旧证明失败的原因,扩展 Lindley 与 Stark 的 ⊤⊤-lifting(top-top lifting)以支持复制型重写,并把论证推广到混合集合与多重集合语义的异质查询演算。
评估
采用理论证明而非实验评估:给出所缺的强规范化证明,说明旧证明的问题,并展示该证明对复制规则及异质查询演算扩展的适用性。
原文摘要(Abstract)

Language-integrated query is a powerful programming construct allowing database queries and ordinary program code to interoperate seamlessly and safely. Language-integrated query techniques rely on classical results about the nested relational calculus, stating that its queries can be algorithmically translated to SQL, as long as their result type is a flat relation. Cooper and others advocated higher-order nested relational calculi as a basis for language-integrated queries in functional languages such as Links and F#. However, the translation of higher-order relational queries to SQL relies on a rewrite system for which no strong normalization proof has been published: a previous proof attempt does not deal correctly with rewrite rules that duplicate subterms. This paper fills the gap in the literature, explaining the difficulty with a previous proof attempt, and showing how to extend the $\top\top$-lifting approach of Lindley and Stark to accommodate duplicating rewrites. We also show how to extend the proof to a recently-introduced calculus for heterogeneous queries mixing set and multiset semantics.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot1664,
  title = {Strongly-Normalizing Higher-Order Relational Queries},
  author = {Wilmer Ricciotti and James Cheney},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 18, Issue 3},
  year = {2022},
  doi = {10.46298/lmcs-18(3:23)2022}
}