arrow_backBack to Blog
MistralIAverificação formalLean 4open-sourcecódigosegurança

Mistral launches Leanstral 1.5: open-source AI for formal code verification

personLab Desenvolvimento
schedule5 min

Leanstral 1.5: Mistral's AI that proves theorems and finds real bugs

Mistral has released Leanstral 1.5, and the numbers are impressive. This open-source model (Apache 2.0 license) with Mixture of Experts architecture has 119B total parameters but only 6B active per inference — and achieves state-of-the-art results in formal code verification.

What it does

Formal verification is the process of mathematically proving a program does exactly what it should. It's one of the hottest areas in software security, but traditionally expensive and slow.

Leanstral 1.5 changes that: it saturates miniF2F (100%), solves 587/672 PutnamBench problems, and achieves SOTA on FATE-H (87%) and FATE-X (34%).

Real bugs, real code

Tested against 57 open-source repositories, it found 5 previously unknown bugs. This is formal verification applied to production code.

Cost advantage

~$4 per problem vs $300+ from competitors — a 75x difference that makes formal verification accessible.


Leanstral 1.5 is on Hugging Face under Apache 2.0. Free API also available.