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

Gauss-Jordan算法的应用,正确完成

Applications of the Gauss-Jordan algorithm, done right

Jesús Aransay, Jose Divasón

摘要:

计算机代数系统由于其一些显着的特性,如易用性和性能,而得到广泛传播。尽管如此,这种对性能的关注有时会导致不必要的后果:算法和计算的实现和执行方式有时对用户不透明,并且可能导致意外的失败。在本文中,我们提出了一个形式化的证明辅助系统的\emph{naive}版本的高斯-约旦算法,明确证明了它的一些应用程序,另外一个过程中获得版本的算法在两个不同的功能语言(SML和Haskell)通过代码生成技术验证算法。然后将所获得的程序应用于测试用例,尽管原始算法简单,但与一些计算机代数系统相比,如Mathematica \textsuperscript{\textregistered}(其中一些计算甚至不正确)或Sage(与生成的程序相比,显示出令人信服的性能),这些程序显示出显着的功能。本文的目的是表明,与目前的技术定理证明,形式化线性代数程序是一个具有挑战性的,但有益的任务,它提供的程序,可以在某些方面相比,\emph{state of the art}程序在计算机代数系统,其正确性被正式证明。

英文摘要:

Computer Algebra systems are widely spread because of some of their remarkable features such as their ease of use and performance. Nonetheless, this focus on performance sometimes leads to unwanted consequences: algorithms and computations are implemented and carried out in a way which is sometimes not transparent to the users, and that can lead to unexpected failures. In this paper we present a formalisation in a proof assistant system of a \emph{naive} version of the Gauss-Jordan algorithm, with explicit proofs of some of its applications, and additionally a process to obtain versions of this algorithm in two different functional languages (SML and Haskell) by means of code generation techniques from the verified algorithm. The obtained programs are then applied to test cases, which, despite the simplicity of the original algorithm, have shown remarkable features in comparison to some Computer Algebra systems, such as Mathematica\textsuperscript{\textregistered} (where some of these computations are even incorrect), or Sage (in comparison to which the generated programs show a compelling performance). The aim of the paper is to show that, with the current technology in Theorem Proving, formalising Linear Algebra procedures is a challenging but rewarding task, which provides programs that can be compared in some aspects to \emph{state of the art} procedures in Computer Algebra systems, and whose correctness is formally proved.

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

↑