Evaluating Mathematical Proof Capabilities of Large Language Models: Methods and Engineering Practices
Large language models often generate fluent, well-structured mathematical text that can look like a completed proof, yet proof tasks require every reasoning step to be independently verifiable and are highly sensitive to skipped steps or missing conditions. This article presents an engineering-oriented evaluation approach: decomposing proof quality into measurable dimensions, designing evaluation sets that distinguish restatement from derivation, measuring cost and efficiency, applying tiered correctness verification, selecting models by task layer, reporting results with appropriate context, and avoiding common pitfalls. The goal is to make proof evaluation measurable, reproducible, and comparable across models and time.
1. Why Mathematical Output Requires Dedicated Evaluation
Mathematical text generated by large language models is often fluent and structurally complete, which can give the impression that a proof has already been established. Proof tasks have two characteristics: every reasoning step must be independently verifiable, and a single skipped step or omitted condition can invalidate the entire conclusion. A good reading experience therefore cannot replace correctness checks.
In engineering practice, the first step in evaluation is to break a vague question such as “how good is this model at math?” into a set of measurable sub-questions. The analysis below follows this approach.
2. Decomposing Evaluation Goals
Proof quality includes at least the following dimensions, and each dimension should be scored separately:
- Logical correctness: Whether each inference follows from its premises, and whether there is any circular reasoning.
- Completeness: Whether all branch cases are covered, and whether boundary conditions are handled.
- Citation accuracy: Whether cited definitions, theorem numbers, and statements match the original literature.
- Use of conditions: Whether assumptions are missing, or whether additional conditions are introduced without explanation.
- Presentation quality: Whether notation is consistent, formulas are clearly formatted, and the structure is easy to review.
Once the dimensions are separated, the same output may score highly on presentation quality and poorly on logical correctness. This gap is exactly the kind of information that a single aggregate score can easily hide.
3. Designing Evaluation Sets: Distinguishing Restatement from Derivation
The most error-prone part of evaluation is test set design. If a proposition already has a complete proof in public literature, the model may simply restate text it has seen in training data. That does not demonstrate reasoning ability.
A more reasonable approach is to construct two types of samples:
- Known proposition group: Propositions with proofs in the literature, used to measure accuracy under standard answers.
- Perturbed proposition group: Known propositions with one condition modified, such as relaxing an assumption, changing a parameter range, or replacing part of the conclusion. If the model is merely restating, it will often reuse the original proof and ignore the changed condition.
For the perturbed proposition group, human judgment is also needed to determine whether the proof was adjusted in response to the condition change. This step can expose “memorized-style” output relatively well.
A schematic evaluation flow is shown below:
for proposition in evaluation_set:output = model.generate_proof(proposition.statement, requirements="state all dependencies")verification_result = tiered_verify(output, proposition.dependencies)record(proposition.id, verification_result, quota_consumption, time_to_first_token, total_time)
4. Measuring Cost and Efficiency
In practical use, cost is usually measured by two metrics: quota consumption per task, and cost per unit of valid output. The latter is calculated as:
Cost per valid output = total quota consumption / number of propositions passing verification
This metric is more meaningful than per-task consumption. A model may be cheap per call but have low accuracy, and the resulting correction cost may be higher.
For speed, it is advisable to record both time to first token and overall throughput (tokens per second). These affect interactive experience and batch processing efficiency, respectively. Note that throughput depends on server load and deployment method; comparisons should be made under similar conditions, and the test time should be noted.
5. Tiered Correctness Verification
Manual line-by-line review is expensive, so tiered verification is often used:
- Formal check: Check whether notation is consistent, whether theorem citations have corresponding entries, and whether the structure is complete.
- Logical step check: Annotate the basis for each reasoning step; steps without a basis are marked as pending verification.
- Expert review: Key steps and boundary cases are independently judged by domain experts.
A fixed error taxonomy is recommended for verification so that statistics are easier to produce:
- Logical gap: Intermediate steps are missing, and the conclusion cannot be directly derived.
- Circular reasoning: The conclusion is used as its own premise.
- Citation error: The theorem statement does not match the original text, or the number is incorrect.
- Missing condition: A necessary assumption is not stated, or an extra assumption is introduced.
An error taxonomy makes differences between models quantifiable rather than merely impressionistic.
6. A Layered Approach to Model Selection
Different mathematical tasks place very different demands on model capabilities. Common task layers include:
- Brainstorming and idea exploration: Focus on diversity of ideas and response speed, with lower requirements for single-step rigor.
- Lecture drafting and explanation: Focus on clear structure and accurate presentation, requiring manual paragraph-by-paragraph review.
- Rigorous proofs of known propositions: Focus on logical correctness and citation accuracy, where errors are costly.
- Open problem exploration: Focus on whether the model can propose valuable intermediate conclusions, while requiring expert participation throughout verification.
Model selection should balance quality, latency, and cost. For high-frequency, low-risk tasks, speed and cost are often more important than peak quality. For low-frequency, high-risk tasks, verification reliability should be prioritized.
A particularly undesirable practice is to use a single overall ranking to decide all scenarios. Ranking results depend on the specific problems, prompts, test time, and review criteria, and can only serve as a reference.
7. Reporting Standards for Results
A credible evaluation report should include the following:
- The composition and source of the test set, including sample count and distribution of problem types.
- Full prompt templates and output constraints.
- Model version, test date, and sampling parameters.
- Scores for each dimension and statistics from the error taxonomy.
- The number of reviewers and the results of consistency checks.
When the sample size is small, uncertainty in the conclusions is greater. The report should note the sample size and avoid drawing conclusions from individual cases.
8. Common Pitfalls
Pitfall 1: Treating fluency as correctness. The more textbook-like the text, the easier it is to lower a reviewer’s vigilance. Verification must target the reasoning chain itself.
Pitfall 2: Relying on a single experience. The same model may perform noticeably differently at different times and under different prompts. At minimum, multiple samples should be taken, and stability should be measured.
Pitfall 3: Ignoring reviewer bias. If reviewers know the model’s source, they may form preconceptions. Blind review can reduce this influence.
Pitfall 4: Confusing “able to give an answer” with “able to complete a proof.” Reaching a correct conclusion does not mean that a verifiable proof process has been provided. The two should be scored separately during evaluation.
9. Summary
The core of evaluating LLM mathematical proof capabilities is to turn subjective impressions into a measurable and reproducible process. Dimension decomposition, distinguishing restatement from derivation, tiered verification, and cost recording form a basic framework. Following this framework allows conclusions to be compared across models and time points and provides a basis for practical model selection.
