Evaluating LLM Math Reasoning: From Closed Problems to Open Proofs
Closed-form accuracy is a weak proxy for mathematical ability. This article separates answer checking from proof validation, outlines a four-level evaluation ladder for open conjectures, argues that chain length is not a quality metric, and describes a decoupled generate-and-verify pipeline plus cost controls such as routing, token budgets, and proof skeletons.
1. Doing exercises is not the same as proving theorems
Many leaderboards compress mathematical ability into multiple-choice accuracy. That hides a basic fact: closed problems and open statements demand very different capabilities.
Closed problems—contest items, textbook exercises, standardized tests—share three properties: a unique answer, solution paths that are dense in training data, and automatic scoring from the final answer. High scores here often come from pattern matching and retrieval-like memory.
Open statements are different. In public mathematical collections, many entries give only a claim, not a proof. The model cannot copy a solution; it must build a complete argument. That requires precise recall of definitions and hypotheses, inventing and chaining lemmas, ruling out counterexamples, and long-range consistency without self-contradiction.
The first principle of evaluation is therefore: score “correct answer” and “valid argument” separately. The former can be automatic; the latter needs step-by-step checking.
2. Open proofs: the real capability gap
A practical, difficulty-ordered framework uses four levels:
| Level | Task type | What it tests | Scoring |
|---|---|---|---|
| L1 | Standard calculation and simplification | Arithmetic stability | Automatic match |
| L2 | Routine theorem application | Accurate knowledge use | Automatic + sampled human review |
| L3 | Multi-lemma proofs | Long-range consistency | Stepwise human verification |
| L4 | New statements without an existing proof | Independent construction | Expert review |
L4 is where most models currently top out. Do not only ask whether the conclusion is right. Ask three further questions: whether undeclared extra assumptions were used; whether quantifier order was swapped at some step; whether a constructive existence claim was written as a non-constructive assertion.
3. Chain-of-thought length is not a quality metric
A common mistake is treating “thinking longer” as “thinking deeper.” In practice three patterns appear:
- Short and efficient: few steps, each justified, tone close to a human author.
- Long and redundant: repeated self-doubt, backtracking, and recalculation; the answer may be right but the trace is noisy.
- Long and divergent: longest traces and most branches; sometimes finds a new path on open problems, but is the least stable.
Score traces on three measurable dimensions: fraction of productive steps (steps that advance the argument / total steps), number of backtracks, and consistency between conclusion and process. Length itself should not enter the score.
4. A reproducible evaluation sketch
Keep generation and verification decoupled so the same model is not both examinee and grader:
# Pseudocode: layered evaluation and stepwise checksdef evaluate(model, task):draft = model.generate(prompt=PROOF_TEMPLATE.format(statement=task.statement),max_tokens=task.budget,)steps = split_into_steps(draft) # split by lemmas / claimsreport = []for i, s in enumerate(steps):verdict = verifier.check(claim=s.claim,context=steps[:i], # only prior steps may be citedaxioms=task.allowed_axioms,)report.append((i, verdict.ok, verdict.reason))return {"final_correct": verifier.check_final(draft, task),"valid_step_ratio": mean(r[1] for r in report),"hidden_assumption": detect_extra_assumptions(report),}
Three design points: context may cite only earlier steps, blocking “future” leakage; the allowed axiom set is explicit, and undeclared use counts as a hidden assumption; final conclusion and process are scored separately so a right answer cannot hide a broken argument.
5. Quotas and cost: spend compute where it matters
In real use, queues and token budgets are hard constraints. Prefer a cost policy over burning quota on low-value calls:
- Tiered routing: send L1/L2 to small models or local rule engines; call a strong model only for L3/L4.
- Budgets up front: cap tokens per proof; on overflow, stop and require a proof skeleton first.
- Skeleton first: ask for a lemma list and dependency graph, confirm the outline, then expand—this cuts useless long chains.
- Cache reuse: store verified lemmas as reusable fragments so they are not re-derived.
- Keep failures: failed samples locate capability boundaries better than successes.
Skeleton prompt (illustrative):
Output only a proof skeleton; do not expand details:1) List lemmas to introduce (with IDs and source type);2) Give the dependency order among lemmas;3) Mark the axiom/definition used at each step.After the skeleton is confirmed I will ask you to expand each item.
6. Beyond the proof: engineering quality of the output
Mathematical ability must land in a readable artifact. Check:
- Formal typesetting: standard math markup; numbering, citations, and theorem environments complete.
- Structure: statement, notation, proof, corollaries, and remarks clearly layered.
- Natural language: avoid mechanical repetition and overly “model-like” phrasing.
- Auditability: every claim traces to a prior step or a declared axiom.
Score these four as independent dimensions, alongside conclusion correctness—not as afterthoughts.
7. Practical recommendations
Evaluate mathematical ability by four rules: use open statements, not closed problems, as the main yardstick; separate process checks from conclusion checks; measure reasoning quality by productive-step ratio, not chain length; control cost with tiered routing and skeleton-first generation. On that framework, teams can get reproducible, comparable, iterative results on their own data instead of relying on a single leaderboard or subjective impression.
