延迟有限域浮点运算的形式化证明
Formal proof for delayed finite field arithmetic using floating point operators
摘要:
正式的证明检查器,如Coq能够验证有限域算术算法的正确性证明,但它们需要潜在用户的广泛培训。有限域上三角系统的延迟解混合了整数运算和浮点数运算。在本报告中,我们将重点放在验证证明义务上,即在任何浮点运算中都没有发生舍入错误。我们使用一个名为Gappa的工具,可以在几分钟内学会生成与浮点运算相关的证明,并隐藏形式证明检查器的技术细节。我们发现现有工具中缺少三个设施。第一个是在Gappa中使用新引理的能力,这些引理不能很容易地表示为重写规则。我们创造了第二个“变量”,因为它需要验证循环交换。第三个工具通过为大量情况生成执行跟踪来处理大规模循环展开和参数实例化。我们希望这些工具可以在将来的某个时候集成到主流代码验证中。
英文摘要:
Formal proof checkers such as Coq are capable of validating proofs of correction of algorithms for finite field arithmetics but they require extensive training from potential users. The delayed solution of a triangular system over a finite field mixes operations on integers and operations on floating point numbers. We focus in this report on verifying proof obligations that state that no round off error occurred on any of the floating point operations. We use a tool named Gappa that can be learned in a matter of minutes to generate proofs related to floating point arithmetic and hide technicalities of formal proof checkers. We found that three facilities are missing from existing tools. The first one is the ability to use in Gappa new lemmas that cannot be easily expressed as rewriting rules. We coined the second one ``variable interchange'' as it would be required to validate loop interchanges. The third facility handles massive loop unrolling and argument instantiation by generating traces of execution for a large number of cases. We hope that these facilities may sometime in the future be integrated into mainstream code validation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。