arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1411.7140cs.LO
收藏

具有计算效果的程序认证

Program certification with computational effects

Jean-Guillaume Dumas, Dominique Duval, Burak Ekici, Damien Pous

摘要:

动态求值是计算机代数中的一种范例,它被引入用于代数数的计算。例如,在线性代数中,动态求值可以用于将为系数模为某个素数的矩阵编写的程序应用于系数模为某个合数的矩阵。在现代计算语言中实现动态求值的一种方法是使用语言提供的异常机制。在本文中,我们提出了一个证明系统的异常,其中包括提高和处理,通过扩展Moggi的方法基于单子。而且,这个证明系统的核心部分与祈使式语言中的状态效果证明系统是对偶的,后者依赖于comonad的范畴概念。这两个证明系统都在Coq证明助手中实现,它们被组合在一起,以便同时处理两种效果。

英文摘要:

Dynamic evaluation is a paradigm in computer algebra which was introduced for computing with algebraic numbers. In linear algebra, for instance, dynamic evaluation can be used to apply programs which have been written for matrices with coefficients modulo some prime number to matrices with coefficients modulo some composite number. A way to implement dynamic evaluation in modern computing languages is to use the exceptions mechanism provided by the language. In this paper, we pesent a proof system for exceptions which involves both raising and handling, by extending Moggi's approach based on monads. Moreover, the core part of this proof system is dual to a proof system for the state effect in imperative languages, which relies on the categorical notion of comonad. Both proof systems are implemented in the Coq proof assistant, and they are combined in order to deal with both effects at the same time.

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

↑