Skip to main content
QUICK REVIEW

[论文解读] Computer validated proofs of a toolset for adaptable arithmetic

Sylvie Boldo, Marc Daumas|OpenGrey (Institut de l'Information Scientifique et Technique)|Jul 19, 2001
Numerical Methods and Algorithms参考文献 42被引用 7
一句话总结

本文提出了一种经过形式化验证的可适配数值核心,用于高精度计算,采用浮点扩展和在线算术。该核心由四个工具组成,其中处理关键算术操作的$Σ_3$运算符已使用Coq证明助手完成正确性证明,从而支持基于验证数学事实的可靠、应用特定的库和形式化证明。

ABSTRACT

Most existing implementations of multiple precision arithmetic demand that the user sets the precision {\em a priori}. Some libraries are said adaptable in the sense that they dynamically change the precision of each intermediate operation individually to deliver the target accuracy according to the actual inputs. We present in this text a new adaptable numeric core inspired both from floating point expansions and from on-line arithmetic. The numeric core is cut down to four tools. The tool that contains arithmetic operations is proved to be correct. The proofs have been formally checked by the Coq assistant. Developing the proofs, we have formally proved many results published in the literature and we have extended a few of them. This work may let users (i) develop application specific adaptable libraries based on the toolset and / or (ii) write new formal proofs based on the set of validated facts.

研究动机与目标

  • 设计一种可动态调整每项操作精度的数值核心,以确保最终结果的准确性,避免固定精度的局限性。
  • 使用Coq证明助手对核心中的算术操作进行形式化验证,确保正确性并消除实现错误。
  • 为构建应用特定的可适配库提供基础,并支持基于不断增长的验证数学事实集的新形式化证明。
  • 通过支持运行时精度自适应,克服多重精度算术中静态误差分析的局限性。

提出的方法

  • 将数值核心分解为四个工具:部分积生成(PP)、优先队列(PQ)、合并(MQ)和求和(Σ₃),实现动态精度缩放。
  • $Σ_3$运算符使用浮点扩展执行算术运算,通过组合乘积的高阶和低阶部分来保持精度。
  • 系统使用优先队列管理部分积,通过基于键的比较而非值比较,确保输出按大小排序。
  • 该算法采用非恢复除法,结合误差界和循环条件,保证余数减少和精度控制。
  • 所有证明均在Coq中完成,依赖于前序部分的形式化界和定理,避免使用底层浮点数假设。
  • 系统确保仅在输入足够时才生成中间值,操作在需要时被冻结并恢复。

实验结果

研究问题

  • RQ1如何设计一种可动态调整每项操作精度的数值核心,同时确保正确性?
  • RQ2在存在浮点数误差的情况下,可使用哪些形式化证明技术来验证自适应算术操作的正确性?
  • RQ3经过形式化验证的算术核心能否作为应用特定库和新形式化证明的可靠基础?
  • RQ4如何管理中间结果的精度,以确保最终结果的准确性而不产生过度估计?

主要发现

  • $Σ_3$运算符(执行核心算术操作)已使用Coq证明助手完成形式化正确性证明。
  • 系统保证除法中的余数几乎线性减少,且在合理误差界下误差被限制在4 ulps以内。
  • 关于$Σ_3$的关键定理的证明仅依赖于前序定理的上下界,避免了对底层浮点数假设的依赖。
  • 该工具集通过屏蔽用户对复杂浮点数实现细节的接触,支持构建应用特定的可适配库。
  • 经验证的事实现已成为编写新形式化证明的可靠基础,减少了对低层级验证的需求。
  • 系统确保部分积按大小顺序生成,正确处理等待队列和基于优先级的合并。

更好的研究,从现在开始

从阅读论文到最终审阅,大幅缩短您的研究时间。

无需绑定信用卡

本解读由 AI 生成,并经人工编辑审核。