DeepSeek releases DeepSeek-Prover-V2, a second-generation open-source theorem prover for Lean 4 that sets new state-of-the-art benchmarks in formal mathematics.

For years, the gap between natural language reasoning and formal mathematical verification has been a significant hurdle in AI development. While LLMs have become incredibly proficient at writing prose and code, the rigorous, step-by-step verification required for formal theorem proving remains a specialized domain. On April 30, 2025, DeepSeek officially bridged this gap with the release of DeepSeek-Prover-V2.
DeepSeek-Prover-V2 is not just another reasoning model; it is a specialized, second-generation open-source theorem prover designed specifically for Lean 4. By moving beyond simple pattern matching and into the realm of recursive subgoal decomposition, this model represents a massive leap toward AI that can handle complex, package-level proofs starting from plain natural-language specifications.
DeepSeek-Prover-V2 is released in two distinct checkpoints to cater to different computational needs: a lightweight 7B version and a massive 671B powerhouse. The architecture leverages advanced distillation techniques to ensure that even the smaller models retain high-level reasoning capabilities.
The core innovation lies in how the solver was trained. The model is distilled from the DeepSeek-V3-Base through a process of recursive theorem proving. This involves breaking down complex mathematical problems into smaller, manageable subgoals, allowing the model to navigate the vast search space of formal logic more efficiently than previous iterations.
The release of DeepSeek-Prover-V2 has immediately disrupted the existing benchmarks for formal reasoning. Most notably, the model achieved state-of-the-art (SOTA) open-source results on the miniF2F benchmark at the time of its release, outperforming many closed-source competitors in mathematical rigor.
Beyond miniF2F, the model's ability to handle complex logical structures makes it a formidable tool for competitive mathematics. DeepSeek has also introduced ProverBench, a new benchmark comprising 325 problems, to further push the boundaries of what neural theorem provers can achieve in real-world mathematical research.
As of the release, DeepSeek continues its commitment to providing highly competitive pricing for its models. While the Prover-V2 models are released as open-source checkpoints for local deployment, developers looking for managed API access can utilize DeepSeek's existing infrastructure.
Note: For specific Prover-V2 API endpoints, users should refer to the official DeepSeek developer platform, as specialized reasoning models often follow distinct pricing tiers compared to general-purpose chat models.
DeepSeek-Prover-V2 is designed for high-stakes environments where accuracy is non-negotiable. Its primary use case is in formal mathematical research, where it can assist mathematicians in verifying complex proofs or automating the tedious parts of formalization.
In the software engineering domain, this model can be integrated into advanced CI/CD pipelines to perform formal verification of critical codebases, ensuring that software logic adheres strictly to mathematical specifications. It is also an essential tool for developers working on automated reasoning agents and formal verification tools.
Developers can get started immediately by accessing the open-source weights on GitHub. DeepSeek has provided comprehensive documentation to help users deploy both the 7B and 671B models in their own environments.
For those looking to integrate these capabilities into existing workflows, the GitHub repository includes implementation details for the recursive search algorithms and instructions for fine-tuning on specific mathematical domains.