Large Language Models (LLMs) have achieved remarkable progress in mathematical reasoning, yet they persistently suffer from "hallucinations"—logical leaps that sound plausible but are mathematically invalid. To combat this, researchers increasingly turn to Formal Theorem Proving (FTP). In FTP, a model writes code in a formal language like Lean 4, which a computer kernel can verify with absolute certainty.
However, traditional FTP has a major blind spot: it is limited to verification. It starts with the answer already provided in the problem statement (e.g., "Prove that $x=5$"). In real-world mathematics, the answer is rarely known beforehand; it must be discovered. Current methods often allow an LLM to guess an answer informally and then attempt to prove it, leaving the actual derivation process unverified and disconnected from the formal proof.
To bridge this gap, researchers have introduced a principled framework to encompass the end-to-end problem-solving process, unifying discovery and verification.
The Solution: FPS and D-FPS
The researchers propose two primary frameworks to transition models from mere verification to constructive problem-solving:
- FPS (Formal Problem-Solving): This framework treats the unknown answer as a "metavariable" (a hole in the logic) coupled with a proof obligation. To successfully close the goal, the model must provide both the mathematical term that fills the hole and a formal proof that this term satisfies the problem's conditions.
- D-FPS (Deductive FPS): In standard FPS, models can sometimes "cheat" by using the goal to define the answer (e.g., answering "what is the limit?" with "the limit itself"). D-FPS structures the solving process into two distinct stages to align more closely with human reasoning:
- Forward Derivation: Explicitly deriving the answer from the given conditions.
- Backward Verification: Proving that the derived answer is the only or complete solution.
Evaluating Semantic Correctness: The RPE Metric
Evaluating whether a model has found the "correct" answer in formal math is surprisingly difficult. Standard string matching is too brittle—for instance, is 5 the same as 10/2 or 2+3?
To solve this, the paper introduces RPE (Restricted Propositional Equivalence). RPE uses a set of "safe" Lean tactics, including normalizers and searchers, to check if a model's answer is semantically equivalent to the ground truth. Crucially, it does this without allowing for tautological cheating. In experiments, RPE demonstrated a 0.9732 Cohen’s kappa agreement with human experts, proving it to be a highly reliable automated evaluation metric.
New Benchmarks for Formal Problem-Solving
To test these frameworks, the authors constructed three new benchmarks by refactoring existing theorem-proving datasets into "solving" tasks, effectively removing the hardcoded answers:
- FormalMath500: 387 problems from the popular MATH benchmark, covering Algebra, Number Theory, and Precalculus.
- MiniF2F-Solving: 375 problems refactored from high-school competition sets (AIME, AMC, IMO).
- PutnamBench-Solving: 324 undergraduate-level problems from the notoriously difficult Putnam competition.
Key Findings: The "Alignment Tax" and the Proving-Solving Gap
Extensive experiments with state-of-the-art provers (such as DeepSeek-Prover and InternLM2.5-StepProver) revealed a consistent and significant gap between proving and solving.
- The "Alignment Tax": This is the paper's most compelling finding. In formal logic, many different expressions are technically "correct," but humans prefer the simplest, most canonical form (e.g., "0" instead of $\lim_{n \to \infty} \frac{1}{n}$). Forcing a model to produce these human-aligned, simplified answers makes the task significantly harder, leading to a performance drop compared to traditional proving.
- Solving is Harder than Proving: Even if a model can prove a statement when given the answer, it often fails to find the answer on its own. For example, on FormalMath500, the best model proved 80.19% of problems when given the answer, but only solved 59.17% when the answer was unknown. On MiniF2F-Solving, performance dropped from 86.22% (proving) to 65.87% (solving).
- Formal Rigor vs. Intuition: The nature of failure changes with difficulty. In easier benchmarks, models often find the right answer intuitively but fail because they cannot produce the formal Lean code to prove it. In harder benchmarks like PutnamBench-Solving—which remains a grand challenge with a solve rate of just 1.03%—models fail because they simply cannot discover the correct answer in the first place.
Limitations and Future Directions
While FPS represents a major step forward, challenges remain. The current framework is optimized for "find-all" problems, leaving tasks like "find a counter-example" underexplored. Additionally, the benchmarks currently exclude Geometry and Counting/Probability, as formalizing the problem descriptions (e.g., translating complex diagrams into code) is often harder than the actual solving.
Finally, there is a severe lack of high-quality "informal-to-formal" training data for solving. The authors suggest that autoformalization—using AI to reliably translate textbook problems into Lean—will be the next major hurdle in teaching LLMs to truly solve mathematics.
Summary updated