Skip to main content
QUICK REVIEW

[Paper Review] A Formally Verified IEEE 754 Floating-Point Implementation of Interval Iteration for MDPs

Bram Kohlen, Maximilian Schäffeler|ArXiv.org|Jan 17, 2025
Numerical Methods and AlgorithmsComputer Science4 citations
TL;DR

The paper formalizes interval iteration for MDP reachability in Isabelle/HOL, extends refinement techniques to floating-point arithmetic with directed rounding, and yields a correct-by-construction LLVM implementation integrated into mcsta, validated against benchmarks.

ABSTRACT

We present an efficiently executable, formally verified implementation of interval iteration for MDPs. Our correctness proofs span the entire development from the high-level abstract semantics of MDPs to a low-level implementation in LLVM that is based on floating-point arithmetic. We use the Isabelle/HOL proof assistant to verify convergence of our abstract definition of interval iteration and employ step-wise refinement to derive an efficient implementation in LLVM code. To that end, we extend the Isabelle Refinement Framework with support for reasoning about floating-point arithmetic and directed rounding modes. We experimentally demonstrate that the verified implementation is competitive with state-of-the-art tools for MDPs, while providing formal guarantees on the correctness of the results.

Motivation & Objective

  • Formally model interval iteration (II) for MDPs in Isabelle/HOL and prove its correctness.
  • Extend the Isabelle Refinement Framework to handle floating-point arithmetic and directed rounding modes.
  • Refine the abstract II specification step-by-step into efficient LLVM code ensuring correctness at each step.
  • Implement the verified II in the mcsta model checker and evaluate performance on benchmarks.
  • Provide a verified pipeline from abstract semantics to a trustworthy floating-point implementation for PMC.

Proposed method

  • Formalize II for MDPs in Isabelle/HOL and prove correctness relative to abstract semantics.
  • Extend the IRF with floating-point arithmetic and directed rounding to support realistic IEEE 754 computations.
  • Apply stepwise refinement to derive an efficient LLVM-bytecode implementation from the formal II specification.
  • Use the refined code within mcsta and integrate with existing preprocessing (SCC and MEC techniques).
  • Experimentally evaluate the implementation on benchmark MDPs to compare with state-of-the-art tools while guaranteeing correctness.

Experimental results

Research questions

  • RQ1How can interval iteration for MDP reachability be formalized and proven correct in a proof assistant?
  • RQ2How can floating-point arithmetic and directed rounding be incorporated into refinement-based verification workflows?
  • RQ3Can a correct-by-construction implementation of interval iteration be derived from a formal specification and deployed in a real model checker (mcsta)?
  • RQ4What is the practical performance of a formally verified II implementation compared to existing tools on benchmark MDPs?

Key findings

  • A formally verified interval iteration algorithm for MDPs is established within Isabelle/HOL, providing machine-checked correctness.
  • The Isabelle Refinement Framework is extended to reason about floating-point arithmetic and directed rounding modes.
  • An efficient LLVM-based implementation is derived via refinement, resulting in a correct-by-construction PMC component.
  • The refined verified code is embedded into mcsta and benchmarked on standard MDP instances, showing competitive performance with existing tools.
  • The work demonstrates end-to-end correctness from abstract MDP semantics to floating-point implementation for interval iteration in PMC.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.