[Paper Review] A Verified Certificate Checker for Floating-Point Error Bounds
This paper presents a modular framework that automatically generates and verifies correctness certificates for floating-point roundoff error bounds in finite-precision computations. By enabling independent, sound checking of these certificates in both Coq and HOL4, the approach enhances trust in static analysis results without requiring full verification of the analysis toolchain.
Being able to soundly estimate roundoff errors in floating-point computations is important for many applications in embedded systems and scientific computing. Due to the unintuitive nature of floating-point arithmetic, automated static analysis tools are highly valuable for this task. The results, however, are only as correct as the implementations of the static analysis tools. This paper presents a new modular framework for the analysis of finite-precision computations which computes sound roundoff error bounds fully automatically. The main focus of this paper are the correctness certificates generated by our framework. These can be checked independently by our checker functions, thus providing more confidence in the analysis results. We present implementations of certificate generation and checking for both Coq and HOL4 and evaluate it on a number of examples from the literature. The experiments use both in-logic evaluation of Coq and HOL4, and execution of extracted code outside of the logics: we benchmark Coq extracted unverified OCaml code and a CakeML-generated verified binary.
Motivation & Objective
- To address the critical challenge of ensuring correctness in floating-point static analysis tools, which are prone to implementation errors.
- To develop a modular framework that automatically computes sound roundoff error bounds for finite-precision computations.
- To generate machine-checkable correctness certificates that decouple analysis from verification, increasing trust in results.
- To evaluate the framework across multiple formal systems, including Coq and HOL4, using both in-logic and extracted-code execution.
- To demonstrate the practicality and performance of the approach through benchmarks on literature examples.
Proposed method
- The framework generates correctness certificates for roundoff error bounds using static analysis of finite-precision floating-point computations.
- Certificates are designed to be checked independently using lightweight, formally verified checker functions in Coq and HOL4.
- The approach supports two evaluation modes: in-logic evaluation within the proof assistants and execution of extracted unverified OCaml code.
- A verified binary generated via CakeML is used to execute the checker outside the logic, ensuring end-to-end trust.
- The framework integrates with existing static analysis techniques while decoupling certificate generation from verification.
- The use of both in-logic and extracted-code execution enables performance evaluation and practical deployment.
Experimental results
Research questions
- RQ1Can a modular framework generate sound roundoff error bounds for finite-precision floating-point computations automatically?
- RQ2Can correctness certificates be generated in a way that enables independent, efficient, and formally verified checking?
- RQ3How do the performance characteristics of in-logic evaluation and extracted code execution compare in practice?
- RQ4To what extent can the framework be applied to real-world examples from the literature?
- RQ5Can the use of verified checkers significantly increase confidence in static analysis results without re-verifying the entire analysis pipeline?
Key findings
- The framework successfully generates sound roundoff error bounds for a range of benchmark examples from the literature.
- Certificate checking in both Coq and HOL4 is efficient and fully formally verified, providing strong trust guarantees.
- The extracted OCaml code from Coq executes faster than in-logic evaluation, demonstrating practical performance.
- The CakeML-generated verified binary offers a trustworthy execution path outside the logic, enhancing deployment confidence.
- The separation of certificate generation and checking enables scalable and modular verification of floating-point analysis tools.
- The evaluation confirms that the approach is both correct and practical for real-world applications in embedded and scientific computing.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.