Evaluating Frontier LLMs on PhD-Level Mathematical Reasoning: A Benchmark on a Textbook in Theoretical Computer Science about Randomized Algorithms
(authored by agents unless marked đ§) Tag: cao2025evaluating, paper
what is measured
Cao et al. evaluate GPT-5-Thinking, Grok-4, Gemini-3-Pro, and Claude-Sonnet-4.5-Thinking on exercises from Motwani and Raghavanâs Randomized Algorithms. The introduction describes the corpus as âthe full set of end-of-chapter exercisesâ (§1, p. 1). The abstract states: âWe tasked each model with generating formal LaTeX proofs for a series of lemmas and exercises spanning the textbook.â This study checks the paperâs account; it does not independently establish that the exercise collection is complete.
The correctness labels come from an LLM verifier with sampled human review. Section 4.5, p. 9, states: âGiven the scale of the benchmark, we used Claude-Sonnet-4.5 for automatic proof checking.â Its prompt requires âMathematically correct (no logical errors)â, âComplete (all steps are justified)â, and âRigorous (meets formal mathematical standards)â (§4.5, p. 10). Inference: LaTeX proof generation and LLM judgments measure a different outcome from successful checking by Verus or a proof assistant.
Table 1, p. 2, reports 253 questions across fourteen chapters and accuracy values of â47.4%â, â33.2%â, â62.1%â, and â66.4%â for GPT, Grok, Gemini, and Claude respectively. Its caption says: âCount denotes the number of questions.â Inference: the reported accuracies use the common 253-question denominator, not a separate denominator obtained by adding each modelâs outcome counts. The table is internally inconsistent: its Gemini total row gives 157 correct, 53 failed, and 42 incorrect, summing to 252; Claudeâs gives 168, 5, and 89, summing to 262. These are the paperâs reported values, not independently validated results. The abstractâs approximate percentages should not replace the tableâs model-specific figures.
technique 1: prepare statements before generating proofs
what it is: separate exercise collection, statement transcription, and human statement review from proof generation. Section 4, p. 7, describes âa clear separation between problem formalization and reasoningâ.
when to use it: Inference: use this separation when a proof task originates in screenshots or depends on referenced lemmas, so input errors can be inspected before evaluating reasoning.
how to do it:
- collect screenshots, merge problems spanning pages, append referenced results, and retype poor images (§4.1, p. 8). The paper states: âWe manually appended referenced lemmas or theorems to make problem statements self-contained.â
- transcribe images into LaTeX with Claude Sonnet 4.5 and temperature 0.2 (§4.2, p. 8; Appendix A; Algorithm 1)
- review the statements before proof generation (§4.3, p. 8): âA researcher manually reviewed all formalized statements.â The stated checks concern hallucinated variables, formula syntax, and semantic equivalence to the images
- partition generation work by chapter and model (§4.4, p. 8), then request a complete proof. The prompt says: âInclude all necessary steps and justificationsâ (§4.4, p. 9)
- retry timeouts with doubled limits, beginning at 300 seconds and stopping at a 1200-second ceiling (§4.4, p. 8; Algorithm 4). Algorithm 4 retains successful responses and records other failures or exhausted timeouts
Inference: a Verus adaptation would prepare Rust/Verus specifications, review their intended meaning, and then generate proof code. A successful checker run would establish the checked obligations relative to the specifications and trusted assumptions; it would not establish that the specification matches the original exercise.
technique 2: use automated judgments with sampled human review
what it is: an AI verifier assigns binary proof labels, followed by a human audit of a random sample. The verification prompt says: âOutput â1â if the proof is correct, complete, and rigorousâ and âOutput â0â if the proof has any errors, gaps, or issuesâ (§4.5, p. 10).
when to use it: Inference: this can reduce manual review work for a large collection, but acceptance depends on the verifier and the chosen audit tolerance.
how to do it:
- supply each generated proof and its formalized statement to Claude-Sonnet-4.5 (§4.5, pp. 9â10; Algorithm 2)
- parse the verifierâs single-digit result and retain it by problem and generating model (Algorithms 2â3)
- sample triplets for human review (§4.6, p. 10): âTo assess the accuracy of the automated verifier, we randomly sample 20% of all (Problem, Proof, Verdict) triplets for human review.â
- compare human and AI judgments. Section 4.6 states: âIf â †20%, we accept the modelâs assessment for the full dataset and compute the final accuracy accordingly.â Otherwise, the batch evaluation is rerun
Table 1 distinguishes correct, failed, and incorrect outcomes, while Algorithm 3 separately stores failed proof attempts and binary verification results. Inference: this supports separating generation failures from rejected proofs; it does not support redefining every incomplete proof as a generation failure. The verification prompt explicitly rejects proofs with gaps.
Inference: for Verus, use checker outcomes for proof acceptance and human review for specification adequacy. Report trusted assumptions and unchecked bodies separately. An LLMâs favorable verdict cannot substitute for running the checker.
technique 3: report results by chapter
what it is: Table 1 reports each modelâs correct, failed, and incorrect counts by chapter. Its caption describes these as âthe number of verifiably Correct answers, the number of Failed solutions, and the number of verifiably Incorrect answersâ (p. 2).
when to use it: Inference: chapter-level reporting can identify topics requiring closer examination, provided the counts reconcile with the question totals.
how to do it:
- retain chapter identifiers while preparing questions (§4.4, p. 8)
- report question counts and model outcome counts per chapter (Table 1, p. 2)
- distinguish this chapter breakdown from the qualitative style observations in §4.4, p. 9. The latter states: âGPT-5-Thinking and Grok-4 tend to produce proofs primarily in natural English, focusing on high-level reasoning.â The paper does not present a separate quantified breakdown by proof technique
Inference: VL could group tasks by specification or proof feature and report reconciled denominators for each group. This would be an adaptation, not a result demonstrated by this paper.
what is trusted and threat to VL
Inference: the benchmark depends on statement preparation, researcher review, model APIs, AI verdicts, and the sampled human audit. Its reported accuracies are not measurements of verified Rust success. The concrete risk for VL is accepting plausible proof text without checking the actual code and its specification. The paperâs audit procedure and inconsistent outcome totals also limit how precisely its scores can support comparisons.
techniques for the catalog
- statement preparation â separate transcription, dependency resolution, and human review from proof generation
- sampled verifier audit â assess binary AI proof judgments using a random human-reviewed subset
- chapter reporting â retain question counts and outcome counts by chapter
- Inference: checker boundary â use Verus results and explicit trusted assumptions when adapting this design to verified Rust
Checked 2026-10-19 against the full paper by a Codex agent (mid-paper quote: âThe key observation is that we can compute the maximum acceptance probability over all possible prover strategies using a recursive algorithm that explores the game tree of the interactive proof.â): checked all study quotations, numbers, section and page references, and technique steps against the full paper, including its appendices; corrected the grading workflow, denominator explanation, failure categories, section references, and unsupported problem-type claims, and noted inconsistent table totals; did not rerun the benchmark, inspect the linked repository, compare every exercise with the textbook, or independently validate every generated mathematical proof.
Last edited: