Skip to main content
QUICK REVIEW

[Paper Review] 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

Zheng Yang, Hang Lei|arXiv (Cornell University)|Feb 23, 2018
Security and Verification in ComputingComputer Science17 references5 citations
TL;DR

This paper proposes a General, Extensible, Reusable Memory (GERM) framework in Coq for formal verification of programs using higher-order logic theorem proving. By introducing an Execution-Verification Isomorphism (EVI), it enhances automation, consistency, and reusability in verification, demonstrated through a formal interpreter for a toy functional language with generalized algebraic datatypes.

ABSTRACT

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.

Motivation & Objective

  • To address the lack of a general, extensible, and reusable formal memory framework for verifying programs across different high-level languages.
  • To improve automation, consistency, and reusability in higher-order logic theorem proving for program verification.
  • To support multiple formal verification specifications at the code level through a nonintrusive API and assistant tools in Coq.
  • To formalize a connection between symbolic execution and theorem proving via a novel Execution-Verification Isomorphism (EVI).
  • To demonstrate the framework's feasibility through a formal interpreter for a toy functional language with generalized algebraic datatypes.

Proposed method

  • Designing a low-level formal memory space that simulates physical memory hardware structure in Coq.
  • Defining a set of simple, nonintrusive application programming interfaces (APIs) for integrating with various verification specifications.
  • Implementing assistant tools within Coq to support multiple formal verification workflows simultaneously.
  • Proposing an Execution-Verification Isomorphism (EVI) as an extension of the Curry-Howard isomorphism to unify symbolic execution and theorem proving.
  • Formalizing a toy functional programming language using generalized algebraic datatypes (GADTs) in Coq.
  • Developing a formal interpreter for the language based on the GERM framework to demonstrate EVI in practice.

Experimental results

Research questions

  • RQ1How can a general, extensible, and reusable formal memory framework be designed to support multiple program verification specifications in Coq?
  • RQ2To what extent can the integration of symbolic execution and theorem proving via EVI improve automation in higher-order logic verification?
  • RQ3Can the GERM framework be used to verify properties of a real-world-like program while maintaining consistency and modularity?
  • RQ4How does the EVI mechanism reduce the manual effort required in formal verification compared to traditional theorem proving?
  • RQ5What are the practical limitations and benefits of using GERM and EVI in a formal verification pipeline for functional programs?

Key findings

  • The GERM framework successfully simulates physical memory structures and provides a consistent, reusable foundation for formal program verification in Coq.
  • The EVI mechanism enables a seamless integration of symbolic execution and theorem proving, significantly increasing automation in verification workflows.
  • The framework supports multiple formal verification specifications simultaneously through nonintrusive APIs and assistant tools.
  • A formal interpreter for a GADT-based functional language was successfully implemented and verified using the GERM framework.
  • The application of EVI to a simple code segment demonstrated measurable improvements in verification efficiency and reduced manual proof construction.
  • The entire framework, including the interpreter and EVI components, was formally verified within Coq, ensuring end-to-end consistency and correctness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.