TL;DR
Giving a Large Language Model (LLM) the right mathematical theorem in its prompt doesn't actually make its reasoning "more correct"—instead, it acts as a massive compute shortcut, allowing the model to finish complex problems before running out of tokens. Even more exciting: strong models can discover brand-new, unpublished theorems on their own by experimenting with code on training problems, allowing us to pay the high cost of mathematical discovery once to make solving future problems fast and cheap.
What Problem Does This Paper Address?
Picture two math students asked to find the expected number of coin flips before seeing a specific pattern, like H-T-H. One student sets up a grueling system of linear equations and grinds through algebra for twenty minutes. The other knows a slick theorem called Conway’s leading numbers and writes down the answer in three lines. Both get the right answer, and both use valid logic—one just knows the right theory.
Today’s reasoning LLMs act like the first student, burning through tens of thousands of "thinking" tokens on every single problem. Gao and Bi ask two fundamental questions:
- What is a stated theory actually worth to an LLM solver? How much accuracy does it buy, and how much compute does it save?
- Can an LLM write that textbook entry itself? Instead of brute-forcing every problem at test time, can a model induce a general theorem from a handful of training problems once, and reuse it forever?
Testing this cleanly is tricky. Adding text changes prompt length, worked examples might leak the trick without stating a general rule, and if an LLM "discovers" a famous theorem, it is probably just reciting it from pre-training memory.
Methods
To isolate the true value of a theory and separate genuine discovery from memorization, the authors designed a tightly controlled experimental setup:
- Length-Matched Controls: Every prompt condition is padded with neutral text to the exact same token length. The human-written Oracle theory is compared against padding alone, an irrelevant math theory, generic hints, and step-by-step worked examples that use the exact target method.
- Planted Unpublished Theorems: To prove models aren't just recalling Wikipedia, the authors invented custom probability processes governed by novel, unpublished theorems. Before seeing any problems, models are probed to verify they cannot state these rules from memory.
- Code-Forced Induction & Merging: An "inducer" model (like Qwen3-235B) is given training problems and allowed to write a short theoretical note for a smaller "solver" model (like Qwen3-14B). Crucially, the protocol rejects any theory unless the inducer runs Python code at least three times to explore small instances first. Later, a "merger" model is tasked with synthesizing 12 partial notes from different runs into one unified theory.
- Recovery Ratio ($R$): Induced theories are graded by what they do for the downstream solver—specifically, the fraction of the human Oracle theory’s accuracy boost that the induced theory recovers.
Datasets
The authors evaluate their setup on five synthetic problem families with automatically gradable numeric answers (plus ~20% "trap" problems where the theorem’s preconditions fail):
- Classic Combinatorics/Probability: Pattern waiting times in coin flips (Conway’s overlap numbers) and symmetric graph/object colorings (Burnside’s lemma / Pólya enumeration, used as a negative control since models already know it well).
- Planted Families (F1, F2, F3): Three brand-new stochastic systems—carry-over rearrangements on a necklace (F1), neighbouring-pair swaps (F2), and a random particle collision process (F3)—each governed by an unpublished invariant or stationary law.
Key Insights and Ideas
- Theories save compute, not correctness: When given a massive 64k token budget, solutions that actually finish before hitting the cap are 98–100% accurate whether the model has the theory or not! A theory’s magic isn't preventing logical errors; it’s compressing the reasoning path so the model finishes within budget.
- Worked examples don't replace principles: Giving the solver length-matched worked solutions that explicitly use the shortcut yields zero accuracy gain (-0.02). Models need the abstract rule stated plainly, not just demonstrations of it.
- Exploration is non-negotiable for discovery: Without mandatory code execution, even 235B-parameter models lazily guessed useless theories before testing anything. Forcing at least three code runs unlocked genuine mathematical induction.
- Plausible math can be computationally useless: On family F2, the strong inducer guessed the exact right mathematical form (a transfer-matrix law) yet scored $0.00$ downstream because it missed the specific orbit condition needed to compute the matrix weights. Thus, LLM judges correlate poorly with actual utility—downstream solver accuracy is the only reliable test.
- Models find pieces before wholes: Individual induction runs often discover only half a theory or a special case. Merging multiple partial notes is a distinct reasoning skill where strong models shine.
Key Results
On classic coin-pattern problems, giving Qwen3-14B (at a 12k token cap) the Oracle theory jumps pass@1 accuracy from 0.37 to 0.83 (+0.46) and slashes median solution length from 10.2k to 6.3k tokens, dropping truncation rates from 59% to 14%. As the solver scales up to Qwen3.6-27B at a 64k cap, the accuracy gap shrinks (+0.07) because the baseline stops timing out, though the theory still saves ~35% of tokens on hard planted problems (35k vs. 54k tokens on F1).
For unpublished theorem induction (using Qwen3-235B-Thinking):
- F1 (Necklace): Succeeds cleanly, recovering $R = 0.60$ (60% of the human theory's benefit) and beating generic hints by +0.40. Two of three runs rediscovered the exact planted rule.
- F3 (Collisions): Recovers $R = 0.48$ on average—two runs nailed the full theorem (~1.00 accuracy), while a third hallucinated a bad formula that tanked accuracy to 0.01.
- F2 (Pair Swaps): Fails ($R \approx 0$), finding the mathematical structure without the computable condition.
Finally, on the classic waiting-time family where the best single induced note hit $R = 0.47$, having a strong 235B model merge 12 partial notes boosted recovery to $R = 0.61$, far outperforming a 32B merger ($0.31$) or mechanical selection rules ($0.28$).
Limitations and Future Work
The experiments rely on a small set of synthetic probability and combinatorics families and primarily test open-weight models from the Qwen family. While the planted theorems themselves are completely novel, their underlying proof mechanics (like local balance and optional stopping) are textbook techniques, meaning models still rely on foundational mathematical priors. Furthermore, because each condition only runs three independent inductions, run-to-run variance is high (occasionally producing confident, harmful formulas), and automated blind LLM judges disagreed sharply when grading theories ($\kappa = 0.11$).
Looking ahead, the authors suggest treating theory discovery as an evolutionary, population-based pipeline: generate diverse partial hypotheses via code exploration, synthesize them with a frontier merger model, and strictly filter candidates by their empirical accuracy and token savings on held-out training problems before deployment.
Summary updated