Floating Point Soundness in Formal Verification

This direction is split into other directions: floating-point unsoundness, floating-point verification mismatch. Its last version stays readable and citable here.

Version 1 of 179 papers104 conceptsfrozen 2026-10-04

Formal verification is built on a promise of absolute certainty. When a tool like a model checker or a theorem prover says a system is "safe," it is supposed to mean there is no possible execution that leads to a failure. However, a growing body of research reveals a "soundness gap": the mathematical models used in verification often assume the infinite precision of real numbers, while the hardware they run on—and the solvers they rely on—use the messy, finite world of floating-point arithmetic.

This research direction focuses on making formal verification "floating-point sound," ensuring that the mathematical guarantees of safety hold true even in the presence of rounding errors, numerical instability, and hardware-specific quirks.

The Soundness Gap

The core problem is that floating-point arithmetic does not follow the standard laws of algebra. For example, it is non-associative: $(a + b) + c$ does not always equal $a + (b + c)$. In No Soundness in the Real World: On the Challenges of the Verification of Deployed Neural Networks, Attila Szász and colleagues demonstrate that these tiny discrepancies can be exploited to create "deployment-sensitive backdoors." A neural network might be certified as robust by a verifier, yet fail completely when deployed on specific hardware because the verifier ignored the subtle ways the hardware rounds numbers.

This issue isn't limited to neural networks. In the verification of hybrid systems—which combine discrete logic with continuous physical motion—André Platzer and Edmund Clarke have noted that numerical approximation methods can lead to unsound results, potentially validating a system as safe even when dangerous states remain reachable Computing Differential Invariants of Hybrid Systems as Fixedpoints.

Why Standard Solvers Fail

Most modern verification tools offload their heavy lifting to external solvers, such as Linear Programming (LP), Mixed-Integer Linear Programming (MILP), or Satisfiability Modulo Theories (SMT) solvers. These solvers are incredibly fast because they use highly optimized floating-point heuristics.

However, as Clark Barrett and others have observed, these solvers are susceptible to numerical instability. In Verifying Recurrent Neural Networks Using Invariant Inference, researchers found that MILP solvers can produce non-monotonic results, where strengthening a constraint doesn't consistently improve the outcome. Similarly, Alessio Lomuscio points out that infinitesimal precision errors in standard solvers can lead to incorrect conclusions about a model's safety An approach to reachability analysis for feed-forward ReLU neural networks.

Building Intuition for Solutions

To bridge this gap, researchers have developed several strategies to account for numerical "noise" without sacrificing the performance of modern solvers.

1. Interval Arithmetic and Epsilon-Soundness

Instead of treating a number as a single point (which might be slightly off), researchers treat it as an interval that is guaranteed to contain the true value. Olivier Lhomme pioneered "interval propagation" techniques that ensure mathematical soundness by treating numerical values as bounds Consistency Techniques for Numeric CSPs.

In the context of neural networks, the DeepZ system uses abstract interpretation to incorporate floating-point soundness directly into the certification process, accounting for rounding errors and non-associativity to ensure the proof holds on physical hardware. Similarly, David Boetius and Tobias Sutter advocate for "epsilon-soundness" in probabilistic verification to prevent hardware-level inaccuracies from invalidating safety guarantees Probabilistic Verification of Neural Networks using Branch and Bound.

2. Verified Certificates

Another approach is to let the fast, "dirty" solver find a solution, but then require it to produce a certificate that can be checked by a slower, "clean" tool. Runtian Zhou and Haoze Wu proposed a method for Verifying MILP Certificates with SMT Solvers. By transforming MILP results into ground formulas for SMT solvers, they provide a way to verify that the solver's output is mathematically sound, even if the solver itself used imprecise heuristics.

3. Bit-Precise Reasoning

For the highest level of rigor, some tools eschew floating-point approximations entirely in favor of bit-precise logic. Daniel Kroening and the team behind CBMC transform code into formulas that model exactly how bits are manipulated in hardware. This allows for the analysis of complex floating-point operations—including edge cases like subnormal numbers and specific rounding modes—that are computationally unreachable for standard solvers Equivalence Checking a Floating-point Unit against a High-level C Model.

The Path Forward

The challenge remains to balance speed with rigor. As noted in the VNN-COMP reports by Christopher Brix and Stanley Bak, most current verification tools still rely on standard floating-point arithmetic for performance. The "frontier" of the field is developing verifiers that are strictly sound against precision errors without incurring the prohibitive performance penalties of infinite-precision arithmetic. By incorporating structural robustness metrics and rigorous convergence checks, researchers are turning "imprecise" numerical simulations into reliable evidence for formal safety proofs.

Papers in this version

Showing 60 of 79 papers.

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_floating_point_soundness_in_formal_verif_397c4828,
  title = {Floating Point Soundness in Formal Verification},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/floating-point-soundness-in-formal-verification/rdr_397c482821d648aab3a5a1779b3512de},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_floating_point_soundness_in_formal_verif_397c4828_v1,
  title = {Floating Point Soundness in Formal Verification},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/floating-point-soundness-in-formal-verification/rdr_397c482821d648aab3a5a1779b3512de/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}