arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 0708.2230cs.LO
收藏

Horn子句程序的集合分析

Collection analysis for Horn clause programs

Dale Miller

摘要:

我们考虑用数据结构包含的项的集合来近似它们。例如,列表,二叉树,元组等,可以近似为其中的项目的集合或多集合。这种近似可以用来提供逻辑程序的部分正确性。例如,人们可能希望指定,只要证明了原子$sort(t,s)$,则两个列表$t$和$s$包含相同的多项集(即,$s$是$t$的置换)。如果排序去除了重复项,则人们可能会推断$t$和$s$的基础项集合是相同的。如果这些结果可以静态和自动地确定,那么它们可能是有用的。我们提出了一个计划,这样的收集分析可以结构化和自动化。该方案的核心是使用线性逻辑作为Horn子句逻辑的计算逻辑。

英文摘要:

We consider approximating data structures with collections of the items that they contain. For examples, lists, binary trees, tuples, etc, can be approximated by sets or multisets of the items within them. Such approximations can be used to provide partial correctness properties of logic programs. For example, one might wish to specify than whenever the atom $sort(t,s)$ is proved then the two lists $t$ and $s$ contain the same multiset of items (that is, $s$ is a permutation of $t$). If sorting removes duplicates, then one would like to infer that the sets of items underlying $t$ and $s$ are the same. Such results could be useful to have if they can be determined statically and automatically. We present a scheme by which such collection analysis can be structured and automated. Central to this scheme is the use of linear logic as a omputational logic underlying the logic of Horn clauses.

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

↑