arXiv · 2601.14059
Verifying Floating-Point Programs in Stainless
Abstract
We extend the Stainless deductive verifier with floating-point support, providing the first automated verification support for floating-point numbers for a subset of Scala that includes polymorphism, recursion and higher-order functions. We follow the recent approach in the KeY verifier to axiomatise reasoning about mathematical functions, but go further by supporting all functions from Scala's math API, and by verifying the correctness of the axioms against the actual implementation in Stainless itself. We validate Stainless' floating-point support on a new set of benchmarks sampled from real-world code from GitHub, showing that it can verify specifications about, e.g., ranges of output or absence of special values for most supported functions, or produce counter-examples when the specifications do not hold.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Andrea Gilot, Axel Bergström, Eva Darulova. 2026-01-20. Verifying Floating-Point Programs in Stainless. https://arxiv.org/abs/2601.14059
Cite the original work for its findings. Save a collection to share your selection of sources.