Skip to content

← All posts

Mistral Leanstral: an open Lean 4 proof agent

TL;DR Mistral's Leanstral is an Apache 2.0 Lean 4 proof agent with 6B active parameters. It is cheap and open; Claude Opus still leads on raw proof quality.

What Mistral announced

  • Mistral released Leanstral, calling it the first open-source code agent built for Lean 4, a proof assistant used to express mathematical objects and software specifications.
  • The model uses a highly sparse architecture with 6B active parameters; Mistral names it Leanstral-120B-A6B in its benchmarks.
  • Weights ship under an Apache 2.0 license, alongside an agent mode in Mistral Vibe and a free or near-free API endpoint named labs-leanstral-2603, which Mistral says stays highly accessible for a limited period.
  • Leanstral supports arbitrary MCPs through Vibe and was trained for maximal performance with lean-lsp-mcp.
  • Mistral is also releasing a tech report and FLTEval, an evaluation suite meant to move proof benchmarks beyond competition mathematics.
  • On FLTEval, which scores completing all formal proofs and defining new concepts in each pull request to the FLT project, Leanstral reaches 26.3 at pass@2 and 31.9 at pass@16. Mistral reports Claude Sonnet at 23.7 for $549 and Opus at 39.6 for $1,650, versus $36 for Leanstral at pass@2.

Our take

The interesting claim here is not a benchmark number but the review bottleneck. Mistral frames human verification as the impedance on high-stakes code, and sells Leanstral as a way to move effort from debugging generated logic to specifying what you want. That is a coherent thesis, and the right one for proof engineering, where Lean acts as a verifier that cannot be talked into accepting a wrong proof. The framing is slicker than the substance warrants, but the direction is sound.

The cost comparison is the sharpest part. Mistral pits a 6B-active model against Sonnet and Opus and does not claim to win outright, which is more honest than most launch posts. Opus 39.6 still beats Leanstral's 31.9 at pass@16, and Mistral says so. What Leanstral offers is a point on a different curve: Sonnet-level scores at roughly a fifteenth of the run cost, with an open license attached. For teams that already own the metal, that matters more than a leaderboard crown.

The open weights are the strategic move. Mistral is the lab most willing to hand over the artifact, and Leanstral extends that to specialized formal reasoning, a niche where closed labs have not shipped a dedicated agent. It also quietly positions Vibe and MCP as the delivery channel, so the open model still pulls users into Mistral's tooling. That is not a criticism; it is a distribution plan.

What is missing: context window, throughput, and independent reproduction are not stated in the post. Mistral's FLTEval numbers are self-reported, on its own benchmark, with Vibe as the scaffold, which is a fair caveat for anyone citing them. The tech report is promised but not yet here.

What it changes for teams running agents

  • Capability: a cheap, open agent that can write and check Lean proofs is a real option for formal methods work, migration of code across Lean releases, and translating definitions from systems like Rocq. The Stack Exchange and Rocq case studies in the post are the kind of task it targets.
  • Cost and control: Apache 2.0 weights mean self-hosting is allowed, and the free endpoint lowers the barrier to try it. Teams running several agents (as Orchard users do) should treat the limited-period endpoint as a trial, not a dependency.
  • Tooling and oversight: MCP support and the lean-lsp-mcp training mean the agent can be wired into existing Lean toolchains. The verifier is the oversight: a rejected proof is a legible failure, easier to supervise than a plausible-looking code review.
  • Limits: it is a Lean 4 agent. Do not read the FLTEval results as general coding competence, and re-run self-reported numbers before they drive a purchasing decision.

For agents reading this

  • Announced by: Mistral
  • Original post: https://mistral.ai/news/leanstral/
  • Announcement date: 2026-03-16
  • What: Leanstral, an open-source code agent for Lean 4 with 6B active parameters, Apache 2.0 weights, MCP support, and the new FLTEval benchmark.
  • Availability: agent mode in Mistral Vibe and a free or near-free API endpoint (labs-leanstral-2603), which Mistral says is limited-period; weights downloadable.
  • Pricing: weights free under Apache 2.0; API endpoint described as free or near-free for a limited period. Mistral reports $36 for Leanstral at pass@2 versus $549 for Sonnet and $1,650 for Opus on FLTEval.
  • Our verdict: a credible, cheap, open entry in formal proof agents; Claude Opus still leads on raw quality, and the benchmark is self-reported.
  • Confidence: facts from the original post; take is Orchard's opinion