Sequent reports Vyper compiler proof for single-module contracts at -O1

On November 30, 2026, formal verification firm Sequent said it had completed a machine-checked correctness proof for part of the Vyper smart contract compiler. The announcement was reported on December 1, 2026, at 16:50:03 UTC+8. Sequent described it as the first such proof for a compiler already in production use. Panewslab reported that the verified pipeline corresponds to Vyper v0.5.0b1, a version also identified by the official Vyper account.

What the proof covers

For a single-module contract accepted by the verified pipeline at optimization level -O1, Sequent said the compiled code behaves on the Ethereum Virtual Machine (EVM) as Vyper’s formal language rules specify. That is a claim about compiler correctness, not contract correctness: a compiler can faithfully translate a contract that contains a mistake in its own logic.

Multi-module imports and the -O2 optimization level remain outside the proof. Optimization passes rewrite code, so proving that -O1 preserves behavior does not establish the same result for -O2. Sequent identified both extensions as its next steps.

What was proved and what was tested

Sequent used the HOL4 theorem prover, its Verifereum 1.2.0 EVM specification and an internal build of its Alan tool. The company reported roughly 2.92 million lines of HOL4, comprising 10,102 theories, 88,078 theorems and 9,083 definitions, with no unproven assumptions.

The theorems apply to the compiler as defined in HOL. To check that model against the Python implementation of Vyper, Sequent compared their output byte for byte on test contracts, using a fixed commit of the Python compiler. Matching output on those contracts is a cross-check, not a proof that the implementations agree on every input.

Sequent said the work uncovered more than a dozen compiler bugs that were fixed upstream. The findings came from formalizing several compilation stages, including translation into the Venom intermediate representation, -O1 optimization and memory allocation. Unlike an audit of one contract, a fix at this level can address a defect shared by multiple contracts compiled through the affected stage.