Mistral releases Leanstral, a 6B parameter AI agent for Lean 4 formal verification, beating larger models at 1/15th the cost under Apache 2.0 license. (Read MoreMistral releases Leanstral, a 6B parameter AI agent for Lean 4 formal verification, beating larger models at 1/15th the cost under Apache 2.0 license. (Read More

Mistral AI Launches Leanstral Open-Source Proof Agent for Lean 4

2026/03/17 03:13
3 min read
For feedback or concerns regarding this content, please contact us at [email protected]

Mistral AI Launches Leanstral Open-Source Proof Agent for Lean 4

Zach Anderson Mar 16, 2026 19:13

Mistral releases Leanstral, a 6B parameter AI agent for Lean 4 formal verification, beating larger models at 1/15th the cost under Apache 2.0 license.

Mistral AI Launches Leanstral Open-Source Proof Agent for Lean 4

Mistral AI released Leanstral on March 16, 2026—the first open-source AI agent built specifically for Lean 4 formal verification. The 120B parameter model runs on just 6B active parameters and ships under Apache 2.0 licensing, making production-grade theorem proving accessible without enterprise budgets.

Why does this matter for crypto? Formal verification—mathematical proof that code does exactly what it claims—has become the gold standard for securing smart contracts and blockchain protocols. Bugs in DeFi code have cost billions. Leanstral could dramatically lower the barrier for projects seeking verified security.

Performance vs. Cost Trade-offs

Mistral benchmarked Leanstral against both proprietary and open-source competitors using FLTEval, a new evaluation suite testing real proof engineering tasks from the Fermat's Last Theorem formalization project.

The numbers are striking. Leanstral at pass@2 scored 26.3 points for $36 in compute costs. Claude Sonnet 4.6 managed 23.7 points but ran up a $549 bill—over 15x the cost for worse performance. Even at pass@16, where Leanstral hits 31.9 points for $290, it still costs less than one-fifth of Claude Opus 4.6's $1,650 price tag (though Opus leads quality at 39.6).

Against open-source alternatives, the efficiency gap widens further. GLM5-744B-A40B and Kimi-K2.5-1T-A32B plateau around 16-20 points despite having 6-8x more active parameters. Qwen3.5-397B-A17B needs four passes to reach 25.4 points—Leanstral beats that with two.

Technical Architecture

Leanstral uses a sparse mixture-of-experts architecture optimized for proof engineering workflows. The model integrates with Lean's language server protocol through MCP (Model Context Protocol), specifically trained for maximal performance with lean-lsp-mcp tooling.

Lean 4 itself launched stable in September 2023 and has seen rapid adoption for formalizing mathematics. The Mathlib library—a massive collection of mathematical proofs—successfully ported to Lean 4 that same year. Projects like the formal proof of Fermat's Last Theorem demonstrate the platform's capability for serious mathematical work.

Real-World Applications

Mistral showcased Leanstral handling a genuine Stack Exchange debugging question about breaking changes in Lean 4.29.0-rc6. The agent diagnosed a definitional equality issue with type aliases and correctly identified that swapping def for abbrev would restore tactic matching.

The model also demonstrated cross-language translation, converting Rocq (formerly Coq) definitions to Lean 4 while preserving proof semantics and implementing custom notation.

Access Options

Three deployment paths exist: direct integration in Mistral Vibe (use /leanstall to start), a free API endpoint at labs-leanstral-2603 for limited-time feedback gathering, or self-hosted deployment with the Apache 2.0 weights.

For blockchain projects, the calculus is straightforward. Formal verification has traditionally required either expensive auditing firms or deep in-house expertise. An open-source agent that can prove code correctness at $36-290 per task could reshape how protocols approach security—assuming the proofs hold up under production conditions.

Image source: Shutterstock
  • mistral ai
  • leanstral
  • lean 4
  • formal verification
  • open source
Disclaimer: The articles reposted on this site are sourced from public platforms and are provided for informational purposes only. They do not necessarily reflect the views of MEXC. All rights remain with the original authors. If you believe any content infringes on third-party rights, please contact [email protected] for removal. MEXC makes no guarantees regarding the accuracy, completeness, or timeliness of the content and is not responsible for any actions taken based on the information provided. The content does not constitute financial, legal, or other professional advice, nor should it be considered a recommendation or endorsement by MEXC.

You May Also Like

Franklin Templeton CEO Dismisses 50bps Rate Cut Ahead FOMC

Franklin Templeton CEO Dismisses 50bps Rate Cut Ahead FOMC

The post Franklin Templeton CEO Dismisses 50bps Rate Cut Ahead FOMC appeared on BitcoinEthereumNews.com. Franklin Templeton CEO Jenny Johnson has weighed in on whether the Federal Reserve should make a 25 basis points (bps) Fed rate cut or 50 bps cut. This comes ahead of the Fed decision today at today’s FOMC meeting, with the market pricing in a 25 bps cut. Bitcoin and the broader crypto market are currently trading flat ahead of the rate cut decision. Franklin Templeton CEO Weighs In On Potential FOMC Decision In a CNBC interview, Jenny Johnson said that she expects the Fed to make a 25 bps cut today instead of a 50 bps cut. She acknowledged the jobs data, which suggested that the labor market is weakening. However, she noted that this data is backward-looking, indicating that it doesn’t show the current state of the economy. She alluded to the wage growth, which she remarked is an indication of a robust labor market. She added that retail sales are up and that consumers are still spending, despite inflation being sticky at 3%, which makes a case for why the FOMC should opt against a 50-basis-point Fed rate cut. In line with this, the Franklin Templeton CEO said that she would go with a 25 bps rate cut if she were Jerome Powell. She remarked that the Fed still has the October and December FOMC meetings to make further cuts if the incoming data warrants it. Johnson also asserted that the data show a robust economy. However, she noted that there can’t be an argument for no Fed rate cut since Powell already signaled at Jackson Hole that they were likely to lower interest rates at this meeting due to concerns over a weakening labor market. Notably, her comment comes as experts argue for both sides on why the Fed should make a 25 bps cut or…
Share
BitcoinEthereumNews2025/09/18 00:36
U.K. judge allows lawsuit over alleged $172M bitcoin theft between spouses

U.K. judge allows lawsuit over alleged $172M bitcoin theft between spouses

The post U.K. judge allows lawsuit over alleged $172M bitcoin theft between spouses appeared on BitcoinEthereumNews.com. A U.K. High Court judge allowed a lawsuit
Share
BitcoinEthereumNews2026/03/17 08:24
US Stablecoin Yield Ban May See Others Step Up: Ledger Exec

US Stablecoin Yield Ban May See Others Step Up: Ledger Exec

The post US Stablecoin Yield Ban May See Others Step Up: Ledger Exec appeared on BitcoinEthereumNews.com. A block on stablecoin yield payments in the US will likely
Share
BitcoinEthereumNews2026/03/17 08:28