On Sound Compilation of Reals
Not on the map. Why?
Abstract (arXiv)
Writing accurate numerical software is hard because of many sources of unavoidable uncertainties, including finite numerical precision of implementations. We present a programming model where the user writes a program in a real-valued implementation and specification language that explicitly includes different types of uncertainties. We then present a compilation algorithm that generates a conventional implementation that is guaranteed to meet the desired precision with respect to real numbers. Our verification step generates verification conditions that treat different uncertainties in a unified way and encode reasoning about floating-point roundoff errors into reasoning about real numbers. Such verification conditions can be used as a standardized format for verifying the precision and the correctness of numerical programs. Due to their often non-linear nature, precise reasoning about such verification conditions remains difficult. We show that current state-of-the art SMT solvers do not scale well to solving such verification conditions. We propose a new procedure that combines exact SMT solving over reals with approximate and sound affine and interval arithmetic. We show that this approach overcomes scalability limitations of SMT solvers while providing improved precision over affine and interval arithmetic. Using our initial implementation we show the usefullness and effectiveness of our approach on several examples, including those containing non-linear computation.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). First posted on arXiv 10 Sep 2013.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 1.
4 papers.
- 2021SIRNN: A Math Library for Secure RNN Inferencecited by 28
- 2022MinUn: Accurate ML Inference on Microcontrollerscited by 3
- 2022Sparse Polynomial Optimization: Theory and Practicecited by 0
- 2023Turaco: Complexity-Guided Data Sampling for Training Neural Surrogates of Programscited by 0
- 2023Turaco: Complexity-Guided Data Sampling for Training Neural Surrogates of Programs21 Sep 2023
- 2022MinUn: Accurate ML Inference on Microcontrollers29 Oct 2022
- 2022Sparse Polynomial Optimization: Theory and Practice23 Aug 2022
- 2021SIRNN: A Math Library for Secure RNN Inference10 May 2021