Leanstral is an open-source AI code agent created by Mistral AI to support formal software verification and mathematical proof development using Lean 4. The system is designed to generate code while simultaneously validating its correctness through formal proof mechanisms. Unlike many AI coding assistants that rely on general-purpose language models, Leanstral is specifically optimized for proof engineering tasks within structured repositories. The model operates using a sparse architecture with efficient active parameters, allowing it to deliver strong performance without requiring extremely large computational resources. Leanstral integrates closely with the Lean proof assistant, which acts as a strict verifier for mathematical reasoning and software specifications. Developers and researchers can use the model to build verified implementations, reducing the need for time-consuming manual debugging and validation. The project is released under the Apache 2.0 open-source license, ensuring accessibility and flexibility for customization. Leanstral also supports integration with model communication protocols, enabling compatibility with development tools and extensions. Benchmarks show that the system can compete with larger closed-source coding agents while maintaining significantly lower operational costs. By combining automated reasoning, code generation, and formal proof verification, Leanstral introduces a new approach to building trustworthy AI-assisted software systems.