arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1801.00969cs.LO
收藏

标准数学函数的平台无关验证:平方根函数

Towards platform-independent verification of the standard mathematical functions: the square root function

Nikolay V. Shilov, Igor S. Anureev, Mikhail Berdyshev, Dmitry Kondratev, Aleksey V. Promsky

摘要:

本文提出了平方根函数的(人性化)规范和(纸笔)验证。该函数实现牛顿法,并使用查找表进行初始近似。规范是在总的正确性断言与使用精确的算术和数学平方根$\sqrt{\dots}$,算法是在伪代码与精确和机器算法之间的明确区别,验证是在Floor-Hoare风格和调整(匹配)运行的算法与精确的算术和机器算法。本文的主要目的是明确的机器算法,足以使文件中提出的验证的性质。证明的计算机辅助实现和验证(使用一些证明助手)是进一步研究的主题。

英文摘要:

The paper presents (human-oriented) specification and (pen-and-paper) verification of the square root function. The function implements Newton method and uses a look-up table for initial approximations. Specification is done in terms of total correctness assertions with use of precise arithmetic and the mathematical square root $\sqrt{\dots}$, algorithms are presented in pseudo-code with explicit distinction between precise and machine arithmetic, verification is done in Floyd-Hoare style and adjustment (matching) of runs of algorithms with precise arithmetic and with machine arithmetic. The primary purpose of the paper is to make explicit properties of the machine arithmetic that are sufficient to make verification presented in the paper. Computer-aided implementation and validation of the proofs (using some proof-assistant) is the topic for further studies.

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

↑