Evaluating Large Language Models for Mathematical Proof Generation and Deployment Practices

    This article presents a comprehensive framework for evaluating large language models in professional mathematical reasoning and high-intensity inference scenarios. It moves beyond subjective rankings and single-demo assessments, establishing a holistic evaluation model based on capability ceilings, stability, cost control, and engineering deployability. The discussion covers multi-level capability taxonomy, evaluation boundary definitions, throughput economics, and practical engineering recommendations including task routing, quota governance, and human-in-the-loop verification.

    Rethinking Evaluation Boundaries: Proof Generation Is Not Retrieval

    The fundamental difference between mathematical proof generation and standard question answering lies in the nature of the answer. Correct proofs are rarely contained in a single sentence; they require multi-step composition involving definitions, lemmas, constructions, counterexamples, induction, or contradiction arguments. When tasks come from public datasets, models may produce answers through memorization or pattern matching rather than genuine reasoning. To assess true reasoning capability, evaluation tasks must be designed to prevent direct retrieval.

    Effective evaluation tasks should include: applying variable substitutions to original propositions, weakening or strengthening conditions, requesting counterexamples that invalidate proofs, asking for two distinct proof paths, or requiring compression of long proofs into key steps with dependencies annotated. Only stable performance on such non-retrievable tasks demonstrates genuine proof organization capability rather than recitation.

    Evaluation boundaries must also distinguish between “closed-ended” and “open-ended” problems. Closed problems have standard answers suitable for automated or semi-automated verification. Open problems lack unique solutions and require expert review. Throughput alone is not a sufficient metric: high throughput suits batch processing and offline generation, while low time-to-first-token latency matters for interactive proof assistants. These require separate stress testing.

    Professional users should decompose tasks into distinct subcategories—proof completion, lecture generation, error localization, counterexample search, formula typesetting, and terminology consistency—scoring each separately rather than masking variations with a single aggregate score.

    A Five-Level Taxonomy for Mathematical Capability

    We propose a five-level classification of mathematical reasoning capability:

    1. Definitions and Foundational Derivation: Assessing terminology accuracy and boundary condition handling.
    2. Proof Completion: Providing partial steps and requiring the model to fill gaps.
    3. Complete Proofs for Unproven Propositions: Requiring the model to independently select lemmas and control the logical chain.
    4. Open Problem Exploration: Evaluating conjecture generation, counterexample construction, and identification of failure paths.
    5. Formalized or Verifiable Output: Requiring steps that can be symbolically checked or reviewed line-by-line by experts.

    Each level presents different difficulty and cost profiles. Evaluation reports should present results per level rather than as a single merged score.

    Prompt Design Considerations

    Prompt structure significantly influences outcomes. Effective practices include: clarifying role and objective, limiting available background knowledge, requiring step-by-step proofs with key lemmas annotated, demanding self-checking for counterexamples, maintaining clear formula typesetting, and lowering sampling temperature to reduce random jumps. For tasks like “generating lecture notes in English,” structural constraints help—such as mandating a fixed skeleton of “definition—lemma—proof—remark—exercises”—to prevent verbose narration from masking logical gaps.

    The verification phase should not rely solely on writing style. It should combine expert review, symbol checking, counterexample search, and consistency assessment across multiple samplings. Here is a generic evaluation pseudocode:

    1. function evaluate_math_model(model, tasks, verifier):
    2. results = []
    3. for task in tasks:
    4. prompt = build_prompt(task, constraints)
    5. outputs = model.generate(prompt, temperature=0, samples=N)
    6. scores = []
    7. for output in outputs:
    8. score = verifier(task, output)
    9. scores.append(score)
    10. results.append(aggregate(scores))
    11. return report_by_level(results)

    This workflow emphasizes observed stability across multiple samplings, error patterns, and verifiability—not just the highest single score. Chain-of-thought length should not be treated as a capability indicator: longer chains may improve exploration probability but also increase error propagation and cost. Concise chains resemble human writing more closely but may omit critical steps. Evaluations should separately report accuracy, readability, verifiability, and cost.

    Throughput and Deployment Economics: Beyond Single-Machine Speed

    High throughput typically results from a combination of high-density accelerators, batch processing, parallelization strategies, key-value cache reuse, quantization, and scheduling optimization. When measuring throughput, simultaneously record input length, output length, concurrency count, batch size, time-to-first-token, P95 latency, error rate, and resource utilization. A simple “tokens per second” figure can mislead: high-throughput batch processing for long outputs may have unacceptable interactive latency, and high-concurrency short-prompt scenarios do not necessarily yield low per-request costs.

    A simplified cost model:

    1. throughput = total_output_tokens / elapsed_seconds
    2. cost_per_million_tokens =
    3. (resource_cost_per_hour * elapsed_hours)
    4. / (total_output_tokens / 1_000_000)

    Self-deployment offers value beyond reselling API access. Benefits include replacing internal tasks, keeping data in-domain, domain customization, elastic capacity for peak demand, and system integration. Engineering teams can host evaluation pipelines in general-purpose cloud environments—using container platforms for task scheduling, object storage for test items and outputs, logging services for call chains, and monitoring/alerting for throughput and error rates. These generic infrastructure capabilities transform evaluation from ad-hoc scripts into reproducible workflows.

    Horizontal Comparison: Unified Benchmarks Over Subjective Rankings

    Models exhibit trade-offs across open mathematical problems, chain-of-thought complexity, writing style naturalness, and cost. Some models handle open problems more effectively; others produce cleaner proof chains with more human-like prose; others generate longer chains at higher cost. Professional model selection should not depend on subjective “ranking” conclusions but on a unified task set: closed proofs, unpublished propositions, lecture generation, error localization, and counterexample searches—each tracked separately. In parallel, record per-task cost, human review time, and failure retry rates. For workloads dominated by difficult open problems, prioritize exploration capability and verification loops. For batch lecture generation, prioritize structural stability, terminology consistency, and throughput cost.

    Engineering Recommendations: Task Routing, Quota Governance, and Human Review

    For production deployment, implement task routing: send simple definition lookups to lower-cost models and difficult proofs to stronger models; cache identical prompts and contexts; apply segmented generation with stepwise validation for long outputs; establish budget alerts on quotas or credits to prevent high-difficulty tasks from inadvertently exhausting allocations; and preserve human review and version archiving for critical proofs. Monitoring metrics should cover success rate, retry rate, average output length, per-task cost, and expert review time. The standard for evaluating a specialized large model is not “appears capable” but whether it can consistently produce verifiable, maintainable, and auditable results at acceptable cost within a well-defined task boundary.