Sequent proves Vyper compiler model after $70 million Curve exploit
The machine-checked proof spans 2.92 million lines of code and caught over a dozen bugs before they reached production.

Key takeaways
- The proof covers 2.92 million lines of HOL4 code and 88,078 theorems.
- Sequent found over a dozen compiler bugs by testing the model against 465 cases.
- The 2023 Vyper bug led to more than $70 million in losses across DeFi protocols.
Sequent has built a machine-checked proof of a model of the Vyper smart contract compiler, the company said on November 30. The proof uses artificial intelligence to verify that the compiler behaves as intended, a technique known as formal verification.
The work is a direct response to a compiler bug that let attackers drain more than $70 million from Curve and other DeFi protocols in 2023. By proving the compiler model, Sequent aims to catch similar flaws before they can be exploited.
ETH / USD
The verification spans 2.92 million lines of HOL4 code, a theorem prover that checked 88,078 theorems without any unproven assumptions. Four of those theorems give end-to-end guarantees for contract deployment, runtime calls, gas sufficiency and sequences of transactions.
Sequent tested the model against 465 compiled test cases and found over a dozen compiler bugs before they reached production. The model also accounts for Vyper’s Venom optimization pipeline, which improves code efficiency without changing its intended behavior.
The 2023 exploit traced back to a reentrancy-lock bug introduced in 2021. Although developers later fixed it, contracts already on the blockchain remained vulnerable. On July 30, 2023, hackers drained roughly $24.7 million from Curve’s CRV/ETH pool, $22.6 million from Alchemix, and $11 million from JPEG’d, according to a LlamaRisk report. Sequent estimates the total loss above $70 million.
On November 25, Sequent raised $2.2 million in pre-seed funding. Its AI verification platform, Alan, starts at $99 per month for individuals. Curve is already a paying customer, using Alan to prove depositor protections when pool code changes.
The proof has limits: it covers a mathematical model, not the actual Python implementation, and excludes the parser and type checker. A recent security advisory showed that certain line-separator characters could alter code, though no active exploits were found. Sequent plans to extend the verification to multi-module contracts and the Solidity language.





Discussion 0