arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1105.2751cs.LO
收藏

Coq中有效正合实数的计算机证明

Computer certified efficient exact reals in Coq

Robbert Krebbers, Bas Spitters

摘要:

浮点运算速度很快,但需要用户不断努力,以确保结果正确。通过提供一个精确分析的库,计算机在其中处理误差估计,可以将这个负担从用户身上转移开。我们在Coq证明助手中提供了精确实数的实现。这在两个方面改进了O'Connor早期的Coq实现:我们使用从机器整数构建的二进有理数,并且通过使用近似除法优化幂级数的计算。此外,我们使用类型类来实现干净的数学接口。这似乎是第一次在繁重的计算中使用类型类。我们获得了超过100倍的速度的基本操作和改进Coq系统的迹象。

英文摘要:

Floating point operations are fast, but require continuous effort on the part of the user in order to ensure that the results are correct. This burden can be shifted away from the user by providing a library of exact analysis in which the computer handles the error estimates. We provide an implementation of the exact real numbers in the Coq proof assistant. This improves on the earlier Coq-implementation by O'Connor in two ways: we use dyadic rationals built from the machine integers and we optimize computation of power series by using approximate division. Moreover, we use type classes for clean mathematical interfaces. This appears to be the first time that type classes are used in heavy computation. We obtain over a 100 times speed up of the basic operations and indications for improving the Coq system.

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

↑