arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.16102cs.PL
收藏

程序集合的语义

Semantics of Sets of Programs

Jinwoo Kim, Shaan Nagy, Thomas Reps, Loris D'Antoni

AI总结:

本文提出程序集合的最小组合指称语义,揭示跟踪无界多次执行中的不同行为是验证的充要条件,并导出首个可靠且相对完备的 Hoare 风格逻辑。

摘要:

程序综合之类的应用有时需要证明:某个性质对由文法描述的所有无限多个程序都成立,也就是对一个归纳定义的程序集合成立。当程序集合包含循环时,当前的验证框架会对程序行为进行过度近似,其中包括两种 Hoare 风格逻辑;在允许循环的情况下,它们都无法实现相对完备。在本文中,我们证明,对无限程序集合组合式地验证简单性质,需要在无界多次执行上跟踪不同的程序行为。跟踪这一信息对于验证既是必要的,也是充分的。我们在一个通用、可复用的指称语义理论中证明了这一事实,该理论能够刻画针对无限程序集合的验证技术的表达能力和组合性。我们构造了捕获程序集合简单性质的最小组合语义,并用它推导出首个面向无限程序集合的、可靠且相对完备的 Hoare 风格逻辑。因此,我们的方法可用于为程序集合设计复杂度最低的组合式验证技术。

英文摘要:

Applications like program synthesis sometimes require proving that a property holds for all of the infinitely many programs described by a grammar - i.e., an inductively defined set of programs. Current verification frameworks overapproximate programs' behavior when sets of programs contain loops, including two Hoare-style logics that fail to be relatively complete when loops are allowed. In this work, we prove that compositionally verifying simple properties for infinite sets of programs requires tracking distinct program behaviors over unboundedly many executions. Tracking this information is both necessary and sufficient for verification. We prove this fact in a general, reusable theory of denotational semantics that can model the expressivity and compositionality of verification techniques over infinite sets of programs. We construct the minimal compositional semantics that captures simple properties of sets of programs and use it to derive the first sound and relatively complete Hoare-style logic for infinite sets of programs. Thus, our methods can be used to design minimally complex, compositional verification techniques for sets of programs.

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

↑