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

01/03/2018
by   Nikolay V. Shilov, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/10/2019

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

Research project "Platform-independent approach to formal specification ...
research
10/14/2021

Root Finding With Interval Arithmetic

We consider the solution of nonlinear equations in one real variable, th...
research
05/12/2021

Semantics, Verification, and Efficient Implementations for Tristate Numbers

Extended Berkeley Packet Filter(BPF)is an in-kernel, register-based virt...
research
12/28/2021

A Correctly Rounded Newton Step for the Reciprocal Square Root

The reciprocal square root is an important computation for which many so...
research
03/24/2020

Computer-Assisted Verification of Four Interval Arithmetic Operators

Interval arithmetic libraries provide the four elementary arithmetic ope...
research
07/02/2019

Specifying verified x86 software from scratch

We present a simple framework for specifying and proving facts about the...
research
10/12/2017

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

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

Please sign up or login with your details

Forgot password? Click here to reset