How to Systematically Evaluate Large Language Models' Mathematical Proof Capabilities

    As large language models (LLMs) continue to improve on tasks like knowledge Q&A, code generation, and logical reasoning, mathematical proof has become an important scenario for testing a model's overall capability. Unlike ordinary math calculation problems, proof tasks require not only a correct final conclusion but also a rigorous logical chain, clear definitions of concepts, a reliable derivation process, and the ability to organize the result for the reader. When the goal is to produce an English technical handout, the model must also stay consistent in language, structure, terminology, and notation. For these reasons, judging whether a model has strong mathematical proof ability cannot rely on a single subjective interaction; it should be built on a reproducible, comparable, and extensible evaluation system. This article walks through how to design such a system, covering goals, task construction, prompting, verification, output quality, capability differences, cost, and reproducibility.

    1. Define the Evaluation Goals: Proof Ability Is More Than “Getting the Right Answer”

    In a proof task, a correct final answer is only the lowest-level requirement. Many outputs appear to reach a conclusion but hide several problems: key steps are skipped, undefined variables are introduced, special boundary cases are not discussed, conditions are silently weakened, or the result is reached through circular reasoning. The evaluation goals should therefore cover at least the following four areas.

    First, proof correctness. Every deduction step the model provides must be internally consistent and must ultimately derive the target proposition. A conclusion cannot depend on a premise that itself depends on that conclusion.

    Second, logical rigor. The model must state the justification for each step, such as which definitions, lemmas, theorems, or constructions were used. For key steps, it should not rely on intuition alone or brush over them with informal phrases like “obviously” or “it is easy to see.”

    Third, output usability. If the goal is to generate a handout or teaching material, the model must not only produce a correct proof but also organize it into readable text, including sections such as an abstract, definitions, lemmas, theorems, proofs, discussion, and appendices.

    Fourth, engineering feasibility. In enterprise or R&D scenarios, model outputs often need to be further parsed, verified, reused, or manually reviewed. Whether the output format is standardized, whether notation is consistent, and whether the structure is easy to process automatically are all important evaluation criteria.

    2. Task Construction: The Evaluation Set Sets the Ceiling for Evaluation Quality

    The first step in evaluating a model’s proof ability is not to call the model directly, but to build high-quality evaluation tasks. If the tasks are too simple, such as basic algebraic manipulation, routine calculus differentiation, or simple probability calculation, it is hard to distinguish the capability differences between models. A more reasonable approach is to choose mathematical propositions with a certain level of abstraction, boundary conditions, and proof chains.

    Constructing the evaluation set should follow these principles.

    First, clear proposition statements. The proposition given to the model must be complete, including the objects, assumptions, conclusion, and scope of applicability. If the proposition itself is ambiguous, even a beautiful answer cannot serve as a reliable basis for evaluation.

    Second, explicit boundary conditions. Many mathematical errors occur in special cases, such as empty sets, degenerate objects, infinite processes, discontinuous cases, or parameters at extreme values. The evaluation set should include these cases to see whether the model proactively discusses them.

    Third, coverage of different difficulty levels. You can set up basic proof problems, comprehensive proof problems, and open-ended exploration problems. Basic problems test whether the model can reliably execute standard reasoning; comprehensive problems reveal the model’s ability to integrate multiple knowledge points; open problems assess whether the model can propose reasonable approaches when information is incomplete.

    Fourth, prefer material without a ready-made standard proof. If the model is merely reproducing common text, it may not truly reflect its reasoning ability. You can select propositions for which public mathematical resources do not directly provide complete proofs and ask the model to complete them. This kind of task is closer to real research-assistance scenarios.

    Fifth, establish acceptance criteria for each proposition. For example: whether it includes a complete proof, whether it discusses boundary cases, whether it introduces extra assumptions, whether it keeps notation consistent, and whether it can pass manual review. The clearer the acceptance criteria, the more stable the subsequent evaluation.

    A simplified evaluation set entry structure can look like this:

    1. Evaluation Set Entry:
    2. Proposition ID
    3. Domain
    4. Difficulty Level
    5. Proposition Statement
    6. Assumptions
    7. Conclusion Target
    8. Reference Answer or Key Lemmas
    9. Boundary Cases
    10. Acceptance Criteria

    3. Prompt Design: Using Structured Input to Improve Comparability

    The same model can behave noticeably differently under different prompts. To ensure comparability, prompts should be structured, clearly constrained, and as fixed as possible across evaluation inputs.

    An effective prompt should include at least the following:

    1. Task goal: clearly tell the model which proposition to prove.
    2. Notation conventions: define the meaning of variables, sets, functions, and relations.
    3. Output format: require output organized into theorem, lemma, proof, discussion, and so on.
    4. Derivation requirements: require justification for each step and no skipped steps.
    5. Exception handling: if the proposition does not hold under the current conditions, point out missing conditions or a counterexample.

    An example prompt:

    1. Prove the following proposition and produce an English mathematical handout.
    2. Requirements:
    3. 1. First give a formal statement of the proposition and the notation conventions.
    4. 2. Break the proof into several lemmas and explain them one by one.
    5. 3. Every deduction step must state its justification; do not skip steps directly.
    6. 4. Discuss all possible boundary cases.
    7. 5. If the proposition does not hold under the given conditions, point out a counterexample or missing conditions.
    8. 6. The output structure should include: proposition, definitions, lemmas, theorem proof, discussion.

    The value of this prompting approach is that it removes reliance on the model’s improvisation and instead observes whether the model can complete the task under explicit constraints. Later, if you switch models or adjust parameters, you can still compare them under the same input.

    4. Correctness Verification: Building a Multi-Layer Verification Mechanism

    Verifying proof outputs cannot rely only on automatic rules or fully on manual reading. A more reasonable approach is to build a multi-layer verification mechanism that surfaces problems as early as possible.

    The first layer is symbol-level verification. Check whether the model uses undefined symbols, variables, sets, or functions. For example, an object may appear earlier without a stated range, and later the model directly takes its limit; or the model may cite a lemma without stating its conditions. These issues can usually be found through rules or structured parsing.

    The second layer is logic-level verification. Check whether the key assertions in the proof support one another and whether there is circular reasoning. For complex proofs, you can ask the model to output a proof dependency graph showing which premises each lemma depends on and which definitions or theorems ultimately support each premise. If the dependency graph contains a cycle, manual intervention is required.

    The third layer is boundary-level verification. Check whether the model discusses special cases, such as degenerate parameter values, empty sets, discontinuous functions, divergent sequences, or non-existent constructed objects. Many proofs that look complete actually hold only in the “well-behaved case.”

    The fourth layer is counterexample-level verification. For the conditions or conclusions the model proposes, try to construct counterexamples. If the model introduces an extra assumption, check whether that assumption is allowed by the original proposition. If the model weakens a condition, check whether the weakened proposition is still sufficient to derive the original conclusion.

    The fifth layer is spot-checking by human experts. Automatic verification can only find obvious problems, and truly high-quality mathematical handouts still require manual review. Sampling reviews can focus on whether the model explains complex reasoning clearly, rather than only checking whether the conclusion is correct.

    An example verification flow:

    1. Evaluation Process:
    2. Input: evaluation set, model outputs
    3. For each output:
    4. Parse the output structure
    5. Extract definitions, lemmas, theorems, and proof steps
    6. Check for undefined symbols
    7. Check whether key lemmas are proven or reasonably cited
    8. Check whether boundary cases are discussed
    9. Flag suspected skipped steps or circular reasoning
    10. Aggregate correctness, rigor, and completeness scores

    5. Handout Generation Quality: Mathematical Writing Is a Core Capability

    If the goal is only to obtain a proof, the evaluation focuses on logical correctness. If the goal is to generate an English handout, expression quality must be part of the evaluation. A mathematical handout differs from an ordinary article: it must strike a balance between rigor and readability.

    First, the structure must be clear. A good handout lets readers quickly grasp the background, the key ideas, and the proof path. It can typically include an abstract, notation notes, core lemmas, the main theorem proof, extended discussion, and appendices.

    Second, terminology must be consistent. The same mathematical object should use the same expression throughout. For example, if a concept is called a “property” earlier in the text and suddenly becomes a “condition” later, it easily causes confusion.

    Third, mathematical notation must be standard. Symbols for variables, sets, functions, and relations should remain consistent. While this does not require a specific typesetting format, the output should be easy to convert into a standard mathematical document, with no pervasive formatting chaos, missing symbols, or broken section structure.

    Finally, the narrative must be reader-oriented. The model should not merely list formulas; it should also explain why a given lemma is needed, how the proof idea is organized, and where the key difficulties lie. A high-quality handout often goes beyond a correct proof to help readers build intuition.

    You can use a weight table for comprehensive scoring, as illustrated below:

    1. Scoring Dimensions:
    2. Correctness 30%
    3. Rigor 25%
    4. Readability 20%
    5. Reproducibility 15%
    6. Efficiency & Cost 10%

    These weights can be adjusted per scenario. For teaching-material generation, the readability weight should be higher; for formalization assistance or automatic verification, the correctness weight should be higher.

    6. Open Mathematical Problems: Clear Capability Tiers Among Models

    On complex mathematical tasks, different models often show different capability characteristics. Some models are good at exploring ideas in open problems and can distill possible proof paths from relatively vague conditions; some produce more concise output whose expression is closer to human writing habits; and others generate very long reasoning chains covering many details, but this does not necessarily mean the final result is more accurate.

    Therefore, “a long reasoning chain” should not be equated directly with “strong capability.” A long reasoning chain may help uncover hidden steps, but it may also introduce more noise, wrong assumptions, or redundant expression. Evaluators should focus on whether the model makes correct judgments at key points, whether it keeps the main line clear in complex problems, and whether it can produce verifiable results within a limited output.

    For open mathematical problems, a combined evaluation is recommended: look at both whether the final proof holds and whether the model proposes valuable lemmas, constructions, or boundary conditions. Even if a model does not fully solve a problem, if it accurately identifies the difficulties and provides a reasonable breakdown, it should still be regarded as having research-assistance value.

    7. Cost and Efficiency: Low Quota Does Not Mean Low Cost

    In practice, quota consumption, response time, and manual verification cost all affect the overall assessment. In a given task, a model may consume relatively little quota while producing a complete handout, but this does not necessarily mean the real cost is low. A comprehensive cost perspective is needed.

    Cost includes at least four categories:

    1. Input cost: consumption from prompt length and context material length.
    2. Output cost: consumption from generated text length and structural complexity.
    3. Retry cost: if the model repeatedly produces wrong output, it must be regenerated or the prompt adjusted.
    4. Verification cost: the time spent on manual review, automatic parsing, and counterexample construction.

    If a model passes verification in a single generation, with stable output structure and low quota consumption, its overall efficiency is high. Conversely, even if single-generation quota consumption is low, if it requires substantial manual repair, the total cost can still be high.

    For this reason, an evaluation report can include an “overall efficiency” metric rather than looking only at the single-generation result.

    8. Stability and Reproducibility: Avoid Misjudgment From a Single Result

    LLM outputs have a degree of variability. The same prompt under different times, input orders, or random conditions can produce different results. Evaluation must therefore place weight on reproducibility.

    It is recommended to record the following for each evaluation:

    1. Evaluation set version.
    2. Prompt version.
    3. Description of the model capability configuration.
    4. Output time and raw results.
    5. Automatic verification results.
    6. Manual review comments.

    Run the same task multiple times and observe the variance of results. If a model passes stably across most runs, its reliability is higher; if it performs well only in a few runs, it should not be used as a basis for a stable-capability conclusion.

    In addition, a regression evaluation mechanism should be established. When the evaluation set is expanded, the prompt template is adjusted, or the model’s capabilities change, historical tasks should be rerun to avoid distorting the capability assessment.

    9. Practical Roadmap: Building an Evaluation Process From Scratch

    If a developer or researcher wants to conduct mathematical proof ability evaluation independently, they can follow this roadmap.

    Step one, build a small evaluation set. There is no need to pursue scale at the start; begin with ten to twenty representative propositions covering common domains such as algebra, analysis, combinatorics, and geometry.

    Step two, define a scoring sheet. Clarify the definitions of correctness, rigor, readability, completeness, and efficiency, and make scoring as quantifiable as possible.

    Step three, design a fixed prompt template. Ensure each proposition uses the same or similar input structure to enable side-by-side comparison.

    Step four, run in batches and save outputs. Do not keep only the final conclusions; preserve the complete process to facilitate later analysis.

    Step five, combine automatic verification with manual review. Automatic verification handles symbols, structure, and obvious errors; manual review focuses on mathematical depth and expression quality.

    Step six, produce a report and keep iterating. The report should include task descriptions, evaluation results, typical errors, improvement suggestions, and optimization directions.

    10. Common Misconceptions

    Several misconceptions commonly appear in practice.

    First, looking only at the final answer. The value of a mathematical proof lies in the process; focusing only on the conclusion misses many logical errors.

    Second, looking only at language fluency. Fluent language does not mean the proof holds. Many models can generate paragraphs that look professional, but the key steps are not rigorous.

    Third, ignoring boundary conditions. Many proofs hold only in routine cases; special cases are where the depth of a model’s understanding is exposed.

    Fourth, ignoring notation consistency. Chaotic notation reduces the usability of a handout and also affects later automatic parsing.

    Fifth, drawing conclusions from a single task. Good or poor performance on one task can be affected by the prompt, proposition difficulty, and output randomness.

    Sixth, looking only at quota consumption. Low-cost generation without usability has no practical value.

    11. Conclusion

    Evaluating an LLM’s mathematical proof ability is a systems-engineering task that must balance technical rigor with engineering feasibility. For developers, researchers, and users in educational settings, model quality cannot be judged from a single Q&A experience. Instead, a complete framework should be built around task construction, prompt design, correctness verification, handout expression, cost efficiency, and reproducibility. Only through multi-task, multi-dimensional, multi-round verification can one more objectively judge whether a model truly possesses complex mathematical reasoning and proof ability.