End-to-End Formal Verification of a Fast and Accurate Floating-Point Approximation - Archive ouverte HAL
Communication Dans Un Congrès Année : 2024

End-to-End Formal Verification of a Fast and Accurate Floating-Point Approximation

Résumé

Designing an efficient yet accurate floating-point approximation of a mathematical function is an intricate and error-prone process. This warrants the use of formal methods, especially formal proof, to achieve some degree of confidence in the implementation. Unfortunately, the lack of automation or its poor interplay with the more manual parts of the proof makes it way too costly in practice. This article revisits the issue by proposing a methodology and some dedicated automation, and applies them to the use case of a faithful binary64 approximation of exponential. The peculiarity of this use case is that the target of the formal verification is not a simple modeling of an external code, it is an actual floating-point function defined in the logic of the Coq proof assistant, which is thus usable inside proofs once its correctness has been fully verified. This function presents all the attributes of a state-of-the-art implementation: bit-level manipulations, large tables of constants, obscure floating-point transformations, exceptional values, etc. This function has been integrated into the proof strategies of the CoqInterval library, bringing a 20x speedup with respect to the previous implementation.
Fichier principal
Vignette du fichier
article.pdf (666.7 Ko) Télécharger le fichier
Origine Fichiers éditeurs autorisés sur une archive ouverte

Dates et versions

hal-04515714 , version 1 (21-03-2024)
hal-04515714 , version 2 (10-07-2024)
hal-04515714 , version 3 (17-09-2024)

Licence

Identifiants

Citer

Florian Faissole, Paul Geneau de Lamarlière, Guillaume Melquiond. End-to-End Formal Verification of a Fast and Accurate Floating-Point Approximation. 15th International Conference on Interactive Theorem Proving, Sep 2024, Tbilisi, Georgia. pp.14:1-14:18, ⟨10.4230/LIPIcs.ITP.2024.14⟩. ⟨hal-04515714v3⟩
128 Consultations
166 Téléchargements

Altmetric

Partager

More