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

函数式程序的一阶推理完备性

Complete first-order reasoning for functional programs

University of Wisconsin-Madison(威斯康星大学麦迪逊分校);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of California San Diego(加州大学圣地亚哥分校)

Adithya Murali, Lucas Peña, Ranjit Jhala, P. Madhusudan

AI总结:

本文揭示并形式化了基于递归函数展开的启发式方法,证明其在代数数据类型与背景理论的一阶组合理论中具有推理完备性。

摘要:

几种用于自动验证函数式程序的实用工具(例如 Liquid Haskell 和用于 Scala 程序的 Leon)依赖于一种启发式方法,该方法先展开递归函数定义,然后使用 SMT 求解器进行无量词推理。我们揭示了这种启发式方法的基础理论性质,表明它可以推广并形式化为一种技术,该技术实际上对于代数数据类型和背景理论的组合一阶理论推理是完备的,其中背景理论支持可判定的无量词推理。本文发展的理论解释了这些启发式方法成功时的有效性,失败时的原因,以及用户帮助在证明成功中所起的确切作用。

英文摘要:

Several practical tools for automatically verifying functional programs (e.g., Liquid Haskell and Leon for Scala programs) rely on a heuristic based on unrolling recursive function definitions followed by quantifier-free reasoning using SMT solvers. We uncover foundational theoretical properties of this heuristic, revealing that it can be generalized and formalized as a technique that is in fact complete for reasoning with combined First-Order theories of algebraic datatypes and background theories, where background theories support decidable quantifier-free reasoning. The theory developed in this paper explains the efficacy of these heuristics when they succeed, explains why they fail when they fail, and the precise role that user help plays in making proofs succeed.

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

↑