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

从相结构推导归纳不变量

Inferring Inductive Invariants from Phase Structures

Yotam M. Y. Feldman, James R. Wilcox, Sharon Shoham, Mooly Sagiv

摘要:

使用交互式定理证明器或自动验证工具来验证诸如分布式协议之类的无限状态系统具有挑战性。在这些技术中,演绎验证是高度表达的,但需要用户用归纳不变量来注释系统。为了减轻用户的劳动密集型和具有挑战性的任务,不变推理的目的是自动发现归纳不变。不幸的是,当应用于无限状态系统,如分布式协议,现有的推理技术往往分歧,这限制了它们的适用性。本文提出了用户引导的不变推理的基础上的相位不变量,捕捉不同的逻辑阶段的协议。用户通过指定一个阶段结构来传达他们的直觉,这个阶段结构是一个自动机,其边缘由程序转换标记;该工具自动推断在自动机状态中保持的断言,从而产生完整的安全证明。我们的研究结果表明,用户的指导相结构,促进成功的推理超出了最先进的。我们发现,相结构是愉快地匹配的领域专家经常使用的直观推理,以了解为什么分布式协议是正确的,使提供一个相结构重用这种现有的直觉。

英文摘要:

Infinite-state systems such as distributed protocols are challenging to verify using interactive theorem provers or automatic verification tools. Of these techniques, deductive verification is highly expressive but requires the user to annotate the system with inductive invariants. To relieve the user from this labor-intensive and challenging task, invariant inference aims to find inductive invariants automatically. Unfortunately, when applied to infinite-state systems such as distributed protocols, existing inference techniques often diverge, which limits their applicability. This paper proposes user-guided invariant inference based on phase invariants, which capture the different logical phases of the protocol. Users conveys their intuition by specifying a phase structure, an automaton with edges labeled by program transitions; the tool automatically infers assertions that hold in the automaton's states, resulting in a full safety proof.The additional structure from phases guides the inference procedure towards finding an invariant. Our results show that user guidance by phase structures facilitates successful inference beyond the state of the art. We find that phase structures are pleasantly well matched to the intuitive reasoning routinely used by domain experts to understand why distributed protocols are correct, so that providing a phase structure reuses this existing intuition.

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

↑