Seedlabs
Source research

Certification of bounds on expressions involving rounded operators

Marc Daumas, Guillaume Melquiond · 2010 · 177 citationsRead the paper

Gappa is a tool designed to formally verify the correctness of numerical software and hardware. It uses interval arithmetic and forward error analysis to bound mathematical expressions that involve rounded as well as exact operators. It then generates a theorem and its proof for each verified enclosure. This proof can be automatically checked with a proof assistant, such as Coq or HOL Light. It relies on a large companion library of facts that we have developed. This Coq library provides theorems dealing with addition, multiplication, division, and square root, for both 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 can 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 suited to discharge proof obligations generated for small pieces of software. They may be produced by third-party tools and the first applications of Gappa use proof obligations written by designers or obtained from traces of execution.

What the full text shows

Working prototype
  • Gappa generates formal proofs for numerical bounds that can be automatically verified by proof assistants. (Using Coq or HOL Light)
  • The tool can certify bounds for advanced numerical recipes including error compensation and iterative refinement. (Compared to previous tools like ACL2 or PVS based projects)
  • Proofs generated by Gappa typically contain a specific volume of lines. — 4,800 lines (Typical proof size)
Setup
C++ program based on Boost interval arithmetic library and MPFR, with a companion library of verified facts for Coq.
How
Gappa uses interval arithmetic, forward error analysis, and multiple-precision dyadic fractions to bound expressions. It performs an exhaustive search of built-in facts and rewriting rules to generate formal certificates for proof assistants.
Limitations
Unable to prove goals with intervals tighter than the representable dyadic fraction precision (e.g., 13/10 in [1.3, 1.3]). · Proof checking in higher-order logic is significantly slower than C++ evaluation.

Summarized by Gemma 4 from the open-access full text · 26 Nov 2026. Read it