阵列折叠逻辑
Array Folds Logic
摘要:
我们提出了一个扩展的整数数组的无量词理论,它允许我们表达计数。在数组折叠逻辑(AFL)中可表达的属性包括诸如“第一个数组单元包含数组长度”和“数组包含相等数量的最小和最大元素”之类的语句。“这些性质不能用数组理论的量化片段来表达,也不能用串联理论来表达。使用约简计数器,我们证明了AFL的可满足性问题是PSPACE-完全的,并与自然的限制的复杂性降低到NP。我们还表明,添加全称量词或连接导致不可判定性。AFL包含将函数折叠到数组上的术语。我们证明,折叠,一个众所周知的概念,从函数语言,使我们能够简明扼要地总结循环计数数组,这经常发生在现实生活中的程序。我们提供了一个工具,可以在AFL中履行证明义务,我们在实际例子中证明,我们的决策过程可以解决广泛的问题,在符号测试和程序验证。
英文摘要:
We present an extension to the quantifier-free theory of integer arrays which allows us to express counting. The properties expressible in Array Folds Logic (AFL) include statements such as "the first array cell contains the array length," and "the array contains equally many minimal and maximal elements." These properties cannot be expressed in quantified fragments of the theory of arrays, nor in the theory of concatenation. Using reduction to counter machines, we show that the satisfiability problem of AFL is PSPACE-complete, and with a natural restriction the complexity decreases to NP. We also show that adding either universal quantifiers or concatenation leads to undecidability. AFL contains terms that fold a function over an array. We demonstrate that folding, a well-known concept from functional languages, allows us to concisely summarize loops that count over arrays, which occurs frequently in real-life programs. We provide a tool that can discharge proof obligations in AFL, and we demonstrate on practical examples that our decision procedure can solve a broad range of problems in symbolic testing and program verification.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。