Skip to main content

Using Real Quantifer Elimination for Synthesizing Optimal Numerical Algorithms

Madalina Erascu ( West University of Timisoara, Romania & Institute e-Austria Timisoara, Romania )
We report on our on-going efforts to apply real quantifier elimination to the semi-automated synthesis of optimal numerical algorithms. In particular, we describe a case study on the square root problem: given a real number x and an error bound e, find a real interval such that it contains sqrt(x) and its width is less than or equal to e.  A typical numerical algorithm starts with an initial interval and repeatedly updates it by applying a "refinement map" on it until it becomes narrow enough. Thus the synthesis amounts to finding a refinement map that ensures the correctness and optimality of the resulting algorithm.

This problem can be formulated as a real quantifier elimination. Hence, in principle, the synthesis can be carried out automatically. However, the computational requirement is huge, making the automatic synthesis practically impossible with the current general real quantifier elimination software.

We overcame the difficulty by (1) carefully reducing a complicated quantified formula into several simpler ones and (2) automatically eliminating the quantifiers from the resulting ones using the state-of-the-art quantifier elimination software. As the result, we were able to synthesize semi-automatically an optimal quadratically convergent map, which is better than the well known hand-crafted Secant-Newton map. Interestingly, the optimal synthesized map is not contracting as one would naturally expect. We will also present how our approach can be used to syntesize optimal numerical algorithms for other important functions which occur in hardware implementation, e.g. reciprocal (multiplicative inverse), reciprocal square root. The work is partly joined with Hoon Hong, NCSU, Raleigh, USA.

 

 

Share this: