arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.07440cs.LOcs.SC
收藏

从应答集程序设计规范综合指针数据结构

Pointer Data Structure Synthesis from Answer Set Programming Specifications

Sarat Chandra Varanasi, Neeraj Mittal, Gopal Gupta

摘要:

我们开发了一种归纳证明技术,以产生命令式程序的指针数据结构的行为规范中表示的回答集编程(ASP)的形式主义。ASP是一种基于非单调逻辑的形式主义,它采用了否定即失败,这有助于模拟人类的思维过程,允许领域专家简洁地建模所需的系统行为。我们认为,在本文中,ASP的依赖否定失败,使其成为一个更好的形式主义比那些基于一阶逻辑编写正式的规格说明。我们假设领域专家提供了归纳定义的数据结构的表示及其操作规范。我们的程序结合我们的新证明技术的原因,在规范和自动生成一个命令式的程序。我们的证明技术利用部分演绎的思想来简化逻辑规范。通过代数简化的逻辑规范,我们到达一个剩余的规范,可以解释为一个适当的命令式程序。这项工作是在根据给定的规范构造正确的程序的领域。

英文摘要:

We develop an inductive proof-technique to generate imperative programs for pointer data structures from behavioural specifications expressed in the Answer Set Programming (ASP) formalism. ASP is a non-monotonic logic based formalism that employs negation-as-failure which helps emulate the human thought process, allowing domain experts to model desired system behaviour succinctly. We argue in this paper that ASP's reliance on negation-as-failure makes it a better formalism than those based on first-order logic for writing formal specifications. We assume the a domain expert provides the representation of inductively defined data structures along with a specification of its operations. Our procedures combined with our novel proof-technique reason over the specifications and automatically generate an imperative program. Our proof-technique leverages the idea of partial deduction to simplify logical specifications. By algebraically simplifying logical specifications we arrive at a residual specification which can be interpreted as an appropriate imperative program. This work is in the realm of constructing programs that are correct according to a given specification.

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

↑