arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2411.12923cs.LOcs.AR
收藏

迈向对数算术的自动化验证

Towards Automated Verification of Logarithmic Arithmetic

Mark G. Arnold, Thomas A. Bailey, John R. Cowles

AI总结:

本文利用NQTHM定理证明器机械验证了对数算术实现及其误差界定理,并提出适用于对数算术的容差概念,从而支持对数算术程序的自动化正确性证明。

摘要:

浮点程序的正确性证明难以验证。为了简化这一任务,可以使用一种类似但复杂度较低的系统,即对数算术。Boyer-Moore定理证明器NQTHM机械验证了一个简单对数算术实现的正确性。它还验证了关于该对数数制中加法、乘法和除法的累积相对误差界的一些有用定理。这些定理被用于验证一个使用截断泰勒级数逼近e^x的程序。证明器证明了用有理基数b刻画对数系统有限精度的公理对于任意1 < b < 2的选择都是可满足的。证明器验证了一个将任意有理值转换为对数表示的函数是正确的。它还验证了乘法和除法实现在精确输入下产生精确结果,以及加法实现在精确输入下产生尽可能精确的结果。当这些操作被程序组合使用时,例如计算多项式,相对误差会以一种可以被简单表达式界定的方式增加,这些表达式在此称为容差。若干经过机械验证的关于容差的定理使我们能够构造关于对数算术程序的机械验证证明。尽管与区间算术相似,容差特别适用于对数算术。

英文摘要:

Correctness proofs for floating point programs are difficult to verify. To simplify the task, a similar, but less complex system, known as logarithmic arithmetic can be used. The Boyer-Moore Theorem Prover, NQTHM, mechanically verified the correctness of a simple implementation of logarithmic arithmetic. It also verified some useful theorems about accumulated relative error bounds for addition, multiplication and division in this logarithmic number system. These theorems were used to verify a program that approximates e^x using a truncated Taylor series. Axioms that characterize the finite precision of the logarithmic system using a rational base, b, were shown by the prover to be satisfiable for any choice of 1 < b < 2. The prover verified the correctness of a function for converting an arbitrary rational value to a logarithmic representation. It also verified that multiplication and division implementations produce exact results for exact inputs, and that addition implementation produces a result as accurate as possible for exact inputs. When these operations are used in combination by a program, such as evaluating a polynomial, the relative error increases in a way that can be bounded by simple expressions, referred to here as tolerances. Several mechanically verified theorems about tolerances allow us to construct mechanically verified proofs about logarithmic arithmetic programs. Although similar to interval arithmetic, tolerances are especially suited to logarithmic arithmetic.

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

↑