Skip to Main content Skip to Navigation
Preprints, Working Papers, ...

Certifying floating-point implementations using Gappa

Abstract : High confidence in floating-point programs requires proving numerical properties of final and intermediate values. One may need to guarantee that a value stays within some range, or that the error relative to some ideal value is well bounded. Such work may require several lines of proof for each line of code, and will usually be broken by the smallest change to the code (e.g. for maintenance or optimization purpose). Certifying these programs by hand is therefore very tedious and error-prone. This article discusses the use of the Gappa proof assistant in this context. Gappa has two main advantages over previous approaches: Its input format is very close to the actual C code to validate, and it automates error evaluation and propagation using interval arithmetic. Besides, it can be used to incrementally prove complex mathematical properties pertaining to the C code. Yet it does not require any specific knowledge about automatic theorem proving, and thus is accessible to a wide community. Moreover, Gappa may generate a formal proof of the results that can be checked independently by a lower-level proof assistant like Coq, hence providing an even higher confidence in the certification of the numerical code. The article demonstrates the use of this tool on a real-size example, an elementary function with correctly rounded output.
Complete list of metadatas

https://hal-ens-lyon.archives-ouvertes.fr/ensl-00200830
Contributor : Florent de Dinechin <>
Submitted on : Friday, December 21, 2007 - 6:28:35 PM
Last modification on : Friday, April 20, 2018 - 3:44:24 PM
Document(s) archivé(s) le : Tuesday, April 13, 2010 - 2:57:28 PM

Files

Identifiers

  • HAL Id : ensl-00200830, version 1
  • ARXIV : 0801.0523

Collections

Citation

Florent de Dinechin, Christoph Lauter, Guillaume Melquiond. Certifying floating-point implementations using Gappa. 2007. ⟨ensl-00200830v1⟩

Share

Metrics

Record views

180

Files downloads

112