arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.20214cs.PL
收藏

通过切片进行概率程序验证的错误定位、证书和提示

Error Localization, Certificates, and Hints for Probabilistic Program Verification via Slicing (Extended Version)

RWTH Aachen University(亚琛工业大学)

Philipp Schröer, Darion Haase, Joost-Pieter Katoen

AI总结:

本文提出通过切片技术提升概率程序验证的诊断能力,通过Brutus实现高效错误定位与验证提示。

摘要:

本文聚焦于演绎验证概率程序过程中生成的有效用户诊断。我们的核心原则是通过切片来实现(1)错误报告、(2)证明简化以及(3)保持成功验证结果。通过在现有的量化中间验证语言(IVL)HeyVL上正式定义这些不同的概念,我们的概念(及其实现)可以用于获得多种概率编程语言的诊断。错误报告的切片是一种新的量化断言的错误定位概念。我们展示了基于切片的诊断在各种证明规则上的应用,例如定量版本的规范语句和基于不变式的循环规则,并正式证明了专用错误信息和验证提示的正确性。我们将用户诊断集成到演绎验证器Caesar中。我们的新实现——称为Brutus——可以搜索验证或不验证的切片,对应于每个诊断概念。对于错误报告(1),它利用一种基于二分查找的算法,以最小化错误见证切片。为了解决验证的切片(2和3),我们基于不可满足核心、最小不可满足子集枚举以及直接的SMT编码对不同算法进行了实证比较。我们对Brutus在现有和新基准上的实证评估表明,我们能够找到既小又有信息量的切片。

英文摘要:

This paper focuses on effective user diagnostics generated during the deductive verification of probabilistic programs. Our key principle is based on providing slices for (1) error reporting, (2) proof simplification, and (3) preserving successful verification results. By formally defining these different notions on HeyVL, an existing quantitative intermediate verification language (IVL), our concepts (and implementation) can be used to obtain diagnostics for a range of probabilistic programming languages. Slicing for error reporting is a novel notion of error localization for quantitative assertions. We demonstrate slicing-based diagnostics on a variety of proof rules such as quantitative versions of the specification statement and invariant-based loop rules, and formally prove the correctness of specialized error messages and verification hints. We implemented our user diagnostics into the deductive verifier Caesar. Our novel implementation -- called \emph{Brutus} -- can search for slices which do or do not verify, corresponding to each of the three diagnostic notions. For error reporting (1), it exploits a binary search-based algorithm that minimizes error-witnessing slices. To solve for slices that verify (2 and 3), we empirically compare different algorithms based on unsatisfiable cores, minimal unsatisfiable subset enumeration, and a direct SMT encoding of the slicing problem. Our empirical evaluation of Brutus on existing and new benchmarks shows that we can find slices that are both small and informative.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑