cs.CLMar 25, 2026

MechMath: Sorrifier-Driven Formal Decomposition Workflow for Automated Theorem Proving

Authors: Ruichen Qiu, Yichuan Cao, Junqi Liu, Dakai Guo, Xiao-Shan Gao, Lihong Zhi, Ruyong Feng

Organizations: SKLMS, Academy of Mathematics and Systems Science, CAS, Beijing, 100190, China · School of Advanced Interdisciplinary Sciences, UCAS, Beijing, 101408, China · School of Mathematical Science, UCAS, Beijing, 101408, China

Abstract

Recent advances in large language models (LLMs) and LLM-based agents have substantially improved the capabilities of automated theorem proving. However, for problems that require complex mathematical reasoning, current systems seldom succeed in their initial attempt, necessitating iterative adjustments to their proof strategies. Existing approaches for handling failed attempts typically either iteratively fix errors within the proof or discard the entire proof and regenerate it from scratch. The former leads to progressively longer contexts, which degrade the model's ability to attend to the remaining unresolved subproblems, while the latter is inefficient, as it may abandon mostly correct reasoning due to localized errors. To address this dilemma, we present MechMath, an agent system centered on a Sorrifier-driven formal decomposition paradigm. By leveraging the sorry placeholder in Lean to precisely isolate unresolved subgoals while preserving the surrounding verified proof structure, MechMath extracts each failed subproblem into a clean, self-contained context and resolves it independently. This avoids both the waste of full regeneration and the excessive context length induced by repeated repairs. Experimental results on challenging mathematical competition benchmarks, including IMO 2025, Putnam 2025, miniF2F, and a subset of ProverBench, demonstrate that our agent achieves significant advantages in proving efficiency.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. LEAP: Supercharging LLMs for Formal Mathematics with Agentic Frameworks

    Jun 2, 2026Po-Nien Kung, Linfeng Song, Dawsen Hwang +10Mathematical Reasoning BenchmarksLarge Language Model-Guided Theorem Proving

  2. MechMath Agent Team: LLM Driven Agents for Mathematical Research

    Jul 5, 2026Yichuan Cao, Ruichen Qiu, Junqi Liu +5Automated Theorem ProvingMulti-Agent Reasoning

  3. Maestro: Agentic Formal Proof Development by Coordination

    Oct 19, 2026Haoyu Li, Zeren Shui, Yuhao Zhang +4Large Language Model-Guided Theorem ProvingLean Theorem Proving