Lean Directory (@leandirectory) header
Lean Directory (@leandirectory) profile picture

Every Lean tool for Solana, served by one open API.

Joined December 2026
prove is live in Lean Directory. Point it at the Rust that moves money in your Solana program. It proves in Lean that the code matches a written spec for every input: every signer, every amount up to u64 max, and no panics. No rewrite in Lean. Your Anchor program stays as it is. npx lean-solana prove ./logic --spec token-vault.withdraw
2
1
2
139
How: You keep the money decisions in a small plain Rust crate. Charon and Aeneas translate it into Lean, and the Lean kernel checks one theorem per function against the spec. Every run writes a receipt with the source hash, the toolchain, the theorem names and a list of what the proof trusts.
1
1
41
Specs today: token vaults, fee splits, escrow, timelocks and vault share maths. Next: prove on real open source code someone else wrote. More on that soon.
15
Replying to @toly
@toly's lean-svm is now in Lean Directory. It compiles Lean 4 straight to Solana sBPF v3. You write the program in Lean, prove its invariants, and get a deployable .so with no LLVM or C runtime in between. Find it from the CLI, the API or MCP: npx lean-solana list --tier ecosystem lean.directory/?v=2
2
3
48
How to use it: CLI: npx lean-solana list --tier ecosystem shows it with its Lean toolchain (v4.36.0) and repo. API: lean.directory/v1/tools/lean… returns the full entry as JSON: licence, toolchain, root module, what it covers. Agents: connect the MCP server at lean.directory/mcp and search for lean-svm. The code itself is at github.com/aeyakovenko/lean-…
1
2
13
lean-svm is toly's work, Apache-2.0. It's a research project and not audited, so treat it that way. We index it so people building with Lean on Solana can find it next to the rest of the stack.
1
10
Lean Directory is live. An open API for Lean 4 on Solana. Kernel-checked Lean libraries for Solana sit in one place, versioned, with a CLI and an MCP server so you and your agents can use them. npx lean-solana init lean.directory
1
3
272