Formal Verification of Transcendental Fixed- and Floating-point Algorithms using an Automatic Theorem Prover
The work
| Authors | Samuel Coward; Lawrence Paulson; Theo Drane; Emiliano Morini |
|---|---|
| Editors | |
| Type | article |
| Year | 2022 |
| Citekey | coward2022formal |
Where it appeared
| Published in | Formal Aspects of Computing |
|---|---|
| Volume | 34 |
| Pages | 1--22 |
Identifiers
| DOI | 10.1145/3543670 |
|---|
Access
| Landing page | https://www.repository.cam.ac.uk/handle/1810/338569 |
|---|
Related
| Distinct from | chen1996verification |
|---|---|
| Distinct from | jacobi2002formal |
| Distinct from | mukherjee2016equivalence |
From bibtex.
Abstract
We present a method for formal verification of transcendental hardware and software algorithms that scales to higher precision without suffering an exponential growth in runtimes. A class of implementations using piecewise polynomial approximation to compute the result is verified using MetiTarski, an automated theorem prover, which verifies a range of inputs for each call. The method was applied to commercial implementations from Cadence Design Systems with significant runtime gains over exhaustive testing methods and was successful in proving that the expected accuracy of one implementation was overly optimistic. Reproducing the verification of a sine implementation in software, previously done using an alternative theorem-proving technique, demonstrates that the MetiTarski approach is a viable competitor. Verification of a 52-bit implementation of the square root function highlights the method’s high-precision capabilities.
Cite it as
@article{coward2022formal,
title = {Formal Verification of Transcendental Fixed- and Floating-point Algorithms using an Automatic Theorem Prover},
author = {Samuel Coward and Lawrence Paulson and Theo Drane and Emiliano Morini},
year = {2022},
journal = {Formal Aspects of Computing},
volume = {34},
pages = {1--22},
doi = {10.1145/3543670},
}
This record lives at https://refs.drheap.org/coward2022formal/ and will keep doing so.