浮点程序的正确性证明难以验证。为了简化这一任务,可以使用一种类似但复杂度较低的系统,即对数算术。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.
Towards Efficient Verification of Quantized Neural Networks
Stanford University(斯坦福大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);IT University of Copenhagen(哥本哈根信息技术大学);National University of Singapore(新加坡国立大学)
Verification of Magnitude and Phase Responses in Fixed-Point Digital Filters
Universidade Federal do Amazonas (UFAM)(亚马孙联邦大学);Univ. Lille, CNRS, ISEN, Univ. Valenciennes, UMR 8520, IEMN(里尔大学、法国国家科学研究中心、ISEN、瓦朗谢纳大学、IEMN实验室);Samsung Instituto de P&D da Amazônia (SIDIA)(亚马逊三星研发研究所)