Skip to main content
QUICK REVIEW

[Paper Review] A Hybrid Formal Verification System in Coq for Ensuring the Reliability and Security of Ethereum-based Service Smart Contracts

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

This paper presents FSPVM-E, a hybrid formal verification system implemented in Coq for verifying Ethereum smart contracts at the Solidity source code level. By combining symbolic execution with higher-order logic theorem proving via execution-verification isomorphism, it enables automated, formally verified analysis of reliability and security properties, including detection of standard vulnerabilities and verification of ERC20 compliance.

ABSTRACT

This paper reports on the development of a formal symbolic process virtual machine (FSPVM) denoted as FSPVM-E for verifying the reliability and security of Ethereum-based services at the source code level of smart contracts, and a Coq proof assistant is employed for both programming the system and for proving its correctness. The current version of FSPVM-E adopts execution-verification isomorphism, which is an application extension of Curry-Howard isomorphism, as its fundamental theoretical framework to combine symbolic execution and higher-order logic theorem proving. The four primary components of FSPVM-E include a general, extensible, and reusable formal memory framework, an extensible and universal formal intermediate programming language denoted as Lolisa, which is a large subset of the Solidity programming language using generalized algebraic datatypes, the corresponding formally verified interpreter of Lolisa, denoted as FEther, and assistant tools and libraries. The self-correctness of all components is certified in Coq. Currently, FSPVM-E supports the ERC20 token standard, and can automatically and symbolically execute Ethereum-based smart contracts, scan their standard vulnerabilities, and verify their reliability and security properties with Hoare-style logic in Coq. To the best of authors' knowledge, the present work represents the first hybrid formal verification system implemented in Coq for Ethereum smart contracts that is applied at the Solidity source code level.

Motivation & Objective

  • To address the critical need for formally verified smart contract verification in Ethereum-based service systems.
  • To develop a system that ensures correctness and security of smart contracts at the source code level, preventing runtime failures and exploits.
  • To integrate symbolic execution with higher-order logic theorem proving in a unified, formally verified framework.
  • To provide a self-correcting, extensible verification stack for smart contracts with reusable components.
  • To support verification of standard smart contract patterns, such as ERC20 token compliance, with formal proofs in Coq.

Proposed method

  • The system is built on a formal symbolic process virtual machine (FSPVM-E) implemented entirely in Coq for end-to-end verification.
  • It employs execution-verification isomorphism—a generalization of the Curry-Howard isomorphism—to unify symbolic execution and higher-order logic reasoning.
  • A domain-specific intermediate language, Lolisa, is formally defined as a large subset of Solidity using generalized algebraic datatypes for precise semantics.
  • The formally verified interpreter FEther executes Lolisa programs symbolically, ensuring correctness of execution semantics.
  • A reusable formal memory framework supports precise modeling of Ethereum state and storage.
  • The system integrates assistant tools and libraries to automate verification of Hoare-style logic properties and detect standard vulnerabilities.

Experimental results

Research questions

  • RQ1Can a hybrid formal verification system be built in Coq that supports both symbolic execution and higher-order logic theorem proving for Ethereum smart contracts?
  • RQ2How can execution-verification isomorphism be effectively applied to unify symbolic execution and formal proof in smart contract verification?
  • RQ3To what extent can a formally verified intermediate language (Lolisa) accurately model Solidity semantics while enabling automated verification?
  • RQ4Can the system automatically detect known vulnerabilities and verify security and reliability properties of ERC20-compliant contracts?
  • RQ5Is it feasible to build a self-correcting, extensible verification stack where all components are formally certified in Coq?

Key findings

  • FSPVM-E is the first hybrid formal verification system implemented in Coq for Ethereum smart contracts that operates at the Solidity source code level.
  • All components of FSPVM-E, including the memory model, Lolisa language, and FEther interpreter, are formally verified for correctness within Coq.
  • The system successfully supports symbolic execution of Ethereum smart contracts and detects standard vulnerabilities such as reentrancy and overflow issues.
  • FSPVM-E enables formal verification of reliability and security properties using Hoare-style logic, with proofs conducted entirely in Coq.
  • The system has been validated on ERC20 token contracts, demonstrating its ability to verify compliance with the standard through formal proofs.
  • The use of execution-verification isomorphism enables seamless integration of symbolic execution and theorem proving, enhancing both automation and soundness.

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.