Sequent proof covers Vyper compiler model, not Python code
Sequent says it has a machine-checked proof that Vyper contracts compile correctly. Its own theorem guide says the proof covers a model of the compiler.

In brief
- The theorems cover single-module contracts compiled by a HOL4 definition of the compiler.
- Sequent says the work found more than a dozen bugs in the upstream Vyper compiler.
- Multi-module contracts and the -O2 optimizer are listed as next steps.
Why it matters
Vyper secures large DeFi protocols, and a 2023 compiler bug let attackers drain audited pools. A compiler proof would let source-level checks carry down to deployed bytecode, so its exact scope matters.
Formal verification firm Sequent said on November 30, 2026 that it has finished a machine-checked proof that Vyper's smart contract compiler is correct, calling it the first such proof for a production compiler already in use, according to its announcement. Its own theorem guide says the proof covers a formal definition of the compiler, not the Python program developers run.
The proof is written in the HOL4 theorem prover and published in the open vyper-hol repository. Sequent says it spans 2.92 million lines of HOL4 with 88,078 machine-checked theorems and no unproven assumptions.
What the proof covers
The headline theorems say a single-module Vyper contract, compiled by the HOL4 definition, behaves on Ethereum the way the Vyper source says it should. They cover deployment, later calls and gas.
The theorem guide sets out the limits. The definition follows the Vyper compiler at a pinned commit and is compared byte for byte with it on test contracts, but "the theorems are about this definition, not about the Python program." Vyper's parsing and semantic analysis are not verified, and a statement for contracts that import other modules is still open.
Bugs found upstream
Sequent says the work found more than a dozen bugs in the Vyper compiler before they reached production. Fixes it cites are on GitHub under the account sequent-dev-bot: one has been closed, while another is still open.
The firm points to July 2023, when a Vyper storage bug let attackers drain more than $70 million from audited pools including Curve and Alchemix. Next, Sequent plans to cover multi-module contracts and the -O2 optimizer, then extend the method to Solidity.
A compiler bug is one of several attack paths in DeFi, as 2026's hack record shows.
Add OnchainBeat as a preferred source on Google
Mike Kara Editor
Mike Kara (Mustafa Karaman) is an editor at OnchainBeat. He writes and edits markets coverage, a section he shares with Omer Dede.







