DeepAI AI Chat
Log In Sign Up

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

by   Nikolay V. Shilov, et al.
JSC Innopolis
Mail.Ru Group

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 √(...), 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.


page 1

page 2

page 3

page 4


Towards platform-independent specification and verification of the standard trigonometry functions

Research project "Platform-independent approach to formal specification ...

Root Finding With Interval Arithmetic

We consider the solution of nonlinear equations in one real variable, th...

Semantics, Verification, and Efficient Implementations for Tristate Numbers

Extended Berkeley Packet Filter(BPF)is an in-kernel, register-based virt...

A Correctly Rounded Newton Step for the Reciprocal Square Root

The reciprocal square root is an important computation for which many so...

Computer-Assisted Verification of Four Interval Arithmetic Operators

Interval arithmetic libraries provide the four elementary arithmetic ope...

Reduction of Look Up Tables for Computation of Reciprocal of Square Roots

Among many existing algorithms, convergence methods are the most popular...

On the optimality of ternary arithmetic for compactness and hardware design

In this paper, the optimality of ternary arithmetic is investigated unde...