Affiliation:
1. CNRS Verimag
2. Imperial College London, London, UK
Abstract
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.
Funder
European Research Council (ERC) “STATOR”
Engineering and Physical Sciences Research Council (EPSRC) “Challenging Engineering”
Publisher
Association for Computing Machinery (ACM)
Subject
Applied Mathematics,Software
Reference63 articles.
1. A Numerical Evaluation of Several Stochastic Algorithms on Selected Continuous Global Optimization Test Problems
2. The Mosek Interior Point Optimizer for Linear Programming: An Implementation of the Homogeneous Algorithm
3. A Modular Integration of SAT/SMT Solvers to Coq through Proof Witnesses
4. Lectures on Modern Convex Optimization
5. Y. Bertot and P. Castéran. 2004. Interactive Theorem Proving and Program Development: Coq’Art: The Calculus of Inductive Constructions. Springer. 10.1007/978-3-662-07964-5 Y. Bertot and P. Castéran. 2004. Interactive Theorem Proving and Program Development: Coq’Art: The Calculus of Inductive Constructions. Springer. 10.1007/978-3-662-07964-5
Cited by
58 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Numerical Fuzz: A Type System for Rounding Error Analysis;Proceedings of the ACM on Programming Languages;2024-06-20
2. Floating-Point TVPI Abstract Domain;Proceedings of the ACM on Programming Languages;2024-06-20
3. A Holistic Approach to Automatic Mixed-Precision Code Generation and Tuning for Affine Programs;Proceedings of the 29th ACM SIGPLAN Annual Symposium on Principles and Practice of Parallel Programming;2024-02-20
4. VCFloat2: Floating-Point Error Analysis in Coq;Proceedings of the 13th ACM SIGPLAN International Conference on Certified Programs and Proofs;2024-01-09
5. Turaco: Complexity-Guided Data Sampling for Training Neural Surrogates of Programs;Proceedings of the ACM on Programming Languages;2023-10-16