[Paper Review] Generating certified properties for numerical expressions and their evaluations
Gappa is a tool that automatically generates formally certified bounds for numerical expressions involving exact and rounded arithmetic operations. It uses interval arithmetic with multiple-precision dyadic fractions and performs forward error analysis to produce machine-checkable proofs in Coq or HOL Light, enabling verification of numerical software properties with high assurance.
Gappa uses interval arithmetic to certify bounds on mathematical expressions that involve rounded as well as exact operators. Gappa generates a theorem with its proof for each bound treated. The proof can be checked with a higher order logic automatic proof checker, either Coq or HOL Light, and we have developed a large companion library of verified facts for Coq dealing with the addition, multiplication, division, and square root, in fixed- and floating-point arithmetics. Gappa uses multiple-precision dyadic fractions for the endpoints of intervals and performs forward error analysis on rounded operators when necessary. When asked, Gappa reports the best bounds it is able to reach for a given expression in a given context. This feature is used to quickly obtain coarse bounds. It can also be used to identify where the set of facts and automatic techniques implemented in Gappa becomes insufficient. Gappa handles seamlessly additional properties expressed as interval properties or rewriting rules in order to establish more intricate bounds. Recent work showed that Gappa is perfectly suited to the proof of correctness of small pieces of software. Proof obligations can be written by designers, produced by third-party tools or obtained by overloading arithmetic operators.
Motivation & Objective
- To provide formally verified bounds for mathematical expressions involving both exact and rounded arithmetic operations.
- To automate the generation of machine-checkable proofs for numerical properties using higher-order logic proof checkers.
- To support the verification of numerical software components through certified error bounds and formal theorem generation.
- To extend support for complex numerical properties via interval constraints and rewriting rules.
- To identify limitations in existing formal libraries by exposing where current techniques and facts fall short.
Proposed method
- Gappa employs interval arithmetic with multiple-precision dyadic fractions to represent interval endpoints accurately.
- It performs forward error analysis on rounded operators to bound numerical errors in floating-point computations.
- The tool generates a theorem with a formal proof for each certified bound, which can be checked by Coq or HOL Light.
- It integrates a large companion library of verified facts in Coq for basic arithmetic operations in fixed- and floating-point formats.
- Gappa supports additional properties through interval constraints and rewriting rules to derive more complex bounds.
- It can report the tightest achievable bounds for a given expression, helping diagnose gaps in its knowledge base.
Experimental results
Research questions
- RQ1How can numerical expressions involving both exact and rounded arithmetic be formally bounded with machine-checkable proofs?
- RQ2What techniques enable reliable error analysis in floating-point computations using interval arithmetic?
- RQ3How can formal proof generation be automated while ensuring compatibility with higher-order logic proof checkers?
- RQ4In what ways can Gappa's formal verification capabilities be extended to support complex numerical properties?
- RQ5How can the tool identify when its internal facts and techniques are insufficient for a given bound?
Key findings
- Gappa successfully generates formally certified bounds for numerical expressions using interval arithmetic and multiple-precision dyadic fractions.
- The tool produces machine-checkable proofs in Coq or HOL Light, enabling high-assurance verification of numerical software.
- A comprehensive Coq library of verified arithmetic facts for fixed- and floating-point operations is developed and integrated.
- Forward error analysis is effectively applied to rounded operators to bound numerical errors in computations.
- Gappa can identify the limits of its own reasoning by reporting the best achievable bounds, highlighting gaps in its knowledge base.
- The system supports seamless extension of bounds through interval constraints and rewriting rules for complex properties.
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.