Decentronist

Sequent verifies a Vyper compiler model, with limits on what the proof covers

Sequent said on November 30, 2026, that it had completed a machine-checked proof for a mathematical model of the Vyper v0.5.0b1 smart contract compiler. The result establishes conditions under which properties proved about a contract’s Vyper source code also hold for the bytecode that the Ethereum Virtual Machine executes. It does not prove that the compiler’s Python implementation is correct or that any individual contract is secure.

What the proof establishes

Unlike CompCert and CakeML, compilers designed with verification in mind, Sequent modeled an existing compiler. It used AI to develop proofs and HOL4, a theorem prover, to check each mathematical step. Across 2.92 million lines of HOL4 code and 10,102 theories, HOL4 validated 88,078 theorems, with no unproven assumptions reported.

Four of those theorems provide end-to-end guarantees under specified conditions: they cover contract deployment, calls to a running contract, whether enough gas is available for execution, and behavior across multiple transactions. The proofs account for changes made during compilation, including optimizations in Vyper’s Venom pipeline. Sequent also tested its model against 465 compiled test cases and identified more than a dozen compiler bugs before they reached production.

The parser and type checker fall outside the proof. An October 2026 advisory, CVE-2026-114116, illustrates the significance of that gap: eight line-separator characters could silently change how Vyper interpreted numeric values or types. A scan of 45,774 source files found no instances that triggered the flaw.

Why compiler correctness matters to DeFi

In 2021, Charles Cooper, Vyper’s lead developer and Sequent’s CEO, inadvertently introduced a compiler bug that disabled a safeguard against a contract function being called again before its previous call had finished. Developers fixed the compiler, but the fix did not protect contracts that had already been deployed. Attackers exploited the flaw on July 30, 2023.

A LlamaRisk postmortem documented approximately $24.7 million extracted from Curve’s CRV/ETH pool, $22.6 million from Alchemix, $11 million from JPEG’d and $3.4 million from Metronome. Sequent estimated total extractions at more than $70 million; PeckShield’s initial estimate was around $52 million. Neither estimate represents final losses after recoveries. According to Coin Metrics, the total value locked in Curve roughly halved to $1.24 billion. The decline also exposed lending markets to liquidation risk.

Verification costs and next steps

Curve became the first paying customer of Alan, Sequent’s AI-assisted verification platform. It used Alan to establish limits on what depositors could lose in certain pools under specified conditions. The practical benefit, according to Curve CEO Michael Egorov, is that developers can check whether the same loss limit still holds after they change a pool’s code.

On November 25, 2026, Sequent announced $2.2 million in pre-seed funding co-led by Frachtis and Jaan Tallinn’s Metaplanet. Alan’s monthly subscriptions start at $99 for individuals, $200 for auditors and $500 for teams. Separately, the DAO Security Fund has identified end-to-end Vyper compiler verification as a $600,000 funding target, not an awarded grant.

The economics of larger verification projects remain uncertain. In October 2026, Anthropic reported using Claude to prove security properties across 123 open-source libraries. Theorem estimated that verifying 95% of nixpkgs machine code could cost $134 million by late 2027, contingent on further improvements in AI verification.

Sequent is working to extend its Vyper proofs to multi-module contracts and Venom’s -O2 optimization pipeline. Support for Solidity and general-purpose programming languages remains a plan rather than part of the completed work.

Further reading