Skip to content

FloatLib: Verified Floating-Point Arithmetic in Lean

Sep 2026 · 0 citations · 29 references
Computer Science

Abstract

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.

View source

Similar papers

Preprint Sep 2026

Metamorphic Testing for Floating-Point Performance Issues in SMT Solvers

A metamorphic testing approach that uses semantics-preserving rewrite rules, focusing on floating-point special values and peep-hole optimizations, to uncover meaningful performance issues in SMT solvers' handling of floating-point formulas is proposed.

R. Abbasi, Eva Darulova · 0 citations
Book Open access Oct 2026

Numerical Abstract Domains for Trustworthy Code Transpilation (Keynote)

LLMs are making code modernization, translation, and rewriting easier and more scalable, enabling software to be transpiled across programming languages and compilers, and optimized for specific hardware platforms. For numerical software relying on finite-precision arithmetic, however, these transformations may introdu...

Laura Titolo · 0 citations
Aug 2026

Optimized 64-Bit Double-Precision FMA with Robust Exception Handling

An optimized 64-bit fused multiply-add architecture that combines multiplication and addition into one operation, which cuts down on rounding errors and overall error and is a strong and flexible solution for high-performance computing applications is proposed.

S. T. Devi, D. T. Devi, B. Bhavana et al. · 0 citations
Book Open access Sep 2026

VILIB++: High Performance C++ Library for Auto-Vectorizing Interval Arithmetic

Interval arithmetic provides guaranteed error bounds for finite-precision numerical computations, but obtaining these error bounds is much slower than the original computation. Even on highly memory bound workloads like small 1D stencils, the existing approaches fail to hide the overhead of changing from scalar to inte...

Xing-Jian Qi, R. Strzodka · 0 citations
Preprint Aug 2026

Exposing SIMD Parallelism in SQIsign: An AVX-512 Implementation

Modern isogeny-based cryptosystems spend much of their running time in finite-field, elliptic-curve, and higher-dimensional isogeny arithmetic. Exploiting SIMD parallelism is nontrivial: routines such as Montgomery ladders contain loop-carried dependencies, while point, pairing, and theta-coordinate formulas expose onl...

Weize Wang, Chutong Wang, Yu Wu et al. · 0 citations

Related blog posts

Microsoft Research Blog Oct 12, 2026

Simulating student learning for better AI tutoring

StudentSim is a research system for evaluating and improving AI tutoring tools before they are tested with learners. It models how individuals may engage with tutors, giving feedback to improve tutor performance across subjects like chess, writing, and mathematics. The post Simulating student learning for better AI tutoring appeared first on Microsoft Research.

MIT News · Artificial Intelligence Oct 2, 2026

Documenting the tech worker movement

Writing as a participant and researcher, PhD student JS Tan SM ’22 has co-authored a new book about the rise of tech worker protests and the employer backlash that followed.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.