具有内建和聚集的逻辑程序的求值:一种包关系演算
Evaluation of Logic Programs with Built-Ins and Aggregation: A Calculus for Bag Relations
摘要:
我们提出了一个计划,用于翻译逻辑程序,这可能会使用聚合和算术,代数表达式表示袋关系的Herbrand宇宙的地面条款。为了评估这些关系的查询,我们开发了一个操作语义的基础上长期重写的代数表达式。这种方法可以利用算术恒等式并恢复一系列有用的策略,包括延迟工作直到它变得可能或必要的懒惰策略。
英文摘要:
We present a scheme for translating logic programs, which may use aggregation and arithmetic, into algebraic expressions that denote bag relations over ground terms of the Herbrand universe. To evaluate queries against these relations, we develop an operational semantics based on term rewriting of the algebraic expressions. This approach can exploit arithmetic identities and recovers a range of useful strategies, including lazy strategies that defer work until it becomes possible or necessary.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。