2601.14059

Total: 1

#1 Verifying Floating-Point Programs in Stainless [PDF] [Copy] [Kimi] [REL]

Authors: Andrea Gilot, Axel Bergström, Eva Darulova

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.

Subjects: Programming Languages , Logic in Computer Science

Publish: 2026-01-20 15:16:35 UTC