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

参数化动态逻辑——面向通用程序规约与验证的循环逻辑框架

Parameterized Dynamic Logic -- Towards A Cyclic Logical Framework for General Program Specification and Verification

Yuanrui Zhang

AI总结:

本文提出参数化动态逻辑DLp,通过引入程序配置标签支持符号执行与语法结构推理,构建循环预证明系统保证无限证明树可靠性,为通用程序规约与验证提供灵活框架。

摘要:

我们提出了一种参数化动态逻辑理论,即DLp,用于基于程序的状态转换行为来规约和推理丰富的程序模型集。与大多数处理正则表达式或特定类型形式化方法的动态逻辑不同,DLp引入了一种称为“程序配置”的标签类型作为符号执行的显式程序状态,允许程序和公式根据感兴趣的领域呈现任意形式。这一特性使动态逻辑公式能够直接支持基于符号执行的推理,同时仍通过规则提升过程,保持了传统动态逻辑中基于语法结构的推理。我们提出了一个证明系统,并为DLp构建了特殊的循环预证明结构,该结构保证了通过符号执行带有显式/隐式循环结构的程序所引发的无限证明树的可靠性。我们形式化地分析并证明了DLp的可靠性。DLp提供了一个基于动态逻辑理论的灵活验证框架。它有助于减轻为不同程序开发不同动态逻辑理论的负担,并节省在推导非组合程序时的额外转换。我们给出了DLp在特定领域中实例化的一些例子,展示了在实际应用中使用DLp的潜力和优势。

英文摘要:

We present a theory of parameterized dynamic logic, namely DLp, for specifying and reasoning about a rich set of program models based on their transitional behaviours. Different from most dynamic logics that deal with regular expressions or a particular type of formalisms, DLp introduces a type of labels called "program configurations" as explicit program status for symbolic executions, allowing programs and formulas to be of arbitrary forms according to interested domains. This characteristic empowers dynamic logical formulas with a direct support of symbolic-execution-based reasoning, while still maintaining reasoning based on syntactic structures in traditional dynamic logics through a rule-lifting process. We propose a proof system and build a cyclic preproof structure special for DLp, which guarantees the soundness of infinite proof trees induced by symbolically executing programs with explicit/implicit loop structures. The soundness of DLp is formally analyzed and proved. DLp provides a flexible verification framework based on the theories of dynamic logics. It helps reduce the burden of developing different dynamic-logic theories for different programs, and save the additional transformations in the derivations of non-compositional programs. We give some examples of instantiations of DLp in particular domains, showing the potential and advantages of using DLp in practical usage.

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

↑