可实现性检验算法的机器可检验性证明
Machine-Checked Proofs For Realizability Checking Algorithms
摘要:
虚拟集成技术的重点是建立系统的体系结构模型,这些模型可以在设计周期的早期进行分析,以降低成本,减少风险,并提高复杂嵌入式系统的质量。给定适当的架构描述、假设/保证合同和组合推理规则,这些技术可以用于在系统构建之前证明关于架构的重要安全属性。为了使这些证明有意义,每个叶级组件契约必须是可实现的;即,有可能构造一个组件,使得对于合同假设所允许的任何输入,存在该组件可以产生的满足合同保证的某个输出值。最近,我们提出了(在[1])基于合同的可实现性检查算法的假设/保证合同支持的SMT求解器,如线性整数/实数算术和未解释的函数的无限理论。在这项工作中,我们使用了一个SMT求解器和一个类似于k-归纳的算法来建立合同的可实现性,并通过手工证明证明了我们的方法。考虑到可实现性对我们的虚拟集成方法的核心重要性,我们希望对我们的方法的可靠性有更多的信心。本文描述了一个完整的形式化的Coq证明和规约语言的方法。在形式化过程中,我们发现了一些小错误和推理中缺少的假设。虽然这些并没有损害检查工具中使用的算法的正确性,但它们指出了机器检查形式化的价值。此外,我们相信这是第一个机器检查的形式化的可实现性算法。
英文摘要:
Virtual integration techniques focus on building architectural models of systems that can be analyzed early in the design cycle to try to lower cost, reduce risk, and improve quality of complex embedded systems. Given appropriate architectural descriptions, assume/guarantee contracts, and compositional reasoning rules, these techniques can be used to prove important safety properties about the architecture prior to system construction. For these proofs to be meaningful, each leaf-level component contract must be realizable; i.e., it is possible to construct a component such that for any input allowed by the contract assumptions, there is some output value that the component can produce that satisfies the contract guarantees. We have recently proposed (in [1]) a contract-based realizability checking algorithm for assume/guarantee contracts over infinite theories supported by SMT solvers such as linear integer/real arithmetic and uninterpreted functions. In that work, we used an SMT solver and an algorithm similar to k-induction to establish the realizability of a contract, and justified our approach via a hand proof. Given the central importance of realizability to our virtual integration approach, we wanted additional confidence that our approach was sound. This paper describes a complete formalization of the approach in the Coq proof and specification language. During formalization, we found several small mistakes and missing assumptions in our reasoning. Although these did not compromise the correctness of the algorithm used in the checking tools, they point to the value of machine-checked formalization. In addition, we believe this is the first machine-checked formalization for a realizability algorithm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。