English

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

Logic in Computer Science 2018-01-26 v2

Abstract

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.

Keywords

Cite

@article{arxiv.1801.00969,
  title  = {Towards platform-independent verification of the standard mathematical functions: the square root function},
  author = {Nikolay V. Shilov and Igor S. Anureev and Mikhail Berdyshev and Dmitry Kondratev and Aleksey V. Promsky},
  journal= {arXiv preprint arXiv:1801.00969},
  year   = {2018}
}

Comments

25 pages, 7 figures, full version with complete proofs

R2 v1 2026-06-22T23:35:20.335Z