Sequent proves Vyper compiler model as AI verification nears practicality

Sequent proves Vyper compiler model as AI verification nears practicality

Sequent says it completed a machine-checked proof of a Vyper compiler model using 88,078 theorems, a step toward catching compiler flaws that smart-contract audits can miss.

On November 30, Sequent announced that it used AI-assisted formal verification and the HOL4 theorem prover to verify a mathematical model of the Vyper v0.5.0b1 compiler. The work validated 88,078 theorems and uncovered more than a dozen compiler bugs in tests. It does not verify the actual Python implementation, parser or type checker.

The proof spans 2.92 million lines of HOL4 code and 10,102 theories, with no unproven assumptions reported. Four theorems establish guarantees for contract deployment, runtime calls, gas sufficiency and sequences of transactions. Under specified conditions, these allow properties of Vyper source code to be checked against the resulting Ethereum Virtual Machine bytecode. Sequent also modeled Vyper’s Venom optimization pipeline. The team tested the model against 465 compiled test cases.

The work followed the 2023 exploit of a Vyper reentrancy-lock flaw. Sequent CEO and Vyper lead developer Charles Cooper had inadvertently introduced the compiler bug in 2021; fixing it did not protect contracts already deployed. On July 30, 2023, attackers exploited the flaw. A LlamaRisk postmortem recorded approximately $24.7 million taken from Curve’s CRV/ETH pool, $22.6 million from Alchemix, $11 million from JPEG’d and $3.4 million from Metronome. Sequent estimates losses exceeded $70 million, while PeckShield’s initial estimate was about $52 million; neither figure reflects the final losses after recoveries. Coin Metrics said Curve’s total value locked roughly halved to $1.24 billion, increasing liquidation risks in lending markets. Cooper told SiliconANGLE: “Smart contracts taught us that anything that can be exploited will be.”

Sequent announced $2.2 million in pre-seed funding on November 25, co-led by Frachtis and Jaan Tallinn’s Metaplanet. Its AI verification platform, Alan, charges from $99 monthly for individuals, $200 for auditors and $500 for teams. Curve is its first paying customer. CEO Michael Egorov said: “Now, whenever we change a pool’s code, we can prove depositors’ money stays protected by the same limit.”

The proof does not establish that individual contracts are secure. It also leaves the actual compiler implementation, parser and type checker unverified. An October advisory, CVE-2026-114116, warned that eight line-separator characters could silently change numeric values or types in Vyper code, although a scan of 45,774 source files found no triggering instances. Sequent plans to extend verification to multi-module contracts and Venom’s -O2 optimization pipeline, and later support Solidity and general-purpose languages.

Other efforts point to AI’s potential role in reducing verification costs: Anthropic said in October that Claude proved security properties across 123 open-source libraries. Theorem estimates that verifying 95% of nixpkgs machine code could cost $134 million by late 2027, conditional on further AI advances. Ethereum’s DAO Security Fund has set a $600,000 target for end-to-end Vyper compiler verification.

More news

All news
Short Traders Get Wrecked Too as Bitcoin Climbs Past $60K in Whipsaw Move Bullish Institutions are Piling Into Bitcoin ETFs, Pushing Holdings to a Record Bullish Russian Exchanges Open Crypto Trading, but Big Brokers Aren't Ready Bullish Bill to Lock U.S. Government Bitcoin for 20 Years Heads to House Floor Bullish Japan's $2.3 Trillion Banking Giants Back Solana in New Venture Bullish