Systematically Evaluating LLM Mathematical Reasoning and Usage Costs

    This article presents a systematic framework for evaluating the mathematical reasoning capabilities and usage costs of Large Language Models (LLMs). It advocates shifting the focus from "which model is stronger" to "what tasks can be reliably completed," addressing capability, trustworthiness, and economy. The article details how to decompose mathematical tasks, design proof-oriented prompts, verify proof accuracy, evaluate lecture note quality independently, establish reproducible evaluations, calculate the true cost per usable result, and implement an auditable workflow.

    1. Evaluating LLMs: Shifting from “Who is Stronger” to “What Tasks Can Be Reliably Completed”

    When discussing the capabilities of Large Language Models (LLMs), people often rely on intuitive metrics: whether the answer is detailed, whether the reasoning process is complex, whether it can produce a complete set of lecture notes, and how much API quota a single task consumed. While these observations offer some reference value, they are insufficient to form a reliable technical evaluation.

    The reason is that LLM performance is not a single attribute. One model might excel at organizing knowledge and generating teaching materials but omit premises in critical proof steps; another might provide brief answers yet accurately identify implicit conditions in a proposition. Meanwhile, queue times, API rate limits, and manual review workloads directly impact actual usage value.

    Therefore, evaluation should revolve around three core questions:

    1. Capability: What types of mathematical tasks can the model handle, and is its accuracy stable?
    2. Trustworthiness: Can the conclusions and proofs withstand independent verification?
    3. Economy: How much time and cost are required to achieve a final, usable result?

    This framework does not pursue simple leaderboards; instead, it establishes a mapping between tasks and capabilities. For developers and enterprise users, the ability to consistently complete targeted work is far more meaningful than occasionally producing an astonishing answer.

    2. Decomposing Mathematical Capabilities: Avoiding Generalizations

    “Strong mathematical ability” is an overly broad description. To make evaluation actionable, tasks should be divided into different tiers.

    1. Concept Explanation and Knowledge Organization

    These tasks include explaining definitions, comparing related concepts, organizing the relationships between theorems, and converting existing materials into lecture notes.

    The evaluation focus is whether the concepts are accurate, whether symbols are consistent, and whether the explanation suits the target audience. Fluent language aids comprehension but cannot replace mathematical correctness. For instance, if a model confuses necessary conditions with sufficient conditions, the content remains unusable despite rich examples. These tasks are suitable for assisted writing, but definitions, conclusions, and scopes of application must be checked—especially for concepts that seem familiar but have subtle conditional differences.

    2. Proof Completion for Known Conclusions

    When reference materials only provide a proposition without expanding the proof, you can ask the model to complete the derivation. Here, two things must be distinguished: the fact that materials don’t show a proof doesn’t mean the proof doesn’t exist; and the fact that the model wrote a proof doesn’t mean it made an original discovery.

    It might have reconstructed a standard argument by synthesizing existing knowledge, applied a similar theorem, or generated a derivation that is superficially coherent but contains gaps. Therefore, the evaluation target should be the proof itself, not speculation about the generation process.

    Key checks include:

    • Whether all assumptions of the proposition are retained;
    • Whether the key lemmas actually hold;
    • Whether the conditions for applying referenced conclusions are met;
    • Whether there is circular reasoning;
    • Whether special cases and degenerate scenarios are covered.

    3. Cross-Domain Synthetic Reasoning

    More complex tasks may simultaneously involve multiple knowledge domains. The model must not only know relevant conclusions but also determine whether different conclusions can be stitched together.

    The difficulty of such tasks usually lies not in text expression but in the transfer of conditions. For example, if an intermediate conclusion requires finite dimensions, but the subsequent derivation extends it to infinite dimensions without explanation, the entire proof may fail. During evaluation, record the conditions introduced at each step and check whether they align with the original proposition.

    4. Open-Ended Problem Exploration

    Open-ended problems can include conjecture formation, special case analysis, counterexample search, and research route design. The model proposing valuable ideas does not equate to having solved the problem.

    For these tasks, a safer evaluation target is local contribution: whether it found an effective simplification, identified obstacles in existing methods, or provided intermediate propositions that can be further verified. You cannot assume the model has a stable ability to solve unsolved mathematical problems just because one response appears novel.

    3. Designing Proof Tasks: Define Goals First, Then Request Output

    Directly instructing “prove this proposition and write it as lecture notes” is convenient but easily mixes reasoning, writing, and formatting. A better approach is to write the task instructions as verifiable constraints.

    A universal prompt template can be:

    Please generate English mathematical lecture notes for graduate students based on the given proposition. First, accurately restate the assumptions and conclusions, then list the definitions and auxiliary lemmas required for the proof. Complete the proof step-by-step, explaining which conditions the critical steps rely on. For conclusions that cannot be confirmed, mark them explicitly; do not fabricate citations. Finally, check special cases, symbol consistency, and potential proof gaps. The output should use structured mathematical typesetting source code.

    The value of such a prompt is not guaranteeing a correct answer, but making the response easier to review.

    Specifically, you should provide the complete proposition rather than just a number or a blurry screenshot; clarify the foundational objects, symbol conventions, allowed referenced conclusions, and the target reader’s background. If the proposition comes from reference materials, include the relevant definitions to prevent the model from guessing the context from memory.

    For long tasks, you can split them into three stages:

    1. Proof Planning: List possible routes, key lemmas, and risk points.
    2. Proof Expansion: Complete each step and verify conditions.
    3. Lecture Note Generation: Organize explanations and formatting based on the confirmed proof.

    Phased execution facilitates the timely discovery of errors and avoids spending large amounts of API quota on a lengthy document that ultimately proves unusable.

    4. Verifying Mathematical Proofs: From Overall Conclusions to Local Checks

    The reliability of a mathematical proof cannot be determined by writing style. Rigorous verification requires breaking the complete response down into verifiable units.

    1. Check if the Proposition Was Quietly Rewritten

    First, compare the input and output to ensure the model did not add assumptions absent from the original text, nor weaken the conclusion before claiming to have completed the proof.

    For example, the original proposition might require it to hold for all objects, but the output only discusses finite sets; or the original proposition allows boundary cases, but the proof defaults to strictly positive variables. These changes might be masked by natural language but alter the mathematical meaning of the conclusion.

    2. Build a “Step-Basis-Condition” Table

    For each key step, record three elements:

    Check Item Question to Answer
    Derivation Step What specific conclusion is currently reached?
    Mathematical Basis Is it using a definition, lemma, theorem, or direct calculation?
    Applicable Conditions Have these conditions been derived from the original assumptions or previous text?

    This method exposes common issues: skipped steps, omitted conditions, unproven existence, and treating intuition as a conclusion.

    3. Use Simple Propositions to Understand the Risk of Implicit Conditions

    Consider the proposition: A linear map on a finite-dimensional vector space is surjective if it is injective.

    A correct proof should explicitly use the dimension relation:
    [
    \dim V=\dim \ker T+\dim \operatorname{im} T.
    ]
    When the map is injective, the kernel is only the zero vector, so the image space has the same dimension as the original space. Since the image space is a subspace of the original space, they are equal, and thus the map is surjective.

    Here, “finite-dimensional” and “the map is from the space to itself” are critical conditions. If the model only states “an injective map loses no information, so it must be surjective,” the explanation is intuitive but does not complete the proof. Extending the conclusion to infinite-dimensional spaces without explanation will also result in errors.

    4. Apply Pressure via Counterexamples and Boundary Cases

    Verification should not just follow along with the model’s proof reading; it should actively attempt to overturn the conclusion. You can ask the model to analyze whether the result still holds if a certain assumption is removed, and test the conclusion under low-dimensional, zero-object, empty-set, or other appropriate boundary conditions.

    Note that this self-checking may still repeat the original errors. It is suitable as a screening method but cannot replace independent derivation or expert review. If the proposition can be translated into a precise formal expression and the project has the appropriate verification environment, further machine checking can be performed. However, machine checking usually only guarantees consistency between the formal expression and derivation rules; whether the original problem was correctly expressed still requires human confirmation.

    5. Evaluate Lecture Note Quality and Proof Correctness Separately

    Technical lecture notes contain at least two distinct quality objectives. The first is mathematical correctness—whether the propositions, lemmas, and derivations hold. The second is pedagogical quality—whether the reader can understand why this route was chosen and how the steps connect.

    A good set of lecture notes usually includes:

    • Background and problem motivation;
    • Necessary definitions and symbol conventions;
    • Accurate formulation of the proposition;
    • Overview of the proof strategy;
    • Auxiliary lemmas and their proofs;
    • The main proof;
    • The role of assumptions and the scope of application.

    Writing quality cannot offset proof errors. Conversely, a correct but overly compressed proof may not be suitable as teaching material. Therefore, scoring should separate “correctness” and “readability” to prevent length, natural English, and neat formatting from masking logical flaws. For the generated mathematical typesetting source code, formula delimiters, bracket pairing, section references, and symbol consistency should also be checked. Successful typesetting only means the document structure can be processed; it does not prove the mathematical content is correct.

    6. Establish Reproducible Evaluations Rather Than Relying on Subjective Rankings

    A small number of personal experiences is easily influenced by task selection, context, generation randomness, and review criteria. To form a meaningful comparison, the evaluation process must first be fixed.

    First, build a task set covering different difficulties, including concept explanations, standard proofs, condition-sensitive proofs, error-proof diagnostics, and open-ended exploration. Do not only choose problems the model is good at, nor use a single extremely difficult problem to represent overall capability.

    Second, standardize task inputs, reference materials, allowed auxiliary capabilities, and the maximum work budget as much as possible. If a particular experiment provides more materials or uses additional retrieval, it must be explicitly recorded; the advantages of the entire system cannot be entirely attributed to the model itself.

    Third, conduct multiple tests and save failure cases. For mathematical tasks, it is recommended to treat critical logical errors as disqualifying conditions rather than letting language fluency inflate the total score. You can also hide the output source for blind reviews to reduce preconceived judgments.

    The final conclusion should be limited to the scope of evidence covered, for example: “In the current proof completion task set, the output structure is relatively complete, but condition verification still requires manual intervention.” This statement is more rigorous and practically instructive than broadly declaring one model to be comprehensively ahead.

    7. Usage Costs: Focus on Usable Results, Not Quota Consumption

    When API quotas are about to expire, users tend to adopt a “use it up first” mentality. However, resources being consumed does not equal value being generated. Repeatedly generating redundant content may instead increase the review burden.

    A more reasonable cost metric is:
    [
    \text{Cost Per Usable Result}
    =
    \frac{\text{API Call Cost}+\text{Manual Review Cost}+\text{Rework Cost}}
    {\text{Number of Final Accepted Results}}.
    ]
    Here, the measurement criteria for each cost must be unified; if they cannot be reliably converted, they should be reported separately rather than forced into a single number. When no results pass acceptance, this ratio is not suitable for evaluation; the task failure and incurred investment should be recorded directly.

    Additionally, queue time and response time should be recorded separately. For interactive work, excessive waiting disrupts thought; for batch offline tasks, waiting might be acceptable, but throughput and completion deadlines are more important. Therefore, identical model performance may offer entirely different usage values across different workflows.

    Practical budget strategies include: verifying routes with small tasks first, prioritizing the generation of proof skeletons, reducing irrelevant context, expanding only after key conclusions are confirmed, and setting clear stop conditions. If multiple rounds of revision consistently fail to resolve the same logical gap, you should switch to manual derivation or supplementary materials rather than endlessly adding API calls.

    Synthesizing the above methods, a robust mathematical assistance workflow can be designed as:

    Task Definition → Material Preparation → Proof Planning → Phased Derivation → Independent Verification → Lecture Note Organization → Cost Review.

    Each stage has clear deliverables. The task definition stage outputs the complete proposition; the proof planning stage outputs routes and risks; the phased derivation stage outputs verifiable proof steps; the independent verification stage records passing items and gaps; the lecture note organization stage finalizes language polishing and document structuring.

    For unresolved research problems, a “conclusion status” tag should be added to distinguish proven results, unverified conjectures, and exploratory suggestions. This prevents generated content from being mistaken for reliable conclusions during subsequent dissemination.

    The core of evaluating LLMs is not finding a permanent capability leaderboard, but confirming on which tasks it can reliably provide assistance, which stages must be handled manually, and whether the final output justifies the investment. Only by simultaneously measuring correctness, auditability, waiting costs, and rework costs can an impressive single response be transformed into a genuinely reliable technical practice.