Leanstral is an open-weight large language model developed by Mistral AI and specifically designed as a code agent for the Lean 4 proof assistant, enabling advanced interaction with formal mathematics and program verification systems. The model is built to understand and generate Lean 4 code, which is used to express complex mathematical constructs as well as formal software specifications. By focusing on theorem proving and formal reasoning, Leanstral represents a specialized direction within large language models, targeting domains that require strict correctness and logical rigor rather than general conversational tasks. It leverages modern large-scale architectures, likely incorporating mixture-of-experts techniques, to balance efficiency and capability while handling structured symbolic reasoning tasks. The model can assist in writing proofs, exploring mathematical structures, and validating logical properties in code.
Features
- Specialized language model for Lean 4 theorem proving and formal verification
- Capability to generate and complete Lean code for mathematical proofs
- Designed for structured reasoning and symbolic logic tasks
- Supports exploration of complex mathematical objects and abstractions
- Applies AI assistance to software correctness and formal specification workflows
- Open-weight model enabling local experimentation and research use