Sequent completes Vyper compiler proof with 88,078 theorems
The AI-assisted work found more than a dozen bugs in the Ethereum contract language's compiler before they shipped.
Sequent says it has finished a mathematical proof of the Vyper compiler model, with AI writing the proofs and the HOL4 theorem prover checking them step by step. The company announced the result on Nov. 30.
That matters because faulty compilers have drained DeFi protocols whose own code was fine. Vyper is a language for writing Ethereum smart contracts, and its compiler translates that code into the instructions the network executes.
The proof covers a model of Vyper v0.5.0b1 and runs to 2.92 million lines of HOL4 code across 10,102 theories. HOL4 accepted 88,078 theorems without unproven assumptions. Four of them guarantee end-to-end behavior for deployment, runtime calls, gas sufficiency and batches of transactions. Running the model against 465 compiled test cases turned up more than a dozen compiler bugs before release.
The effort goes back to a 2021 flaw written by Sequent CEO Charles Cooper, who also leads Vyper development. It stayed live in deployed contracts, and attackers used it on July 30, 2023.
A LlamaRisk postmortem counted about $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 puts the total above $70 million, while PeckShield's first estimate was about $52 million.
Curve's deposits fell by roughly half to $1.24 billion, Coin Metrics data showed.
On Nov. 25, Sequent said it raised $2.2 million in pre-seed money, co-led by Frachtis and Metaplanet, the fund of Skype co-founder Jaan Tallinn. Its Alan platform costs from $99 a month for individuals, and Curve is the first paying user.
Not everything is covered. The proof is about a mathematical model, not the Python code itself, and skips the parser and type checker. Sequent is now extending it to multi-module contracts and Vyper's Venom optimization pipeline, then Solidity.
Sources
Get stories like this in your inbox
The day’s biggest crypto stories and market moves in one short morning email. Free, no spam.