Coq中的一种通用形式内存框架,用于基于高阶逻辑定理证明验证程序的属性,具有更高的自动化、一致性和可重用性
A general formal memory framework in Coq for verifying the properties of programs based on higher-order logic theorem proving with increased automation, consistency, and reusability
摘要:
近年来,许多轻量级程序已被部署在关键领域,例如基于区块链技术的智能合约。因此,这类程序的安全性和可靠性应该由最可信的技术来保证。高阶逻辑定理证明是验证程序性质的最可靠的技术之一。然而,程序可以由不同的高级程序设计语言开发,并且可以同时支持不同的形式化验证规范(特别是在代码级)的通用的、可扩展的和可重用的形式存储器(GERM)框架目前不可用于验证程序的属性。因此,目前的工作提出了一个GERM框架,以填补这一空白。该框架模拟物理内存硬件结构,包括一个低层形式化内存空间,并提供一套简单、非侵入的应用程序编程接口和辅助工具,使用Coq同时支持不同的形式化验证规范。建议的GERM框架是独立的和可定制的,并完全在Coq中验证。我们还提出了一个扩展的Curry-Howard同构,表示为执行-验证同构(EVI),它结合了符号执行和定理证明,以提高自动化程度的高阶逻辑定理证明辅助工具。我们还实现了一个玩具功能的程序设计语言在一个广义代数数据库风格和形式解释器在Coq的基础上GERM框架。这些实现,然后演示了EVI的应用程序到一个简单的代码段。
英文摘要:
In recent years, a number of lightweight programs have been deployed in critical domains, such as in smart contracts based on blockchain technology. Therefore, the security and reliability of such programs should be guaranteed by the most credible technology. Higher-order logic theorem proving is one of the most reliable technologies for verifying the properties of programs. However, programs may be developed by different high-level programming languages, and a general, extensible, and reusable formal memory (GERM) framework that can simultaneously support different formal verification specifications, particularly at the code level, is presently unavailable for verifying the properties of programs. Therefore, the present work proposes a GERM framework to fill this gap. The framework simulates physical memory hardware structure, including a low-level formal memory space, and provides a set of simple, nonintrusive application programming interfaces and assistant tools using Coq that can support different formal verification specifications simultaneously. The proposed GERM framework is independent and customizable, and was verified entirely in Coq. We also present an extension of Curry-Howard isomorphism, denoted as execution-verification isomorphism (EVI), which combines symbolic execution and theorem proving for increasing the degree of automation in higher-order logic theorem proving assistant tools. We also implement a toy functional programming language in a generalized algebraic datatypes style and a formal interpreter in Coq based on the GERM framework. These implementations are then employed to demonstrate the application of EVI to a simple code segment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。