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

公式作为程序

Formulas as Programs

Krzysztof R. Apt, Marc Bezem

摘要:

我们在这里提供了一个计算解释的一阶逻辑的基础上建设性的可满足性w.r.t.解释。一种固定但武断的解释。在这种方法中,公式本身就是程序。这与所谓的公式作为类型的方法形成对比,其中公式的证明是可以作为程序的类型化项。这种计算的观点受到逻辑编程和约束逻辑编程的启发,但在许多关键方面与它们不同。公式作为程序被认为是产生一个现实的方法来编程,已实现的程序设计语言ALMA-0(Apt等人)。它结合了命令式编程和逻辑编程的优点。这里报告的工作也可以用来推理不包括破坏性赋值的非递归ALMA-0程序的正确性。

英文摘要:

We provide here a computational interpretation of first-order logic based on a constructive interpretation of satisfiability w.r.t. a fixed but arbitrary interpretation. In this approach the formulas themselves are programs. This contrasts with the so-called formulas as types approach in which the proofs of the formulas are typed terms that can be taken as programs. This view of computing is inspired by logic programming and constraint logic programming but differs from them in a number of crucial aspects. Formulas as programs is argued to yield a realistic approach to programming that has been realized in the implemented programming language ALMA-0 (Apt et al.) that combines the advantages of imperative and logic programming. The work here reported can also be used to reason about the correctness of non-recursive ALMA-0 programs that do not include destructive assignment.

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

↑