Seedlabs
Source research

Certified Roundoff Error Bounds Using Semidefinite Programming

Victor Magron, George Anthony Constantinides, Alastair F. Donaldson · 2017 · 118 citationsRead the paper

Roundoff errors cannot be avoided when implementing numerical programs with finite precision. The ability to reason about rounding is especially important if one wants to explore a range of potential representations, for instance, for FPGAs or custom hardware implementations. This problem becomes challenging when the program does not employ solely linear operations as non-linearities are inherent to many interesting computational problems in real-world applications. Existing solutions to reasoning possibly lead to either inaccurate bounds or high analysis time in the presence of nonlinear correlations between variables. Furthermore, while it is easy to implement a straightforward method such as interval arithmetic, sophisticated techniques are less straightforward to implement in a formal setting. Thus there is a need for methods that output certificates that can be formally validated inside a proof assistant. We present a framework to provide upper bounds on absolute roundoff errors of floating-point nonlinear programs. This framework is based on optimization techniques employing semidefinite programming and sums of squares certificates, which can be checked inside the Coq theorem prover to provide formal roundoff error bounds for polynomial programs. Our tool covers a wide range of nonlinear programs, including polynomials and transcendental operations as well as conditional statements. We illustrate the efficiency and precision of this tool on non-trivial programs coming from biology, optimization, and space control. Our tool produces more accurate error bounds for 23% of all programs and yields better performance in 66% of all programs.

What the full text shows

Working prototype
  • The tool produces more accurate error bounds than compared solvers (FPTaylor, Rosa, Gappa, Fluctuat). — 23% of all programs (Non-trivial programs from biology, optimization, and space control)
  • The tool yields better execution performance than compared solvers. — 66% of all programs (Non-trivial programs from biology, optimization, and space control)
  • The framework provides formally validated upper bounds on absolute roundoff errors for nonlinear programs. (Polynomial programs verified inside the Coq theorem prover)
Setup
Benchmarks include programs from physics, biology, space control, and optimization; tested on an Intel Core i7-5600U CPU (2.60 GHz) using OCaml, Coq, and the Sdpa SDP solver.
How
The authors developed Real2Float, a tool that uses semidefinite programming (SDP) and sums of squares (SOS) certificates to compute upper bounds on roundoff errors. It decomposes the error into an affine part (bounded via SDP) and a remainder (bounded via interval arithmetic), producing certificates that can be verified in Coq.
Limitations
SDP solvers are implemented in floating-point, requiring a remainder polynomial bound via interval arithmetic to ensure validity. · The tool's efficiency depends on the relaxation order d, which must be kept low to ensure tractability. · Formal verification of non-polynomial programs is currently limited compared to polynomial programs.

Summarized by Gemma 4 from the open-access full text · 26 Nov 2026. Read it