Primitive Floats in Coq
Primitive Floats in Coq
复制标题
Coq 中的原始浮点数
DOI:
10.4230/lipics.itp.2019.7
复制
发表时间:
2019
期刊:
影响因子:
--
通讯作者:
P. Roux
中科院分区:
文献类型:
--
作者:
Guillaume Bertholon;Érik Martin;P. Roux
Some mathematical proofs involve intensive computations, for instance: the four-color theorem, Hales’ theorem on sphere packing (formerly known as the Kepler conjecture) or interval arithmetic. For numerical computations, floating-point arithmetic enjoys widespread usage thanks to its efficiency, despite the introduction of rounding errors. Formal guarantees can be obtained on floating-point algorithms based on the IEEE 754 standard, which precisely specifies floating-point arithmetic and its rounding modes, and a proof assistant such as Coq, that enjoys efficient computation capabilities. Coq offers machine integers, however floating-point arithmetic still needed to be emulated using these integers. A modified version of Coq is presented that enables using the machine floating-point operators. The main obstacles to such an implementation and its soundness are discussed. Benchmarks show potential performance gains of two orders of magnitude.