Metraipolis › archive › dc_bbd3c3a3b061
FloatLib: Verified Floating-Point Arithmetic in Lean — arXiv:2609.19352
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.19352
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-10T05:44:49.746Z
- SHA-256 of the archived text
b23742e999b0033daee4341df00c480ef43e332ae82fffb7e797059403426a1d- Stable URL of this page
https://metraipolis.com/documento/dc_bbd3c3a3b061
How to cite
FloatLib: Verified Floating-Point Arithmetic in Lean — arXiv:2609.19352 — arXiv (en), https://arxiv.org/abs/2609.19352 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_bbd3c3a3b061 (Metraipolis archive dc_bbd3c3a3b061, sha256 b23742e999b0033daee4341df00c480ef43e332ae82fffb7e797059403426a1d)
BibTeX
@misc{dcbbd3c3a3b061,
title = {FloatLib: Verified Floating-Point Arithmetic in Lean — arXiv:2609.19352},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.19352},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_bbd3c3a3b061; sha256 b23742e999b0033daee4341df00c480ef43e332ae82fffb7e797059403426a1d},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.19352. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
We present FloatLib, a verified arbitrary-precision floating-point arithmetic library in Lean 4 that combines broad format coverage, machine-checked correctness, and efficient certified execution. To our knowledge, FloatLib is the first Lean library to unify IEEE binary and decimal arithmetic, arbitrary-width posits, P3109, and user-defined formats and rounding rules behind interchangeable certified software backends. Every certified backend is proved equal to a complete encoded specification, preserving signed zeros and exceptional values, while numerical theorems connect execution to real rounding, error bounds, and exactness. FloatLib combines exhaustive certified tables for small formats with verified word and limb kernels based on guard-and-sticky invariants and independently checked quotient candidates. Its posit development additionally proves standard rounding thresholds and exact quire accumulation within capacity for arbitrary widths. Across matched workloads, FloatLib achieves speedups of up to 1.46x over FLoPS and 116x over Universal, while remaining slower in some regimes such as binary arithmetic against MPFR. Independent conformance testing includes more than 102 million TestFloat evaluations with zero differences under the tested relation. We release the library, proofs, benchmarks, evaluation data, and guide as open source. Tema degli esploratori: matematica e informatica teorica (retro-catalogo arXiv: annunci del 2026-09-18 in cs.LO). Categorie arXiv: Logic in Computer Science (cs.LO) ; Programming Languages (cs.PL). Pagina del lavoro: https://arxiv.org/abs/2609.19352 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-10T05:08:21.094Z dalla pagina https://arxiv.org/catchup/cs.LO/2026-09-18?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).