Certifying floating-point implementations using Gappa - Inria - Institut national de recherche en sciences et technologies du numérique
Pré-Publication, Document De Travail Année : 2007

Certifying floating-point implementations using Gappa

Résumé

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.
Fichier principal
Vignette du fichier
gappacrlibm.pdf (175.32 Ko) Télécharger le fichier
sin.gappa (4.39 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)
Format Autre

Dates et versions

ensl-00200830 , version 1 (21-12-2007)
ensl-00200830 , version 2 (08-11-2010)

Identifiants

Citer

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

Collections

INRIA
875 Consultations
987 Téléchargements

Altmetric

Partager

More