[论文解读] A Formally Verified IEEE 754 Floating-Point Implementation of Interval Iteration for MDPs
论文在 Isabelle/HOL 中将区间迭代形式化用于 MDP 可达性,扩展了带有定向舍入的浮点运算的细化技术,并在 mcsta 中整合的 LLVM 实现中提供“正确即构建”的实现,且通过基准测试验证。
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.
研究动机与目标
- 在 Isabelle/HOL 中形式化地建模 MDP 的区间迭代 (II) 并证明其正确性。
- 将 Isabelle Refinement Framework 扩展以处理浮点运算和定向舍入模式。
- 将抽象 II 规范逐步细化为高效的 LLVM 代码,确保每一步的正确性。
- 在 model checker mcsta 中实现经过验证的 II,并在基准测试上评估性能。
- 提供从抽象语义到可信浮点实现的经过验证的管线,用于 PMC。
提出的方法
- 在 Isabelle/HOL 中形式化 MDP 的 II 并证明相对于抽象语义的正确性。
- 扩展 IRF,使其支持浮点运算和定向舍入以适应现实的 IEEE 754 计算。
- 通过逐步细化推导出从正式的 II 规范到高效的 LLVM 字节码实现。
- 在 mcsta 中使用经过细化的代码,并与现有预处理(SCC 和 MEC 技术)集成。
- 在基准 MDP 上实验性评估实现,以与现有工具比较,同时保证正确性。
实验结果
研究问题
- RQ1如何在证明助手中形式化并证明 MDP 可达性的区间迭代(II)是正确的?
- RQ2如何将浮点运算和定向舍入并入基于细化的验证工作流?
- RQ3是否能够从正式规范中推导出正确构造的 II 实现并部署到真实的模型检测器(mcsta)?
- RQ4与现有工具在基准 MDP 上相比,形式化验证的 II 实现的实际性能如何?
主要发现
- 在 Isabelle/HOL 中建立了对 MDP 的区间迭代算法的形式化验证,提供机器可检查的正确性。
- Isabelle Refinement Framework 扩展以推断浮点运算和定向舍入模式。
- 通过细化推导出一个高效的基于 LLVM 的实现,形成“正确即构建”的 PMC 组件。
- 将经过细化并验证的代码嵌入 mcsta,并在标准 MDP 实例上进行基准测试,表现与现有工具具备竞争力。
- 该工作展示了从抽象的 MDP 语义到用于区间迭代的浮点实现的端到端正确性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。