Coq和HOL4中精确度误差界的证书验证
A Verified Certificate Checker for Finite-Precision Error Bounds in Coq and HOL4
摘要:
有限精度计算舍入误差对于嵌入式系统和科学计算中的许多应用具有重要意义。由于连续实数和离散有限精度值之间的差异,自动静态分析工具对于估计舍入误差是非常有价值的。然而,结果只有在静态分析工具实现的情况下才正确。本文提出了一种形式化验证和模块化的工具,它可以全自动地检查编码在证书中的有限精度舍入误差范围的正确性。我们提出了实现的证书生成和检查的Coq和HOL4和评估它的一些例子从文献中。实验使用Coq和HOL4的逻辑内评估,以及逻辑外提取代码的执行:我们对Coq提取的未经验证的OCaml代码和CakeML生成的验证二进制代码进行基准测试。
英文摘要:
Being able to soundly estimate roundoff errors of finite-precision computations is important for many applications in embedded systems and scientific computing. Due to the discrepancy between continuous reals and discrete finite-precision values, automated static analysis tools are highly valuable to estimate roundoff errors. The results, however, are only as correct as the implementations of the static analysis tools. This paper presents a formally verified and modular tool which fully automatically checks the correctness of finite-precision roundoff error bounds encoded in a certificate. We present implementations of certificate generation and checking for both Coq and HOL4 and evaluate it on a number of examples from the literature. The experiments use both in-logic evaluation of Coq and HOL4, and execution of extracted code outside of the logics: we benchmark Coq extracted unverified OCaml code and a CakeML-generated verified binary.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。