arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2104.08130cs.LOcs.PLcs.SE
收藏

$\{log\}$:将公式设置为程序

$\{log\}$: Set Formulas as Programs

Maximiliano Cristiá, Gianfranco Rossi

摘要:

$\{log\}$是一种程序设计语言,介于约束逻辑编程、集合编程和声明式编程之间。但是$\{log\}$也是有限集合和有限二元关系理论的可满足性求解器。有了$\{log\}$,程序员可以使用集合论和二元关系的所有功能编写抽象程序。这些程序不是很有效,但它们非常接近规范。其正确性更加明显。此外,$\{log\}$程序也是设定的公式。因此,程序员可以再次使用$\{log\}$来自动证明他们的程序验证非平凡属性。在本文中,我们通过几个例子来展示这种开发方法。

英文摘要:

$\{log\}$ is a programming language at the intersection of Constraint Logic Programming, set programming and declarative programming. But $\{log\}$ is also a satisfiability solver for a theory of finite sets and finite binary relations. With $\{log\}$ programmers can write abstract programs using all the power of set theory and binary relations. These programs are not very efficient but they are very close to specifications. Then, their correctness is more evident. Furthermore, $\{log\}$ programs are also set formulas. Hence, programmers can use $\{log\}$ again to automatically prove their programs verify non trivial properties. In this paper we show this development methodology by means of several examples.

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

↑