News
Machine-Proven Solana Programs Are Here, but the Prover Stops Before Token Transfers
A new kit aims to prove that compiled Solana programs match their source. Its automatic prover cannot yet handle cross-program calls. What that means for traders and bots.

The developer known as MidTermDev, who builds the Lean Client validator, has released Lean Solana Kit. The goal: write a Solana program in Lean 4, a language that is also a proof checker, prove what it does, then prove that the compiled bytecode does the same.
That second step matters because validators execute the compiled output, not the source an auditor reads. All of this rests on the developer's own repositories and posts. No one outside the project is reported to have checked the proofs yet.
What the kit says it covers
According to the project, the kit provides:
- building blocks with proofs for account checks, overflow-checked arithmetic, lamport transfers, program-derived addresses, and token and system calls
- a command-line tool that creates, compiles, tests and proves a program, then prints deploy and verification steps
- an automatic prover that writes the bytecode proof for programs it can handle
When the prover cannot finish, the program is reported as bytecode: NOT PROVEN.
Where the proof stops
| Area | Status stated by the project |
|---|---|
| Cross-program invocations (CPI) | Not handled by the automatic prover |
| Most loops | Not handled |
| Runs that do not finish | Outside the theorems |
| Compute meter and memory faults | Outside the model |
| Behavior of token and system programs | Assumed, not proven |
The CPI gap is the big one. It excludes programs that transfer tokens or sign with program-derived addresses. Work on lending, Dutch auction, bonding curve and AMM programs has not been completed by the prover. Automatic CPI proofs are listed as the next step, which is an announcement, not a feature.
The mainnet bug worth reading if you build bots
The developer also reported that Lean Client hit a bug on mainnet and stopped itself. A transaction wrote a large chunk of data into a program buffer with a single loader instruction. Agave, the reference validator client, caps how much instruction data its system, vote and upgradeable loader programs will read, and rejects anything longer. Newer v1 format transactions can carry more than that cap.
Lean Client accepted the write. Its resulting state fingerprint, the bank hash, no longer matched the network's, and the node halted. The developer says a fix now adds the same cap.
The lesson for your stack: a proof checks code against a specification. A rule missing from that specification stays invisible until real data exposes it. If you run your own simulator or local execution model, compare its results with mainnet outcomes, including the failures. A transaction format that can carry more bytes does not mean every program will read them.
What it changes for a trader
Today, very little at the buy button. Even a completed proof says that compiled code behaves like its source. It does not say the source is fair to you, and it says nothing about who launched a token, who holds it or who funded those holders.
So if a project puts forward a formal proof, ask:
- Which program was proven, and is it the one you interact with?
- Does the proof reach the bytecode, or only the source?
- What is assumed rather than proven?
- Has anyone independent reproduced it?
Still unknown: whether outsiders can reproduce these proofs, when CPI support will arrive, and whether Lean Client will keep matching the network on mainnet.
Solution
Before any buy, keep code assurance and wallet risk separate. Check the creator's past launches, look at who is trading, trace where holder money came from, and decide your exits before you enter.
Rugbuster is built for that second half. It shows creator history, flags known rugger wallets among the traders and surfaces the funding origin of holders. You can also buy with take-profit and stop-loss already armed, so your exit levels are set from the start. It does not verify program proofs, and no check removes the risk of loss.
Access is by application: apply for Rugbuster.