Asymmetric Research's GitHub organisation has published lean-svm, a model of the Solana
SOL$71.68+1.4% runtime written in Lean 4. Lean 4 is a programming language whose proofs are checked by a computer, and lean-svm is "an executable Lean 4 model of the Solana runtime", according to its README. Its own status report says the model replays real mainnet blocks and reaches the same result as the network.
That result is the bank hash, a fingerprint of every account's state after a block is processed. The validators that run the network compare it to agree on what the chain looks like. A model that reproduces the bank hash block after block computes what Solana computes, at least for the blocks tested, which ties any proof written against lean-svm to the rules the live chain follows.
Liam (@NearBeteigeuze) announced the project on X on 30 November 2026: "Wrote a spec of the Solana runtime in Lean. The cool thing about it can execute real mainnet blocks and arrive at the same bank hash. With it, you can prove things about on-chain programs, and the SVM itself." Asymmetric Research is the security firm behind the STRIDE audits of Solana protocols.
How the model replays Solana mainnet blocks from Firedancer dumps
lean-svm takes its blocks from Firedancer, the independent Solana validator client. The project's benchmark notes describe capturing each block and its starting account state with a patch to Firedancer's replay tooling, and the test suite runs against Firedancer's public test vectors. The model then executes every transaction itself and compares its bank hash with the one the network produced.
The results below are the repo's own, published in its STATUS.md:
- Slots 459,690,635 to 459,691,200: 562 of 562 bank hashes matched and 360,108 of 360,108 transactions replayed, with no account differences.
- Slots 459,691,201 to 459,711,000: 19,711 of 19,718 blocks matched. Six were skipped because that build predated support for the zero-knowledge proof program used by confidential token transfers, and one, slot 459,695,102, differed because the model read a program's code from the wrong state during a redeployment. STATUS.md says that bug has been fixed.
- Against Firedancer's instruction test vectors, the status report lists every fixture passing in each suite, including 35,948 cross-program invocation and program execution cases and 8,486 vote program cases, plus differential testing on 380,000 randomly generated programs.
Firedancer's fixtures matter because the public test vectors are checked against both Firedancer and Agave, Anza's validator client. A specification held to the output of two independent clients is harder to get subtly wrong than one written from a single codebase.
What a Lean 4 runtime spec lets developers prove about Solana programs
The code splits into a Spec layer, described in the README as the "pure semantics" that theorems are about, and an Exec layer of faster versions that are proved to behave the same and are used for replay. The README lists three uses:
- proving properties of on-chain programs against the model
- proving two sBPF binaries (the compiled bytecode Solana programs run as) equivalent, for example an optimised build against a reference build, or a program before and after an upgrade
- building tooling such as compute-unit optimisers, debuggers and symbolic execution on the same definitions
The upgrade case is the one with the most obvious security payoff. A team that rewrites a program to save compute could, in principle, show with a machine-checked proof that the new binary does exactly what the audited one did, instead of relying on tests to catch a difference.
STATUS.md also lists properties already proved about the runtime itself. They include no privilege escalation across program invocations, conservation of lamports, SOL's smallest unit (an included transaction's account balances afterwards plus its fee equal the balances before), that only the owning program can change an account, and replay protection, including that a durable nonce admits a transaction only once. The report says the runtime code contains no sorry, Lean's placeholder for a step left unproven, and that the only assumptions taken on trust sit in the cryptography interface.
Known gaps: vote state, thin CPI fixtures and replay speed
The status report is direct about what is missing. Version 5 of the vote state encoding and the vote program's UpdateLocation instruction are listed as gaps, and epoch rollover can fail when a sparse capture lacks the inputs needed to compute rewards. Blocks hitting these cases are skipped rather than counted as matches.
Test coverage has holes the authors name too. STATUS.md says the public fixtures "turned out to be thin in three places": almost no cross-program invocation in them succeeds, none exercises a feature still pending on mainnet, and most upgradeable-loader fixtures fail at their first check. A model can only be shown to match the cases someone has tested.
lean-svm is also slow next to a validator, which is not its job. Single-threaded, a 446-transaction block took 9.28 seconds and a 1,106-transaction block a median 12.90 seconds, per STATUS.md, and the execution-only 562-block run took five minutes on 40 threads. The benchmark notes report that all 18 bank hashes matched in the speed runs and mark any mismatched run invalid, because "a faster model that computes something else is not an improvement."
The repo is licensed under AGPL-3.0, and its README is open about how it was built: "LLM usage is fine, but please no one-shot-slop." In a reply to his announcement, Liam wrote: "I tried to keep the Spec nice and clean while I am happy with the LLM to hill climb on execution speed and proof details." All replay, bank-hash and proof figures in this article come from the project's own documents; no outside team has published a reproduction yet.
How it differs from Toly's lean-svm compiler and lean-svm-jit
The name invites confusion. Solana co-founder Anatoly Yakovenko runs his own repo also called lean-svm, a toolchain that compiles Lean 4 to Solana's sBPF bytecode, and a separate JIT compiler with Lean 4 proofs, lean-svm-jit. Asymmetric Research's lean-svm is a different project: a model of the runtime that programs execute on, where Yakovenko's tools produce and run the programs themselves.
Both sit alongside other formal verification work on Solana, including Harmonic's Aristotle adding Rust verification with Solana programs as a first target. A shared, executable runtime specification is the piece those efforts can prove against.
The things to watch are whether other teams build and replay lean-svm themselves, whether the cross-program invocation and loader coverage fills in, and whether any Solana program team publishes a proof written against the model.